BUG 28180
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="add">
|
<div class="add">
|
||||||
<div class="pad-l32">
|
<div class="pad-l32">
|
||||||
<div class="item">
|
<div class="item" v-if="!isEdit">
|
||||||
<span class="label"><span class="tips">*</span>类型</span>
|
<span class="label"><span class="tips">*</span>类型</span>
|
||||||
<div class="value" @click="showType=true">
|
<div class="value" @click="showType=true">
|
||||||
<span :class="appId ? '' : 'color-999'">{{ appName }}</span>
|
<span :class="appId ? '' : 'color-999'">{{ appName }}</span>
|
||||||
@@ -203,12 +203,19 @@ export default {
|
|||||||
id: ''
|
id: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {...mapState(['user'])},
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
isEdit() {
|
||||||
|
return !!this.$route.query.id
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getType()
|
this.getType()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '新增人员'
|
document.title = this.isEdit ? "编辑人员" : '新增人员'
|
||||||
|
|
||||||
|
this.getDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['selectEnterpriseContact']),
|
...mapActions(['selectEnterpriseContact']),
|
||||||
@@ -464,6 +471,17 @@ export default {
|
|||||||
this.formData[item.fieldDbName] = [info.id, info.girdName].join("_")
|
this.formData[item.fieldDbName] = [info.id, info.girdName].join("_")
|
||||||
this.formData[item.fieldDbName + "_name"] = info.girdName
|
this.formData[item.fieldDbName + "_name"] = info.girdName
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
|
getDetail() {
|
||||||
|
let {id, appId} = this.$route.query
|
||||||
|
id && this.$http.post("/app/appapplicationinfo/queryDetailById", null, {
|
||||||
|
params: {id, appId}
|
||||||
|
}).then(res => {
|
||||||
|
if (res?.data) {
|
||||||
|
this.formData = res.data
|
||||||
|
this.appId = appId
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
<div class="title">特殊人群</div>
|
<div class="title">特殊人群</div>
|
||||||
<div class="num-content">
|
<div class="num-content">
|
||||||
<div class="num-item" v-for="(item, index) in statisticsList" :key="index">
|
<div class="num-item" v-for="(item, index) in statisticsList" :key="index">
|
||||||
<h3>{{ item.value }}</h3>
|
<h3 v-text="item.value"/>
|
||||||
<p>{{ item.label }}</p>
|
<p v-text="item.label"/>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty v-if="!statisticsList.length"/>
|
<AiEmpty v-if="!statisticsList.length"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -57,7 +57,13 @@
|
|||||||
<img src="../img/user-img.png" alt=""/>
|
<img src="../img/user-img.png" alt=""/>
|
||||||
</div>
|
</div>
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<p class="name">{{ e.name }}</p>
|
<p class="name">{{ e.name }}
|
||||||
|
<!--<span class="btn-icon" v-if="gridType != 0 && user.wxUserId == e.createUserId">-->
|
||||||
|
<span class="btn-icon">
|
||||||
|
<img src="../img/edit-icon.png" alt="" @click="toEdit(e,item.dictValue)">
|
||||||
|
<img src="../img/del-icon.png" alt="" @click="del(e,item.dictValue)">
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
<div class="phone">
|
<div class="phone">
|
||||||
<span>{{ idNumberInit(e.idNumber) }}</span>
|
<span>{{ idNumberInit(e.idNumber) }}</span>
|
||||||
<span>{{ e.phone }}</span>
|
<span>{{ e.phone }}</span>
|
||||||
@@ -89,6 +95,7 @@ export default {
|
|||||||
statisticsListMon: [],
|
statisticsListMon: [],
|
||||||
userList: [],
|
userList: [],
|
||||||
name: '',
|
name: '',
|
||||||
|
gridType: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {...mapState(['user'])},
|
computed: {...mapState(['user'])},
|
||||||
@@ -109,9 +116,9 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '特殊人群管理'
|
document.title = '特殊人群管理'
|
||||||
console.log(this.$dict.getDict('appSpecialTypeFive'))
|
this.$dict.getDict('appSpecialTypeFive')
|
||||||
|
this.isGirdUser()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
this.areaId = e
|
this.areaId = e
|
||||||
@@ -152,7 +159,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getUserList() {
|
getUserList() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.$http.post(`/app/appapplicationinfo/queryPeople?areaId=${this.areaId}&type=0&name=${this.name}`).then((res) => {
|
this.$http.post(`/app/appapplicationinfo/queryPeople?areaId=${this.areaId}&type=0&status=1&name=${this.name}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
for (let i in res.data) {
|
for (let i in res.data) {
|
||||||
var obj = {
|
var obj = {
|
||||||
@@ -189,6 +196,31 @@ export default {
|
|||||||
this.userList[index].check = true
|
this.userList[index].check = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
toEdit(row) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `./add?id=${row.id}&appId=${row.appId}`
|
||||||
|
})
|
||||||
|
},
|
||||||
|
del(row) {
|
||||||
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
|
uni.showLoading()
|
||||||
|
this.$http.post("/app/appapplicationinfo/delete", null, {params: {ids: row.id}}).then((res) => {
|
||||||
|
if (res?.code == 0) {
|
||||||
|
this.$u.toast('删除成功!')
|
||||||
|
this.getUserList()
|
||||||
|
}
|
||||||
|
uni.hideLoading()
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
isGirdUser() {
|
||||||
|
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
|
this.gridType = res.data.checkType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -398,6 +430,17 @@ export default {
|
|||||||
color: #333;
|
color: #333;
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
.btn-icon {
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
margin-left: 20px;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.phone {
|
.phone {
|
||||||
|
|||||||
BIN
src/apps/AppSpecialPeople/img/del-icon.png
Normal file
BIN
src/apps/AppSpecialPeople/img/del-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/apps/AppSpecialPeople/img/edit-icon.png
Normal file
BIN
src/apps/AppSpecialPeople/img/edit-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user