系统字典、业务字典增加树形结构

dev
smallchill 6 years ago
parent 3c7954b8ec
commit ccc884e361
  1. 2
      src/const/system/dict.js
  2. 2
      src/const/system/dictbiz.js
  3. 5
      src/views/system/dict.vue
  4. 5
      src/views/system/dictbiz.vue

@ -4,7 +4,6 @@ export const optionParent = {
tip: false,
searchShow: true,
searchMenuSpan: 10,
tree: true,
border: true,
index: true,
selection: true,
@ -107,6 +106,7 @@ export const optionChild = {
label: "字典编号",
prop: "code",
addDisabled: true,
editDisabled: true,
search: true,
span: 24,
rules: [

@ -4,7 +4,6 @@ export const optionParent = {
tip: false,
searchShow: true,
searchMenuSpan: 10,
tree: true,
border: true,
index: true,
selection: true,
@ -107,6 +106,7 @@ export const optionChild = {
label: "字典编号",
prop: "code",
addDisabled: true,
editDisabled: true,
search: true,
span: 24,
rules: [

@ -58,7 +58,6 @@
:option="optionChild"
:table-loading="loadingChild"
:data="dataChild"
:page="pageChild"
ref="crudChild"
v-model="formChild"
:permission="permissionList"
@ -438,9 +437,7 @@
this.parentId,
Object.assign(params, this.query)
).then(res => {
const data = res.data.data;
this.pageChild.total = data.total;
this.dataChild = data.records;
this.dataChild = res.data.data;
this.loadingChild = false;
this.selectionClear();
});

@ -58,7 +58,6 @@
:option="optionChild"
:table-loading="loadingChild"
:data="dataChild"
:page="pageChild"
ref="crudChild"
v-model="formChild"
:permission="permissionList"
@ -438,9 +437,7 @@
this.parentId,
Object.assign(params, this.query)
).then(res => {
const data = res.data.data;
this.pageChild.total = data.total;
this.dataChild = data.records;
this.dataChild = res.data.data;
this.loadingChild = false;
this.selectionClear();
});

Loading…
Cancel
Save