Commit 3233c189 authored by tanjunxin's avatar tanjunxin

fix: 订单变量上传文件时添加遮罩层

parent dc1f6df3
......@@ -205,10 +205,17 @@ const handleRemove = (file) => {
}
const handleExceed = () => {}
const changeUpload = (file: any) => {
const loading = ElLoading.service({
text: '上传中...',
background: 'rgba(0, 0, 0, 0.7)',
lock: true,
spinner: 'el-icon-loading'
})
const formData = new FormData()
formData.append('file', file.raw)
console.log(file, 'file')
uploadFile(formData).then(({ data }) => {
loading.close()
if (data?.code === 200) {
importForm.value.filePaths.push({ uid: file.uid, path: data.message })
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment