Commit 2d14b4ee authored by Facius's avatar Facius

feat: 添加人员

parent 2a3e611c
Pipeline #3568 canceled with stages
......@@ -188,7 +188,6 @@ export default {
this.deleteProjectMember()
},
handleClickConfirm() {
this.buttonLoading = true
this.updateProjectMember()
},
deleteProjectMember() {
......@@ -212,6 +211,7 @@ export default {
});
},
updateProjectMember() {
this.buttonLoading = true
if (!this.form.projectId) {
this.form.projectId = this.projectId
}
......@@ -229,10 +229,12 @@ export default {
}
})
.catch(res => {
this.buttonLoading = false
});
},
goBack () {
uni.$emit('employees-changed')
uni.$emit('project-detail')
this.$u.route({
type: 'navigateBack',
params: {
......
......@@ -178,9 +178,6 @@ export default {
});
}
// 测试数据
this.projectId = '160'
this.freshing = false;
this.reloadList();
},
......@@ -214,7 +211,6 @@ export default {
size: this.size,
})
.then(res => {
console.log('-------res------', res)
let data = res.data;
if (this.current == 1) {
this.employees = [];
......@@ -257,7 +253,6 @@ export default {
size: this.size,
})
.then(res => {
console.log('-------res---0---', res)
let data = res.data;
if (this.current == 1) {
this.employees = [];
......@@ -337,12 +332,13 @@ export default {
});
},
handleSelectCell (id, selected) {
console.log(id, selected)
var members = []
for (var item of this.employees) {
if (item.id == id) {
item.selected = selected
break
}
if (item.selected) {
members.push(item.id)
}
......@@ -355,7 +351,8 @@ export default {
type: 'navigateTo',
params: {
selectedMembers: this.stringEmployees,
type: 'select'
type: 'select',
projectId: this.projectId
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment