From ea04387b581c015af018e4685ae94e6fbd9d250c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E5=85=B8=E5=8D=93?= Date: Mon, 21 Jul 2025 14:49:45 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 10244 -> 10244 bytes components/selectJobs/selectJobs.vue | 22 ++-- components/tabbar/midell-box.vue | 144 ++++++++++++++----------- hook/useRealtimeRecorder.js | 2 +- packageA/pages/jobExpect/jobExpect.vue | 7 ++ pages/chat/components/ai-paging.vue | 2 +- pages/index/components/index-one.vue | 33 +++--- pages/index/index.vue | 6 +- pages/nearby/components/four.vue | 10 +- pages/nearby/components/one.vue | 10 +- pages/nearby/components/three.vue | 10 +- pages/nearby/components/two.vue | 10 +- static/.DS_Store | Bin 10244 -> 10244 bytes stores/useReadMsg.js | 23 +++- unpackage/.DS_Store | Bin 6148 -> 6148 bytes unpackage/dist/.DS_Store | Bin 6148 -> 6148 bytes unpackage/dist/build/.DS_Store | Bin 6148 -> 6148 bytes 17 files changed, 171 insertions(+), 108 deletions(-) diff --git a/.DS_Store b/.DS_Store index 24717fe1170c7a18c8afac867a808f37029a28c6..7e6cd5e5552652596461862fc32fb3c19c60dd7f 100644 GIT binary patch delta 310 zcmbV`ze~eF9L4($sZsRm-6fYJ7t>ZM8AM{hIw-Ezv021F!2h7As~rk%QhAeuUEKY_ zxd}yZ6hT1{1h)M z&6JK~CGZp1kp_p;?YzCxT+i3=n#33fOL&ZZOcr)<84A0VJUM6m%z8~({pU0E^!N{o CRa`Fs delta 325 zcmb`BF-yZh97pdTiKS@LyGt$?F4|O-f>n?p0d;b5)j&60#10}jI4ExIQa6XfZ*a0p zmktifErNoRgZKqRT-==8yO|H+{&?^8i+(ZKqwJx0s!@hnevca|FyS6PxsMkq?1YDe zsZgLUchFM;=W=n{IcAKyxRp(Zy7pDZgi$2$8$?J9w_)fKHnoSQYT+y9I8-Sf6JZA` zpi<&u9IfG*2Qz2vf*r9_cEUPkF~v``P*z|*gZH(sjp_H)x{JUc-4e9>l8ru5m4+~&m AB>(^b diff --git a/components/selectJobs/selectJobs.vue b/components/selectJobs/selectJobs.vue index 98468f3..22c6aac 100644 --- a/components/selectJobs/selectJobs.vue +++ b/components/selectJobs/selectJobs.vue @@ -58,9 +58,9 @@ const state = reactive({ visible: false, }); -onMounted(() => { - serchforIt(); -}); +// onMounted(() => { +// serchforIt(); +// }); // 统一处理二维数组格式 const processedListData = computed(() => { @@ -82,11 +82,11 @@ const open = (newConfig = {}) => { rowLabel: configRowLabel = 'label', rowKey: configRowKey = 'value', maskClick: configMaskClick = false, - defaultIndex = [], + defaultId = '', } = newConfig; reset(); - serchforIt(); + serchforIt(defaultId); if (configTitle) title.value = configTitle; if (typeof success === 'function') confirmCallback.value = success; @@ -143,11 +143,13 @@ const handleClick = async (callback) => { console.error('confirmCallback 执行出错:', error); } }; -function serchforIt() { +function serchforIt(defaultId) { if (state.stations.length) { - const ids = userInfo.value.jobTitleId.split(',').map((id) => Number(id)); + const ids = defaultId + ? defaultId.split(',').map((id) => Number(id)) + : userInfo.value.jobTitleId.split(',').map((id) => Number(id)); count.value = ids.length; - state.jobTitleId = userInfo.value.jobTitleId; + state.jobTitleId = defaultId ? defaultId : userInfo.value.jobTitleId; setCheckedNodes(state.stations, ids); state.visible = true; return; @@ -166,14 +168,14 @@ function serchforIt() { const reset = () => { maskClick.value = false; - confirmCallback.value = null; - cancelCallback.value = null; changeCallback.value = null; listData.value = []; selectedIndex.value = [0, 0, 0]; rowLabel.value = 'label'; rowKey.value = 'value'; selectedItems.value = []; + JobsIdsValue.value = ''; + JobsLabelValue.value = ''; }; // 暴露方法给父组件 diff --git a/components/tabbar/midell-box.vue b/components/tabbar/midell-box.vue index a74d66d..e12d50b 100644 --- a/components/tabbar/midell-box.vue +++ b/components/tabbar/midell-box.vue @@ -10,6 +10,7 @@ > + {{ item.badge }} {{ item.text }} @@ -17,77 +18,94 @@ -