This commit is contained in:
bb_pan 2025-06-09 13:23:32 +08:00
parent 31ac59ccab
commit 776da5634c
2 changed files with 15 additions and 3 deletions

View File

@ -243,9 +243,19 @@ onLoad((opt) => {
} }
}) })
onShow(() => { onShow((opt) => {
// getDetailsById() uni.$on('paramsReceived', (data) => {
// getCodeDetailData(queryParams.value.id, queryParams.value.publishTask, queryParams.value.typeId) // if (data.params) {
codeDeviceList.value.push({
...data.params,
checked: false, //
})
//
codeDeviceList.value = [
...new Map(codeDeviceList.value.map((item) => [item.maId, item])).values(),
]
}
})
}) })
const getCodeList = async () => { const getCodeList = async () => {
const params = { const params = {

View File

@ -285,6 +285,8 @@
maId: this.codeData.maId, maId: this.codeData.maId,
typeId:this.codeData.typeId, typeId:this.codeData.typeId,
outType:4, outType:4,
materialName: codeData.materialName,
materialModel: codeData.materialModel,
} }
uni.$emit('paramsReceived', params); uni.$emit('paramsReceived', params);
// 返回上一个页面 // 返回上一个页面