|
|
@ -1,6 +1,6 @@
|
|
|
|
<div id="app" v-cloak>
|
|
|
|
<div id="app" v-cloak>
|
|
|
|
<el-card class="box-card search">
|
|
|
|
<el-card class="box-card search">
|
|
|
|
<el-form :inline="true" :model="vm" ref="vm" label-position="left" label-width="90px">
|
|
|
|
<el-form :inline="true" :model="vm" ref="vm" label-position="right" label-width="90px">
|
|
|
|
<el-form-item label="资源内容" prop="value">
|
|
|
|
<el-form-item label="资源内容" prop="value">
|
|
|
|
<el-input v-model="vm.value" clearable size="small" placeholder="请输入资源内容"></el-input>
|
|
|
|
<el-input v-model="vm.value" clearable size="small" placeholder="请输入资源内容"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -8,7 +8,8 @@
|
|
|
|
<el-input v-model="vm.comment" clearable size="small" placeholder="请输入资源描述"></el-input>
|
|
|
|
<el-input v-model="vm.comment" clearable size="small" placeholder="请输入资源描述"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="资源类型" prop="resourceType">
|
|
|
|
<el-form-item label="资源类型" prop="resourceType">
|
|
|
|
<el-input-dict v-model="vm.resourceType" clearable size="small" placeholder="请输入资源类型" dict-name="RESOURCE_TYPE" ></el-input-dict>
|
|
|
|
<el-input-dict v-model="vm.resourceType" clearable size="small" placeholder="请输入资源类型"
|
|
|
|
|
|
|
|
dict-name="RESOURCE_TYPE"></el-input-dict>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否节点" prop="node">
|
|
|
|
<el-form-item label="是否节点" prop="node">
|
|
|
|
<el-radio-group v-model="vm.node" clearable size="small">
|
|
|
|
<el-radio-group v-model="vm.node" clearable size="small">
|
|
|
@ -17,7 +18,8 @@
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="上级主键" prop="supId">
|
|
|
|
<el-form-item label="上级主键" prop="supId">
|
|
|
|
<el-input-number v-model="vm.supId" clearable size="small" placeholder="请输入上级主键" :step="1" step-strictly></el-input-number>
|
|
|
|
<el-input-number v-model="vm.supId" clearable size="small" placeholder="请输入上级主键" :step="1"
|
|
|
|
|
|
|
|
step-strictly></el-input-number>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否有效" prop="valid">
|
|
|
|
<el-form-item label="是否有效" prop="valid">
|
|
|
|
<el-radio-group v-model="vm.valid" clearable size="small">
|
|
|
|
<el-radio-group v-model="vm.valid" clearable size="small">
|
|
|
@ -40,25 +42,36 @@
|
|
|
|
<el-button type="warning" size="small" icon="el-icon-download" @click="onExport">导出</el-button>
|
|
|
|
<el-button type="warning" size="small" icon="el-icon-download" @click="onExport">导出</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
<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="left" label-width="90px">
|
|
|
|
<el-form :model="form" :inline="true" :rules="formRules" ref="form" label-position="right"
|
|
|
|
|
|
|
|
label-width="90px">
|
|
|
|
|
|
|
|
<el-form-item label="是否目录" prop="node">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.node" clearable size="small">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="上级目录" v-if="form.node" prop="supId">
|
|
|
|
|
|
|
|
<el-cascader
|
|
|
|
|
|
|
|
:options="options"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
:props="{ checkStrictly: true }"
|
|
|
|
|
|
|
|
clearable></el-cascader>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="资源内容" prop="value">
|
|
|
|
<el-form-item label="资源内容" prop="value">
|
|
|
|
<el-input v-model="form.value" clearable size="small" placeholder="请输入资源内容"></el-input>
|
|
|
|
<el-input v-model="form.value" clearable size="small" placeholder="请输入资源内容"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="资源描述" prop="comment">
|
|
|
|
<el-form-item label="资源描述" prop="comment">
|
|
|
|
<el-input v-model="form.comment" clearable size="small" placeholder="请输入资源描述"></el-input>
|
|
|
|
<el-input v-model="form.comment" clearable size="small" placeholder="请输入资源描述"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="资源类型" prop="resourceType">
|
|
|
|
|
|
|
|
<el-input-dict v-model="form.resourceType" clearable size="small" placeholder="请输入资源类型" dict-name="RESOURCE_TYPE" ></el-input-dict>
|
|
|
|
<el-form-item label="资源类型" v-if="!form.node" prop="resourceType">
|
|
|
|
</el-form-item>
|
|
|
|
<el-input-dict v-model="form.resourceType" clearable size="small" placeholder="请输入资源类型"
|
|
|
|
<el-form-item label="是否节点" prop="node">
|
|
|
|
dict-name="RESOURCE_TYPE"></el-input-dict>
|
|
|
|
<el-radio-group v-model="form.node" clearable size="small">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="上级主键" prop="supId">
|
|
|
|
|
|
|
|
<el-input-number v-model="form.supId" clearable size="small" placeholder="请输入上级主键" :step="1" step-strictly></el-input-number>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="是否有效" prop="valid">
|
|
|
|
<el-form-item label="是否有效" prop="valid">
|
|
|
|
<el-radio-group v-model="form.valid" clearable size="small">
|
|
|
|
<el-radio-group v-model="form.valid" clearable size="small">
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
@ -193,8 +206,8 @@
|
|
|
|
pageNumber: 1,
|
|
|
|
pageNumber: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
totalCount: 0,
|
|
|
|
totalCount: 0,
|
|
|
|
sortKey:'CREATE_TIME',
|
|
|
|
sortKey: 'CREATE_TIME',
|
|
|
|
sortType:'DESC'
|
|
|
|
sortType: 'DESC'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
form: {//待提交表单
|
|
|
|
form: {//待提交表单
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
@ -222,12 +235,25 @@
|
|
|
|
node: [
|
|
|
|
node: [
|
|
|
|
{required: true, message: '是否节点不能为空', trigger: 'blur'},
|
|
|
|
{required: true, message: '是否节点不能为空', trigger: 'blur'},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
supId: [
|
|
|
|
supId: [],
|
|
|
|
],
|
|
|
|
|
|
|
|
valid: [
|
|
|
|
valid: [
|
|
|
|
{required: true, message: '是否有效不能为空', trigger: 'blur'},
|
|
|
|
{required: true, message: '是否有效不能为空', trigger: 'blur'},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
options: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: "111",
|
|
|
|
|
|
|
|
label: "指南",
|
|
|
|
|
|
|
|
children: [{
|
|
|
|
|
|
|
|
value: 'shejiyuanze',
|
|
|
|
|
|
|
|
label: '设计原则',
|
|
|
|
|
|
|
|
children: [{
|
|
|
|
|
|
|
|
value: 'yizhi',
|
|
|
|
|
|
|
|
label: '一致'
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onCreate: function () {
|
|
|
|
onCreate: function () {
|
|
|
@ -237,9 +263,9 @@
|
|
|
|
this.form.value = "";
|
|
|
|
this.form.value = "";
|
|
|
|
this.form.comment = "";
|
|
|
|
this.form.comment = "";
|
|
|
|
this.form.resourceType = "";
|
|
|
|
this.form.resourceType = "";
|
|
|
|
this.form.node = "";
|
|
|
|
this.form.node = false;
|
|
|
|
this.form.supId = "";
|
|
|
|
this.form.supId = "";
|
|
|
|
this.form.valid = "";
|
|
|
|
this.form.valid = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onCommand: function (arg) {
|
|
|
|
onCommand: function (arg) {
|
|
|
|
const cmd = arg[0];
|
|
|
|
const cmd = arg[0];
|
|
|
|