|
|
@@ -53,6 +53,7 @@ export default {
|
|
|
tableData: [],
|
|
|
modalFlag: false, // 控制模态框展示
|
|
|
dictList: [],
|
|
|
+ content1Param:{},
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -118,7 +119,8 @@ 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}})
|
|
|
resolve();
|
|
|
} else {
|
|
|
console.log(res);
|
|
|
@@ -137,8 +139,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,
|
|
|
page,
|
|
|
rows
|
|
|
},
|
|
|
@@ -163,8 +165,8 @@ export default {
|
|
|
method: "post",
|
|
|
data: {
|
|
|
dictName: name,
|
|
|
- parentId: this.dictList[1]["id"],
|
|
|
- dictCode: this.dictList[1]["dictCode"],
|
|
|
+ parentId: this.content1Param.id,
|
|
|
+ dictCode: this.content1Param.dictCode,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
@@ -189,8 +191,8 @@ export default {
|
|
|
data: {
|
|
|
dictName: newName,
|
|
|
id: this.tableData[index]["id"],
|
|
|
- parentId: this.dictList[1]["id"],
|
|
|
- dictCode: this.dictList[1]["dictCode"],
|
|
|
+ parentId: this.content1Param.id,
|
|
|
+ dictCode: this.content1Param.dictCode,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
@@ -214,8 +216,8 @@ export default {
|
|
|
method: "post",
|
|
|
data: {
|
|
|
id: this.tableData[index]["id"],
|
|
|
- parentId: this.dictList[1]["id"],
|
|
|
- // dictCode: this.dictList[1]['dictCode'],
|
|
|
+ parentId: this.content1Param.id,
|
|
|
+ dictCode: this.content1Param.dictCode,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|