|
@@ -127,7 +127,7 @@
|
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
|
import { getAllListByCode, getFromValue, resetFromValue, getTemplateKey, confirmAction, downloadTemplate, downloadFile, createTaskFromType } from '@/utils/tools'
|
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
|
-import { actionButtons, tableColumns, GETSYSFILED, GETPERSONNEL, GETGENERATEFOEM, MOD, URL_PAGECONTACTS, getSex, URL_ADD, URL_UPLOAD, URL_BATCHDETELE, URL_DETELERECYCLE, IMPORTMOD } from "./api";
|
|
|
+import { actionButtons, tableColumns, GETSYSFILED, GETPERSONNEL, GETGENERATEFOEM, MOD, URL_PAGECONTACTS, getSex, URL_ADD, URL_UPLOAD, URL_BATCHDETELE, URL_DETELERECYCLE, IMPORTMOD, URL_IMPORTDATACONTACTS, URL_EXPORTDATACONTACTS } from "./api";
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
import { GenerateForm } from '@zmjs/form-design';
|
|
|
import { URL_FETALL } from "../customer/api";
|
|
@@ -221,7 +221,7 @@ function newTask(item: any) {
|
|
|
function exportCustomerTableList() {
|
|
|
allLoading.exoprtLoading = true
|
|
|
let valueForm = getFromValue(filterForm)
|
|
|
- post('接口名称', { ...valueForm }).then((res) => {
|
|
|
+ post(URL_EXPORTDATACONTACTS, { ...valueForm }).then((res) => {
|
|
|
downloadFile(res.data, allText.exportText)
|
|
|
}).finally(() => {
|
|
|
allLoading.exoprtLoading = false
|
|
@@ -232,7 +232,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_IMPORTDATACONTACTS, formData).finally(() => {
|
|
|
allLoading.importLoading = false
|
|
|
})
|
|
|
if (res.code == 'ok') {
|