REVIEW 用户管理(导入用户)

This commit is contained in:
YunaiV
2023-04-01 00:04:28 +08:00
parent 0a69041602
commit cebe6f93db
5 changed files with 136 additions and 161 deletions

View File

@ -8,7 +8,7 @@
:data="formData"
name="bpmnFile"
v-model:file-list="fileList"
:drag="true"
drag
:auto-upload="false"
accept=".bpmn, .xml"
:limit="1"
@ -77,7 +77,7 @@ const open = async () => {
}
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 重置表单 */
/** 提交表单 */
const submitForm = async () => {
// 校验表单
if (!formRef) return
@ -98,7 +98,7 @@ const submitForm = async () => {
/** 文件上传成功 */
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
const submitFormSuccess = async (response: any): Promise<void> => {
const submitFormSuccess = async (response: any) => {
if (response.code !== 0) {
message.error(response.msg)
formLoading.value = false