人员班组前端修改
This commit is contained in:
parent
98ffe7a9d9
commit
0f6853314c
|
|
@ -296,7 +296,7 @@
|
|||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button type="primary" @click="submitForm" :loading="isSubmit">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
|
@ -345,6 +345,7 @@
|
|||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
isSubmit: false,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
|
|
@ -632,11 +633,17 @@
|
|||
file.forEach(item => {
|
||||
reqData.append('file', item)
|
||||
})
|
||||
this.isSubmit=true;
|
||||
editPerson(reqData).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.fileList=[];
|
||||
this.getList();
|
||||
if(response.code==200){
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.fileList=[];
|
||||
this.getList();
|
||||
this.isSubmit=false;
|
||||
}else{
|
||||
this.isSubmit=false;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
|
|
@ -646,11 +653,17 @@
|
|||
file.forEach(item => {
|
||||
reqData.append('file', item)
|
||||
})
|
||||
this.isSubmit=true;
|
||||
addPerson(reqData).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.fileList=[];
|
||||
this.getList();
|
||||
if(response.code==200){
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.fileList=[];
|
||||
this.getList();
|
||||
this.isSubmit=false;
|
||||
}else{
|
||||
this.isSubmit=false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -560,7 +560,8 @@
|
|||
openChosen(){
|
||||
this.openPeople = true;
|
||||
this.searchName = '';
|
||||
this.chosenUser = this.teamUserList.slice();
|
||||
// console.log(this.teamUserList)
|
||||
this.chosenUser = this.teamUserList.slice(1);
|
||||
let param = {
|
||||
type:2,//1.全部人员 2.未分配人员 3.已分配人员
|
||||
roleCode: this.$store.getters.roleCode,
|
||||
|
|
@ -695,7 +696,7 @@
|
|||
/** 解散按钮操作 */
|
||||
handleDissolution(row) {
|
||||
const teamIds = row.teamId;
|
||||
this.$modal.confirm('是否确认解散班组编号为"' + teamIds + '"的数据项?').then(function() {
|
||||
this.$modal.confirm('是否确认解散班组名称为"' + row.teamName + '"的数据项?').then(function() {
|
||||
return dissolutionTeam({id:teamIds});
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue