...
|
...
|
@@ -15,7 +15,11 @@ |
15
|
15
|
<Tabs.TabPane key="topic" tab="Topic">
|
16
|
16
|
<TopicPanel />
|
17
|
17
|
</Tabs.TabPane>
|
18
|
|
- <Tabs.TabPane key="modelOfMatter" tab="物模型管理">
|
|
18
|
+ <Tabs.TabPane
|
|
19
|
+ v-if="record?.profileData?.transportConfiguration?.type !== TransportTypeEnum.GBT28181"
|
|
20
|
+ key="modelOfMatter"
|
|
21
|
+ tab="物模型管理"
|
|
22
|
+ >
|
19
|
23
|
<PhysicalModelManagementStep :record="record" />
|
20
|
24
|
</Tabs.TabPane>
|
21
|
25
|
</Tabs>
|
...
|
...
|
@@ -28,10 +32,11 @@ |
28
|
32
|
import PhysicalModelManagementStep from './step/PhysicalModelManagementStep.vue';
|
29
|
33
|
import { nextTick, ref, unref } from 'vue';
|
30
|
34
|
import { deviceConfigGetDetail } from '/@/api/device/deviceConfigApi';
|
31
|
|
- import { DeviceRecord } from '/@/api/device/model/deviceModel';
|
32
|
35
|
import TopicPanel from './step/TopicPanel.vue';
|
33
|
36
|
import ProductDescription from './components/ProductDescription.vue';
|
34
|
37
|
import { TransportDescription } from './components/TransportDescript';
|
|
38
|
+ import { DeviceProfileDetail } from '/@/api/device/model/deviceConfigModel';
|
|
39
|
+ import { TransportTypeEnum } from '/@/enums/deviceEnum';
|
35
|
40
|
|
36
|
41
|
defineEmits(['register']);
|
37
|
42
|
|
...
|
...
|
@@ -39,7 +44,7 @@ |
39
|
44
|
|
40
|
45
|
const activeKey = ref<ActiveKey>('modelOfMatter');
|
41
|
46
|
|
42
|
|
- const record = ref<DeviceRecord>({} as unknown as DeviceRecord);
|
|
47
|
+ const record = ref<DeviceProfileDetail>({} as unknown as DeviceProfileDetail);
|
43
|
48
|
|
44
|
49
|
const DevConStRef = ref<InstanceType<typeof ProductDescription>>();
|
45
|
50
|
const TransConStRef = ref<InstanceType<typeof TransportConfigurationStep>>();
|
...
|
...
|
@@ -52,7 +57,7 @@ |
52
|
57
|
unref(TransConStRef)?.setFormData(res);
|
53
|
58
|
};
|
54
|
59
|
|
55
|
|
- const [register, {}] = useDrawerInner(async (data: { record: DeviceRecord }) => {
|
|
60
|
+ const [register, {}] = useDrawerInner(async (data: { record: DeviceProfileDetail }) => {
|
56
|
61
|
activeKey.value = 'product';
|
57
|
62
|
record.value = data.record;
|
58
|
63
|
record.value = await deviceConfigGetDetail(data.record.id);
|
...
|
...
|
|