Quellcode durchsuchen

配置划分接口调用

duy vor 1 Jahr
Ursprung
Commit
3d0900c438

+ 3 - 1
src/views/tentative/components/configDivision.vue

@@ -8,6 +8,7 @@
       modal-append-to-body
       append-to-body
       @close="testGLExcelMD"
+    
     >
    <div class="mg-b-10">
     <el-alert
@@ -127,6 +128,7 @@ import {matching} from "@/api/tentative/testcollect";
                 this.testexceldata = [];
 
                 this.testGLExcel = false;
+                this.$emit('changemodal');
             },
             async tabLazytreeAll(val,pid) {
                 //清表树信息
@@ -193,7 +195,7 @@ import {matching} from "@/api/tentative/testcollect";
                     type: "success",
                     message: "操作成功!"
                   });
-                  this.testGLExcel=false
+                  this.testGLExcelMD()
                 }, error => {
                
                   console.log(error);

+ 4 - 1
src/views/tentative/testclassifyset.vue

@@ -93,7 +93,7 @@
       </span>
     </el-dialog>
     <!-- 配置划分数据 -->
-    <configDivision :testGLExcel="testGLExcel" :setId="setId"></configDivision>
+    <configDivision :testGLExcel="testGLExcel" :setId="setId" @changemodal="changemodal"></configDivision>
     </basic-container>
   </template>
   
@@ -411,6 +411,9 @@ import configDivision from "./components/configDivision.vue";
       this.testGLExcel=true
       this.setId=row.id
     },
+    changemodal(){
+      this.testGLExcel=false
+    },
     //数据映射配置
     associatedClick() {
       this.$router.push({