From bbb7ed59311d04ce1b07c25886cc12a6111bd140 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 28 Dec 2023 11:53:06 +0800
Subject: [PATCH] 装备添加字段,离职可上传图片

---
 src/views/trainExam/index.vue |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/views/trainExam/index.vue b/src/views/trainExam/index.vue
index 664dd69..2a03331 100644
--- a/src/views/trainExam/index.vue
+++ b/src/views/trainExam/index.vue
@@ -499,6 +499,13 @@
             ]
           },
           {
+            label: "审核人",
+            display: false,
+            prop: "auditUserName",
+            width: 90,
+            overHidden: true
+          },
+          {
             label: "审核时间",
             prop: "auditTime",
             type: "datetime",
@@ -621,6 +628,16 @@
   },
   mounted() {
     this.$store.commit("setWindowSizeHeightAdd");
+
+    const auditUserName = this.findObject(this.questionBankOption.column, "auditUserName");
+    const auditTime = this.findObject(this.questionBankOption.column, "auditTime");
+
+    //非管理员隐藏审核人
+    // if (this.userInfo.role_name.indexOf("admin") == -1){
+    if (!this.permission.trainExam_check){
+      auditUserName.hide = true
+      auditTime.hide = true
+    }
   },
   computed: {
     ids() {
@@ -694,6 +711,7 @@
       //   auditDetail:this.Audit.auditDetail,
       // }
       // console.log(data,654321);
+      row.auditUser = this.userInfo.user_id
       updateAudit(row).then(
         () => {
           this.dialogFormVisible = false;

--
Gitblit v1.9.3