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

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

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

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

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

Loading…
Cancel
Save