上传优化 otherdata pub后刷新列表

This commit is contained in:
yyhouc 2023-05-16 17:50:13 +08:00
parent 1760f036af
commit 171a9e4ea1
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<el-dialog title="upload" v-model="state.isShowDialog" width="550px">
<el-form :model="state.ruleForm" size="default" label-width="150px" :rules="rules" ref="adminAddFormRef">
<el-form-item label="file:" style="margin-top: 30px;">
<el-upload ref="upFileRef" class="upload-demo" :file-list="state.fileData" :auto-upload="false" :on-change="handleChange">
<el-upload ref="upFileRef" class="upload-demo" :accept="'.xls,.xlsx'" :file-list="state.fileData" :auto-upload="false" :on-change="handleChange">
<template #trigger>
<el-button type="primary">select file</el-button>
</template>

View File

@ -262,6 +262,7 @@ const pub = (row) => {
}
updateEntityData(daNew)
ElMessage.success('success');
getTableData()
})
};