From f0aedc78f8468ecb5d84accdf696759f6932c0b9 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Fri, 8 Nov 2024 17:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E6=97=A7=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dailyInspection/dailyInspection.vue | 26 ++----------------- .../subPages/select/dailyLife/dailyLife.vue | 13 ---------- 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index 46aae12..0c5a5ca 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -87,15 +87,7 @@ const base64_1 = computed(() => store.get_base64_1) const base64_2 = computed(() => store.get_base64_2) const currentCkProjectId = ref('') const submitData = ref([]) -// watch( -// daily, -// (newData) => { -// console.log('watch_______________', newData) -// if (newData.length > 0) starRating.value = newData -// submitData.value = newData -// }, -// { immediate: true } -// ) + const _form = reactive({ enterprisesUnitId: '', //企事业单位id ckProjectId: '', //考核项目 @@ -129,15 +121,6 @@ const Onrating = function (name: string, snowFlakeId: string) { let index = starRating.value.findIndex((item) => item.snowFlakeId === snowFlakeId) Taro.navigateTo({ url: `/subPages/select/dailyLife/dailyLife?name=${name}&index=${index}`, - // url: `/subPages/select/dailyLife/dailyLife`, - // success: function (res) { - // try { - // if (process.env.TARO_ENV === 'weapp') { - // res.eventChannel.emit('starRating', { data: selectedItemList }) - // } - // } catch (error) { - // } - // }, }) } interface UnitEnterprisesUnitList { @@ -311,7 +294,7 @@ const onSubmit = async function () { console.log('🚀 ~ onSubmit ~ result:', result) Taro.hideLoading() store.dailyinspectionList([]) //清空数据 - assessmentRecordDetails.value = [] + assessmentRecordDetails.value = [] //清空数据 assessmentCriteriaRulesByCkProjectId(currentCkProjectId.value) //重新获取数据 if (result.code === 200) { Taro.showToast({ @@ -324,9 +307,4 @@ const onSubmit = async function () { _showToast(result.message) } } - -// useDidShow(() => { -// // 测试 pinia 数据是否更新 -// console.log('onShow_______________测试 pinia 数据是否更新', submitData.value) -// }) diff --git a/collect_information/src/subPages/select/dailyLife/dailyLife.vue b/collect_information/src/subPages/select/dailyLife/dailyLife.vue index 7b8d1a8..25d9754 100644 --- a/collect_information/src/subPages/select/dailyLife/dailyLife.vue +++ b/collect_information/src/subPages/select/dailyLife/dailyLife.vue @@ -44,23 +44,10 @@ useLoad((options) => { }) findIndex.value = options.index - // console.log('starRating.value_______________', starRating.value) - - // if (process.env.TARO_ENV === 'weapp') { - // const instance = Taro.getCurrentInstance() - // const eventChannel = instance.page.getOpenerEventChannel() - // eventChannel.on('starRating', function (data) { - // Taro.setNavigationBarTitle({ - // title: data.data.name, - // }) - // airdefenceEnumdata.value = [...data.data.itemList] - // }) - // } }) const daily = computed(() => store.getdailyinspection) - watch( daily, (newData) => {