修改导入

This commit is contained in:
jingna 2025-10-31 09:05:47 +08:00
parent 753825acad
commit df829e4abb

View File

@ -474,6 +474,10 @@ function reset() {
getdata()
}
function importproject() {
fileList.value = []
importForm.value.fileName = ''
importForm.value.localStorageId = ''
importForm.value.backupStorageId = ''
getMaxTaskCode().then((res: any) => {
if (res.data) {
importForm.value.taskCode = res.data
@ -489,7 +493,6 @@ function fileChange(uploadFile, uploadFiles) {
importForm.value.fileName = uploadFile.name
fileList.value = []
fileList.value = [uploadFile.raw]
console.log(fileList.value, 999)
}
const isconnect = ref(false)
function importSubmit(formEl: any) {
@ -499,7 +502,7 @@ function importSubmit(formEl: any) {
if (fileList.value.length == 0) {
return ElMessage.warning('请上传导入文件!')
}
if (isconnect) {
if (isconnect.value) {
return
}
const formData = new FormData()
@ -642,8 +645,8 @@ function importClose() {
style="cursor: pointer;">
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" @click="delproject(scope.row)"
style="cursor: pointer;">
<img v-if="standAlone" src="@/assets/MenuIcon/lbcz_dc.png" alt="" title="导出" @click="expproject(scope.row)"
style="cursor: pointer;">
<img v-if="standAlone" src="@/assets/MenuIcon/lbcz_dc.png" alt="" title="导出"
@click="expproject(scope.row)" style="cursor: pointer;">
</span>
</template>
</el-table-column>