开放plc真实设备

This commit is contained in:
fan 2019-10-23 13:41:33 +08:00
parent d55f740065
commit abd4fbbf64

View File

@ -173,35 +173,35 @@
<el-button icon="el-icon-plus" circle plain @click="addingRoles('bigScreen', '增加大屏')" />
</div>
</div>
<!--<div class="Scheduling">-->
<!--<p class="title">真实设备-<span>{{hasPlc?'[PLC网关在线]':'[PLC网关离线]'}}</span></p>-->
<!--<ul>-->
<!--<li v-for="(nor, index) in stationStandList" :key="index" class="selectPerson">-->
<!--<span>{{ realDeviceType[nor.deviceType] }}</span>-->
<!--<div style="float: right; margin-right: 15px;">-->
<!--<el-select-->
<!--v-model="nor.deviceCode"-->
<!--:placeholder="$t('global.choose')"-->
<!--size="mini"-->
<!--:disabled="userId != roomInfo.creatorId"-->
<!--@change="handleChangeDevice(nor, doorList, stationStandList)"-->
<!--&gt;-->
<!--<el-option-->
<!--v-for="item in doorList"-->
<!--:key="item.code"-->
<!--:label="item.name"-->
<!--:value="item.code"-->
<!--:disabled="item.disabled"-->
<!--style="margin-left: 10px"-->
<!--/>-->
<!--</el-select>-->
<!--</div>-->
<!--</li>-->
<!--</ul>-->
<!--<div v-if="userId == roomInfo.creatorId" class="add-box">-->
<!--<el-button icon="el-icon-plus" circle plain @click="addingDevice" />-->
<!--</div>-->
<!--</div>-->
<div class="Scheduling">
<p class="title">真实设备-<span>{{ hasPlc?'[PLC网关在线]':'[PLC网关离线]' }}</span></p>
<ul>
<li v-for="(nor, index) in stationStandList" :key="index" class="selectPerson">
<span>{{ realDeviceType[nor.deviceType] }}</span>
<div style="float: right; margin-right: 15px;">
<el-select
v-model="nor.deviceCode"
:placeholder="$t('global.choose')"
size="mini"
:disabled="userId != roomInfo.creatorId"
@change="handleChangeDevice(nor, doorList, stationStandList)"
>
<el-option
v-for="item in doorList"
:key="item.code"
:label="item.name"
:value="item.code"
:disabled="item.disabled"
style="margin-left: 10px"
/>
</el-select>
</div>
</li>
</ul>
<div v-if="userId == roomInfo.creatorId && hasPlc" class="add-box">
<el-button icon="el-icon-plus" circle plain @click="addingDevice" />
</div>
</div>
</div>
</div>
<div class="start-box">
@ -622,7 +622,7 @@ export default {
this.stationList = resp.data;
this.computePermissionRest();
//
// this.handleDoorList(res.data.mapId, resp.data);
this.handleDoorList(res.data.mapId, resp.data);
},
// list Admin Instructor Dispatcher Attendant Audience Driver Repair IBP IBP
async getUserList() {