泰国运行计划界面
This commit is contained in:
parent
d61deb1de4
commit
7ce62aead4
@ -523,6 +523,13 @@ export function sandTableTrainControl(group, params) {
|
||||
params
|
||||
});
|
||||
}
|
||||
/** 获取运行计划详情 */
|
||||
export function getSandTableRunPlanDetail(simulationId) {
|
||||
return request({
|
||||
url: `http://192.168.3.233:9000/api/sandTable/${simulationId}/runPlanDetail`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
/** 条件查询仿真中的ISCS资源 */
|
||||
export function queryIscsResourcesByGroup(group, params) {
|
||||
return request({
|
||||
|
@ -1,19 +1,22 @@
|
||||
<template>
|
||||
<div id="menuBarDatie">
|
||||
<menu-bar ref="menuBar" :menu-normal="menuNormal" style="width:100%;" />
|
||||
<setOperationPlan ref="setOperationPlan" />
|
||||
<SetOperationPlan ref="setOperationPlan" />
|
||||
<OperationPlanDetail ref="operationPlanDetail" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import MenuBar from '@/jmapNew/theme/components/menus/menuBarNew'
|
||||
import { destroySimulationByAdmin, exitSimulation } from '@/api/simulation'
|
||||
import setOperationPlan from './menuDialog/setOperationPlan.vue'
|
||||
import SetOperationPlan from './menuDialog/setOperationPlan.vue'
|
||||
import OperationPlanDetail from './menuDialog/operationPlanDetail.vue'
|
||||
|
||||
export default {
|
||||
name: 'DispatchWorkMenuBar',
|
||||
components: {
|
||||
MenuBar,
|
||||
setOperationPlan,
|
||||
SetOperationPlan,
|
||||
OperationPlanDetail,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -62,6 +65,7 @@ export default {
|
||||
{
|
||||
title: 'Plan Details',
|
||||
operate: '',
|
||||
click: this.openPlanDetail,
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
@ -108,9 +112,11 @@ export default {
|
||||
})
|
||||
},
|
||||
openOperationPlan() {
|
||||
console.log
|
||||
this.$refs.setOperationPlan.doShow()
|
||||
},
|
||||
openPlanDetail() {
|
||||
this.$refs.operationPlanDetail.doShow()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-dialogDrag
|
||||
class="chengdou-03__systerm"
|
||||
title="Operation Plan Detail"
|
||||
:visible.sync="show"
|
||||
width="660px"
|
||||
:before-close="doClose"
|
||||
:z-index="2000"
|
||||
:modal="false"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-table
|
||||
ref="detailTable"
|
||||
class="table"
|
||||
:data="detailData"
|
||||
border
|
||||
style="width: 100%"
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
height="200"
|
||||
>
|
||||
<el-table-column prop="trainCode" :width="100" label="列车编号" />
|
||||
<el-table-column prop="station" :width="160" label="车站" />
|
||||
<el-table-column prop="track" :width="180" label="接发车股道" />
|
||||
<el-table-column prop="time" label="停靠时间" />
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
import { getSandTableRunPlanDetail } from '@/api/simulation'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
dialogShow: false,
|
||||
detailData: [{ trainCode: 'AAA', station: '1111', track: '123', time: '2023-07-02 08:00:00' }],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
show() {
|
||||
return this.dialogShow && !this.$store.state.menuOperation.break
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async doShow() {
|
||||
this.dialogShow = true
|
||||
const resp = await getSandTableRunPlanDetail(this.$store.state)
|
||||
},
|
||||
doClose() {
|
||||
this.dialogShow = false
|
||||
this.$store.dispatch('training/emitTipFresh')
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -17,7 +17,9 @@
|
||||
<el-select v-model="item.trainCode"></el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="股道编号">
|
||||
<el-select v-model="item.trackCode"></el-select>
|
||||
<el-select v-model="item.trackCode">
|
||||
<el-option v-for="train in trainList" :key="train.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="formRow" style="justify-content:center; margin-bottom:20px">
|
||||
@ -26,8 +28,8 @@
|
||||
</div>
|
||||
</el-form>
|
||||
<div class="formRow">
|
||||
<el-button>{{ $t('global.confirm') }}</el-button>
|
||||
<el-button>{{ $t('global.cancel') }}</el-button>
|
||||
<el-button @click="confirm">{{ $t('global.confirm') }}</el-button>
|
||||
<el-button @click="cancel">{{ $t('global.cancel') }}</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
@ -44,17 +46,28 @@ export default {
|
||||
trackCode: '',
|
||||
},
|
||||
],
|
||||
trainList: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
show() {
|
||||
return this.dialogShow && !this.$store.state.menuOperation.break
|
||||
},
|
||||
// trainList() {
|
||||
// console.log(this.$store.state.activeTrainList)
|
||||
// return this.$store.state.activeTrainList
|
||||
// },
|
||||
},
|
||||
methods: {
|
||||
doShow() {
|
||||
this.dialogShow = true
|
||||
console.log(1)
|
||||
this.formData = [
|
||||
{
|
||||
trainCode: '',
|
||||
trackCode: '',
|
||||
},
|
||||
]
|
||||
console.log(this.$store.state.activeTrainList)
|
||||
},
|
||||
doClose() {
|
||||
this.dialogShow = false
|
||||
@ -66,6 +79,10 @@ export default {
|
||||
deleteRow() {
|
||||
this.formData.pop()
|
||||
},
|
||||
confirm() {},
|
||||
cancel() {
|
||||
this.doClose()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
@ -23,13 +23,13 @@ export function handlerUrl() {
|
||||
let OSS_URL;
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// 开发分支
|
||||
BASE_API = 'http://192.168.3.233/rtss-server';
|
||||
// BASE_API = 'http://192.168.3.233/rtss-server';
|
||||
// BASE_API = 'https://joylink.club/jlcloud';
|
||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
// BASE_API = 'http://114.116.51.125/jlcloud';
|
||||
// BASE_API = 'http://192.168.3.47:9000'; // 周寅
|
||||
// BASE_API = 'http://192.168.3.94:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.3.15:9000'; // 张赛
|
||||
BASE_API = 'http://192.168.3.15:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
|
||||
// BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
|
||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||
|
@ -29,7 +29,7 @@ export default {
|
||||
EditConfigIbp
|
||||
},
|
||||
data() {
|
||||
const noShowPathType = ['SWITCH', 'SIGNAL', 'PSD', 'PSL', 'IBP', 'SECTION', 'TRAIN', 'UDP_CLIENT', 'PLC_GATEWAY', 'UDP_LOW', 'PSC'];
|
||||
const noShowPathType = ['SWITCH', 'SIGNAL', 'PSD', 'PSL', 'IBP', 'SECTION', 'TRAIN', 'UDP_CLIENT', 'PLC_GATEWAY', 'UDP_LOW', 'PSC', 'SAND_TABLE_RUN_PLAN'];
|
||||
return {
|
||||
examResultList: [],
|
||||
url: '',
|
||||
|
Loading…
Reference in New Issue
Block a user