From 93a1390eb91d091ddc0b34c3ac6bb43c59004962 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Wed, 29 Oct 2025 17:52:02 +0800 Subject: [PATCH] sc --- src/api/clue/index.js | 9 ++ src/config/axios/service.ts | 4 + src/router/modules/remaining.ts | 10 +++ src/views/Clue/Pool/ClueAdd.vue | 142 ++++++++++++++++++++++++++++++++ vite.config.js | 10 ++- 5 files changed, 173 insertions(+), 2 deletions(-) create mode 100644 src/views/Clue/Pool/ClueAdd.vue diff --git a/src/api/clue/index.js b/src/api/clue/index.js index 9b07233..a158b03 100644 --- a/src/api/clue/index.js +++ b/src/api/clue/index.js @@ -62,3 +62,12 @@ export const getFollowUserList = async (params) => { export const batchUpdateFollowUser = async (data) => { return await request.put({ url: '/admin-api/crm/sch-clue/batchUpdateFollowUser', data }) } + +// 自动分配线索新增 +export const clueInput = async (data) => { + return await request.post({ + url: '/out-api/out/clue/importClue/', + data, + isSubmitForm: true + }) +} diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index 5663222..560b724 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -49,6 +49,10 @@ const service: AxiosInstance = axios.create({ // request拦截器 service.interceptors.request.use( (config: InternalAxiosRequestConfig) => { + if (config.url?.startsWith('/out-api')) { + debugger + config.baseURL = '' + } // 是否需要设置 token let isToken = (config!.headers || {}).isToken === false whiteList.some((v) => { diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index dac7398..3b55792 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -164,6 +164,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ // } // ] // }, + { + path: '/clue-add', + name: 'ClueAdd', + component: () => import('@/views/Clue/Pool/ClueAdd.vue'), + meta: { + title: '线索录入', + hidden: true, + noTagsView: true + } + }, { path: '/receive-input/:id', name: 'ReceiveInput', diff --git a/src/views/Clue/Pool/ClueAdd.vue b/src/views/Clue/Pool/ClueAdd.vue new file mode 100644 index 0000000..75df6ea --- /dev/null +++ b/src/views/Clue/Pool/ClueAdd.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/vite.config.js b/vite.config.js index 7331f10..46aa3af 100644 --- a/vite.config.js +++ b/vite.config.js @@ -40,11 +40,11 @@ export default ({ command, mode }) => { changeOrigin: true, rewrite: (path) => path.replace(new RegExp(`^/call-api`), '') }, - ['/crm-api']: { + ['/crm-api/']: { target: env.VITE_BASE_URL, ws: false, changeOrigin: true, - rewrite: (path) => path.replace(new RegExp(`^/crm-api`), '') + rewrite: (path) => path.replace(new RegExp(`^/crm-api/`), '') }, ['/applet-api']: { target: env.VITE_APPLET_URL, @@ -57,6 +57,12 @@ export default ({ command, mode }) => { ws: false, changeOrigin: true, rewrite: (path) => path.replace(new RegExp(`^/tiku-api`), '') + }, + ['/out-api']: { + target: 'http://cloud.ahfkbg.com', + ws: false, + changeOrigin: true, + rewrite: (path) => path.replace(new RegExp(`^/out-api`), '') } } },