diff --git a/.env.pro b/.env.pro index 118c95f..2ccc67d 100644 --- a/.env.pro +++ b/.env.pro @@ -5,6 +5,11 @@ VITE_DEV=false # 请求路径 VITE_BASE_URL='/crm-api' +# 高德地图key密钥 +# 1寻驾 +VITE_AMAP_KEY=ec6b7ebe38f7ff27126f7088d87a9091 +# 2莳松 +# VITE_AMAP_KEY=9233a9d4ffe95fb335e70834503460fa # 上传路径 VITE_UPLOAD_URL='/crm-api/admin-api/system/file/upload' diff --git a/src/views/OKR/Analysis/index.vue b/src/views/OKR/Analysis/index.vue index 527a952..fb8457f 100644 --- a/src/views/OKR/Analysis/index.vue +++ b/src/views/OKR/Analysis/index.vue @@ -46,6 +46,7 @@ id="okrAnalysisTable" :data="originList" border + :show-summary="!!tableKeywords" :span-method="objectSpanMethod" @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() @@ -343,6 +366,7 @@ function nodeChange(nodeId) { } const originList = ref([]) +const defaultTableList = ref([]) const spanObj = ref([]) function getOkrList() { getAllOkrPage(searchForm.value).then((resp) => { @@ -363,6 +387,7 @@ function getOkrList() { originList.value = [...originList.value, ...arr] } }) + defaultTableList.value = [...originList.value] } }) } @@ -548,6 +573,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()