|
@ -16,7 +16,7 @@ |
|
|
<component ref="ControlComponent" :is="componentMap[DeviceTopics[data.deviceType]]" :isMultiControl="true" |
|
|
<component ref="ControlComponent" :is="componentMap[DeviceTopics[data.deviceType]]" :isMultiControl="true" |
|
|
:selectItems="data.childType" @update:activeIcon="(val) => { this.activeIcon = val }" |
|
|
:selectItems="data.childType" @update:activeIcon="(val) => { this.activeIcon = val }" |
|
|
@update:submitting="(val) => { submitting = val }"></component> |
|
|
@update:submitting="(val) => { submitting = val }"></component> |
|
|
<div class="footer"> |
|
|
<div v-if="hiddenDevices.indexOf(componentMap[DeviceTopics[data.deviceType]]) == -1" class="footer"> |
|
|
<Button @click.native="submitClick" :loading="submitting"> |
|
|
<Button @click.native="submitClick" :loading="submitting"> |
|
|
确认 |
|
|
确认 |
|
|
</Button> |
|
|
</Button> |
|
@ -46,6 +46,7 @@ import { DeviceForMap } from "@screen/pages/Home/components/RoadAndEvents/utils/ |
|
|
|
|
|
|
|
|
const componentMap = { "设备箱": "SmartDeviceParams", "语音广播": "BroadcastParam", "疲劳唤醒": "FatigueWakesUpParam" } //DeviceTopics[deviceType] |
|
|
const componentMap = { "设备箱": "SmartDeviceParams", "语音广播": "BroadcastParam", "疲劳唤醒": "FatigueWakesUpParam" } //DeviceTopics[deviceType] |
|
|
//"情报板": undefined, "行车诱导": undefined, , "合流区": undefined, |
|
|
//"情报板": undefined, "行车诱导": undefined, , "合流区": undefined, |
|
|
|
|
|
const hiddenDevices = ["SmartDeviceParams"]; |
|
|
const controlMulti = Object.keys(componentMap);//6种批量控制 |
|
|
const controlMulti = Object.keys(componentMap);//6种批量控制 |
|
|
const DeviceTopics = {};//6种批量控制 事件专题 {key:label} |
|
|
const DeviceTopics = {};//6种批量控制 事件专题 {key:label} |
|
|
|
|
|
|
|
@ -83,6 +84,7 @@ export default { |
|
|
return { |
|
|
return { |
|
|
activeIcon: null, |
|
|
activeIcon: null, |
|
|
data: {}, |
|
|
data: {}, |
|
|
|
|
|
hiddenDevices, |
|
|
submitting: false, |
|
|
submitting: false, |
|
|
formList: [ |
|
|
formList: [ |
|
|
{ |
|
|
{ |
|
|