From f036bc993b029d50cfb12c6869b1d9e085189570 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Tue, 21 Sep 2021 19:35:54 +0800
Subject: [PATCH] 添加验收版本的更改内容
---
src/views/statisticalQueryManagement/securityGuardStatistics.vue | 148 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 96 insertions(+), 52 deletions(-)
diff --git a/src/views/statisticalQueryManagement/securityGuardStatistics.vue b/src/views/statisticalQueryManagement/securityGuardStatistics.vue
index c74b169..ec0cf3b 100644
--- a/src/views/statisticalQueryManagement/securityGuardStatistics.vue
+++ b/src/views/statisticalQueryManagement/securityGuardStatistics.vue
@@ -1,23 +1,44 @@
<template>
- <basic-container>
- <avue-crud
- :option="tableOption"
- :table-loading="loading"
- :data="tableData"
- :page.sync="page"
- :permission="permissionList"
- ref="crud"
- @search-change="searchChange"
- @search-reset="searchReset"
- @current-change="currentChange"
- @size-change="sizeChange"
- @refresh-change="refreshChange"
- @on-load="onLoad"
- @row-click="handleRowClick"
- class="rowClick"
+ <div>
+ <basic-container>
+ <avue-crud
+ :option="tableOption"
+ :table-loading="loading"
+ :data="tableData"
+ :page.sync="page"
+ :permission="permissionList"
+ ref="crud"
+ @search-change="searchChange"
+ @search-reset="searchReset"
+ @current-change="currentChange"
+ @size-change="sizeChange"
+ @refresh-change="refreshChange"
+ @on-load="onLoad"
+ @cell-click="handleRowClick"
+ class="rowClick"
+ >
+ </avue-crud>
+ </basic-container>
+ <el-dialog
+ class="tongji-class"
+ :title="dialogTitle"
+ append-to-body
+ :visible.sync="dialogShow"
+ v-if="dialogShow"
>
- </avue-crud>
- </basic-container>
+ <companyDetails :fwdeptId="fwdeptId"></companyDetails>
+ <!-- <avue-crud
+ :option="option2"
+ :data="data2"
+ :page.sync="page2"
+ @row-save="rowSave2"
+ @row-update="rowUpdate2"
+ @row-del="rowDel2"
+ :table-loading="loading2"
+ >
+ </avue-crud> -->
+ </el-dialog>
+ </div>
</template>
<script>
import FileSaver from "file-saver";
@@ -25,17 +46,21 @@
import { mapGetters } from "vuex";
import {
selectLi,
- dictionaryList,
+ dictionaryList
} from "../../api/statisticalQueryManagement/statisticalQueryManagement";
import { lazyTreeJu, lazyTrees } from "../../api/index/index";
+import companyDetails from "./companyDetails";
export default {
name: "业务情况统计",
+ components: {
+ companyDetails
+ },
data() {
return {
page: {
pageSize: 10,
currentPage: 1,
- total: 0,
+ total: 0
},
query: {},
value1: "",
@@ -103,8 +128,8 @@
prop: "deptname",
search: true,
searchSpan: 4,
- width: 300,
- display: false,
+ width: 280,
+ display: false
},
{
label: "单位类型",
@@ -115,9 +140,9 @@
type: "select",
props: {
label: "dictValue",
- value: "dictKey",
+ value: "dictKey"
},
- dicData: [],
+ dicData: []
},
{
label: "所属辖区",
@@ -126,7 +151,7 @@
type: "tree",
props: {
label: "title",
- value: "value",
+ value: "value"
},
// dicUrl: "/api/information/lazyTreeJu",
// dicMethod:'post',
@@ -157,39 +182,50 @@
{
required: true,
message: "请选择所属辖区",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
{
label: "保安员总数",
prop: "num",
- display: false,
+ display: false
},
{
label: "持证上岗人数",
prop: "cznum",
- display: false,
+ display: false
},
{
label: "未派遣人数",
prop: "wpaiqnum",
- display: false,
+ display: false
},
{
label: "派遣人数",
prop: "paiqnum",
- display: false,
+ display: false
+ },
+ {
+ label: "已采集照片人数",
+ prop: "ycaijzpnum",
+ display: false
},
{
label: "未采集照片人数",
prop: "wcaijnum",
- display: false,
+ display: false
+ },
+ {
+ label: "已采集指纹人数",
+ prop: "ycaijzwnum",
+ display: false
},
{
label: "资格审查异常人数",
+ width: 150,
prop: "yicnum",
- display: false,
+ display: false
},
// {
// label: "过考保安人数",
@@ -199,12 +235,14 @@
{
label: "缴纳社保人数",
prop: "sbnum",
- display: false,
- },
- ],
+ display: false
+ }
+ ]
},
companyName: "",
loading: true,
+ dialogShow: false,
+ dialogTitle: ""
};
},
computed: {
@@ -214,15 +252,15 @@
addBtn: this.vaildData(this.permission.post_add, false),
viewBtn: this.vaildData(this.permission.post_view, false),
delBtn: this.vaildData(this.permission.post_delete, false),
- editBtn: this.vaildData(this.permission.post_edit, false),
+ editBtn: this.vaildData(this.permission.post_edit, false)
};
- },
+ }
},
methods: {
getSubOfficeData() {
- lazyTrees().then((res) => {
+ lazyTrees().then(res => {
if (res.data.code === 200) {
- this.tableOption.column.forEach((item) => {
+ this.tableOption.column.forEach(item => {
if (item.label == "所属辖区") {
// let data = res.data.data;
item.dicData = res.data.data;
@@ -244,9 +282,9 @@
// });
// },
getDictionaryList() {
- dictionaryList().then((res) => {
+ dictionaryList().then(res => {
if (res.data.code === 200) {
- this.tableOption.column.forEach((item) => {
+ this.tableOption.column.forEach(item => {
if (item.label == "单位类型") {
item.dicData = res.data.data;
}
@@ -284,28 +322,34 @@
param["stats"] = params["stats"] || "";
param["current"] = page.currentPage;
param["size"] = page.pageSize;
- selectLi(param).then((res) => {
+ selectLi(param).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.tableData = data.records;
this.loading = false;
});
},
- handleRowClick(row, event, column) {
- this.$router.push({
- path:
- "/statisticalQueryManagement/companyDetails?deptid=" + row.dept_id,
- });
- },
+ handleRowClick(row, column, cell, event) {
+ if (column.label == "保安员总数") {
+ this.dialogTitle = "保安员明细";
+ this.fwdeptId = row.dept_id;
+ this.dialogShow = true;
+ } else {
+ this.dialogShow = false;
+ }
+ // this.$router.push({
+ // path: "/statisticalQueryManagement/companyDetails?deptid=" + row.dept_id
+ // });
+ }
},
mounted() {
this.getSubOfficeData();
this.getDictionaryList();
- },
+ }
};
</script>
<style lang="scss" scoped>
-/deep/ .rowClick .el-table__row:hover td {
+/deep/ .rowClick .el-table__row:hover td:nth-child(6) {
cursor: pointer;
}
</style>
--
Gitblit v1.9.3