|
|
@@ -174,6 +174,8 @@ export default {
|
|
|
dictList: [],
|
|
|
initParentId: "",
|
|
|
noEditFlag: false,
|
|
|
+ content1Param:{},
|
|
|
+ content2Param:{},
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -396,7 +398,11 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
- this.dictList = res.data.data;
|
|
|
+ let dataList = res.data.data;
|
|
|
+ dataList.forEach((item)=>{
|
|
|
+ if(item.dictCode === 'content1'){this.content1Param = item}
|
|
|
+ if(item.dictCode === 'content2'){this.content2Param = item}
|
|
|
+ })
|
|
|
resolve();
|
|
|
} else {
|
|
|
console.log(res);
|
|
|
@@ -414,8 +420,8 @@ export default {
|
|
|
method: "post",
|
|
|
url: "/sys/dataDict/selectSysDataDictPage",
|
|
|
data: {
|
|
|
- dictCode: this.dictList[1]["dictCode"],
|
|
|
- parentId: this.dictList[1]["id"],
|
|
|
+ dictCode: this.content1Param.dictCode,
|
|
|
+ parentId: this.content1Param.id,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
@@ -434,8 +440,8 @@ export default {
|
|
|
method: "post",
|
|
|
url: "/sys/dataDict/selectSysDataDictPage",
|
|
|
data: {
|
|
|
- dictCode: this.dictList[2]["dictCode"],
|
|
|
- parentId: this.dictList[2]["id"],
|
|
|
+ dictCode: this.content2Param.dictCode,
|
|
|
+ parentId: this.content2Param.id,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|