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