This commit is contained in:
shijingjing
2022-08-02 14:16:45 +08:00
parent b9a0d89164
commit a49ffdf9fd

View File

@@ -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)}))