From 44d49bbe4065c4e2f7ecaebf87c701118a46e6a4 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Tue, 26 Nov 2024 09:21:09 +0800 Subject: [PATCH] Update dailyInspection.vue --- .../dailyInspection/dailyInspection.vue | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index 2e59cc7..5d3a5d0 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -114,7 +114,7 @@ import { ref, computed, reactive, watch } from 'vue' import api from '@/request/index' import { useDailyStore } from '@/store/daily' -const picker_search = ref() +// const picker_search = ref() const starRating = ref([]) const store = useDailyStore() const daily = computed(() => store.getdailyinspection) @@ -166,7 +166,7 @@ const assessmentCriteriaRulesByCkProjectId = async function (ckProjectId) { // title: '加载中...', // mask: true, // }) - const res = await api.get(`/m2/sa/assessmentCriteriaRulesByCkProjectId`, { ckProjectId }) + const res = await api.get(`/mp/sa/assessmentCriteriaRulesByCkProjectId`, { ckProjectId }) res.data?.forEach((item) => { item.currentScore = 0 @@ -203,7 +203,7 @@ const assessmentCriteriaRulesByCkProjectId = async function (ckProjectId) { const selectorCheckedType = ref('') const selectorType = ref() const ckProjectListByType = async function (type) { - const res = await api.get(`/m2/sa/ckProjectListByType`, { type }) + const res = await api.get(`/mp/sa/ckProjectListByType`, { type }) console.log(res.data) if (res.data?.length === 0) { @@ -229,18 +229,18 @@ const onChangeType = function (e: any) { const selector = ref() const selectorCopy = ref() -const selectorChecked = ref('') -const onChange = function (e: any) { - try { - let index = Number(e.detail.value) - selectorChecked.value = selector.value?.[index].label as string - let type = selector.value?.[index].extData.type.value - ckProjectListByType(type) - _form.enterprisesUnitId = selector.value?.[index].value as string - } catch (error) { - console.log('🚀 ~ onChange ~ error:', error) - } -} +// const selectorChecked = ref('') +// const onChange = function (e: any) { +// try { +// let index = Number(e.detail.value) +// selectorChecked.value = selector.value?.[index].label as string +// let type = selector.value?.[index].extData.type.value +// ckProjectListByType(type) +// _form.enterprisesUnitId = selector.value?.[index].value as string +// } catch (error) { +// console.log('🚀 ~ onChange ~ error:', error) +// } +// } const getUnitEnterprisesUnitList = async function () { const res = await api.get(`/policeIndex/getUnitEnterprisesUnitList`) @@ -326,7 +326,7 @@ const onSubmit = async function () { } Object.assign(assessmentRecordParams, _form) assessmentRecordParams.assessmentRecordDetails = [...assessmentRecordDetails.value] - const result = await api.post('/m2/sa/submitAssessmentRecord', assessmentRecordParams) + const result = await api.post('/mp/sa/submitAssessmentRecord', assessmentRecordParams) clearData() //清空数据 if (result.code === 200) {