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) => {