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