Commit e65ddcb783a913512ecc20922bc722325b8ad9b4

Authored by ww
1 parent 8df1fba8

feat: if device transportType is TCP will disabled properites panel

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="p-style"> 2 <div class="p-style">
3 <BasicTable 3 <BasicTable
4 :rowSelection="{ type: 'checkbox' }" 4 :rowSelection="{ type: 'checkbox' }"
5 - class="bg-gray-100" 5 + class="bg-gray-100 dark:bg-dark-900"
6 :clickToRowSelect="false" 6 :clickToRowSelect="false"
7 @register="registerTable" 7 @register="registerTable"
8 > 8 >
@@ -24,7 +24,11 @@ @@ -24,7 +24,11 @@
24 :size="size" 24 :size="size"
25 > 25 >
26 <TabPane :key="FunctionType.PROPERTIES" tab="属性" /> 26 <TabPane :key="FunctionType.PROPERTIES" tab="属性" />
27 - <TabPane :key="FunctionType.SERVICE" tab="服务" /> 27 + <TabPane
  28 + :key="FunctionType.SERVICE"
  29 + :disabled="$props.record.transportType === 'TCP'"
  30 + tab="服务"
  31 + />
28 <TabPane 32 <TabPane
29 :key="FunctionType.EVENTS" 33 :key="FunctionType.EVENTS"
30 tab="事件" 34 tab="事件"