27268 27258 27232
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<p class="name">{{e.name}}
|
||||
<span class="btn-icon">
|
||||
<span class="btn-icon" v-if="userGird != 0">
|
||||
<img src="./img/edit-icon.png" alt="" @click="toEdit(e,item.label)">
|
||||
<img src="./img/del-icon.png" alt="" @click="del(e,item.label)">
|
||||
</span>
|
||||
@@ -67,7 +67,7 @@
|
||||
<p class="text" v-if="!userList.length">{{'暂无' + item.dictName + '信息'}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer" @click="toAdd">
|
||||
<div class="footer" @click="toAdd" v-if="userGird != 0">
|
||||
<div class="btn">新增特殊人群信息</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -91,7 +91,8 @@ export default {
|
||||
name: '',
|
||||
typeList: [],
|
||||
type: '',
|
||||
current: 1
|
||||
current: 1,
|
||||
userGird: ''
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
@@ -102,6 +103,7 @@ export default {
|
||||
this.areaName = this.user.areaName
|
||||
this.getStatistic()
|
||||
this.getUserList()
|
||||
this.isGirdUser()
|
||||
})
|
||||
|
||||
uni.$on('specialPeopleList', () => {
|
||||
@@ -122,6 +124,17 @@ export default {
|
||||
tabClick(index) {
|
||||
this.tabIndex = index
|
||||
},
|
||||
isGirdUser() {
|
||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||
// console.log(res);
|
||||
if (res.code == 0) {
|
||||
this.userGird = res.data.checkType
|
||||
// if (res.data.checkType) {
|
||||
// this.userGird = res.data.checkType
|
||||
// }
|
||||
}
|
||||
})
|
||||
},
|
||||
getStatistic() {
|
||||
this.statisticsList = []
|
||||
this.statisticsListMon = []
|
||||
@@ -175,7 +188,7 @@ export default {
|
||||
// })
|
||||
// this.userList[index].check = true
|
||||
// }
|
||||
console.log(item)
|
||||
console.log(item);
|
||||
this.type = item.dictValue
|
||||
this.current = 1
|
||||
this.userList = []
|
||||
@@ -188,11 +201,11 @@ export default {
|
||||
})
|
||||
},
|
||||
del(row,indexs) {
|
||||
var delUrl = ['app/appspecialdisabled/delete','app/appspecialmental/delete',
|
||||
'app/appspecialadjustment/delete','app/appspecialdrug/delete','app/appspecialprison/delete'
|
||||
var delUrl = ['/app/appspecialdisabled/delete','/app/appspecialmental/delete',
|
||||
'/app/appspecialadjustment/delete','/app/appspecialdrug/delete','/app/appspecialprison/delete'
|
||||
]
|
||||
var idUrl='app/appspecialdisabled/delete'
|
||||
var id='c24aaff664a94fdd908a85c0237583bd'
|
||||
// var idUrl='app/appspecialdisabled/delete'
|
||||
// var id='c24aaff664a94fdd908a85c0237583bd'
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
uni.showLoading()
|
||||
this.$http.post(delUrl[indexs],null, {params: {ids: row.id}}).then((res) => {
|
||||
@@ -251,7 +264,6 @@ export default {
|
||||
.select-content{
|
||||
width: 100%;
|
||||
padding: 24px 32px 24px 0;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
|
||||
Reference in New Issue
Block a user