From d147f3e8057b6692554c8af6633aaa0e7a225a27 Mon Sep 17 00:00:00 2001 From: xuhongjie <1943105267@qq.com> Date: Tue, 22 Apr 2025 18:51:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/axios.ts | 4 +-- src/packages/components/Decorates/index.ts | 2 +- src/views/AI/components/history/index.vue | 31 ++++++++++++++++--- src/views/AI/components/issueQuey/index.vue | 8 ++--- src/views/AI/index.vue | 10 +++--- .../components/ChartDataAjax/handlerFormat.js | 1 - 7 files changed, 39 insertions(+), 19 deletions(-) diff --git a/.env b/.env index de01cb3..77fc66c 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ VITE_DEV_PORT = '8080' # development path -VITE_DEV_PATH = 'http://192.168.0.128' +VITE_DEV_PATH = 'http://192.168.0.128:8083' # production path VITE_PRO_PATH = 'http://192.168.0.128:8083' \ No newline at end of file diff --git a/src/api/axios.ts b/src/api/axios.ts index 5146007..75e3d07 100644 --- a/src/api/axios.ts +++ b/src/api/axios.ts @@ -20,8 +20,8 @@ export interface MyRequestInstance extends Axios { } const axiosInstance = axios.create({ - // baseURL: `${import.meta.env.PROD ? import.meta.env.VITE_PRO_PATH : ''}${axiosPre}`, - baseURL:`${import.meta.env.VITE_PRO_PATH}${axiosPre}`, + baseURL: `${import.meta.env.PROD ? import.meta.env.VITE_PRO_PATH : ''}${axiosPre}`, + // baseURL:`${import.meta.env.VITE_PRO_PATH}${axiosPre}`, timeout: ResultEnum.TIMEOUT }) as unknown as MyRequestInstance diff --git a/src/packages/components/Decorates/index.ts b/src/packages/components/Decorates/index.ts index f14519b..c7f0a87 100644 --- a/src/packages/components/Decorates/index.ts +++ b/src/packages/components/Decorates/index.ts @@ -4,4 +4,4 @@ import FlowChart from './FlowChart' import Three from './Three' import Mores from './Mores' -export const DecorateList = [...Borders,]// ...Decorates,...FlowChart, ...Three, ...Mores +export const DecorateList = [...Borders,...Decorates,...Three]// ...Decorates,...FlowChart, ...Three, ...Mores diff --git a/src/views/AI/components/history/index.vue b/src/views/AI/components/history/index.vue index a880a56..025829b 100644 --- a/src/views/AI/components/history/index.vue +++ b/src/views/AI/components/history/index.vue @@ -21,7 +21,19 @@
看板历史记录
-
+
+
{{ item.projectName }}
+
+ + + + + + + + +
+
@@ -37,12 +49,21 @@ let boardLsit = ref([]) const router = useRouter() //获取看板List const fetchList = async () => { - const res = await projectListApi() - console.log(res) + const res = await projectListApi({ + page: 1, + limit: 100, + status: 1 + }) + boardLsit.value = res.data } //删除项目看板 const delProjectItem = async id => { - const res = await deleteProjectApi({ ids: id }) + await deleteProjectApi({ ids: id }) + fetchList() +} + +const getBoardInfo = id => { + router.push('/board/' + id) } const formatFristIssue = value => { @@ -67,7 +88,7 @@ const getMessageInfo = id => { } onMounted(() => { - // fetchList() + fetchList() messageList() }) diff --git a/src/views/AI/components/issueQuey/index.vue b/src/views/AI/components/issueQuey/index.vue index 2199881..e77feb9 100644 --- a/src/views/AI/components/issueQuey/index.vue +++ b/src/views/AI/components/issueQuey/index.vue @@ -107,8 +107,8 @@ const getList = async () => {