| | |
| | | alarmInfo: { required: true, message: "请输入报警信息", trigger: "change"}, |
| | | }, |
| | | equipmentName:[], |
| | | unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}], |
| | | unitIdOptions:[{label:"未处理",value:0},{label:"已处理",value:1}], |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.title = "新增"; |
| | | this.form = { |
| | | equipmentId: "", |
| | | status:'', |
| | | status:0, |
| | | remark:"", |
| | | alarmTime:"", |
| | | alarmInfo:"" |
| | | }; |
| | | } else { |
| | | this.title = "编辑"; |
| | | this.form = value; |
| | | this.form=JSON.parse(JSON.stringify(value)); |
| | | } |
| | | }, |
| | | AddelementManagement() { |
| | |
| | | }; |
| | | } else { |
| | | this.title = "编辑"; |
| | | this.form = value; |
| | | console.log(123,this.form) |
| | | console.log(222,this.equipmentName) |
| | | this.form=JSON.parse(JSON.stringify(value)); |
| | | } |
| | | }, |
| | | AddelementManagement() { |
| | |
| | | }; |
| | | } else { |
| | | this.title = "编辑"; |
| | | this.form = value; |
| | | this.form=JSON.parse(JSON.stringify(value)); |
| | | } |
| | | }, |
| | | AddelementManagement() { |
| | |
| | | this.index = this.form.deductionList.findIndex( |
| | | (item) => item.name == val.name |
| | | ); |
| | | this.formInline = val; |
| | | this.formInline=JSON.parse(JSON.stringify(val)); |
| | | } |
| | | }, |
| | | listAdd() { |
| | |
| | | }; |
| | | } else { |
| | | this.title = "编辑"; |
| | | this.form = value; |
| | | this.form=JSON.parse(JSON.stringify(value)); |
| | | } |
| | | }, |
| | | AddelementManagement() { |
| | |
| | | }, |
| | | handleClick(data) { |
| | | this.dialogVisible = true; |
| | | this.form = data; |
| | | // this.form = data; |
| | | this.form=JSON.parse(JSON.stringify(data)); |
| | | }, |
| | | lost() { |
| | | this.dialogVisible = false; |
| | |
| | | this.index = this.form.deductionList.findIndex( |
| | | (item) => item.name == val.name |
| | | ); |
| | | this.formInline = val; |
| | | // this.formInline = val; |
| | | this.formInline=JSON.parse(JSON.stringify(val)); |
| | | } |
| | | }, |
| | | listAdd() { |