rt-sim-training-client/src/views/system/deviceManage/editConfigIbp.vue

1122 lines
75 KiB
Vue
Raw Normal View History

2020-07-16 13:31:05 +08:00
<template>
2020-07-17 13:05:18 +08:00
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" top="10vh" width="60%" :before-close="handleClose" center :close-on-click-modal="false">
2020-07-16 19:11:20 +08:00
<data-form ref="dataTop" :form="formTop" :inline="inline" :form-model="formModel" :rules="topRules" />
2020-07-17 16:35:24 +08:00
<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>
2020-07-17 13:05:18 +08:00
<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">
2020-07-17 17:20:32 +08:00
<data-form ref="dataSignLeft" :form="formSign.left" :form-model="formModel.xhConfig" :rules="rulesSign" />
2020-07-17 13:05:18 +08:00
</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">
2020-07-17 17:20:32 +08:00
<data-form ref="dataSignRight" :form="formSign.right" :form-model="formModel.xhConfig" :rules="rulesSign" />
2020-07-17 13:05:18 +08:00
</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>
2020-07-16 13:31:05 +08:00
<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';
2020-07-16 19:11:20 +08:00
import { deepAssign } from '@/utils/index';
2020-07-17 16:35:24 +08:00
import { getAllMapOnline, getStationListNeedAttendant } from '@/api/jmap/map';
2020-07-17 13:05:18 +08:00
const propMap = {
2020-07-17 14:32:33 +08:00
addr: '网关位地址',
ribpsd: 'IBP盘试灯按钮',
wibpsdand: 'IBP盘试灯指示灯',
2020-07-17 13:05:18 +08:00
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: '下行站台火灾按钮[隧道通风配置]',
wsxcrdxand: '上行出入段线按钮灯[隧道通风配置]',
wsxczsdhzand: '上行车站隧道火灾按钮灯[隧道通风配置]',
wsxhz1yand: '上行火灾1右按钮灯[隧道通风配置]',
wsxhz2yand:'上行火灾2右按钮灯[隧道通风配置]',
wsxzc1yand: '上行阻塞1右按钮灯[隧道通风配置]',
wsxzc2yand: '上行阻塞2右按钮灯[隧道通风配置]',
wsxzthzand: '上行站台火灾按钮灯[隧道通风配置]',
wxxcrdxand: '下行出入段线按钮灯[隧道通风配置]',
wxxczsdhzand: '下行车站隧道火灾按钮灯[隧道通风配置]',
wxxhz1yand: '下行火灾1右按钮灯[隧道通风配置]',
wxxhz2yand: '下行火灾2右按钮灯[隧道通风配置]',
wxxzc1yand: '下行阻塞1右按钮灯[隧道通风配置]',
wxxzc2yand: '下行阻塞2右按钮灯[隧道通风配置]',
wxxzthzand: '下行站台火灾按钮灯[隧道通风配置]'
},
xhConfig: {
rsxjjtc: '上行紧急停车按钮[信号配置]',
rsxjljc: '上行警铃解除按钮[信号配置]',
rsxkc: '上行扣车按钮[信号配置]',
rsxqxjjtc: '上行取消紧急停车按钮[信号配置]',
rsxqxkc: '上行取消扣车按钮[信号配置]',
rsxsd: '上行试灯按钮[信号配置]',
rxxjjtc: '下行紧急停车按钮[信号配置]',
rxxjljc: '下行警铃解除按钮[信号配置]',
rxxkc: '下行扣车按钮[信号配置]',
rxxqxjjtc: '下行取消紧急停车按钮[信号配置]',
rxxqxkc: '下行取消扣车按钮[信号配置]',
rxxsd: '下行试灯按钮[信号配置]',
wfmq: '蜂鸣器[信号配置]',
wsxjjtccand: '上行紧急停车按钮灯[信号配置]',
2020-07-20 16:54:10 +08:00
wsxjjtczsd: '上行取消紧急停车指示灯[信号配置]',
2020-07-17 13:05:18 +08:00
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: '自动状态指示灯[消火栓泵配置]'
}
};
2020-07-16 13:31:05 +08:00
export default {
name: 'EditConfigIbp',
data() {
return {
title: '编辑IBP盘配置',
2020-07-17 16:35:24 +08:00
activeNames: [],
2020-07-16 19:11:20 +08:00
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: [
2020-07-17 17:20:32 +08:00
{ required: true, message: '请填写IBP盘试灯按钮位', trigger: 'blur'},
{ validator: this.validateDevice, trigger: 'blur' }
2020-07-16 19:11:20 +08:00
],
wibpsdand: [
2020-07-17 17:20:32 +08:00
{ required: true, message: '请填写IBP盘试灯指示灯位', trigger: 'blur'},
{ validator: this.validateDevice, trigger: 'blur' }
2020-07-16 19:11:20 +08:00
]
},
2020-07-17 16:35:24 +08:00
rulesStation: {
stationCode: [
{ required: true, message: '请选择关联设备', trigger: 'change' }
]
},
2020-07-16 13:31:05 +08:00
dialogVisible: false,
2020-07-16 19:11:20 +08:00
inline: true,
formAfc:{
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formElevator: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formMonitor: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
2020-07-17 13:05:18 +08:00
labelWidth: '250px',
2020-07-16 19:11:20 +08:00
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formEg: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formPsd: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formTunnel: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formSign: {
left: {
labelWidth: '220px',
items:[
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items:[
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formFh: {
left: {
labelWidth: '220px',
items:[
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items:[
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formEemPlatform: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
},
formEemHall: {
left: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
},
right: {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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}
2020-07-16 19:11:20 +08:00
]
}
2020-07-17 13:05:18 +08:00
},
rulesAfc: {},
rulesElevator: {},
rulesMonitor: {},
rulesEg: {},
rulesPsd: {},
rulesTunnel: {},
rulesSign: {},
rulesFh: {},
rulesEemPlatform:{},
2020-07-17 16:35:24 +08:00
rulesEemHall: {},
mapId: '',
mapList: [],
stationList: []
2020-07-16 13:31:05 +08:00
};
},
computed: {
2020-07-16 19:11:20 +08:00
formTop() {
return {
labelWidth: '220px',
items: [
2020-07-17 14:32:33 +08:00
{ 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 }
2020-07-16 19:11:20 +08:00
]
};
}
},
watch: {
2020-07-16 13:31:05 +08:00
},
2020-07-17 13:05:18 +08:00
mounted() {
for (const prop in propMap.afczjConfig) {
2020-07-17 14:32:33 +08:00
this.rulesAfc[prop] = [{ validator: this.validateDevice, config: ['afczjConfig'], trigger: 'blur'}];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.dftConfig) {
2020-07-17 14:32:33 +08:00
this.rulesElevator[prop] = [{ validator: this.validateDevice, config: ['dftConfig'], trigger: 'blur' }];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.hjsbjkConfig) {
if (typeof propMap.hjsbjkConfig[prop] == 'string') {
2020-07-17 14:32:33 +08:00
this.rulesMonitor[prop] = [{ validator: this.validateDevice, config: ['hjsbjkConfig'], trigger: 'blur' }];
2020-07-17 13:05:18 +08:00
}
}
for (const prop in propMap.mjConfig) {
2020-07-17 14:32:33 +08:00
this.rulesEg[prop] = [{ validator: this.validateDevice, config: ['mjConfig'], trigger: 'blur' }];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.pbmConfig) {
2020-07-17 14:32:33 +08:00
this.rulesPsd[prop] = [{ validator: this.validateDevice, config: ['pbmConfig'], trigger: 'blur' }];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.sdtfConfig) {
2020-07-17 14:32:33 +08:00
this.rulesTunnel[prop] = [{validator: this.validateDevice, config: ['sdtfConfig'], trigger: 'blur'}];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.xhConfig) {
2020-07-17 14:32:33 +08:00
this.rulesSign[prop] = [{validator: this.validateDevice, config: ['xhConfig'], trigger: 'blur'}];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.xhsbConfig) {
2020-07-17 14:32:33 +08:00
this.rulesFh[prop] = [{validator: this.validateDevice, config: ['xhsbConfig'], trigger: 'blur'}];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.hjsbjkConfig.pfConfig) {
2020-07-17 14:32:33 +08:00
this.rulesEemPlatform[prop] = [{validator: this.validateDevice, config: ['hjsbjkConfig', 'pfConfig'], trigger: 'blur'}];
2020-07-17 13:05:18 +08:00
}
for (const prop in propMap.hjsbjkConfig.shfConfig) {
2020-07-17 14:32:33 +08:00
this.rulesEemHall[prop] = [{validator: this.validateDevice, config: ['hjsbjkConfig', 'shfConfig'], trigger: 'blur'}];
2020-07-17 13:05:18 +08:00
}
},
2020-07-16 13:31:05 +08:00
methods: {
2020-07-16 19:11:20 +08:00
doShow(row) {
this.initData(row);
this.data = row;
2020-07-17 16:35:24 +08:00
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('获取地图列表失败!');
});
2020-07-16 13:31:05 +08:00
this.dialogVisible = true;
},
2020-07-17 13:05:18 +08:00
validateDevice(rule, value, callback) {
const list = [];
2020-07-17 14:32:33 +08:00
let flag = false;
2020-07-17 13:05:18 +08:00
for (const config in propMap) {
2020-07-17 14:32:33 +08:00
if (typeof propMap[config] == 'string') {
if (this.formModel[config] && this.formModel[config] === value) {
list.push(propMap[config]);
}
2020-07-17 16:35:24 +08:00
} 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) {
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]);
}
2020-07-17 13:05:18 +08:00
}
}
}
}
}
}
if (!this.formModel.quantity) {
this.$refs.dataTop.validateField('quantity');
}
2020-07-17 14:32:33 +08:00
if (flag) {
callback(new Error('应完整填写一整个配置项'));
} else if (list.length > 1) {
2020-07-17 13:05:18 +08:00
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();
}
},
2020-07-16 13:31:05 +08:00
initData(row) {
getDeviceDetail(row.id).then(resp => {
if (resp.data.config) {
2020-07-16 19:11:20 +08:00
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;
2020-07-16 13:31:05 +08:00
}
}).catch(()=> {
this.$message.error('获取项目设备详情失败!');
});
},
doSave() {
2020-07-16 19:11:20 +08:00
this.checkCount = 0;
const that = this;
this.$refs.dataTop.validateForm(() => { that.checkCount++; });
2020-07-17 16:35:24 +08:00
this.$refs.formStation.validate((valid) => { if (valid)that.checkCount++; });
2020-07-16 19:11:20 +08:00
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++; });
2020-07-17 17:20:32 +08:00
this.$refs.dataSignLeft.validateForm(() => { that.checkCount++; });
this.$refs.dataSignRight.validateForm(() => { that.checkCount++; });
2020-07-16 19:11:20 +08:00
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++; });
2020-07-17 17:20:32 +08:00
if (this.checkCount === 22) {
2020-07-17 14:32:33 +08:00
const model = deepAssign({}, this.formModel);
if (JSON.stringify(model.afczjConfig) === '{}') {
model.afczjConfig = null;
}
if (JSON.stringify(model.dftConfig) === '{}') {
model.dftConfig = null;
}
2020-07-17 17:20:32 +08:00
if (JSON.stringify(model.hjsbjkConfig) === '{"pfConfig":{},"shfConfig":{}}') {
2020-07-17 14:32:33 +08:00
model.hjsbjkConfig = null;
2020-07-17 17:20:32 +08:00
}
if (JSON.stringify(model.hjsbjkConfig.pfConfig) === '{}') {
2020-07-17 14:32:33 +08:00
model.hjsbjkConfig.pfConfig = null;
2020-07-17 17:20:32 +08:00
}
if (JSON.stringify(model.hjsbjkConfig.shfConfig) === '{}') {
2020-07-17 14:32:33 +08:00
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);
});
}
2020-07-16 13:31:05 +08:00
},
handleClose() {
2020-07-16 19:11:20 +08:00
this.formModel = {
afczjConfig: {},
dftConfig: {},
hjsbjkConfig: {
pfConfig: {},
shfConfig: {}
},
mjConfig: {},
pbmConfig: {},
sdtfConfig: {},
xhConfig: {},
xhsbConfig: {}
};
2020-07-17 14:32:33 +08:00
this.$refs.dataTop.resetForm();
2020-07-17 16:35:24 +08:00
this.$refs.formStation.resetFields();
2020-07-17 14:32:33 +08:00
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();
2020-07-16 19:11:20 +08:00
this.data = null;
2020-07-17 17:20:32 +08:00
this.activeNames = [];
2020-07-16 13:31:05 +08:00
this.dialogVisible = false;
2020-07-17 16:35:24 +08:00
},
mapIdChange(mapId) {
this.stationList = [];
if (mapId) {
getStationListNeedAttendant(mapId).then(resp => {
if (resp.data && resp.data.length) {
this.stationList = resp.data;
}
}).catch(() => {
this.$message.error('获取车站列表失败');
});
}
2020-07-16 13:31:05 +08:00
}
}
};
</script>
<style scoped>
2020-07-17 13:05:18 +08:00
/deep/
.el-dialog--center .el-dialog__body {
padding: 25px 25px 10px;
}
2020-07-16 13:31:05 +08:00
</style>