BUG 28180

This commit is contained in:
aixianling
2022-03-14 20:11:04 +08:00
parent fa843289ba
commit fd7f904de4
4 changed files with 70 additions and 9 deletions

View File

@@ -28,8 +28,8 @@
<div class="title">特殊人群</div>
<div class="num-content">
<div class="num-item" v-for="(item, index) in statisticsList" :key="index">
<h3>{{ item.value }}</h3>
<p>{{ item.label }}</p>
<h3 v-text="item.value"/>
<p v-text="item.label"/>
</div>
<AiEmpty v-if="!statisticsList.length"/>
</div>
@@ -57,7 +57,13 @@
<img src="../img/user-img.png" alt=""/>
</div>
<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">
<span>{{ idNumberInit(e.idNumber) }}</span>
<span>{{ e.phone }}</span>
@@ -89,6 +95,7 @@ export default {
statisticsListMon: [],
userList: [],
name: '',
gridType: 0
}
},
computed: {...mapState(['user'])},
@@ -109,9 +116,9 @@ export default {
},
onShow() {
document.title = '特殊人群管理'
console.log(this.$dict.getDict('appSpecialTypeFive'))
this.$dict.getDict('appSpecialTypeFive')
this.isGirdUser()
},
methods: {
areaSelect(e) {
this.areaId = e
@@ -152,7 +159,7 @@ export default {
},
getUserList() {
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) {
for (let i in res.data) {
var obj = {
@@ -189,6 +196,31 @@ export default {
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>
@@ -398,6 +430,17 @@ export default {
color: #333;
line-height: 44px;
margin-bottom: 8px;
.btn-icon {
float: right;
img {
width: 48px;
height: 48px;
margin-left: 20px;
vertical-align: baseline;
}
}
}
.phone {