From bc4f603fe677aecb273e3a192ff1be69202bbd78 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 09 Nov 2021 20:49:00 +0800
Subject: [PATCH] 部分改动
---
src/views/statisticalQueryManagement/securityGuardDetail.vue | 91 +++++++++++++++++++++++----------------------
1 files changed, 47 insertions(+), 44 deletions(-)
diff --git a/src/views/statisticalQueryManagement/securityGuardDetail.vue b/src/views/statisticalQueryManagement/securityGuardDetail.vue
index 4efc3de..eab1b5e 100644
--- a/src/views/statisticalQueryManagement/securityGuardDetail.vue
+++ b/src/views/statisticalQueryManagement/securityGuardDetail.vue
@@ -15,15 +15,17 @@
@size-change="sizeChange"
@refresh-change="refreshChange"
@row-click="handleRowClick"
+ @on-load="onLoad"
>
</avue-crud>
</basic-container>
</template>
<script>
import { mapGetters } from "vuex";
-import { getListSecurity } from "@/api/system/user";
+import { pageSecurity } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
export default {
name: "保安员明细",
+ props: ["fwdeptId", "paramCz"],
data() {
return {
page: {
@@ -95,8 +97,7 @@
prop: "realName",
search: true,
searchSpan: 4,
- display: false,
- width: 78
+ display: false
},
{
label: "性别",
@@ -116,15 +117,14 @@
}
],
slot: true,
- display: false,
- width: 48
+ display: false
},
{
label: "保安公司",
prop: "deptName",
- // width: 120,
- search: true,
- searchSpan: 4,
+ width: 300,
+ // search: true,
+ // searchSpan: 4,
overHidden: true,
slot: true,
display: false
@@ -134,7 +134,8 @@
prop: "securitynumber",
display: false,
searchSpan: 5,
- searchLabelWidth: 110
+ searchLabelWidth: 110,
+ width: 180
// search: true,
},
{
@@ -142,37 +143,37 @@
prop: "cardid",
slot: true,
display: false,
- width: 145
+ width: 180
},
{
label: "联系方式",
prop: "phone",
slot: true,
display: false,
- width: 100
+ width: 180
},
- {
- label: "联系地址",
- prop: "address",
- slot: true,
- display: false,
- hide: true
- },
+ // {
+ // label: "联系地址",
+ // prop: "address",
+ // slot: true,
+ // display: false,
+ // hide: true
+ // },
{
label: "入职时间",
prop: "rtime",
slot: true,
display: false,
- width: 82
+ width: 180
},
- {
- label: "所属角色",
- prop: "roleName",
- slot: true,
- display: false,
- width: 78,
- hide: true
- },
+ // {
+ // label: "所属角色",
+ // prop: "roleName",
+ // slot: true,
+ // display: false,
+ // width: 78,
+ // hide: true
+ // },
// {
// label: "所属辖区",
@@ -204,7 +205,7 @@
dicData: [
{
label: "否",
- value: 0
+ value: 2
},
{
label: "是",
@@ -212,8 +213,7 @@
}
],
slot: true,
- display: false,
- width: 70
+ display: false
},
{
label: "是否持证",
@@ -236,8 +236,7 @@
}
],
slot: true,
- display: false,
- width: 70
+ display: false
}
]
},
@@ -283,13 +282,18 @@
},
onLoad(page, params = {}) {
this.loading = true;
- params["deptName"] = params["enterpriseName"];
- params["jurisdiction"] = this.jurisdiction;
- getListSecurity(
- page.currentPage,
- page.pageSize,
- Object.assign(params, this.query)
- ).then(res => {
+ let param = {};
+ param["realName"] = params["realName"] || "";
+ param["status"] = params["status"] || "";
+ param["deptId"] = this.fwdeptId;
+ if (this.paramCz) {
+ param["hold"] = "0";
+ } else {
+ param["hold"] = params["hold"] || "";
+ }
+ param["current"] = page.currentPage;
+ param["size"] = page.pageSize;
+ pageSecurity(param).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
@@ -304,15 +308,14 @@
let mm = urlArr[i].split("=");
object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
}
- let enterpriseName = object["enterpriseName"] || "";
- let obj = { enterpriseName: enterpriseName };
- this.onLoad(this.page, obj);
+ this.deptid = object["departmentid"] || "";
+ this.query = { deptid: this.deptid };
+ this.onLoad(this.page, this.query);
// this.onLoad(this.page, this.query);
}
},
mounted() {
- this.getLocationParams();
+ // this.getLocationParams();
}
};
</script>
-<style lang="scss" scoped></style>
--
Gitblit v1.9.3