mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-13 14:12:50 +00:00
优化
This commit is contained in:
parent
69d0f2d756
commit
a3666a2b8f
@ -30,13 +30,13 @@ async function open(ids: any[]) {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
on: {
|
on: {
|
||||||
submit(data, { done, close }) {
|
async submit(data, { done, close }) {
|
||||||
if (!data.departmentId) {
|
if (!data.departmentId) {
|
||||||
ElMessage.warning('请选择部门');
|
ElMessage.warning('请选择部门');
|
||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
|
|
||||||
ElMessageBox.confirm('转移到新部门,是否继续?', '提示', {
|
await ElMessageBox.confirm('转移到新部门,是否继续?', '提示', {
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -52,10 +52,11 @@ async function open(ids: any[]) {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
ElMessage.error(err.message);
|
ElMessage.error(err.message);
|
||||||
done();
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => null);
|
.catch(() => null);
|
||||||
|
|
||||||
|
done();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user