From 055aaa6acf8f109ccab63205dce7eff00ccb6120 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 22 Aug 2021 09:25:20 +0800
Subject: [PATCH] 派遣服务管理 添加字段 派遣记录操作按钮 保安员页面 保安公司可点击跳转 跨区改分公司,
---
src/views/securityGuard/securityGuard.vue | 38 +++++++++++++++++++++++++++-----------
1 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index 1a13380..8b60307 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -26,7 +26,6 @@
@row-del="rowDel"
@row-update="rowUpdate"
@row-save="rowSave"
- @row-click="rowClick"
:before-open="beforeOpen"
:page.sync="page"
@search-change="searchChange"
@@ -109,14 +108,13 @@
</template>
<template slot-scope="{ type, size, row }" slot="menu">
- <!-- <el-button
- style="display:none"
- icon="el-icon-edit"
- :size="size"
- :type="type"
- @click.stop="addOrUpdateHandle(row.id)"
- >修改
- </el-button> -->
+ <el-button
+ icon="el-icon-s-custom"
+ :size="size"
+ :type="type"
+ @click.stop="rowClick(row)"
+ >查看
+ </el-button>
<el-button
icon="el-icon-edit"
:size="size"
@@ -131,7 +129,11 @@
<el-tag v-if="row.sex == 1">男</el-tag>
<el-tag v-if="row.sex == 2">女</el-tag>
</template>
-
+ <template slot-scope="{ row }" slot="deptId">
+ <el-tag class="rowClickSelf" @click="rowClickSelf(row.deptId)">{{
+ row.$deptId
+ }}</el-tag>
+ </template>
<template slot-scope="{ row }" slot="tenantName">
<el-tag>{{ row.tenantName }}</el-tag>
</template>
@@ -387,6 +389,7 @@
align: "center",
index: true,
delBtnText: "注销",
+ menuWidth: 276,
selection: true,
viewBtn: true,
defaultExpandAll: true,
@@ -959,9 +962,17 @@
//行点击事件
rowClick(row) {
+ // console.log(row, 111);
this.$router.push({
path: "/securityGuardDetail",
query: { row: JSON.stringify(row) },
+ });
+ },
+ rowClickSelf(row) {
+ console.log(row, "baoan");
+ this.$router.push({
+ path: "/securityUnitChild",
+ query: { fromSecunityGuardId: row },
});
},
nodeClick(data) {
@@ -1426,7 +1437,7 @@
};
</script>
-<style>
+<style lang="scss" scoped>
.box {
height: 800px;
}
@@ -1438,4 +1449,9 @@
.box .el-scrollbar__wrap {
overflow: scroll;
}
+.rowClickSelf {
+ &:hover {
+ cursor: pointer;
+ }
+}
</style>
\ No newline at end of file
--
Gitblit v1.9.3