feat:新版交接班
This commit is contained in:
1 parent
0a64c701d7
commit
6ffc58d517
3 files changed
+165
-7
No files matched your search
@@ -2,7 +2,7 @@
|
||||
<template>
|
||||
<el-dialog :title="prop.title" v-model="state.upload.open" :close-on-click-modal="false" draggable>
|
||||
<el-upload ref="uploadRef" :limit="1" accept=".xlsx, .xls" :headers="headers"
|
||||
:action="baseURL + other.adaptationUrl(url)" :disabled="state.upload.isUploading"
|
||||
:action="baseURL + other.adaptationUrl(url)" :data="importData" :disabled="state.upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :on-error="handleFileError"
|
||||
:auto-upload="false" drag>
|
||||
<i class="el-icon-upload"></i>
|
||||
@@ -48,6 +48,10 @@ const prop = defineProps({
|
||||
url: {
|
||||
type: String,
|
||||
},
|
||||
importData: {
|
||||
type: Object,
|
||||
default: () => { },
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
},
|
||||
@@ -75,7 +79,7 @@ const state = reactive({
|
||||
* 下载模板文件
|
||||
*/
|
||||
const downExcelTemp = async () => {
|
||||
if (prop.tempUrl) {
|
||||
if (prop.tempUrl && prop.tempUrl !== 'null') {
|
||||
try {
|
||||
await other.downBlobFile(other.adaptationUrl(prop.tempUrl), {}, 'temp.xlsx');
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user