|
@@ -165,7 +165,7 @@
|
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
|
import type { ElTable, FormInstance, FormRules, UploadRequestOptions } from 'element-plus'
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
-import { GETSYSFILED, MOD, GETPERSONNEL, GETGENERATEFOEM, GETBUSINESSLIST, UPDATEINSET, BUSINESSDETELE, BATCHTRANSFER, MODURL, tableColumn, BUSIESS_GETSATE } from './api'
|
|
|
+import { GETSYSFILED, MOD, GETPERSONNEL, GETGENERATEFOEM, GETBUSINESSLIST, UPDATEINSET, BUSINESSDETELE, BATCHTRANSFER, MODURL, tableColumn, BUSIESS_GETSATE, URL_IMPOERBUSINESS } from './api'
|
|
|
import { GETTABLELIST } from '@/pages/product/api'
|
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, createTaskFromType, formatDate, confirmAction, downloadTemplate, downloadFile } from '@/utils/tools'
|
|
@@ -322,7 +322,7 @@ async function importBusiness(param: UploadRequestOptions) {
|
|
|
allLoading.importLoading = true
|
|
|
const formData = new FormData();
|
|
|
formData.append('multipartFile', param.file)
|
|
|
- const res = await uploadFile('接口名称', formData).finally(() => {
|
|
|
+ const res = await uploadFile(URL_IMPOERBUSINESS, formData).finally(() => {
|
|
|
allLoading.importLoading = false
|
|
|
})
|
|
|
if (res.code == 'ok') {
|