zhaojiale
2022-08-06 b5207f617870bb7e6a513abd430e3f68c9ed0ea1
src/views/contingencyManagement/contingency/index.vue
@@ -142,7 +142,7 @@
import OpenAdd from '../../contingencyManagement/contingency/component/openAdd.vue'
import UpData from '../../contingencyManagement/contingency/component/upData.vue';
import {contingencyApi} from "/@/api/contingency";
import {contingencyApi} from "../../../api/contingency";
export default defineComponent({
  name: 'systemUser',
@@ -202,8 +202,7 @@
      for (let i = 0; i < valId.length; i++) {
        arr.push(valId[i].id);
      }
      deleteAll.value = arr.toString();
      console.log(deleteAll.value);
      deleteAll.value = arr;
      if (val.length == 1) {
        warning.value = false;
        danger.value = false;
@@ -224,7 +223,7 @@
    // 打开新增应急队伍弹窗
    const addRef = ref();
    const onOpenAdd = () => {
      addRef.value.openDialog('新建应急队伍管理',false);
      addRef.value.openDialog('新建应急队伍管理');
    };
    // 新增后刷新
    const onMyAdd = (e: boolean) => {
@@ -250,7 +249,7 @@
        type: 'warning',
      }).then(() => {
        contingencyApi()
          .deleteEmergencyTeam(data)
          .deleteEmergencyTeam([data])
          .then((res) => {
            if (res.data.code == 200) {
              ElMessage({