From f0aedc78f8468ecb5d84accdf696759f6932c0b9 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Fri, 8 Nov 2024 17:36:44 +0800 Subject: [PATCH 1/2] =?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) => { From 535d509445efaa1db319c2856e35a08d1b1ae597 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Mon, 11 Nov 2024 11:25:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=9B=91=E7=9D=A3=E8=80=83=E6=A0=B8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96=EF=BC=88=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E3=80=81=E6=95=B0=E6=8D=AE=E7=AD=89=E7=AD=89?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dailyInspection/dailyInspection.scss | 13 +-- .../dailyInspection/dailyInspection.vue | 92 +++++++++++-------- .../subPages/select/signature/signature.vue | 17 +++- 3 files changed, 74 insertions(+), 48 deletions(-) diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.scss b/collect_information/src/subPages/police/dailyInspection/dailyInspection.scss index a3676d8..4773363 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.scss +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.scss @@ -1,10 +1,11 @@ -// page { -// background-color: #e9eef4; -// } +page { + position: relative; +} -// .container { -// background-color: #e9eef4; -// } +.container { + width: 100%; + +} .picker { padding: 30rpx 30rpx; diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index 0c5a5ca..c4e5a64 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -37,40 +37,31 @@ - - - - - - + + + + - 考核人员签字 + + 考核人员签字 - - - - - + - 被考评学校负责人 + + 被考评学校负责人 - - - - - - - 确认提交 - - + + + 确认提交 +