query
This commit is contained in:
@@ -44,12 +44,12 @@ export default {
|
|||||||
this.getCreateUserList()
|
this.getCreateUserList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isSelected(id) {
|
isSelected(userId) {
|
||||||
return this.selected.userId===id
|
return this.selected.userId===userId
|
||||||
},
|
},
|
||||||
getCreateUserList() {
|
getCreateUserList() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.$http.post(`app/appmasssendingtask/createUserlist`).then(res => {
|
this.$http.post(`app/appmasssendingtask/createUserlist`, {}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
// let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
|
// let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
|
||||||
this.userList = res.data.map(e => ({userId: e, isChecked: this.isSelected(e)}))
|
this.userList = res.data.map(e => ({userId: e, isChecked: this.isSelected(e)}))
|
||||||
|
|||||||
Reference in New Issue
Block a user