|
|
@@ -209,7 +209,10 @@
|
|
|
import {
|
|
|
ThirdPartyDevice,
|
|
|
ThirdPartyDeviceInfo,
|
|
|
- Transmitter,
|
|
|
+ SendingCard,
|
|
|
+ SendingCardFeatures,
|
|
|
+ ReceivingCard,
|
|
|
+ ReceivingCardFeatures,
|
|
|
ThirdPartyToSensorMap,
|
|
|
SensorToThirdPartyMap,
|
|
|
ThirdPartyToCameraMap
|
|
|
@@ -232,6 +235,7 @@ import {
|
|
|
getGateways,
|
|
|
getScreens,
|
|
|
getSendingCards,
|
|
|
+ getReceivingCards,
|
|
|
getMultifunctionCards,
|
|
|
getSensors,
|
|
|
getPLCs,
|
|
|
@@ -242,6 +246,7 @@ import * as echarts from 'echarts'
|
|
|
import GatewayConfigDialog from '../components/GatewayConfigDialog.vue'
|
|
|
import ScreenConfigDialog from '../components/ScreenConfigDialog.vue'
|
|
|
import SendingCardConfigDialog from '../components/SendingCardConfigDialog.vue'
|
|
|
+import ReceivingCardConfigDialog from '../components/ReceivingCardConfigDialog.vue'
|
|
|
import PlcConfigDialog from '../components/PlcConfigDialog.vue'
|
|
|
import MultifunctionCardConfigDialog from '../components/MultifunctionCardConfigDialog.vue'
|
|
|
import SensorConfigDialog from '../components/SensorConfigDialog.vue'
|
|
|
@@ -346,6 +351,7 @@ export default {
|
|
|
GatewayConfigDialog,
|
|
|
ScreenConfigDialog,
|
|
|
SendingCardConfigDialog,
|
|
|
+ ReceivingCardConfigDialog,
|
|
|
PlcConfigDialog,
|
|
|
MultifunctionCardConfigDialog,
|
|
|
SensorConfigDialog,
|
|
|
@@ -445,6 +451,8 @@ export default {
|
|
|
return 'ScreenConfigDialog'
|
|
|
case ThirdPartyDevice.SENDING_CARD:
|
|
|
return 'SendingCardConfigDialog'
|
|
|
+ case ThirdPartyDevice.RECEIVING_CARD:
|
|
|
+ return 'ReceivingCardConfigDialog'
|
|
|
case ThirdPartyDevice.PLC:
|
|
|
return 'PlcConfigDialog'
|
|
|
case ThirdPartyDevice.MULTI_FUNCTION_CARD:
|
|
|
@@ -517,14 +525,29 @@ export default {
|
|
|
{ prop: 'manufacturerName', label: '厂商' },
|
|
|
{ prop: 'model', label: '型号' },
|
|
|
{ prop: 'identifier', label: '唯一标识' },
|
|
|
- { label: '特性', type: 'tag', render ({ flag }) {
|
|
|
- return [
|
|
|
- { type: flag & Transmitter.IS_ASYNC ? 'success' : 'danger', label: '异步盒' },
|
|
|
- { type: flag & Transmitter.SUPPORT_DETECTION ? 'success' : 'danger', label: '设备监测' },
|
|
|
- { type: flag & Transmitter.SUPPORT_CONTENT_PROTECTION ? 'success' : 'danger', label: '内容保护' },
|
|
|
- { type: flag & Transmitter.RECOVERY_CARD ? 'success' : 'danger', label: '回采卡' }
|
|
|
- ]
|
|
|
- }, width: 364 }
|
|
|
+ { label: '特性', type: 'tag', render: ({ flag }) => SendingCardFeatures.map(({ key, label }) => {
|
|
|
+ return { type: flag & SendingCard[key] ? 'success' : 'danger', label }
|
|
|
+ }), width: 364 }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ case ThirdPartyDevice.RECEIVING_CARD:
|
|
|
+ return {
|
|
|
+ list: getReceivingCards,
|
|
|
+ condition: { boundFlag: 0 },
|
|
|
+ buttons: [
|
|
|
+ { type: 'add', on: this.onAddThirdParty }
|
|
|
+ ],
|
|
|
+ filters: [
|
|
|
+ { key: 'manufacturerKey', type: 'select', placeholder: '厂商', remote: this.getManufacturersByType, value: 'manufacturerKey', label: 'manufacturerName' },
|
|
|
+ { key: 'identifier', type: 'search', placeholder: '唯一标识' }
|
|
|
+ ],
|
|
|
+ cols: [
|
|
|
+ { prop: 'manufacturerName', label: '厂商' },
|
|
|
+ { prop: 'model', label: '型号' },
|
|
|
+ { prop: 'identifier', label: '唯一标识' },
|
|
|
+ { label: '特性', type: 'tag', render: ({ flag }) => ReceivingCardFeatures.map(({ key, label }) => {
|
|
|
+ return { type: flag & ReceivingCard[key] ? 'success' : 'danger', label }
|
|
|
+ }), width: 364 }
|
|
|
]
|
|
|
}
|
|
|
case ThirdPartyDevice.PLC:
|
|
|
@@ -815,6 +838,9 @@ export default {
|
|
|
case ThirdPartyDevice.TRANSLOCATION_SENSOR:
|
|
|
tooltip += `<br/>唯一标识:${instance.identifier}<br/>厂商:${instance.manufacturerName}<br/>型号:${instance.model}`
|
|
|
break
|
|
|
+ case ThirdPartyDevice.RECEIVING_CARD:
|
|
|
+ tooltip += `<br/>唯一标识:${instance.identifier}<br/>厂商:${instance.manufacturerName}<br/>型号:${instance.model}<br/>规格:${instance.rowCount} x ${instance.colCount}`
|
|
|
+ break
|
|
|
case ThirdPartyDevice.GATEWAY:
|
|
|
tooltip += `<br/>唯一标识:${instance.identifier}<br/>厂商:${instance.manufacturerName}<br/>型号:${instance.model}<br/>服务器:${instance.ip}`
|
|
|
break
|