- 该功能用于将{{'协议包'}}中的 + 该功能用于将协议包中的 物模型属性标识与 平台物模型属性标识进行映射,当两方属性标识不一致时,可在当前页面直接修改映射管理,系统将以映射后的物模型属性进行数据处理。
diff --git a/src/views/device/Instance/Export/index.vue b/src/views/device/Instance/Export/index.vue index 87cf1672..7bb54b6d 100644 --- a/src/views/device/Instance/Export/index.vue +++ b/src/views/device/Instance/Export/index.vue @@ -83,6 +83,10 @@ watch( { immediate: true, deep: true }, ); +const productName = computed(() => { + return productList.value.find(item => item.id === modelRef.product)?.name || '' +}) + const handleOk = async () => { const params = encodeQuery(props.data); // downloadFile( @@ -97,7 +101,7 @@ const handleOk = async () => { if (res) { const blob = new Blob([res], { type: modelRef.fileType }); const url = URL.createObjectURL(blob); - downloadFileByUrl(url, `设备实例`, modelRef.fileType); + downloadFileByUrl(url, `${productName.value ? (productName.value + '下设备') : '设备实例'}`, modelRef.fileType); emit('close'); } }; diff --git a/src/views/device/Instance/Import/file.vue b/src/views/device/Instance/Import/file.vue index f164870e..3c2fa2db 100644 --- a/src/views/device/Instance/Import/file.vue +++ b/src/views/device/Instance/Import/file.vue @@ -1,70 +1,68 @@ -