rt-sim-training-client/src/views/system/deviceManage/editConfigIbp.vue
2020-07-27 15:33:54 +08:00

1125 lines
75 KiB
Vue

<template>
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" top="10vh" width="60%" :before-close="handleClose" center :close-on-click-modal="false">
<data-form ref="dataTop" :form="formTop" :inline="inline" :form-model="formModel" :rules="topRules" />
<el-form ref="formStation" :model="formModel" label-width="220px" :rules="rulesStation" :inline="inline">
<el-form-item label="关联地图:" prop="mapId">
<el-select v-model="mapId" placeholder="请选择" size="small" style="width: 180px" @change="mapIdChange">
<el-option
v-for="item in mapList"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="关联车站:" prop="stationCode">
<el-select v-model="formModel.stationCode" placeholder="请选择" style="width: 180px" size="small">
<el-option
v-for="item in stationList"
:key="item.code"
:label="item.name"
:value="item.code"
/>
</el-select>
</el-form-item>
</el-form>
<div style="height: 485px; overflow-y: auto;">
<el-collapse v-model="activeNames">
<el-collapse-item title="IBP盘AFC闸机配置对象" name="1">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataAfcLeft" :form="formAfc.left" :form-model="formModel.afczjConfig" :rules="rulesAfc" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataAfcRight" :form="formAfc.right" :form-model="formModel.afczjConfig" :rules="rulesAfc" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘电梯和扶梯配置对象" name="2">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataElevatorLeft" :form="formElevator.left" :form-model="formModel.dftConfig" :rules="rulesElevator" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataElevatorRight" :form="formElevator.right" :form-model="formModel.dftConfig" :rules="rulesElevator" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘环境与设备监控配置对象" name="3">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataMonitorLeft" :form="formMonitor.left" :form-model="formModel.hjsbjkConfig" :rules="rulesMonitor" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataMonitorRight" :form="formMonitor.right" :form-model="formModel.hjsbjkConfig" :rules="rulesMonitor" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘门禁配置对象" name="4">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataEgLeft" :form="formEg.left" :form-model="formModel.mjConfig" :rules="rulesEg" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataEgRight" :form="formEg.right" :form-model="formModel.mjConfig" :rules="rulesEg" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘屏蔽门配置对象" name="5">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataPsdLeft" :form="formPsd.left" :form-model="formModel.pbmConfig" :rules="rulesPsd" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataPsdRight" :form="formPsd.right" :form-model="formModel.pbmConfig" :rules="rulesPsd" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘隧道通风配置对象" name="6">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataTunnelLeft" :form="formTunnel.left" :form-model="formModel.sdtfConfig" :rules="rulesTunnel" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataTunnelRight" :form="formTunnel.right" :form-model="formModel.sdtfConfig" :rules="rulesTunnel" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘信号配置对象" name="7">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataSignLeft" :form="formSign.left" :form-model="formModel.xhConfig" :rules="rulesSign" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataSignRight" :form="formSign.right" :form-model="formModel.xhConfig" :rules="rulesSign" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘消火栓泵配置对象" name="8">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataFhLeft" :form="formFh.left" :form-model="formModel.xhsbConfig" :rules="rulesFh" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataFhRight" :form="formFh.right" :form-model="formModel.xhsbConfig" :rules="rulesFh" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘环境与设备监控——站台层配置对象" name="9">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataEemPlatformLeft" :form="formEemPlatform.left" :form-model="formModel.hjsbjkConfig.pfConfig" :rules="rulesEemPlatform" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataEemPlatformRight" :form="formEemPlatform.right" :form-model="formModel.hjsbjkConfig.pfConfig" :rules="rulesEemPlatform" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item title="IBP盘环境与设备监控——站厅层配置对象" name="10">
<el-row :gutter="20">
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输入配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataEemHallLeft" :form="formEemHall.left" :form-model="formModel.hjsbjkConfig.shfConfig" :rules="rulesEemHall" />
</div>
</el-card>
</el-col>
<el-col :span="12">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>输出配置:</span>
</div>
<div style="margin-top: 20px">
<data-form ref="dataEemHallRight" :form="formEemHall.right" :form-model="formModel.hjsbjkConfig.shfConfig" :rules="rulesEemHall" />
</div>
</el-card>
</el-col>
</el-row>
</el-collapse-item>
</el-collapse>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
<el-button @click="handleClose">{{ $t('global.cancel') }}</el-button>
</span>
</el-dialog>
</template>
<script>
import { getDeviceDetail, setIbpConfig} from '@/api/project';
import { deepAssign } from '@/utils/index';
import { getAllMapOnline, getStationListNeedAttendant } from '@/api/jmap/map';
const propMap = {
ribpsd: 'IBP盘试灯按钮',
wibpsdand: 'IBP盘试灯指示灯',
afczjConfig: {
rjjsf: '紧急释放按钮[AFC配置]',
ryskg: '钥匙开关[AFC配置]',
wjjsfand: '紧急释放按钮灯[AFC配置]',
wjjsfztzsd: '紧急释放状态指示灯[AFC配置]',
wxfldzsd: '消防联动指示灯[AFC配置]',
wyxwzsd: '有效位指示灯[AFC配置]'
},
dftConfig: {
rdt01tt: '电梯01停梯按钮[电扶梯配置]',
rft01tt: '扶梯01停梯按钮[电扶梯配置]',
rft02tt: '扶梯02停梯按钮[电扶梯配置]',
rft03tt: '扶梯03停梯按钮[电扶梯配置]',
rft04tt: '扶梯04停梯按钮[电扶梯配置]',
ryskg: '钥匙开关[电扶梯配置]',
wdt01sxzsd: '电梯01上行指示灯[电扶梯配置]',
wdt01ttand: '电梯01停梯按钮灯[电扶梯配置]',
wdt01xxzsd: '电梯01下行指示灯[电扶梯配置]',
wdt01zsd: '电梯01指示灯[电扶梯配置]',
wft01sxzsd: '扶梯01上行指示灯[电扶梯配置]',
wft01ttand: '扶梯01停梯按钮灯[电扶梯配置]',
wft01xxzsd: '扶梯01下行指示灯[电扶梯配置]',
wft01zsd: '扶梯01指示灯[电扶梯配置]',
wft02sxzsd: '扶梯02上行指示灯[电扶梯配置]',
wft02ttand: '扶梯02停梯按钮灯[电扶梯配置]',
wft02xxzsd: '扶梯02下行指示灯[电扶梯配置]',
wft02zsd: '扶梯02指示灯[电扶梯配置]',
wft03sxzsd: '扶梯03上行指示灯[电扶梯配置]',
wft03ttand: '扶梯03停梯按钮灯[电扶梯配置]',
wft03xxzsd: '扶梯03下行指示灯[电扶梯配置]',
wft03zsd: '扶梯03指示灯[电扶梯配置]',
wft04sxzsd: '扶梯04上行指示灯[电扶梯配置]',
wft04ttand: '扶梯04停梯按钮灯[电扶梯配置]',
wft04xxzsd: '扶梯04下行指示灯[电扶梯配置]',
wft04zsd: '扶梯04指示灯[电扶梯配置]',
wyskgzsd: '开关指示灯[电扶梯配置]'
},
hjsbjkConfig: {
rfw: '复位按钮[环境设备监控配置]',
rzhkg: '自动/手动钥匙转换开关[环境设备监控配置]',
wfwand: '复位按钮灯[环境设备监控配置]',
wsdztzsd: '手动状态指示灯[环境设备监控配置]',
wzdztzsd: '自动状态指示灯[环境设备监控配置]',
wzhkgzsd: '自动/手动钥匙转换开关手动位指示灯[环境设备监控配置]',
pfConfig: {
r04kvdykggs: '0.4KV低压开关柜室按钮[站台监控配置]',
r35kvkggs: '35KV开关柜室按钮[站台监控配置]',
rggqhz: '公共区火灾按钮[站台监控配置]',
rkzs: '控制室按钮[站台监控配置]',
rsytxsbshz: '商用通信设备室火灾按钮[站台监控配置]',
rzlbyqs1: '整流变压器室一按钮[站台监控配置]',
rzlbyqs2: '整流变压器室二按钮[站台监控配置]',
rzlkggshz: '直流开关柜室火灾按钮[站台监控配置]',
rzszddzshz: '再生制动电阻室火灾按钮[站台监控配置]',
rzszdkzshz: '再生制动控制室火灾按钮[站台监控配置]',
w35kvkggsand: '35KV开关柜室按钮灯[站台监控配置]',
wggqhzand: '公共区火灾按钮灯[站台监控配置]',
wkzsand: '控制室按钮灯[站台监控配置]',
wr04kvdykggsand: '0.4KV低压开关柜室按钮灯[站台监控配置]',
wsytxsbshzand: '商用通信设备室火灾按钮灯[站台监控配置]',
wzlbyqs1and: '整流变压器室一按钮灯[站台监控配置]',
wzlbyqs2and: '整流变压器室二按钮灯[站台监控配置]',
wzlkggshzand: '直流开关柜室火灾按钮灯[站台监控配置]',
wzszddzshzand: '再生制动电阻室火灾按钮灯[站台监控配置]',
wzszdkzshzand: '再生制动控制室火灾按钮灯[站台监控配置]'
},
shfConfig: {
rczkzshz: '车站控制室火灾按钮[站厅监控配置]',
rggqhz: '公共区火灾按钮[站厅监控配置]',
rydhkdkshz: '右端环控电控室火灾按钮[站厅监控配置]',
rydjfkthz: '右端机房空调火灾按钮[站厅监控配置]',
rydlsjfhz: '右端冷水机房火灾按钮[站厅监控配置]',
rydqyfjhz: '右端其余房间火灾按钮[站厅监控配置]',
rydzlhz: '右端走廊火灾按钮[站厅监控配置]',
rzdhkdkshz: '左端环控电控室火灾按钮[站厅监控配置]',
rzdktjfhz: '左端空调机房火灾按钮[站厅监控配置]',
rzdqyfjhz: '左端其余房间火灾按钮[站厅监控配置]',
wczkzshzand: '车站控制室火灾按钮灯[站厅监控配置]',
wggqhzand: '公共区火灾按钮灯[站厅监控配置]',
wydhkdkshzand: '右端环控电控室火灾按钮灯[站厅监控配置]',
wydjfkthzand: '右端机房空调火灾按钮灯[站厅监控配置]',
wydlsjfhzand: '右端冷水机房火灾按钮灯[站厅监控配置]',
wydqyfjhzand: '右端其余房间火灾按钮灯[站厅监控配置]',
wydzlhzand: '右端走廊火灾按钮灯[站厅监控配置]',
wzdhkdkshzand: '左端环控电控室火灾按钮灯[站厅监控配置]',
wzdktjfhzand: '左端空调机房火灾按钮灯[站厅监控配置]',
wzdqyfjhzand: '左端其余房间火灾按钮灯[站厅监控配置]'
}
},
mjConfig: {
radjjsf: 'A端紧急释放按钮[门禁配置]',
rbdjjsf: 'B端紧急释放按钮[门禁配置]',
wadjjsfand: 'A端紧急释放按钮灯[门禁配置]',
wadjjsfzsdg: 'A端紧急释放绿色指示灯[门禁配置]',
wadjjsfzsdr: 'A端紧急释放红色指示灯[门禁配置]',
wadjjsfzsdy: 'A端紧急释放黄色指示灯[门禁配置]',
wbdjjsfand: 'B端紧急释放按钮灯[门禁配置]',
wbdjjsfzsdg: 'B端紧急释放绿色指示灯[门禁配置]',
wbdjjsfzsdr: 'B端紧急释放红色指示灯[门禁配置]',
wbdjjsfzsdy: 'B端紧急释放黄色指示灯[门禁配置]'
},
pbmConfig: {
rsxczyx: '上行操作允许钥匙开关[屏蔽门配置]',
rsxgm: '上行关门按钮[屏蔽门配置]',
rsxkm: '上行开门按钮[屏蔽门配置]',
rxxczyx: '下行操作允许钥匙开关[屏蔽门配置]',
rxxgm: '下行关门按钮[屏蔽门配置]',
rxxkm: '下行开门按钮[屏蔽门配置]',
wsxczyxzsd: '上行操作允许指示灯[屏蔽门配置]',
wsxgmand: '上行关门按钮灯[屏蔽门配置]',
wsxgmsbzsd: '上行关门锁闭指示灯[屏蔽门配置]',
wsxkmand: '上行开门按钮灯[屏蔽门配置]',
wsxkmdwzsd: '上行开门到位指示灯[屏蔽门配置]',
wxxczyxzsd: '下行操作允许指示灯[屏蔽门配置]',
wxxgmand: '下行关门按钮灯[屏蔽门配置]',
wxxgmsbzsd: '下行关门锁闭指示灯[屏蔽门配置]',
wxxkmand: '下行开门按钮灯[屏蔽门配置]',
wxxkmdwzsd: '下行开门到位指示灯[屏蔽门配置]'
},
sdtfConfig: {
rsxcrdx: '上行出入段线按钮p[隧道通风配置]',
rsxczsdhz: '上行车站隧道火灾按钮[隧道通风配置]',
rsxhz1y: '上行火灾1右按钮[隧道通风配置]',
rsxhz2y: '上行火灾2右按钮[隧道通风配置]',
rsxzc1y: '上行阻塞1右按钮[隧道通风配置]',
rsxzc2y: '上行阻塞2右按钮[隧道通风配置]',
rsxzthz: '上行站台火灾按钮[隧道通风配置]',
rxxcrdx: '下行出入段线按钮[隧道通风配置]',
rxxczsdhz: '下行车站隧道火灾按钮[隧道通风配置]',
rxxhz1y: '下行火灾1右按钮[隧道通风配置]',
rxxhz2y: '下行火灾2右按钮[隧道通风配置]',
rxxzc1y: '下行阻塞1右按钮[隧道通风配置]',
rxxzc2y: '下行阻塞2右按钮[隧道通风配置]',
rxxzthz: '下行站台火灾按钮[隧道通风配置]',
rtcxhz: '停火线火灾按钮[隧道通风配置]',
wsxcrdxand: '上行出入段线按钮灯[隧道通风配置]',
wsxczsdhzand: '上行车站隧道火灾按钮灯[隧道通风配置]',
wsxhz1yand: '上行火灾1右按钮灯[隧道通风配置]',
wsxhz2yand:'上行火灾2右按钮灯[隧道通风配置]',
wsxzc1yand: '上行阻塞1右按钮灯[隧道通风配置]',
wsxzc2yand: '上行阻塞2右按钮灯[隧道通风配置]',
wsxzthzand: '上行站台火灾按钮灯[隧道通风配置]',
wxxcrdxand: '下行出入段线按钮灯[隧道通风配置]',
wxxczsdhzand: '下行车站隧道火灾按钮灯[隧道通风配置]',
wxxhz1yand: '下行火灾1右按钮灯[隧道通风配置]',
wxxhz2yand: '下行火灾2右按钮灯[隧道通风配置]',
wxxzc1yand: '下行阻塞1右按钮灯[隧道通风配置]',
wxxzc2yand: '下行阻塞2右按钮灯[隧道通风配置]',
wxxzthzand: '下行站台火灾按钮灯[隧道通风配置]',
wtcxhzand: '停车线火灾按钮灯[隧道通风配置]'
},
xhConfig: {
rsxjjtc: '上行紧急停车按钮[信号配置]',
rsxjljc: '上行警铃解除按钮[信号配置]',
rsxkc: '上行扣车按钮[信号配置]',
rsxqxjjtc: '上行取消紧急停车按钮[信号配置]',
rsxqxkc: '上行取消扣车按钮[信号配置]',
rsxsd: '上行试灯按钮[信号配置]',
rxxjjtc: '下行紧急停车按钮[信号配置]',
rxxjljc: '下行警铃解除按钮[信号配置]',
rxxkc: '下行扣车按钮[信号配置]',
rxxqxjjtc: '下行取消紧急停车按钮[信号配置]',
rxxqxkc: '下行取消扣车按钮[信号配置]',
rxxsd: '下行试灯按钮[信号配置]',
wfmq: '蜂鸣器[信号配置]',
wsxjjtccand: '上行紧急停车按钮灯[信号配置]',
wsxjjtczsd: '上行紧急停车指示灯[信号配置]',
wsxjljcand: '上行警铃解除按钮灯[信号配置]',
wsxkcand: '上行扣车按钮灯[信号配置]',
wsxkczsd: '上行扣车指示灯[信号配置]',
wsxqxjjtcand: '上行取消紧急停车按钮灯[信号配置]',
wsxqxkcand: '上行取消扣车按钮灯[信号配置]',
wsxqxkczsd: '上行取消扣车指示灯[信号配置]',
wsxsdand: '上行试灯按钮灯[信号配置]',
wxxjjtccand: '下行紧急停车按钮灯[信号配置]',
wxxjjtczsd: '下行紧急停车指示灯[信号配置]',
wxxjljcand: '下行警铃解除按钮灯[信号配置]',
wxxkcand: '下行扣车按钮灯[信号配置]',
wxxkczsd: '下行扣车指示灯[信号配置]',
wxxqxjjtcand: '下行取消紧急停车按钮灯[信号配置]',
wxxqxkcand: '下行取消扣车按钮灯[信号配置]',
wxxqxkczsd: '下行取消扣车指示灯[信号配置]',
wxxsdand: '下行试灯按钮灯[信号配置]'
},
xhsbConfig: {
rqb: '启泵按钮[消火栓泵配置]',
rtb: '停泵按钮[消火栓泵配置]',
rxy: '消音按钮[消火栓泵配置]',
ryskg: '钥匙开关[消火栓泵配置]',
wgzbjzsd: '故障报警指示灯[消火栓泵配置]',
wqband: '启泵按钮灯[消火栓泵配置]',
wqbjl: '启泵警铃蜂鸣器[消火栓泵配置]',
wtband: '停泵按钮灯[消火栓泵配置]',
wxyand: '消音按钮灯[消火栓泵配置]',
wyxwzsd: '有效位指示灯[消火栓泵配置]',
wzdztzsd: '自动状态指示灯[消火栓泵配置]'
}
};
export default {
name: 'EditConfigIbp',
data() {
return {
title: '编辑IBP盘配置',
activeNames: [],
checkCount: 0,
data: null,
formModel: {
afczjConfig: {},
dftConfig: {},
hjsbjkConfig: {
pfConfig: {},
shfConfig: {}
},
mjConfig: {},
pbmConfig: {},
sdtfConfig: {},
xhConfig: {},
xhsbConfig: {}
},
topRules: {
addr: [
{ required: true, message: '请填写网关位地址', trigger: 'blur' }
],
quantity: [
{ required: true, message: '请填写位数量', trigger: 'blur'}
],
ribpsd: [
{ required: true, message: '请填写IBP盘试灯按钮位', trigger: 'blur'},
{ validator: this.validateDevice, trigger: 'blur' }
],
wibpsdand: [
{ required: true, message: '请填写IBP盘试灯指示灯位', trigger: 'blur'},
{ validator: this.validateDevice, trigger: 'blur' }
]
},
rulesStation: {
stationCode: [
{ required: true, message: '请选择关联设备', trigger: 'change' }
]
},
dialogVisible: false,
inline: true,
formAfc:{
left: {
labelWidth: '220px',
items: [
{ prop:'rjjsf', label: '紧急释放按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'ryskg', label: '钥匙开关:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'wjjsfand', label: '紧急释放按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wjjsfztzsd', label: '紧急释放状态指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxfldzsd', label: '消防联动指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wyxwzsd', label: '有效位指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formElevator: {
left: {
labelWidth: '220px',
items: [
{ prop:'rdt01tt', label: '电梯01停梯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rft01tt', label: '扶梯01停梯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rft02tt', label: '扶梯02停梯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rft03tt', label: '扶梯03停梯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rft04tt', label: '扶梯04停梯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'ryskg', label: '钥匙开关:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'wdt01sxzsd', label: '电梯01上行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wdt01ttand', label: '电梯01停梯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wdt01xxzsd', label: '电梯01下行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wdt01zsd', label: '电梯01指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft01sxzsd', label: '扶梯01上行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft01ttand', label: '扶梯01停梯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft01xxzsd', label: '扶梯01下行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft01zsd', label: '扶梯01指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft02sxzsd', label: '扶梯02上行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft02ttand', label: '扶梯02停梯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft02xxzsd', label: '扶梯02下行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft02zsd', label: '扶梯02指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft03sxzsd', label: '扶梯03上行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft03ttand', label: '扶梯03停梯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft03xxzsd', label: '扶梯03下行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft03zsd', label: '扶梯03指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft04sxzsd', label: '扶梯04上行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft04ttand', label: '扶梯04停梯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft04xxzsd', label: '扶梯04下行指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wft04zsd', label: '扶梯04指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wyskgzsd', label: '开关指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formMonitor: {
left: {
labelWidth: '220px',
items: [
{ prop:'rfw', label: '复位按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzhkg', label: '自动/手动钥匙转换开关:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '250px',
items: [
{ prop:'wfwand', label: '复位按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsdztzsd', label: '手动状态指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzdztzsd', label: '自动状态指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzhkgzsd', label: '自动/手动钥匙转换开关手动位指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formEg: {
left: {
labelWidth: '220px',
items: [
{ prop:'radjjsf', label: 'A端紧急释放按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rbdjjsf', label: 'B端紧急释放按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'wadjjsfand', label: 'A端紧急释放按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wadjjsfzsdg', label: 'A端紧急释放绿色指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wadjjsfzsdr', label: 'A端紧急释放红色指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wadjjsfzsdy', label: 'A端紧急释放黄色指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wbdjjsfand', label: 'B端紧急释放按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wbdjjsfzsdg', label: 'B端紧急释放绿色指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wbdjjsfzsdr', label: 'B端紧急释放红色指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wbdjjsfzsdy', label: 'B端紧急释放黄色指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formPsd: {
left: {
labelWidth: '220px',
items: [
{ prop:'rsxczyx', label: '上行操作允许钥匙开关:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxgm', label: '上行关门按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxkm', label: '上行开门按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxczyx', label: '下行操作允许钥匙开关:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxgm', label: '下行关门按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxkm', label: '下行开门按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'wsxczyxzsd', label: '上行操作允许指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxgmand', label: '上行关门按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxgmsbzsd', label: '上行关门锁闭指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxkmand', label: '上行开门按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxkmdwzsd', label: '上行开门到位指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxczyxzsd', label: '下行操作允许指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxgmand', label: '下行关门按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxgmsbzsd', label: '下行关门锁闭指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxkmand', label: '下行开门按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxkmdwzsd', label: '下行开门到位指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formTunnel: {
left: {
labelWidth: '220px',
items: [
{ prop:'rsxcrdx', label: '上行出入段线按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxczsdhz', label: '上行车站隧道火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxhz1y', label: '上行火灾1右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxhz2y', label: '上行火灾2右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxzc1y', label: '上行阻塞1右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxzc2y', label: '上行阻塞2右按钮 :', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxzthz', label: '上行站台火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxcrdx', label: '下行出入段线按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxczsdhz', label: '下行车站隧道火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxhz1y', label: '下行火灾1右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxhz2y', label: '下行火灾2右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxzc1y', label: '下行阻塞1右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxzc2y', label: '下行阻塞2右按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxzthz', label: '下行站台火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop: 'rtcxhz', label: '停火线火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'wsxcrdxand', label: '上行出入段线按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxczsdhzand', label: '上行车站隧道火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxhz1yand', label: '上行火灾1右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxhz2yand', label: '上行火灾2右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxzc1yand', label: '上行阻塞1右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxzc2yand', label: '上行阻塞2右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxzthzand', label: '上行站台火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxcrdxand', label: '下行出入段线按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxczsdhzand', label: '下行车站隧道火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxhz1yand', label: '下行火灾1右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxhz2yand', label: '下行火灾2右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxzc1yand', label: '下行阻塞1右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxzc2yand', label: '下行阻塞2右按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxzthzand', label: '下行站台火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop: 'wtcxhzand', label: '停车线火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formSign: {
left: {
labelWidth: '220px',
items:[
{ prop:'rsxjjtc', label: '上行紧急停车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxjljc', label: '上行警铃解除按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxkc', label: '上行扣车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxqxjjtc', label: '上行取消紧急停车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxqxkc', label: '上行取消扣车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsxsd', label: '上行试灯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxjjtc', label: '下行紧急停车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxjljc', label: '下行警铃解除按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxkc', label: '下行扣车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxqxjjtc', label: '下行取消紧急停车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxqxkc', label: '下行取消扣车按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxxsd', label: '下行试灯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items:[
{ prop:'wfmq', label: '蜂鸣器:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxjjtccand', label: '上行紧急停车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxjjtczsd', label: '上行紧急停车指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxjljcand', label: '上行警铃解除按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxkcand', label: '上行扣车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxkczsd', label: '上行扣车指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxqxjjtcand', label: '上行取消紧急停车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxqxkcand', label: '上行取消扣车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxqxkczsd', label: '上行取消扣车指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsxsdand', label: '上行试灯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxjjtccand', label: '下行紧急停车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxjjtczsd', label: '下行紧急停车指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxjljcand', label: '下行警铃解除按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxkcand', label: '下行扣车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxkczsd', label: '下行扣车指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxqxjjtcand', label: '下行取消紧急停车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxqxkcand', label: '下行取消扣车按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxqxkczsd', label: '下行取消扣车指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxxsdand', label: '下行试灯按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formFh: {
left: {
labelWidth: '220px',
items:[
{ prop:'rqb', label: '启泵按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rtb', label: '停泵按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rxy', label: '消音按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'ryskg', label: '钥匙开关:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items:[
{ prop:'wgzbjzsd', label: '故障报警指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wqband', label: '启泵按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wqbjl', label: '启泵警铃蜂鸣器:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wtband', label: '停泵按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wxyand', label: '消音按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wyxwzsd', label: '有效位指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzdztzsd', label: '自动状态指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formEemPlatform: {
left: {
labelWidth: '220px',
items: [
{ prop:'r04kvdykggs', label: '0.4KV低压开关柜室按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'r35kvkggs', label: '35KV开关柜室按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rggqhz', label: '公共区火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rkzs', label: '控制室按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rsytxsbshz', label: '商用通信设备室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzlbyqs1', label: '整流变压器室一按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzlbyqs2', label: '整流变压器室二按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzlkggshz', label: '直流开关柜室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzszddzshz', label: '再生制动电阻室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzszdkzshz', label: '再生制动控制室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'w35kvkggsand', label: '35KV开关柜室按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wggqhzand', label: '公共区火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wkzsand', label: '控制室按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wr04kvdykggsand', label: '0.4KV低压开关柜室按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wsytxsbshzand', label: '商用通信设备室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzlbyqs1and', label: '整流变压器室一按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzlbyqs2and', label: '整流变压器室二按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzlkggshzand', label: '直流开关柜室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzszddzshzand', label: '再生制动电阻室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzszdkzshzand', label: '再生制动控制室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
formEemHall: {
left: {
labelWidth: '220px',
items: [
{ prop:'rczkzshz', label: '车站控制室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rggqhz', label: '公共区火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rydhkdkshz', label: '右端环控电控室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rydjfkthz', label: '右端机房空调火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rydlsjfhz', label: '右端冷水机房火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rydqyfjhz', label: '右端其余房间火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rydzlhz', label: '右端走廊火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzdhkdkshz', label: '左端环控电控室火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzdktjfhz', label: '左端空调机房火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'rzdqyfjhz', label: '左端其余房间火灾按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
},
right: {
labelWidth: '220px',
items: [
{ prop:'wczkzshzand', label: '车站控制室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wggqhzand', label: '公共区火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wydhkdkshzand', label: '右端环控电控室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wydjfkthzand', label: '右端机房空调火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wydlsjfhzand', label: '右端冷水机房火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wydqyfjhzand', label: '右端其余房间火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wydzlhzand', label: '右端走廊火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzdhkdkshzand', label: '左端环控电控室火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzdktjfhzand', label: '左端空调机房火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true},
{ prop:'wzdqyfjhzand', label: '左端其余房间火灾按钮灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, size: 'small', noControls: true}
]
}
},
rulesAfc: {},
rulesElevator: {},
rulesMonitor: {},
rulesEg: {},
rulesPsd: {},
rulesTunnel: {},
rulesSign: {},
rulesFh: {},
rulesEemPlatform:{},
rulesEemHall: {},
mapId: '',
mapList: [],
stationList: []
};
},
computed: {
formTop() {
return {
labelWidth: '220px',
items: [
{ prop:'addr', label: '网关位地址:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, noControls: true},
{ prop:'quantity', label: '位数量:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, noControls: true},
{ prop: 'ribpsd', label: 'IBP盘试灯按钮:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, noControls: true},
{ prop: 'wibpsdand', label: 'IBP盘试灯指示灯:', type: 'number', min: 0, max: 20000, step: 1, precisionFlag: true, precision: 0, noControls: true }
]
};
}
},
watch: {
},
mounted() {
for (const prop in propMap.afczjConfig) {
this.rulesAfc[prop] = [{ validator: this.validateDevice, config: ['afczjConfig'], trigger: 'blur'}];
}
for (const prop in propMap.dftConfig) {
this.rulesElevator[prop] = [{ validator: this.validateDevice, config: ['dftConfig'], trigger: 'blur' }];
}
for (const prop in propMap.hjsbjkConfig) {
if (typeof propMap.hjsbjkConfig[prop] == 'string') {
this.rulesMonitor[prop] = [{ validator: this.validateDevice, config: ['hjsbjkConfig'], trigger: 'blur' }];
}
}
for (const prop in propMap.mjConfig) {
this.rulesEg[prop] = [{ validator: this.validateDevice, config: ['mjConfig'], trigger: 'blur' }];
}
for (const prop in propMap.pbmConfig) {
this.rulesPsd[prop] = [{ validator: this.validateDevice, config: ['pbmConfig'], trigger: 'blur' }];
}
for (const prop in propMap.sdtfConfig) {
this.rulesTunnel[prop] = [{validator: this.validateDevice, config: ['sdtfConfig'], trigger: 'blur'}];
}
for (const prop in propMap.xhConfig) {
this.rulesSign[prop] = [{validator: this.validateDevice, config: ['xhConfig'], trigger: 'blur'}];
}
for (const prop in propMap.xhsbConfig) {
this.rulesFh[prop] = [{validator: this.validateDevice, config: ['xhsbConfig'], trigger: 'blur'}];
}
for (const prop in propMap.hjsbjkConfig.pfConfig) {
this.rulesEemPlatform[prop] = [{validator: this.validateDevice, config: ['hjsbjkConfig', 'pfConfig'], trigger: 'blur'}];
}
for (const prop in propMap.hjsbjkConfig.shfConfig) {
this.rulesEemHall[prop] = [{validator: this.validateDevice, config: ['hjsbjkConfig', 'shfConfig'], trigger: 'blur'}];
}
},
methods: {
doShow(row) {
this.initData(row);
this.data = row;
getAllMapOnline().then(res => {
if (res.data && res.data.length) {
this.mapList = res.data;
this.mapId = this.mapList[0].id;
this.mapIdChange(this.mapList[0].id);
}
}).catch(() => {
this.$message.error('获取地图列表失败!');
});
this.dialogVisible = true;
},
validateDevice(rule, value, callback) {
const list = [];
let flag = false;
for (const config in propMap) {
if (typeof propMap[config] == 'string') {
if (this.formModel[config] && this.formModel[config] === value) {
list.push(propMap[config]);
}
} else {
for (const prop in propMap[config]) {
if (typeof propMap[config][prop] == 'string') {
if (prop === rule.field && config === rule.config[0] && JSON.stringify(this.formModel[config]) !== '{}' && JSON.stringify(this.formModel[config]) !== '{"pfConfig":{},"shfConfig":{}}' && !value && value !== 0) {
flag = true;
}
if (this.formModel[config][prop] && this.formModel[config][prop] === value) {
list.push(propMap[config][prop]);
}
} else {
for (const childProp in propMap[config][prop]) {
if (typeof propMap[config][prop][childProp] == 'string') {
if (childProp === rule.field && config === rule.config[0] && prop === rule.config[1] && JSON.stringify(this.formModel[config][prop]) !== '{}' && !value) {
flag = true;
}
if (this.formModel[config][prop][childProp] && this.formModel[config][prop][childProp] === value) {
list.push(propMap[config][prop][childProp]);
}
}
}
}
}
}
}
if (!this.formModel.quantity) {
this.$refs.dataTop.validateField('quantity');
}
if (flag) {
callback(new Error('应完整填写一整个配置项'));
} else if (list.length > 1) {
let repeatedValue = '';
list.forEach((item, index) => {
repeatedValue += item;
if (index !== list.length - 1) {
repeatedValue += '与';
}
});
callback(new Error(repeatedValue + '位置重复,请调整!'));
} else if (this.formModel.quantity && value >= this.formModel.quantity) {
callback(new Error('网关位应小于位数量!'));
} else {
callback();
}
},
initData(row) {
getDeviceDetail(row.id).then(resp => {
if (resp.data.config) {
const model = JSON.parse(resp.data.config) || {};
if (!model.afczjConfig) {
model.afczjConfig = {};
}
if (!model.dftConfig) {
model.dftConfig = {};
}
if (!model.hjsbjkConfig) {
model.hjsbjkConfig = {
pfConfig: {},
shfConfig: {}
};
}
if (!model.hjsbjkConfig.pfConfig) {
model.hjsbjkConfig.pfConfig = {};
}
if (!model.hjsbjkConfig.shfConfig) {
model.hjsbjkConfig.shfConfig = {};
}
if (!model.mjConfig) {
model.mjConfig = {};
}
if (!model.pbmConfig) {
model.pbmConfig = {};
}
if (!model.sdtfConfig) {
model.sdtfConfig = {};
}
if (!model.xhConfig) {
model.xhConfig = {};
}
if (!model.xhsbConfig) {
model.xhsbConfig = {};
}
this.formModel = model;
}
}).catch(()=> {
this.$message.error('获取项目设备详情失败!');
});
},
doSave() {
this.checkCount = 0;
const that = this;
this.$refs.dataTop.validateForm(() => { that.checkCount++; });
this.$refs.formStation.validate((valid) => { if (valid)that.checkCount++; });
this.$refs.dataAfcLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataAfcRight.validateForm(() => { that.checkCount++; });
this.$refs.dataElevatorLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataElevatorRight.validateForm(() => { that.checkCount++; });
this.$refs.dataMonitorLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataMonitorRight.validateForm(() => { that.checkCount++; });
this.$refs.dataEgLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataEgRight.validateForm(() => { that.checkCount++; });
this.$refs.dataPsdLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataPsdRight.validateForm(() => { that.checkCount++; });
this.$refs.dataTunnelLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataTunnelRight.validateForm(() => { that.checkCount++; });
this.$refs.dataSignLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataSignRight.validateForm(() => { that.checkCount++; });
this.$refs.dataFhLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataFhRight.validateForm(() => { that.checkCount++; });
this.$refs.dataEemPlatformLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataEemPlatformRight.validateForm(() => { that.checkCount++; });
this.$refs.dataEemHallLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataEemHallRight.validateForm(() => { that.checkCount++; });
if (this.checkCount === 22) {
const model = deepAssign({}, this.formModel);
if (JSON.stringify(model.afczjConfig) === '{}') {
model.afczjConfig = null;
}
if (JSON.stringify(model.dftConfig) === '{}') {
model.dftConfig = null;
}
if (JSON.stringify(model.hjsbjkConfig) === '{"pfConfig":{},"shfConfig":{}}') {
model.hjsbjkConfig = null;
}
if (model.hjsbjkConfig && JSON.stringify(model.hjsbjkConfig.pfConfig) === '{}') {
model.hjsbjkConfig.pfConfig = null;
}
if (model.hjsbjkConfig && JSON.stringify(model.hjsbjkConfig.shfConfig) === '{}') {
model.hjsbjkConfig.shfConfig = null;
}
if (JSON.stringify(model.mjConfig) === '{}') {
model.mjConfig = null;
}
if (JSON.stringify(model.pbmConfig) === '{}') {
model.pbmConfig = null;
}
if (JSON.stringify(model.sdtfConfig) === '{}') {
model.sdtfConfig = null;
}
if (JSON.stringify(model.xhConfig) === '{}') {
model.xhConfig = null;
}
if (JSON.stringify(model.xhsbConfig) === '{}') {
model.xhsbConfig = null;
}
setIbpConfig(this.data.id, model).then(resp => {
this.$message.success('设置IBP网关映射配置成功');
this.handleClose();
this.$emit('reloadTable');
}).catch(error => {
this.$message.error(this.$t('tip.modifyTheFailure') + error.message);
});
}
},
handleClose() {
this.formModel = {
afczjConfig: {},
dftConfig: {},
hjsbjkConfig: {
pfConfig: {},
shfConfig: {}
},
mjConfig: {},
pbmConfig: {},
sdtfConfig: {},
xhConfig: {},
xhsbConfig: {}
};
this.$refs.dataTop.resetForm();
this.$refs.formStation.resetFields();
this.$refs.dataAfcLeft.resetForm();
this.$refs.dataAfcRight.resetForm();
this.$refs.dataElevatorLeft.resetForm();
this.$refs.dataElevatorRight.resetForm();
this.$refs.dataMonitorLeft.resetForm();
this.$refs.dataMonitorRight.resetForm();
this.$refs.dataEgLeft.resetForm();
this.$refs.dataEgRight.resetForm();
this.$refs.dataPsdLeft.resetForm();
this.$refs.dataPsdRight.resetForm();
this.$refs.dataTunnelLeft.resetForm();
this.$refs.dataTunnelRight.resetForm();
this.$refs.dataFhLeft.resetForm();
this.$refs.dataFhRight.resetForm();
this.$refs.dataEemPlatformLeft.resetForm();
this.$refs.dataEemPlatformRight.resetForm();
this.$refs.dataEemHallLeft.resetForm();
this.$refs.dataEemHallRight.resetForm();
this.data = null;
this.activeNames = [];
this.dialogVisible = false;
},
mapIdChange(mapId) {
this.stationList = [];
if (mapId) {
getStationListNeedAttendant(mapId).then(resp => {
if (resp.data && resp.data.length) {
this.stationList = resp.data;
}
}).catch(() => {
this.$message.error('获取车站列表失败');
});
}
}
}
};
</script>
<style scoped>
/deep/
.el-dialog--center .el-dialog__body {
padding: 25px 25px 10px;
}
</style>