处理先查看在编辑后 表单显示异常问题
This commit is contained in:
parent
0ea75d967b
commit
38ed4ff43f
|
@ -26,6 +26,7 @@
|
||||||
{{ taskStatusDist[row.type] }}
|
{{ taskStatusDist[row.type] }}
|
||||||
</template>
|
</template>
|
||||||
<template #status="{ row }">
|
<template #status="{ row }">
|
||||||
|
<div>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="row.status"
|
v-model="row.status"
|
||||||
:active-value="'1'"
|
:active-value="'1'"
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
@change="StopMessageTemplate(row)"
|
@change="StopMessageTemplate(row)"
|
||||||
>
|
>
|
||||||
</el-switch>
|
</el-switch>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</base-table>
|
</base-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -350,4 +352,7 @@ export default {
|
||||||
color: #409eff;
|
color: #409eff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
::v-deep .el-switch{
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -127,13 +127,22 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
billID: null,
|
billID: null,
|
||||||
appArrData:[]
|
appArrData: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openDialog(type, row = {}) {
|
openDialog(type, row = {}) {
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.billID = row ? row.id : null;
|
this.billID = row ? row.id : null;
|
||||||
|
this.formRow = configData.formRow;
|
||||||
|
this.basicsRules = configData.basicsRules
|
||||||
|
this.funData = [
|
||||||
|
{
|
||||||
|
color: "#ff0000",
|
||||||
|
text: "删除",
|
||||||
|
handle: "deleteData",
|
||||||
|
},
|
||||||
|
];
|
||||||
if (type == "add") {
|
if (type == "add") {
|
||||||
this.dialogTitle = "新增";
|
this.dialogTitle = "新增";
|
||||||
}
|
}
|
||||||
|
@ -144,6 +153,7 @@ export default {
|
||||||
this.dialogTitle = "查看";
|
this.dialogTitle = "查看";
|
||||||
this.formRow = configData.formRowShow;
|
this.formRow = configData.formRowShow;
|
||||||
this.funData = [];
|
this.funData = [];
|
||||||
|
this.basicsRules = {}
|
||||||
}
|
}
|
||||||
if (type != "show") {
|
if (type != "show") {
|
||||||
this.getMessageList();
|
this.getMessageList();
|
||||||
|
@ -174,7 +184,10 @@ export default {
|
||||||
const result = this.appArrData
|
const result = this.appArrData
|
||||||
.filter((item) => appList.includes(item.id)) // 过滤出匹配的id
|
.filter((item) => appList.includes(item.id)) // 过滤出匹配的id
|
||||||
.map((item) => ({ id: item.id, label: item.name })); // 生成id和appName的对象
|
.map((item) => ({ id: item.id, label: item.name })); // 生成id和appName的对象
|
||||||
this.apiClassificationData = [{ id: res.attribute.father.appIdList, label: "全部" }, ...result];
|
this.apiClassificationData = [
|
||||||
|
{ id: res.attribute.father.appIdList, label: "全部" },
|
||||||
|
...result,
|
||||||
|
];
|
||||||
res.attribute.father.appIdList = appList;
|
res.attribute.father.appIdList = appList;
|
||||||
res.attribute.father.warningAppId =
|
res.attribute.father.warningAppId =
|
||||||
res.attribute.father.warningAppId.split(",");
|
res.attribute.father.warningAppId.split(",");
|
||||||
|
@ -325,7 +338,7 @@ export default {
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
if (res.status == "200") {
|
if (res.status == "200") {
|
||||||
this.appArrData = res.attribute
|
this.appArrData = res.attribute;
|
||||||
this.formRow[0].elCol[1].options = res.attribute;
|
this.formRow[0].elCol[1].options = res.attribute;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue