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/localCompany.vue | 63 +++++++++++++++----------------
1 files changed, 31 insertions(+), 32 deletions(-)
diff --git a/src/views/securityUnit/localCompany.vue b/src/views/securityUnit/localCompany.vue
index 211f225..6af4563 100644
--- a/src/views/securityUnit/localCompany.vue
+++ b/src/views/securityUnit/localCompany.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"
@@ -204,36 +220,6 @@
children: "children",
},
},
- // treeOption: {
- // nodeKey: "id",
- // // lazy: true,
- // // treeLoad: function (node, resolve) {
- // // // const parentId = node.level === 0 ? 0 : node.data.id;
- // // getDeptLazyTree().then((res) => {
- // // resolve(
- // // res.data.data.map((item) => {
- // // console.log({
- // // ...item,
- // // leaf: !item.hasChildren,
- // // });
- // // return {
- // // ...item,
- // // leaf: !item.hasChildren,
- // // };
- // // })
- // // );
- // // });
- // // },
- // addBtn: false,
- // menu: false,
- // size: "small",
- // props: {
- // labelText: "标题",
- // label: "title",
- // value: "value",
- // children: "children",
- // },
- // },
obj0: {
title0: "保安单位基本信息",
@@ -283,7 +269,8 @@
searchSize: "mini",
searchMenuSpan: 6,
height: 583,
- menuWidth: 220,
+ menuWidth: 275,
+ border: true,
align: "center",
selection: true,
column: column,
@@ -318,6 +305,13 @@
},
},
methods: {
+ rowClickSelf(val) {
+ // console.log(val.departmentid);
+ this.$router.push({
+ path: "/securityGuardOnce/index",
+ query: { departmentid: val.departmentid },
+ });
+ },
handleImport1() {
this.excelBox1 = true;
},
@@ -710,4 +704,9 @@
.el-collapse {
border-top: 1px solid transparent !important;
}
+.rowClickSelf {
+ &:hover {
+ cursor: pointer;
+ }
+}
</style>
--
Gitblit v1.9.3