Jelajahi Sumber

文件资料库调整

lipenghui 1 bulan lalu
induk
melakukan
f736ae2c3d
2 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 2 0
      src/views/pms/iotinfo/IotInfoForm.vue
  2. 1 0
      src/views/system/tree/index.vue

+ 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,