新增
This commit is contained in:
@@ -26,7 +26,10 @@
|
||||
<div class="title">特殊人群</div>
|
||||
<div class="num-content">
|
||||
<div class="num-item" v-for="(item, index) in statisticsList" :key="index">
|
||||
<h3>{{item.value}}</h3>
|
||||
<h3>
|
||||
<!-- {{item.value}} -->
|
||||
{{ $dict.getLabel('appSpecialTypeFive', item.value) }}
|
||||
</h3>
|
||||
<p>{{item.label}}</p>
|
||||
</div>
|
||||
<AiEmpty v-if="!statisticsList.length"/>
|
||||
@@ -123,7 +126,7 @@ export default {
|
||||
},
|
||||
getStatistic() {
|
||||
this.statisticsList = []
|
||||
this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
|
||||
this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
|
||||
// if (res.code == 0) {
|
||||
// for(let i in res.data){
|
||||
// var obj = {
|
||||
@@ -151,17 +154,17 @@ export default {
|
||||
},
|
||||
getUserList() {
|
||||
this.userList = []
|
||||
this.$http.post(`/app/appspecialadjustment/allList?type=0&name=${this.name}`).then((res) => {
|
||||
// if (res.code == 0) {
|
||||
// for(let i in res.data){
|
||||
// var obj = {
|
||||
// label: i,
|
||||
// value: res.data[i],
|
||||
// check: false
|
||||
// }
|
||||
// this.userList.push(obj)
|
||||
// }
|
||||
// }
|
||||
this.$http.post('app/appspecialadjustment/allList',{type: '', name: this.name}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
for(let i in res.data){
|
||||
var obj = {
|
||||
label: i,
|
||||
value: res.data[i],
|
||||
check: false
|
||||
}
|
||||
this.userList.push(obj)
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
toAdd() {
|
||||
@@ -190,17 +193,22 @@ export default {
|
||||
|
||||
},
|
||||
toEdit(row) {
|
||||
// uni.navigateTo({url: './add'})
|
||||
uni.navigateTo({url: `./add?id=${row.id}`})
|
||||
},
|
||||
del(row) {
|
||||
var delUrl = ['app/appspecialdisabled/delete','app/appspecialmental/delete',
|
||||
'app/appspecialadjustment/delete','app/appspecialdrug/delete','app/appspecialprison/delete'
|
||||
]
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
// this.$http.post(`/app/appzyvideobroadcast/getBroadcastRecall?broadcastId=${id}`).then((res) => {
|
||||
// if (res.code == 0) {
|
||||
// this.$u.toast('撤回成功!')
|
||||
// this.getList()
|
||||
// }
|
||||
// })
|
||||
})
|
||||
uni.showLoading()
|
||||
this.$http.post(delUrl[row.userType],{id: row.id}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('删除成功!')
|
||||
this.getUserList()
|
||||
}
|
||||
uni.hideLoading()
|
||||
})
|
||||
}).catch(() => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user