人员班组前端修改

This commit is contained in:
zzyuan 2024-08-20 18:27:32 +08:00
parent 98ffe7a9d9
commit 0f6853314c
2 changed files with 25 additions and 11 deletions

View File

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

View File

@ -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();