|
@@ -169,7 +169,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
-import { GETSYSFILED, MOD, IMPORMOD, GETPERSONNEL, GETTABLE, GETTEMPLATE, GETDETAIL, UNDATECLAIM, UNDATEFORM, DELTEROW } from './constant'
|
|
|
|
|
|
+import { GETSYSFILED, MOD, IMPORMOD, GETPERSONNEL, GETTABLE, GETTEMPLATE, GETDETAIL, UNDATECLAIM, UNDATEFORM, DELTEROW, URL_IMPORTTHREAD } from './constant'
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate, createTaskFromType, confirmAction, downloadTemplate } from '@/utils/tools'
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate, createTaskFromType, confirmAction, downloadTemplate } from '@/utils/tools'
|
|
import { FormInstance, FormRules, ElMessageBox, ElTable, UploadRequestOptions } from 'element-plus'
|
|
import { FormInstance, FormRules, ElMessageBox, ElTable, UploadRequestOptions } from 'element-plus'
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
@@ -368,13 +368,13 @@ async function importProducts(param: UploadRequestOptions) {
|
|
allLoading.importLoading = true
|
|
allLoading.importLoading = true
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
formData.append('multipartFile', param.file)
|
|
formData.append('multipartFile', param.file)
|
|
- const res = await uploadFile('导入接口', formData).finally(() => {
|
|
|
|
|
|
+ const res = await uploadFile(URL_IMPORTTHREAD, formData).finally(() => {
|
|
allLoading.importLoading = false
|
|
allLoading.importLoading = false
|
|
})
|
|
})
|
|
allLoading.importLoading = false
|
|
allLoading.importLoading = false
|
|
if (res.code == 'ok') {
|
|
if (res.code == 'ok') {
|
|
globalPopup?.showSuccess('导入成功' || '')
|
|
globalPopup?.showSuccess('导入成功' || '')
|
|
-
|
|
|
|
|
|
+ getClueTable()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
globalPopup?.showError(res.msg || '')
|
|
globalPopup?.showError(res.msg || '')
|