Jelajahi Sumber

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-mes into dengfei

695593266@qq.com 6 bulan lalu
induk
melakukan
2f13e40916

+ 1 - 1
src/views/produce/components/footBtn.vue

@@ -39,7 +39,7 @@
             name: '首件两检',
             name: '首件两检',
             type: 'qualityInspection',
             type: 'qualityInspection',
             bjColor: '#920077',
             bjColor: '#920077',
-            isShow: ''
+            isShow: 'mes:firstarticledualinspection'
           },
           },
           {
           {
             name: '产前准备',
             name: '产前准备',

+ 4 - 3
src/views/produce/components/qualityInspection/index.vue

@@ -9,7 +9,7 @@
       <!-- <el-button type="primary" plain round @click="openMaintenancePlan">
       <!-- <el-button type="primary" plain round @click="openMaintenancePlan">
         设备保养计划
         设备保养计划
       </el-button> -->
       </el-button> -->
-      <div v-if="loading" class="step-list" v-loading="loading">
+      <div class="step-list" v-loading="loading">
         <ele-pro-table
         <ele-pro-table
           ref="table"
           ref="table"
           row-key="id"
           row-key="id"
@@ -31,7 +31,6 @@
           </template>
           </template>
         </ele-pro-table>
         </ele-pro-table>
       </div>
       </div>
-      <el-empty v-else></el-empty>
     </div>
     </div>
     <template #footer>
     <template #footer>
       <el-button @click="handleUpdate" type="primary" :loading="butLoad"
       <el-button @click="handleUpdate" type="primary" :loading="butLoad"
@@ -59,7 +58,7 @@
     data() {
     data() {
       return {
       return {
         dialogVisible: false,
         dialogVisible: false,
-        loading: true,
+        loading: false,
         produceTaskInfo: null,
         produceTaskInfo: null,
         workOrder: null,
         workOrder: null,
         butLoad: false,
         butLoad: false,
@@ -154,8 +153,10 @@
       },
       },
       // 获取数据
       // 获取数据
       async getData() {
       async getData() {
+        this.loading = true;
         const data = await pageFirstArticleDualInspectionRecord({});
         const data = await pageFirstArticleDualInspectionRecord({});
         this.list = data.list || [];
         this.list = data.list || [];
+        this.loading = false;
       },
       },
       handleClose() {
       handleClose() {
         this.dialogVisible = false;
         this.dialogVisible = false;