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(() => {
// getDetailsById()
// getCodeDetailData(queryParams.value.id, queryParams.value.publishTask, queryParams.value.typeId) //
onShow((opt) => {
uni.$on('paramsReceived', (data) => {
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 params = {

View File

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