Kxc0822a
2022-03-31 2ea3b1a95efc140e43734437cc16fc7f6240b9bd
src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
@@ -74,6 +74,7 @@
                :page-size="pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="recordTotal"
                style="margin-top: 20px;"
            >
            </el-pagination>
        </div>
@@ -113,6 +114,7 @@
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                    @change="statusChange"
                                >
                                </el-option>
                            </el-select>
@@ -197,7 +199,7 @@
                    alarmInfo: { required: true, message: "请输入报警信息", trigger: "change"},
                },
                equipmentName:[],
                unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}]
                unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}],
            };
        },
        created() {
@@ -210,6 +212,9 @@
                    console.log(res)
                    this.equipmentName=res.data.result
                })
            },
            statusChange(e){
                this.$forceUpdate()
            },
            async elementManagementL() {
                var res = await majorEquipmentList(this.listQuery);
@@ -255,6 +260,7 @@
                                        title: "成功",
                                    });
                                } else {
                                    this.elementManagementL();
                                    this.$message({
                                        type: "warning",
                                        message: res.data.message,
@@ -272,8 +278,9 @@
                                        message: "编辑成功",
                                        title: "成功",
                                    });
                                } else {
                                    his.$message({
                                }else {
                                    this.elementManagementL();
                                    this.$message({
                                        type: "warning",
                                        message: res.data.message,
                                    });