瀏覽代碼

预警报警策略维护-删除操作参数修改

zhongxiaoyu 1 年之前
父節點
當前提交
01c24112c8
共有 1 個文件被更改,包括 10 次插入4 次删除
  1. 10 4
      src/views/systemSettings/warningSet/index.vue

+ 10 - 4
src/views/systemSettings/warningSet/index.vue

@@ -282,7 +282,7 @@ const btnClick = (row, index, param) => {
     flag.value = true;
     type.value = "del";
     // tableForm.event = 3;
-    delName.value = index.flightNo;
+    delName.value = index.alarmname;
     tableForm.alarmSceneId = index.alarmSceneId;
     tableForm.IATACode = index.IATACode;
     tableForm.departmentAirport = index.departmentAirport;
@@ -582,9 +582,15 @@ const resetTable = () => {
 //新增-编辑-删除
 const generalDataReception = async (data, event) => {
   try {
-    data = {
-      ...data,
-    };
+    if (event === 3) {
+      data = {
+        alarmSceneId: data.alarmSceneId
+      }
+    } else {
+      data = {
+        ...data,
+      };
+    }
     const { code } = await dataToChange(serviceId.value, data, event);
     if (code == 0) {
       ElMessage.success(`操作成功`);