大铁项目 ctc 车务管理端 列车固定路径 备份 订阅路径更改
This commit is contained in:
parent
41a22bae92
commit
746c54651a
@ -35,7 +35,7 @@ export function getTopic(type, group, stationCode) {
|
|||||||
topic = `/queue/simulation/${group}/ctc`;
|
topic = `/queue/simulation/${group}/ctc`;
|
||||||
break;
|
break;
|
||||||
case 'CTC_MANAGE':
|
case 'CTC_MANAGE':
|
||||||
topic = `/queue/simulation/ctc/manage/${group}`;
|
topic = `/queue/simulation/${group}/ctc/manage`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,7 +219,6 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
const param = {stationCode:this.addModel.stationCode, runPlanParamList:[this.addModel]};
|
const param = {stationCode:this.addModel.stationCode, runPlanParamList:[this.addModel]};
|
||||||
commitOperate(menuOperate.CTC.addTrainFixedPath, param, 3).then(({valid})=>{
|
commitOperate(menuOperate.CTC.addTrainFixedPath, param, 3).then(({valid})=>{
|
||||||
debugger;
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
@ -401,12 +400,6 @@ export default {
|
|||||||
// top: -18px;
|
// top: -18px;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// .chengdou-03__systerm .el-dialog .context {
|
|
||||||
// height: 100px;
|
|
||||||
// border: 2px inset #E2E2E2;
|
|
||||||
// overflow-y: scroll;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// .chengdou-03__systerm .el-dialog .notice {
|
// .chengdou-03__systerm .el-dialog .notice {
|
||||||
// margin-left: 62px;
|
// margin-left: 62px;
|
||||||
// line-height: 30px;
|
// line-height: 30px;
|
||||||
|
@ -103,11 +103,11 @@ export default {
|
|||||||
});
|
});
|
||||||
if (!findTab) {
|
if (!findTab) {
|
||||||
this.currentTabs.push(Object.assign( {name:name}, nameMap[name]));
|
this.currentTabs.push(Object.assign( {name:name}, nameMap[name]));
|
||||||
}
|
|
||||||
this.activeTab = name;
|
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
this.$refs[this.activeTab][0].loadStation();
|
this.$refs[this.activeTab][0].loadStation();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
this.activeTab = name;
|
||||||
},
|
},
|
||||||
quit() {
|
quit() {
|
||||||
window.close();
|
window.close();
|
||||||
@ -296,4 +296,10 @@ border-left: 1px #94b6f0 solid;border-right: 1px #c9d3e0 solid;}
|
|||||||
.datie-02__systerm .el-dialog span.el-input__suffix .el-input__icon{
|
.datie-02__systerm .el-dialog span.el-input__suffix .el-input__icon{
|
||||||
line-height:22px;
|
line-height:22px;
|
||||||
}
|
}
|
||||||
|
.datie-02__systerm .el-dialog .context {
|
||||||
|
height: 100px;
|
||||||
|
border: 2px inset #E2E2E2;
|
||||||
|
overflow-y: scroll;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -75,6 +75,7 @@ export default {
|
|||||||
this.$emit('loadStationData', data.id);
|
this.$emit('loadStationData', data.id);
|
||||||
},
|
},
|
||||||
loadStation() {
|
loadStation() {
|
||||||
|
this.treeList[0].children = [];
|
||||||
this.stationList.forEach(station => {
|
this.stationList.forEach(station => {
|
||||||
if (!station.depot) {
|
if (!station.depot) {
|
||||||
this.treeList[0].children.push({id:station.code, label:station.name});
|
this.treeList[0].children.push({id:station.code, label:station.name});
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="trainFixedPathRMenuR">
|
<div class="trainFixedPathRMenuR">
|
||||||
<span class="trainFixedPathRVer">版本号</span>
|
<span class="trainFixedPathRVer">版本号</span>
|
||||||
<el-button class="trainFixedPathButton" size="small">备份</el-button>
|
<el-button class="trainFixedPathButton" size="small" @click="exportData">备份</el-button>
|
||||||
<el-button class="trainFixedPathButton" size="small">更新至生效区</el-button>
|
<el-button class="trainFixedPathButton" size="small">更新至生效区</el-button>
|
||||||
<el-button class="trainFixedPathButton" size="small">导入</el-button>
|
<el-button class="trainFixedPathButton" size="small">导入</el-button>
|
||||||
<el-button class="trainFixedPathButton" size="small">比较</el-button>
|
<el-button class="trainFixedPathButton" size="small">比较</el-button>
|
||||||
@ -232,6 +232,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { now} from '@/utils/date';
|
||||||
import TerminalStationList from './terminalStationList';
|
import TerminalStationList from './terminalStationList';
|
||||||
import AddRunplan from './addRunplan';
|
import AddRunplan from './addRunplan';
|
||||||
import { copyAssign } from '@/utils/index';
|
import { copyAssign } from '@/utils/index';
|
||||||
@ -267,6 +268,19 @@ export default {
|
|||||||
noticeInfo() {
|
noticeInfo() {
|
||||||
this.$emit('noticeInfo');
|
this.$emit('noticeInfo');
|
||||||
},
|
},
|
||||||
|
exportData() {
|
||||||
|
const currentDay = now().replace(/(-|:)|\s/g, '');
|
||||||
|
const content = new Blob(
|
||||||
|
[JSON.stringify({stationCode:this.currentStationCode, runPlanParamList:this.tableData})]
|
||||||
|
);
|
||||||
|
const urlObject = window.URL || window.webkitURL || window;
|
||||||
|
const url = urlObject.createObjectURL(content);
|
||||||
|
const el = document.createElement('a');
|
||||||
|
el.href = url;
|
||||||
|
el.download = `TRAIN_WAY_LIST-${currentDay}.json`;
|
||||||
|
el.click();
|
||||||
|
urlObject.revokeObjectURL(url);
|
||||||
|
},
|
||||||
handleData() {
|
handleData() {
|
||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
const railCtcStationManageRpMsg = copyAssign({}, this.$store.state.socket.railCtcStationManageRpMsg);
|
const railCtcStationManageRpMsg = copyAssign({}, this.$store.state.socket.railCtcStationManageRpMsg);
|
||||||
|
Loading…
Reference in New Issue
Block a user