Former-commit-id: 44782cebb3914de49609fc1cd70a9dbfcfd340c7
master
wangbing 5 years ago
parent 027fd78a68
commit 884c6e4fa5

@ -44,14 +44,14 @@
<el-dialog class="form" :title="form.title" :visible.sync="form.dialog"> <el-dialog class="form" :title="form.title" :visible.sync="form.dialog">
<el-form :model="form" :inline="true" :rules="formRules" ref="form" label-position="right" <el-form :model="form" :inline="true" :rules="formRules" ref="form" label-position="right"
label-width="90px"> label-width="90px">
<el-form-item label="是否目录" prop="node"> <el-form-item label="是否节点" prop="node">
<el-radio-group v-model="form.node" clearable size="small"> <el-radio-group v-model="form.node" clearable size="small">
<el-radio :label="true">是</el-radio> <el-radio :label="true">是</el-radio>
<el-radio :label="false">否</el-radio> <el-radio :label="false">否</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="上级目录" v-if="form.node" prop="supId"> <el-form-item label="上级节点" v-if="form.node" prop="supId">
<el-cascader <el-cascader
:options="options" :options="options"
size="small" size="small"
@ -291,9 +291,19 @@
break; break;
} }
}, },
getTree: function () {
this.$ajax.find("system", "resource", {node: true}).then(function (response) {
if (response.errors.length > 0) {
console.error(response.errors[0].message)
} else {
this.options = response.result;
}
}.bind(this))
}
}, },
mounted: function () { mounted: function () {
this.onFind(); this.onFind();
this.getTree();
}, },
}) })
</script> </script>

Loading…
Cancel
Save

Powered by TurnKey Linux.