|
@@ -264,7 +264,7 @@ export default {
|
|
|
this.dialogVisible = true
|
|
|
this.activeName = 'first'
|
|
|
this.getDetails(row.id)
|
|
|
- // this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
+ this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
this.getUserPostList()
|
|
|
this.rowMsg = row
|
|
|
this.$nextTick(() =>{
|
|
@@ -383,10 +383,11 @@ export default {
|
|
|
}
|
|
|
apiGetUserPostList(params).then(datas =>{
|
|
|
if (datas.data && datas.data.records.length>0) {
|
|
|
- let posName = datas.data.records[0].posName
|
|
|
- if (posName !== '主任' || posName !== '副主任') {
|
|
|
- that.showMessage = true
|
|
|
- }
|
|
|
+ datas.data.records.forEach(it =>{
|
|
|
+ if (it.posName === '主任' || it.posName === '副主任') {
|
|
|
+ that.showMessage = true
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|