From 15f83f71937b0dacf2e04c902beccf06d9116058 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 9 Jun 2025 18:15:36 +0800 Subject: [PATCH] sc --- .env.base | 4 +-- src/router/modules/remaining.ts | 20 +++++------ src/views/OKR/Analysis/index.vue | 51 ++++++++++++++++++++++++++- src/views/OKR/Meeting/MeetingInfo.vue | 27 +++++++++----- 4 files changed, 81 insertions(+), 21 deletions(-) diff --git a/.env.base b/.env.base index 978fb4c..4bc8726 100644 --- a/.env.base +++ b/.env.base @@ -6,9 +6,9 @@ VITE_DEV=true # 请求路径 # VITE_BASE_URL='http://localhost:48080' -VITE_BASE_URL='http://47.98.161.246:48080' +# VITE_BASE_URL='http://47.98.161.246:48080' # VITE_BASE_URL='http://114.55.169.15:48080' -# VITE_BASE_URL='http://114.215.207.150:48080' +VITE_BASE_URL='http://114.215.207.150:48080' # 上传路径 VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload' diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 337d2f9..b563980 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -50,16 +50,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ noTagsView: true } }, - // { - // path: '', - // component: Layout, - // redirect: '/Home/index', - // name: '', - // meta: { - // title: '首页', - // hidden: true - // } - // }, + { + path: '', + component: Layout, + redirect: '/Home/index', + name: '', + meta: { + title: '首页', + hidden: true + } + }, { path: '/swagger', component: () => import('@/views/Basic/Swagger/index.vue'), diff --git a/src/views/OKR/Analysis/index.vue b/src/views/OKR/Analysis/index.vue index 527a952..1eda3da 100644 --- a/src/views/OKR/Analysis/index.vue +++ b/src/views/OKR/Analysis/index.vue @@ -47,6 +47,7 @@ :data="originList" border :span-method="objectSpanMethod" + :show-summary="!!tableKeywords" @cell-click="handleClickCell" > @@ -57,7 +58,26 @@ - + + @@ -302,6 +322,9 @@ const customColors = [ const peroidList = ref([]) +const showTableSearch = ref(false) +const tableKeywords = ref('') + handleSearchPeroid() getOptions() @@ -327,6 +350,8 @@ function handleSearchPeroid() { const showCountPop = ref(false) function nodeChange(nodeId) { if (nodeId) { + showTableSearch.value = false + tableKeywords.value = '' searchForm.value.nodeId = nodeId getOkrList() getCountInfo() @@ -343,6 +368,7 @@ function nodeChange(nodeId) { } const originList = ref([]) +const defaultTableList = ref([]) const spanObj = ref([]) function getOkrList() { getAllOkrPage(searchForm.value).then((resp) => { @@ -363,6 +389,7 @@ function getOkrList() { originList.value = [...originList.value, ...arr] } }) + defaultTableList.value = [...originList.value] } }) } @@ -548,6 +575,28 @@ function handleSaveComment() { function handleExport() { exportTableWithVue('#okrAnalysisTable', `OKR分析报表-${currentNode.value.nodeName}`) } + +function handleTableFilter() { + console.log('tableKeywords', tableKeywords.value) + + if (tableKeywords.value) { + originList.value = defaultTableList.value.filter( + (item) => + item.keyResultName.includes(tableKeywords.value) || + item.sourceName.includes(tableKeywords.value) + ) + } else { + originList.value = [...defaultTableList.value] + } +} + +function handleFilterTableClick() { + showTableSearch.value = !showTableSearch.value + if (!showTableSearch.value) { + tableKeywords.value = '' + originList.value = [...defaultTableList.value] + } +} diff --git a/src/views/OKR/Meeting/MeetingInfo.vue b/src/views/OKR/Meeting/MeetingInfo.vue index d9f58c7..37ee06f 100644 --- a/src/views/OKR/Meeting/MeetingInfo.vue +++ b/src/views/OKR/Meeting/MeetingInfo.vue @@ -113,16 +113,25 @@ - - + +
- +
- - -
- + + + +
{{ form.meetingSummary }}
+
@@ -250,7 +259,9 @@ function handleUserChange() { expectUserOptions.value = userOptions.value.filter((user) => form.value.expectUsers.some((it) => it == user.id) ) - form.value.actualUsers = [...form.value.expectUsers] + if (!isDetail) { + form.value.actualUsers = [...form.value.expectUsers] + } } const router = useRouter()