This commit is contained in:
shijingjing
2022-08-02 14:36:33 +08:00
parent a49ffdf9fd
commit ea7bcce82f

View File

@@ -28,7 +28,7 @@ export default {
appName: "选择创建人", appName: "选择创建人",
data() { data() {
return { return {
selected: [], selected: {},
userList: [], userList: [],
current: 1, current: 1,
} }
@@ -49,7 +49,7 @@ export default {
}, },
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)}))