Browse Source

【安宁pc端 标签管理】-【用户标签 - 修改身份标签】魏凯 2020-12-03

feature/addTag
weikai 5 years ago
parent
commit
45493a16aa
  1. 1
      src/views/modules/user/hasAuthenticationpartymembers.vue
  2. 12
      src/views/modules/user/party-user-tag.vue
  3. 7
      src/views/modules/user/user-tag1.vue

1
src/views/modules/user/hasAuthenticationpartymembers.vue

@ -402,7 +402,6 @@ export default {
} }
}, },
partyReview (userId) { partyReview (userId) {
debugger
this.partyReviewVisible = true this.partyReviewVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.partyReview.dataForm.id = userId this.$refs.partyReview.dataForm.id = userId

12
src/views/modules/user/party-user-tag.vue

@ -120,13 +120,6 @@ export default {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.tagOptions = res.data this.tagOptions = res.data
// this.tagOptions =[
// {id:"11125",tagName:""},
// {id:"11124",tagName:""},
// {id:"11123",tagName:""},
// {id:"11122",tagName:""},
// {id:"11121",tagName:""}
// ]
}).catch(() => { }) }).catch(() => { })
}, },
// //
@ -157,8 +150,11 @@ export default {
return false return false
} }
this.isAble = true this.isAble = true
let userIds =[
this.dataForm.id
]
let postData = { let postData = {
userId: this.dataForm.id, userId: userIds,
tagIds: this.dataForm.partyTagIds tagIds: this.dataForm.partyTagIds
} }
this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/usertagrelation/addTag/', postData).then(({ data: res }) => { this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/usertagrelation/addTag/', postData).then(({ data: res }) => {

7
src/views/modules/user/user-tag1.vue

@ -75,7 +75,7 @@ export default {
partyFlagOptions: [{ id: '0', name: '不是' }, { id: '1', name: '是' }], partyFlagOptions: [{ id: '0', name: '不是' }, { id: '1', name: '是' }],
cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }], cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }],
tagOptions: [], tagOptions: [],
userGridList: [] userGridList: [],
} }
}, },
computed: { computed: {
@ -141,8 +141,11 @@ export default {
return false return false
} }
this.isAble = true this.isAble = true
let userIds =[
this.dataForm.id
]
let postData = { let postData = {
userId: this.dataForm.id, userId: userIds,
tagIds: this.dataForm.partyTagIds tagIds: this.dataForm.partyTagIds
} }
this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/usertagrelation/addTag/', postData).then(({ data: res }) => { this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/usertagrelation/addTag/', postData).then(({ data: res }) => {

Loading…
Cancel
Save