From d8d591ead3e434d46e9c142853668e3e8c16e864 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 14:54:55 +0800
Subject: [PATCH] 人员样式遮挡修改

---
 src/views/business/inspectionTask/index.vue |   78 ++++++++++++--------------------------
 1 files changed, 25 insertions(+), 53 deletions(-)

diff --git a/src/views/business/inspectionTask/index.vue b/src/views/business/inspectionTask/index.vue
index 515c16e..260ae7b 100644
--- a/src/views/business/inspectionTask/index.vue
+++ b/src/views/business/inspectionTask/index.vue
@@ -394,11 +394,23 @@
           prop: "type",
           dataType: "tag",
           formatData: (params) => {
-            return this.urgencyLevel.find((m) => m.value == params).label;
+            if (params == 0) {
+              return '鏅��'
+            } else if (params == 1) {
+              return '浼樺厛'
+            } else {
+              return '绱ф��'
+            }
           },
           formatType: (params) => {
-            return this.urgencyLevel.find((m) => m.value == params).type;
-          },
+            if (params == 0) {
+              return 'success'
+            } else if (params == 1) {
+              return 'warning'
+            } else {
+              return 'danger'
+            }
+          }
         },
         {
           label: "妫�楠岀被鍨�",
@@ -612,6 +624,7 @@
   },
   mounted() {
     this.getAuthorizedPerson();
+    this.queryParams.userId = this.userId;
     this.currentTime = getYearAndMonthAndDays();
     this.getDicts("urgency_level").then((response) => {
       this.urgencyLevel = this.dictToValue(response.data);
@@ -620,9 +633,17 @@
       this.inspectionTaskState = this.dictToValue(response.data);
     });
     this.refreshTable();
-    this.queryParams.userId = this.userId;
   },
   activated() {
+    this.getAuthorizedPerson();
+    this.queryParams.userId = this.userId;
+    this.currentTime = getYearAndMonthAndDays();
+    this.getDicts("urgency_level").then((response) => {
+      this.urgencyLevel = this.dictToValue(response.data);
+    });
+    this.getDicts("inspection_task_state").then((response) => {
+      this.inspectionTaskState = this.dictToValue(response.data);
+    });
     this.refreshTable();
   },
   methods: {
@@ -697,16 +718,6 @@
       this.queryParams.typeSource = this.tabIndex;
       this.getList();
     },
-    // claimFun(row) {
-    // 	if (row) {
-    // 		this.sampleUserForm = {
-    // 			entrustCode: row.entrustCode,
-    // 			insSampleId: row.id,
-    //       sonLaboratory: row.sonLaboratory,
-    // 		}
-    // 		this.claimVisible = true
-    // 	}
-    // },
     // 鏌ョ湅浜т笟閾句俊鎭�
     openInfoDialog(row) {
       this.showInfoDialog = true;
@@ -738,43 +749,11 @@
       }
       return "";
     },
-    onReset() {
-      this.searchForm = {
-        sampleName: null,
-        state: null,
-      };
-      this.queryParams.insState = null;
-      this.queryParams.sampleName = null;
-      this.refreshTable();
-    },
-    onSubmit() {
-      this.queryParams.insState = this.searchForm.state;
-      this.queryParams.sampleName = this.searchForm.sampleName;
-      this.$nextTick(() => {
-        this.refreshTable();
-      });
-    },
     handleTab(m, i) {
       this.tabIndex = i;
       this.queryParams.sonLaboratory = "";
       this.refreshTable();
     },
-    // getLaboratoryDicts() {
-    // 	this.$axios.post(this.$api.enums.selectEnumByCategory, {
-    // 		category: "瀛愬疄楠屽"
-    // 	}).then(res => {
-    // 		this.tabList = res.data.map(ele => {
-    // 			return {
-    // 				label: ele.label,
-    // 				value: ele.value
-    // 			}
-    // 		})
-    // 		if(this.tabList.length>0){
-    // 			this.componentData.entity.sonLaboratory = this.tabList[0].value
-    // 		}
-    // 		this.refreshTable()
-    // 	})
-    // },
     selectAllByOne(row) {
       this.isCopper = row.isCopper;
       this.customsInspection = row;
@@ -815,9 +794,6 @@
           break;
       }
 
-    },
-    playOrder(num) {
-      this.activeFace = num;
     },
     goback() {
       this.state = 0;
@@ -927,10 +903,6 @@
           console.error(error);
           this.loading = false;
         });
-    },
-    handleReview(row) {
-      this.state = 2;
-      this.orderId = row.id;
     },
     getAuthorizedPerson() {
       selectUserCondition({ type: 1 }).then((res) => {

--
Gitblit v1.9.3