|
|
@@ -48,8 +48,8 @@
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in ruleNameList"
|
|
|
- :key="item.id"
|
|
|
- :value="item.id"
|
|
|
+ :key="item.ruleId"
|
|
|
+ :value="item.ruleId"
|
|
|
:label="item.name"
|
|
|
@click.native="handleClickRule(item)"
|
|
|
></el-option>
|
|
|
@@ -853,6 +853,7 @@
|
|
|
submit() {
|
|
|
console.log(this.planDeviceList);
|
|
|
console.log('thi', this.planCheckNodes);
|
|
|
+ // const items = this.planDeviceList[0].workItems;
|
|
|
this.planDeviceList.forEach((item) => {
|
|
|
// 判断是否存在 workItems 属性,如果不存在则添加一个空数组
|
|
|
if (!item.workItems) {
|
|
|
@@ -865,7 +866,10 @@
|
|
|
}
|
|
|
});
|
|
|
console.log('x修改', this.planDeviceList);
|
|
|
- if (this.dialogTitle == '编辑保养计划') {
|
|
|
+ if (
|
|
|
+ this.dialogTitle == '编辑保养计划' &&
|
|
|
+ this.planCheckNodes.length == 0
|
|
|
+ ) {
|
|
|
let arr = [];
|
|
|
this.planDeviceList.map((item) => {
|
|
|
this.addForm.planDeviceList.map((iem) => {
|
|
|
@@ -945,6 +949,7 @@
|
|
|
? 2
|
|
|
: 3;
|
|
|
console.log('params', params);
|
|
|
+ params.imageUrl = { ...params.imageUrl };
|
|
|
await saveOrUpdate(params);
|
|
|
const type = this.dialogTitle.includes('新增') ? '新增' : '编辑';
|
|
|
this.handleClose();
|