删除 旧注释
This commit is contained in:
parent
efc96a7eff
commit
f0aedc78f8
|
@ -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>
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue