This commit is contained in:
parent
31ac59ccab
commit
776da5634c
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -285,6 +285,8 @@
|
|||
maId: this.codeData.maId,
|
||||
typeId:this.codeData.typeId,
|
||||
outType:4,
|
||||
materialName: codeData.materialName,
|
||||
materialModel: codeData.materialModel,
|
||||
}
|
||||
uni.$emit('paramsReceived', params);
|
||||
// 返回上一个页面
|
||||
|
|
|
|||
Loading…
Reference in New Issue