lipenghui 1 місяць тому
батько
коміт
f736ae2c3d

+ 2 - 0
src/views/pms/iotinfo/IotInfoForm.vue

@@ -141,9 +141,11 @@ const submitForm = async () => {
     if (formType.value === 'create') {
       data.deviceId = props.deviceId
       // data.filePath = data.filePath.join(',')
+      data.type = 'book'
       await IotInfoApi.createIotInfo(data)
       message.success(t('common.createSuccess'))
     } else {
+      data.type = 'book'
       await IotInfoApi.updateIotInfo(data)
       message.success(t('common.updateSuccess'))
     }

+ 1 - 0
src/views/system/tree/index.vue

@@ -262,6 +262,7 @@ const nodeId = ref('')
 const handleFileNodeClick = async (row) => {
   queryParams.classId = row.id
   if (row.type==='device') {
+    deviceId.value = row.originId
     const queryParam = {
       deviceId: row.originId,
       pageNo: 1,