From 4610bf5c53ba7c5af21c8f6ff1e575fcf9acf1f5 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Tue, 08 Mar 2022 20:11:18 +0800
Subject: [PATCH] +对接人员查询接口
---
pages/grabOrders/personnelCount/personnelCount.vue | 286 +++++++++------------------------------------------------
store/state.js | 1
store/actions.js | 1
3 files changed, 47 insertions(+), 241 deletions(-)
diff --git a/pages/grabOrders/personnelCount/personnelCount.vue b/pages/grabOrders/personnelCount/personnelCount.vue
index 931bc54..88364a0 100644
--- a/pages/grabOrders/personnelCount/personnelCount.vue
+++ b/pages/grabOrders/personnelCount/personnelCount.vue
@@ -79,7 +79,7 @@
<!-- {{item.roleName}}:{{item.name}}
{{item.phone}}:{{item.sexName}} -->
<!-- <u-line color="#103289" /> -->
- <u-card :title="item.name">
+ <u-card :title="item.realName">
<view class="" slot="body">
<view>
<view style="margin-bottom: 10px;" class="u-body-item-title u-line-1">
@@ -108,46 +108,53 @@
heightBottom: null,
list: [{
name: '治保会队伍',
- num: 32,
+ num: 0,
active: true,
imgSrc: '/static/personnelCountImg/wyh.png',
imgSrc1: '/static/personnelCountImg/wyh1.png',
+ type: 1,
}, {
name: '内保干部队伍',
- num: 49,
+ num: 0,
active: false,
imgSrc: '/static/personnelCountImg/zabw.png',
imgSrc1: '/static/personnelCountImg/zabw1.png',
+ type: 2,
}, {
name: '治安巡防队伍',
- num: 36,
+ num: 0,
active: false,
imgSrc: '/static/personnelCountImg/xf.png',
imgSrc1: '/static/personnelCountImg/xf1.png',
+ type: 3,
}, {
name: '信息员队伍',
- num: 30,
+ num: 0,
active: false,
imgSrc: '/static/personnelCountImg/xxy.png',
imgSrc1: '/static/personnelCountImg/xxy1.png',
+ type: 4,
}, {
name: '保安员队伍',
- num: 15995,
+ num: 0,
active: false,
imgSrc: '/static/personnelCountImg/badw.png',
imgSrc1: '/static/personnelCountImg/badw1.png',
+ type: 5,
}, {
name: '警务辅助队伍',
- num: 15,
+ num: 0,
active: false,
imgSrc: '/static/personnelCountImg/jfd.png',
imgSrc1: '/static/personnelCountImg/jfd1.png',
+ type: 6,
}, {
- name: '志愿者',
- num: 1,
+ name: '平安志愿者',
+ num: 0,
active: false,
imgSrc: '/static/personnelCountImg/wyh.png',
imgSrc1: '/static/personnelCountImg/wyh1.png',
+ type: 7,
}],
activeStyle: {
backgroundColor: '#103289',
@@ -155,237 +162,7 @@
borderRadius: '5px',
},
swiperHeight: 0,
- people: [{
- account: "jdmbl",
- address: "",
- auditTime: "",
- avatar: "",
- birthday: "",
- cardid: "",
- code: "",
- createDept: "1372091709474910209",
- createTime: "2021-07-17 11:53:58",
- createUser: "1123598821738675201",
- deptId: "1424615590148038657,1424615693403414529",
- deptName: "群防群控队伍,治保会队伍",
- district: "360121",
- email: "",
- examination_mx: "正常",
- examination_type: "0",
- id: "1416244760012685313",
- isDeleted: 0,
- jd: "",
- jobUnit: "",
- jurisdiction: "",
- name: "马宝林",
- online_status: "",
- phone: "",
- postId: "",
- postName: "",
- realName: "马宝林",
- roleId: "1372092102682521602",
- roleName: "群防群控队伍",
- sex: 1,
- sexName: "男",
- signals: "",
- status: 1,
- stype: "1",
- tenantId: "000000",
- tenantName: "南昌市公安局",
- updateTime: "2021-10-29 14:56:45",
- updateUser: "1123598821738675201",
- userExt: "",
- userType: 1,
- userTypeName: "WEB",
- wd: "",
- work_status: "",
- workaddress: "",
- workjurisdiction: "",
- }, {
- account: "015854",
- address: "",
- auditTime: "",
- avatar: "",
- birthday: "",
- cardid: "",
- code: "",
- createDept: "1372091709474910209",
- createTime: "2021-07-29 10:34:36",
- createUser: "1123598821738675201",
- deptId: "1424615590148038657,1424615693403414529",
- deptName: "群防群控队伍,治保会队伍",
- district: "360103",
- email: "",
- examination_mx: "正常",
- examination_type: "0",
- id: "1420573441011056641",
- isDeleted: 0,
- jd: "",
- jobUnit: "",
- jurisdiction: "",
- name: "张绪光",
- online_status: "",
- phone: "15797875659",
- postId: "",
- postName: "",
- realName: "张绪光",
- roleId: "1372092102682521602",
- roleName: "群防群控队伍",
- sex: 1,
- sexName: "男",
- signals: "",
- status: 1,
- stype: "1",
- tenantId: "000000",
- tenantName: "南昌市公安局",
- updateTime: "2021-08-10 18:01:30",
- updateUser: "1123598821738675201",
- userExt: "",
- userType: -1,
- userTypeName: "用户平台",
- wd: "",
- work_status: "",
- workaddress: "",
- workjurisdiction: "",
- }, {
- account: "015854",
- address: "",
- auditTime: "",
- avatar: "",
- birthday: "",
- cardid: "",
- code: "",
- createDept: "1372091709474910209",
- createTime: "2021-07-29 10:34:36",
- createUser: "1123598821738675201",
- deptId: "1424615590148038657,1424615693403414529",
- deptName: "群防群控队伍,治保会队伍",
- district: "360103",
- email: "",
- examination_mx: "正常",
- examination_type: "0",
- id: "1420573441011056641",
- isDeleted: 0,
- jd: "",
- jobUnit: "",
- jurisdiction: "",
- name: "张绪光",
- online_status: "",
- phone: "15797875659",
- postId: "",
- postName: "",
- realName: "张绪光",
- roleId: "1372092102682521602",
- roleName: "群防群控队伍",
- sex: 1,
- sexName: "男",
- signals: "",
- status: 1,
- stype: "1",
- tenantId: "000000",
- tenantName: "南昌市公安局",
- updateTime: "2021-08-10 18:01:30",
- updateUser: "1123598821738675201",
- userExt: "",
- userType: -1,
- userTypeName: "用户平台",
- wd: "",
- work_status: "",
- workaddress: "",
- workjurisdiction: "",
- }, {
- account: "015854",
- address: "",
- auditTime: "",
- avatar: "",
- birthday: "",
- cardid: "",
- code: "",
- createDept: "1372091709474910209",
- createTime: "2021-07-29 10:34:36",
- createUser: "1123598821738675201",
- deptId: "1424615590148038657,1424615693403414529",
- deptName: "群防群控队伍,治保会队伍",
- district: "360103",
- email: "",
- examination_mx: "正常",
- examination_type: "0",
- id: "1420573441011056641",
- isDeleted: 0,
- jd: "",
- jobUnit: "",
- jurisdiction: "",
- name: "张绪光",
- online_status: "",
- phone: "15797875659",
- postId: "",
- postName: "",
- realName: "张绪光",
- roleId: "1372092102682521602",
- roleName: "群防群控队伍",
- sex: 1,
- sexName: "男",
- signals: "",
- status: 1,
- stype: "1",
- tenantId: "000000",
- tenantName: "南昌市公安局",
- updateTime: "2021-08-10 18:01:30",
- updateUser: "1123598821738675201",
- userExt: "",
- userType: -1,
- userTypeName: "用户平台",
- wd: "",
- work_status: "",
- workaddress: "",
- workjurisdiction: "",
- }, {
- account: "015854",
- address: "",
- auditTime: "",
- avatar: "",
- birthday: "",
- cardid: "",
- code: "",
- createDept: "1372091709474910209",
- createTime: "2021-07-29 10:34:36",
- createUser: "1123598821738675201",
- deptId: "1424615590148038657,1424615693403414529",
- deptName: "群防群控队伍,治保会队伍",
- district: "360103",
- email: "",
- examination_mx: "正常",
- examination_type: "0",
- id: "1420573441011056641",
- isDeleted: 0,
- jd: "",
- jobUnit: "",
- jurisdiction: "",
- name: "张绪光",
- online_status: "",
- phone: "15797875659",
- postId: "",
- postName: "",
- realName: "张绪光",
- roleId: "1372092102682521602",
- roleName: "群防群控队伍",
- sex: 1,
- sexName: "男",
- signals: "",
- status: 1,
- stype: "1",
- tenantId: "000000",
- tenantName: "南昌市公安局",
- updateTime: "2021-08-10 18:01:30",
- updateUser: "1123598821738675201",
- userExt: "",
- userType: -1,
- userTypeName: "用户平台",
- wd: "",
- work_status: "",
- workaddress: "",
- workjurisdiction: "",
- }]
+ people: []
}
},
computed: {
@@ -399,7 +176,7 @@
this.setSizes();
},
openSee(val) {
- if(this.list[val].active){
+ if (this.list[val].active) {
return;
}
for (let k in this.list) {
@@ -407,10 +184,37 @@
}
this.list[val].active = true;
console.log(this.list[val].name)
+ this.getData(this.list[val].type);
+ },
+ getData(val) {
+ let that = this;
+ uni.request({
+ url: this.$store.state.piAPI +
+ `blade-user/userCount?xid=${this.$store.state.Jurisdiction}&index=${val}`,
+ method: "get",
+ // data: d,
+ header: {
+ "content-type": "application/x-www-form-urlencoded",
+ },
+ success(res) {
+ console.log(res);
+ const types = res.data.data.cout;
+ // console.log(types)
+ //解析类型栏目数量
+ for (let k in types) {
+ if (types[k].region == that.list[k].name) {
+ that.list[k].num = types[k].num;
+ }
+ }
+ const data = res.data.data.list;
+ that.people = data;
+ }
+ })
},
onLoad() {},
onReady() {
this.setSizes();
+ this.getData(this.list[0].type);
// let that = this;
// uni.getSystemInfo({
// success(e) {
diff --git a/store/actions.js b/store/actions.js
index 3e901a2..bfb6f81 100644
--- a/store/actions.js
+++ b/store/actions.js
@@ -62,6 +62,7 @@
console.log(res.data, 123542);
data.isit = true
store.state.roleid = res.data.role_id; //角色id
+ store.state.Jurisdiction = res.data.workjurisdiction; //角色辖区
data.userName = res.data.nick_name //警袁姓名
data.userID = res.data.user_id //警袁id
data.avatar = res.data.avatar //头像
diff --git a/store/state.js b/store/state.js
index bfaea7a..2898bd1 100644
--- a/store/state.js
+++ b/store/state.js
@@ -12,6 +12,7 @@
useName: '过客',
},
roleid: '', //角色id
+ Jurisdiction: '', //角色辖区
logPath: '',
piAPI: apis.api,
// piAPI: 'http://223.82.109.183:2082/api/',
--
Gitblit v1.9.3