Selaa lähdekoodia

快捷批量审核

ymz 4 kuukautta sitten
vanhempi
commit
1eb7dc83ef

+ 2 - 2
.env.development

@@ -1,8 +1,8 @@
 NODE_ENV = 'development'
 VUE_APP_TYPE= 'dev'
-# VUE_APP_URL = 'http://10.144.62.235:9999'
+VUE_APP_URL = 'http://10.144.62.235:9999'
 # VUE_APP_URL = 'https://mic.freerr.cn'
 # VUE_APP_URL = 'https://mic.cnbg.com.cn'
 # VUE_APP_URL = 'https://cnbg.yaoyi.net'
 # VUE_APP_URL = 'http://192.168.110.25:9999'
-VUE_APP_URL = 'https://mic-t.cnbg.com.cn'
+# VUE_APP_URL = 'https://mic-t.cnbg.com.cn'

BIN
dist.zip


+ 25 - 6
src/views/serviceManagement/quickReview/index.vue

@@ -589,7 +589,7 @@ export default {
         this.lockedDialog = false;
         this.lockedInfo = [];
         this.reviewDialog = true;
-        await this.getToken(this.checkIds);
+        // await this.getToken(this.checkIds);
       } else {
         this.$message.info('当前无可审核数据!');
         this.list.forEach((item) => {
@@ -598,7 +598,6 @@ export default {
             this.checkAllTaskScore;
             item.reviewInfo.checked = false;
             item.reviewInfo.show = false;
-            this.checkIds = [];
           }
         });
         this.lockedDialogClose();
@@ -614,7 +613,10 @@ export default {
         };
         await pretreatmentClearApi(obj);
       }
-
+      this.list.forEach((item) => {
+        item.reviewInfo.checked = false;
+      });
+      this.checkIds = [];
       this.lockedDialog = false;
       this.lockedInfo = [];
     },
@@ -626,13 +628,30 @@ export default {
       this.reviewToken = tokenRes.data.data.token;
       this.expireTime = tokenRes.data.data.expireTime;
     },
-    handleClose() {
+
+    closeDialog() {
       this.reviewDialog = false;
       this.taskForm = {
         checkResult: '',
         checkMessage: ''
       };
     },
+    async handleClose() {
+      const taskIds = this.pretreatmentInfo.available.map((item) => item.taskId);
+      if (this.pretreatmentInfo?.token?.token) {
+        const obj = {
+          taskIds: taskIds,
+          token: this.pretreatmentInfo.token.token,
+          nodeId: this.checkNodeId
+        };
+        await pretreatmentClearApi(obj);
+      }
+      this.list.forEach((item) => {
+        item.reviewInfo.checked = false;
+      });
+      this.checkIds = [];
+      this.closeDialog();
+    },
     clickBtn() {
       this.list = [];
       this.page.currentPage = 1;
@@ -828,7 +847,7 @@ export default {
       this.$refs.taskForm.validate(async (valid) => {
         if (valid) {
           let obj = {
-            token: this.reviewToken,
+            token: this.pretreatmentInfo.token.token,
             taskIds: taskIds,
             checkResult: this.taskForm.checkResult,
             checkMessage: this.taskForm.checkMessage,
@@ -840,7 +859,7 @@ export default {
               this.$message.success('审核成功!');
               this.checkIds = [];
 
-              this.handleClose();
+              this.closeDialog();
               this.list.forEach((item) => {
                 if (item.reviewInfo.checked) {
                   this.checkAllLength = 0;

+ 6 - 0
src/views/serviceManagement/servicesToBeReviewed/components/TaskDetail.vue

@@ -49,6 +49,8 @@
               <div class="img-box" v-if="item.imgList">
                 <div v-for="(iItem, index) in item.imgList" :key="index" class="img-box-content">
                   <span class="type">{{ iItem.type }}</span>
+
+                  <img :src="iItem.url" alt="" style="height: 50px; width: 50px" />
                   <el-image class="img-item" lazy :src="iItem.url" :preview-src-list="getPreviewList(item.previewList, index)" />
                 </div>
               </div>
@@ -143,6 +145,7 @@ export default {
       // 如果拆分后为空,也返回空数组
       if (!urlArr.length) return [[], []];
 
+      console.log('urlArr', urlArr);
       // 使用 reduce 一次性构建 imgList 和 previewList
       const [imgList, previewList] = urlArr.reduce(
         (acc, curUrl) => {
@@ -167,6 +170,8 @@ export default {
         [[], []]
       );
 
+      console.log('imgList', [imgList, previewList]);
+
       return [imgList, previewList];
     },
 
@@ -196,6 +201,7 @@ export default {
             let imgArr = this.getImgList(this.wmTaskContent[item.taskFiledKey], item);
             item.imgList = imgArr[0];
             item.previewList = imgArr[1];
+            this.$forceUpdate();
 
             console.log('item', item);
           }