Просмотр исходного кода

Merge branch 'master' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-qms

yusheng 2 месяцев назад
Родитель
Сommit
f7c92478f0
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      src/views/inspectionWork/components/inspectionWorkList.vue

+ 16 - 0
src/views/inspectionWork/components/inspectionWorkList.vue

@@ -664,6 +664,22 @@
       this.requestDict('取样类型');
       this.getCode();
       this.getReportTemplateList();
+
+    },
+    mounted() {
+      const isWt = this.$route.query?.isWt;
+      
+      if (isWt) {
+        const id = JSON.parse(this.$route.query?.businessId);
+        console.log(id);
+        getList({qualityWorkerId: id}).then(res => {
+          const rowData = res.list[0];
+          this.$nextTick(() => {
+            this.openEdit('edit', rowData)
+          })
+        
+        })
+      }
     },
     computed: {
       seekList() {