From 05608162d31b857b32185608a669563d55b9f89f Mon Sep 17 00:00:00 2001
From: 1178634255 <1178634255@qq.com>
Date: Thu, 1 Jun 2023 11:10:58 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/user/authUser.vue | 13 ++++----
src/views/udi/trace/task/index.vue | 53 ++++++++++++++++++++++++++++--
2 files changed, 57 insertions(+), 9 deletions(-)
diff --git a/src/views/system/user/authUser.vue b/src/views/system/user/authUser.vue
index 0078d44..f963cb5 100644
--- a/src/views/system/user/authUser.vue
+++ b/src/views/system/user/authUser.vue
@@ -43,7 +43,8 @@
- {{
+
+ {{
scope.row.userFlag | statusFilterName
}}
@@ -66,7 +67,7 @@
编辑
-
正常
禁用
@@ -210,7 +211,7 @@
-
-
+
+
+
+
+
+
+
- {{ formatTaskType1(scope.row) }}
+
+ {{
+ scope.row.status | statusFilterName
+ }}
+
+
+
+
+
+
@@ -276,7 +291,18 @@
import {isBlank} from "@/utils/strUtil";
import {getTraceTaskList} from "@/api/udi/udiTrace";
-
+const formJson = {
+ id: "",
+ passWord: "",
+ userName: "",
+ checkPassword: "",
+ employeeName: "",
+ taskFlag: 1,
+ comments: '',
+ dept: null,
+ roles: [],
+ depts: [],
+};
export default {
data() {
return {
@@ -294,6 +320,7 @@ export default {
startAduditTime: null,
endAduditTime: null,
},
+ formData: formJson,
total: 0,
codeRelTotal: 0,
loading: true,
@@ -369,6 +396,7 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch;
},
+
formatTaskType(row) {
switch (row.taskType) {
case 1:
@@ -393,6 +421,7 @@ export default {
return '任务状态有误!!';
}
},
+
// //点击一行数据后发送的事件
// handleSelectionChange(val) {
// this.currentRow = val;
@@ -507,6 +536,24 @@ export default {
})
},
},
+ filters: {
+ statusFilterType(status) {
+ const statusMap = {
+ 1: "gray",
+ 2: "success",
+ 3: "danger"
+ };
+ return statusMap[status];
+ },
+ statusFilterName(status) {
+ const statusMap = {
+ 1: "未处理",
+ 2: "正在处理",
+ 3: "已处理"
+ };
+ return statusMap[status];
+ },
+ },
created() {
this.getTaskList()
}