zhangwf преди 5 години
родител
ревизия
3474fdbfaa
променени са 2 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 1 1
      src/views/cnctestlists/cncTestLists.html
  2. 4 1
      src/views/cnctestlists/cncTestLists.vue

+ 1 - 1
src/views/cnctestlists/cncTestLists.html

@@ -1,6 +1,6 @@
 <div class="page">
     <HeaderMain></HeaderMain>
-    <main class="main-content">
+    <main class="main-content" v-loading.fullscreen.lock="fullscreenLoading">
         <div class="title-content">
             <div class="create-test-box">
                 <div class="create-test">创建测试</div>

+ 4 - 1
src/views/cnctestlists/cncTestLists.vue

@@ -18,16 +18,17 @@
                 loading: true,
                 currentProject: "所属项目",
                 currentProjectHouseId: "",
+                fullscreenLoading:false,
             }
         },
         created() {
             this.houseList = [];
+            this.fullscreenLoading = true;
             api.houseList().then((res) => {
                 if (res.success) {
                     this.houseList = res.list;
                 }
             });
-
             this.getCncTestcaseList();
         },
         filters: {
@@ -74,6 +75,7 @@
                     if (res.success) {
                         this.pageModel = res.pageModel;
                     }
+                    this.fullscreenLoading = false;
                 })
             },
             cncTestDetail(testcaseId) {
@@ -106,6 +108,7 @@
                     if (element.houseId === command) {
                         this.currentProject = element.houseName;
                         this.currentProjectHouseId = element.houseId;
+                        this.fullscreenLoading = true;
                         this.getCncTestcaseList();
                         return true
                     } else {