From 68f1c1dc749bf424059fa70e09b72fc30bec2ea1 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 17 Sep 2021 11:32:37 +0800
Subject: [PATCH] +
---
src/views/securityUnit/selfRecruitedSecurityGuard.vue | 48 +++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/src/views/securityUnit/selfRecruitedSecurityGuard.vue b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
index a288468..95b401d 100644
--- a/src/views/securityUnit/selfRecruitedSecurityGuard.vue
+++ b/src/views/securityUnit/selfRecruitedSecurityGuard.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"
@@ -283,10 +299,29 @@
searchSize: "mini",
searchMenuSpan: 6,
height: 583,
- menuWidth: 220,
+ menuWidth: 275,
align: "center",
+ border: true,
+
selection: true,
- column: column,
+ column: [
+ ...column,
+ {
+ label: "服务区域",
+ labelWidth: 160,
+ prop: "fregion",
+ width: 69,
+ },
+ {
+ label: "服务时间",
+ labelWidth: 160,
+ prop: "ftime",
+ width: 69,
+ type: "date",
+ format: "yyyy-MM-dd",
+ valueFormat: "timestamp",
+ },
+ ],
},
};
},
@@ -318,6 +353,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