上传优化 otherdata pub后刷新列表
This commit is contained in:
parent
1760f036af
commit
171a9e4ea1
|
@ -2,7 +2,7 @@
|
||||||
<el-dialog title="upload" v-model="state.isShowDialog" width="550px">
|
<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 :model="state.ruleForm" size="default" label-width="150px" :rules="rules" ref="adminAddFormRef">
|
||||||
<el-form-item label="file:" style="margin-top: 30px;">
|
<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>
|
<template #trigger>
|
||||||
<el-button type="primary">select file</el-button>
|
<el-button type="primary">select file</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -262,6 +262,7 @@ const pub = (row) => {
|
||||||
}
|
}
|
||||||
updateEntityData(daNew)
|
updateEntityData(daNew)
|
||||||
ElMessage.success('success');
|
ElMessage.success('success');
|
||||||
|
getTableData()
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue