From e4100ecc3a88273dcdbc2c1452d4e9f00736f3db Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 28 Aug 2021 10:17:44 +0800
Subject: [PATCH] 派遣单位管理修改,考试成绩查询样式微调

---
 src/views/securityUnit/securityTraining.vue |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/src/views/securityUnit/securityTraining.vue b/src/views/securityUnit/securityTraining.vue
index 0b798a7..12384fb 100644
--- a/src/views/securityUnit/securityTraining.vue
+++ b/src/views/securityUnit/securityTraining.vue
@@ -15,9 +15,25 @@
         @row-del="rowDel"
         @selection-change="selectionChange"
         @refresh-change="refreshChange"
-        @row-click="rowClick"
       >
+        <!-- @row-click="rowClick" -->
+        <template slot-scope="{ row }" slot="znum">
+          <el-tag
+            class="rowClickSelf"
+            @click="rowClickSelf(row)"
+            title="点击查看保安人员情况"
+            >{{ row.znum }}</el-tag
+          >
+        </template>
+
         <template slot-scope="{ type, size, row }" slot="menu">
+          <el-button
+            icon="el-icon-s-custom"
+            :size="size"
+            :type="type"
+            @click.stop="rowClick(row)"
+            >查看
+          </el-button>
           <el-button
             :size="size"
             :type="type"
@@ -281,9 +297,11 @@
         // card: true,
         tip: false,
         searchSize: "mini",
+        border: true,
+
         searchMenuSpan: 6,
         height: 583,
-        menuWidth: 220,
+        menuWidth: 275,
         align: "center",
         selection: true,
         column: column,
@@ -318,6 +336,13 @@
     },
   },
   methods: {
+    rowClickSelf(val) {
+      // console.log(val.departmentid);
+      this.$router.push({
+        path: "/securityGuardOnce/index",
+        query: { departmentid: val.departmentid },
+      });
+    },
     handleImport1() {
       this.excelBox1 = true;
     },

--
Gitblit v1.9.3