From d1ddf3b1967e4e7aa5d20374cef65d8ac56f65bb Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 15 Mar 2024 12:14:50 +0800
Subject: [PATCH] 从业人员统计优化
---
src/views/place/practitioner.vue | 70 ++++++++++++++++++++++++-----------
src/views/publicSecurity/positionManage/TransactRegist.vue | 2
2 files changed, 49 insertions(+), 23 deletions(-)
diff --git a/src/views/place/practitioner.vue b/src/views/place/practitioner.vue
index 591a174..552a39d 100644
--- a/src/views/place/practitioner.vue
+++ b/src/views/place/practitioner.vue
@@ -183,21 +183,28 @@
prop: "ethnicity",
searchSpan: 4
},
- // {
- // width: 160,
- // label: "工作单位",
- // addDisplay: false,
- // editDisplay: false,
- // viewDisplay: false,
- // prop: "employer",
- // searchSpan: 4
- // },
+ {
+ width: 160,
+ label: "年龄",
+ addDisplay: false,
+ editDisplay: false,
+ viewDisplay: false,
+ prop: "age",
+ searchSpan: 4
+ },
{
label: "岗位性质",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
prop: "jobNature",
+ searchSpan: 4
+ }, {
+ label: "工作单位",
+ addDisplay: false,
+ editDisplay: false,
+ viewDisplay: false,
+ prop: "employer",
searchSpan: 4
},
{
@@ -241,7 +248,26 @@
value: 3
}
],
- }
+ }, {
+ width: 160,
+ label: "标签",
+ addDisplay: false,
+ editDisplay: false,
+ viewDisplay: false,
+ prop: "categoryName",
+ searchSpan: 4
+ }, {
+ width: 110,
+ label: '从业人员照片',
+ prop: 'employerImg',
+ fileType: 'img',
+ type: "upload",
+ listType: "picture-card",
+ dataType: "string",
+ disabled: true,
+ span: 12,
+ labelWidth: 110,
+ },
],
},
data: [],
@@ -375,9 +401,8 @@
},
methods: {
handleQueryAlarm(type) {
- this.onLoad(this.page, {
- type: type
- })
+ this.query.type = type
+ this.onLoad(this.page)
},
showStringDispose(row, type) {
row[type] = !row[type]
@@ -538,14 +563,15 @@
this.data.forEach(item => {
this.$set(item, 'principalPhoneflag', false)
this.$set(item, 'principalIdCardflag', false)
- // if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) {
- // var urls = []
- // var names = item.imageUrls.split(",").filter(item => item != '')
- // names.forEach(name => {
- // urls.push(website.minioUrl + name)
- // })
- // item.imageUrls = urls.join(",")
- // }
+ if (item.employerImg && item.employerImg != '' && item.employerImg != null && item.employerImg
+ .length) {
+ var urls = []
+ var names = item.employerImg.split(",").filter(item => item != '')
+ names.forEach(name => {
+ urls.push(website.minioUrl + name)
+ })
+ item.employerImg = urls.join(",")
+ }
})
this.loading = false
@@ -583,4 +609,4 @@
border-radius: 6px;
text-align: center;
}
-</style>
+</style>
\ No newline at end of file
diff --git a/src/views/publicSecurity/positionManage/TransactRegist.vue b/src/views/publicSecurity/positionManage/TransactRegist.vue
index 5f8203a..5fa85d9 100644
--- a/src/views/publicSecurity/positionManage/TransactRegist.vue
+++ b/src/views/publicSecurity/positionManage/TransactRegist.vue
@@ -792,4 +792,4 @@
justify-content: center;
}
}
-</style>
+</style>
\ No newline at end of file
--
Gitblit v1.9.3