删除 旧注释

This commit is contained in:
TimSpan 2024-11-08 17:36:44 +08:00
parent efc96a7eff
commit f0aedc78f8
2 changed files with 2 additions and 37 deletions

View File

@ -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<Item[]>([])
// 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)
// })
</script>

View File

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