客户端调整

This commit is contained in:
fan 2023-05-12 13:48:18 +08:00
parent a4525be99e
commit 9e8917ccc1
4 changed files with 10 additions and 4 deletions

View File

@ -192,7 +192,6 @@ const training = {
state.prdType = prdType;
},
setRoles: (state, roles) => {
console.log(roles, '***********');
state.roles = roles;
},
setCenterStationCode:(state, centerStationCode) => {

View File

@ -16,7 +16,7 @@
<dispatch-cmd v-else-if="picture === 'dispatchingCommand'" ref="dispatchCmd" />
<dispatcher-loger v-else-if="picture === 'schedulingPlan'" ref="dispatcherLoger" />
<!-- 大客流策略 -->
<psl-terminal v-else-if="picture === 'psl'" ref="pslTerminal" />
<psl-terminal v-else-if="picture === 'psl'" ref="pslTerminal" :now-terminal="nowTerminal" />
<large-passenger-strategy v-else-if="picture === 'largePassengerStrategy'" ref="largePassengerStrategy" />
<large-passenger-view v-else-if="picture === 'largePassengerView'" ref="largePassengerView" />
<dispatcher-manage v-else-if="picture === 'dispatcherManage'" ref="dispatcherManage" @pictureChange="pictureChange" @loadingChange="loadingChange" />

View File

@ -93,6 +93,14 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
export default {
name: 'PSL',
props: {
nowTerminal: {
type: Object,
default() {
return {};
}
}
},
data() {
return {
indicators: {
@ -127,7 +135,7 @@ export default {
}
},
mounted() {
const stationCode = this.$store.state.training.roleDeviceCode;
const stationCode = this.nowTerminal.deviceCode || this.$store.state.training.roleDeviceCode;
this.standCode = '';
this.standList = [];
this.stationStandList.forEach(stand => {

View File

@ -3,7 +3,6 @@
<div v-verticalDrag class="terminalList">
<div class="drag-line verticalDrag__header" />
<div class="client-button" @click="showClientList">客户端</div>
<!-- <div v-for="(eachTerminal,index) in terminalList" :key="index" :class="picture==eachTerminal.code?'eachTerminal active':'eachTerminal'" @click="eachTerminal.click(eachTerminal.code)">{{ eachTerminal.name }}</div>-->
<div class="drag-line verticalDrag__footer" />
</div>
<el-drawer