运行图编制 删除暂时无用的文件

This commit is contained in:
joylink_cuiweidong 2021-03-09 16:35:40 +08:00
parent b7a24387b4
commit e7c89ef4bf
8 changed files with 2 additions and 487 deletions

View File

@ -31,7 +31,6 @@
<duplicate-train ref="duplicateTrain" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" /> <duplicate-train ref="duplicateTrain" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" />
<move-planing-train ref="movePlaningTrain" :load-run-plan-id="loadRunPlanId" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" /> <move-planing-train ref="movePlaningTrain" :load-run-plan-id="loadRunPlanId" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" />
<modifying-routing ref="modifyingRouting" @dispatchDialog="dispatchDialog" /> <modifying-routing ref="modifyingRouting" @dispatchDialog="dispatchDialog" />
<modifying-begin-time ref="modifyingBeginTime" />
<systerm-out ref="systermOut" /> <systerm-out ref="systermOut" />
<add-task ref="addTask" @dispatchOperate="dispatchOperate" @refresh="refresh" /> <add-task ref="addTask" @dispatchOperate="dispatchOperate" @refresh="refresh" />
@ -55,13 +54,12 @@ import OffLine from '../components/menus/offLine';
import AddPlanningTrain from '../components/menus/addPlanningTrain'; import AddPlanningTrain from '../components/menus/addPlanningTrain';
import EditPlanningTrain from './menus/editPlanningTrain'; import EditPlanningTrain from './menus/editPlanningTrain';
import EditPlanName from './menus/editPlanName'; import EditPlanName from './menus/editPlanName';
import DuplicateTrain from './menus/duplicateTrain'; import DuplicateTrain from '../components/menus/duplicateTrain';
import SystermOut from '../components/menus/systermOut'; import SystermOut from '../components/menus/systermOut';
import AddTask from './menus/addTask'; import AddTask from './menus/addTask';
import DeleteTask from '../components/menus/deleteTask'; import DeleteTask from '../components/menus/deleteTask';
import ModifyingTask from './menus/modifyingTask'; import ModifyingTask from './menus/modifyingTask';
import ModifyingRouting from './menus/modifyingRouting'; import ModifyingRouting from './menus/modifyingRouting';
import ModifyingBeginTime from './menus/modifyingBeginTime';
import GernaratePlan from '../components/menus/gernaratePlanTrain'; import GernaratePlan from '../components/menus/gernaratePlanTrain';
import MovePlaningTrain from '../components/menus/movePlaningTrain'; import MovePlaningTrain from '../components/menus/movePlaningTrain';
import ModifyingStationIntervalTime from '../components/menus/modifyingStationIntervalTime'; import ModifyingStationIntervalTime from '../components/menus/modifyingStationIntervalTime';
@ -88,7 +86,6 @@ export default {
DeleteTask, DeleteTask,
ModifyingTask, ModifyingTask,
ModifyingRouting, ModifyingRouting,
ModifyingBeginTime,
// AddSmoothRunTime, // AddSmoothRunTime,
// EditSmoothRunTime, // EditSmoothRunTime,
ModifyingStationIntervalTime, ModifyingStationIntervalTime,

View File

@ -1,71 +0,0 @@
<template>
<el-dialog
v-dialogDrag
class="planEdit__tool modifying-begin-time"
:title="title"
:visible.sync="dialogShow"
width="300px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-row>
<el-col :span="9" :offset="1" style="height: 32px; line-height: 32px;">{{ $t('planMonitor.modifying.modifyStartTime') }}</el-col>
<el-col :span="14">
<el-time-picker v-model="beginTime" size="mini" :clearable="false" />
</el-col>
</el-row>
<el-row type="flex" justify="center" style="margin-top: 20px">
<el-button @click="handleCommit">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
</el-row>
</el-dialog>
</template>
<script>
export default {
name: 'ModifyingBeginTime',
components: {
},
data() {
return {
dialogShow: false,
loading: false,
beginTime: ''
};
},
computed: {
title() {
return this.$t('planMonitor.modifying.modifyStartTimeTitle');
}
},
mounted() {
},
methods: {
doShow() {
this.dialogShow = true;
},
doClose() {
this.loading = false;
this.dialogShow = false;
},
handleCommit() {
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/mixin.scss";
/deep/ {
.el-date-editor {
width: 120px !important;
}
.el-button {
margin-left: 20px !important;
margin-right: 20px !important;
}
}
</style>

View File

@ -1,114 +0,0 @@
<template>
<el-dialog v-dialogDrag class="planEdit__tool update-station-interval-time" :title="title" :visible.sync="dialogShow" width="420px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
<el-row>
<el-form ref="form" :model="runPlanLevelVO" label-width="140px" size="mini" :rules="rules">
<el-form-item :label="$t('planMonitor.updateStation.level1')" prop="level1">
<el-input-number v-model="runPlanLevelVO.level1" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level2')" prop="level2">
<el-input-number v-model="runPlanLevelVO.level2" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level3')" prop="level3">
<el-input-number v-model="runPlanLevelVO.level3" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level4')" prop="level4">
<el-input-number v-model="runPlanLevelVO.level4" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level5')" prop="level5">
<el-input-number v-model="runPlanLevelVO.level5" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
</el-form>
</el-row>
<el-row type="flex" justify="center" class="button-group">
<el-button @click="handleCommit">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
</el-row>
</el-dialog>
</template>
<script>
export default {
name: 'UpdateStationIntervalTime',
components: {
},
data() {
return {
dialogShow: false,
loading: false,
editModel: {},
runPlanLevelVO: {}
};
},
computed: {
title() {
return this.$t('planMonitor.updateStation.updateData');
},
rules() {
return {
level1: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel1'), trigger: 'blur' }
],
level2: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel2'), trigger: 'blur' }
],
level3: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel3'), trigger: 'blur' }
],
level4: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel4'), trigger: 'blur' }
],
level5: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel5'), trigger: 'blur' }
]
};
}
},
mounted() {
},
methods: {
doShow(params) {
this.editModel = params || {};
this.runPlanLevelVO = Object.assign({}, this.editModel.runPlanLevelVO || {});
this.dialogShow = true;
},
doClose() {
this.loading = false;
this.dialogShow = false;
},
handleCommit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const model = {
level1: this.runPlanLevelVO.level1,
level2: this.runPlanLevelVO.level2,
level3: this.runPlanLevelVO.level3,
level4: this.runPlanLevelVO.level4,
level5: this.runPlanLevelVO.level5,
stationRunningId: this.runPlanLevelVO.stationRunningId
};
this.$emit('handleConfirm', model);
this.doClose();
}
});
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/mixin.scss";
/deep/ {
.el-input {
width: 120px;
}
.el-input-number {
width: 120px;
}
}
</style>

View File

@ -31,7 +31,6 @@
<duplicate-train ref="duplicateTrain" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" /> <duplicate-train ref="duplicateTrain" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" />
<move-planing-train ref="movePlaningTrain" :load-run-plan-id="loadRunPlanId" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" /> <move-planing-train ref="movePlaningTrain" :load-run-plan-id="loadRunPlanId" @dispatchDialog="dispatchDialog" @dispatchOperate="dispatchOperate" @refresh="refresh" />
<modifying-routing ref="modifyingRouting" @dispatchDialog="dispatchDialog" /> <modifying-routing ref="modifyingRouting" @dispatchDialog="dispatchDialog" />
<modifying-begin-time ref="modifyingBeginTime" />
<systerm-out ref="systermOut" /> <systerm-out ref="systermOut" />
<add-task ref="addTask" @dispatchOperate="dispatchOperate" @refresh="refresh" /> <add-task ref="addTask" @dispatchOperate="dispatchOperate" @refresh="refresh" />
@ -55,13 +54,12 @@ import OffLine from '../components/menus/offLine';
import AddPlanningTrain from '../components/menus/addPlanningTrain'; import AddPlanningTrain from '../components/menus/addPlanningTrain';
import EditPlanningTrain from './menus/editPlanningTrain'; import EditPlanningTrain from './menus/editPlanningTrain';
import EditPlanName from './menus/editPlanName'; import EditPlanName from './menus/editPlanName';
import DuplicateTrain from './menus/duplicateTrain'; import DuplicateTrain from '../components/menus/duplicateTrain';
import SystermOut from '../components/menus/systermOut'; import SystermOut from '../components/menus/systermOut';
import AddTask from './menus/addTask'; import AddTask from './menus/addTask';
import DeleteTask from '../components/menus/deleteTask'; import DeleteTask from '../components/menus/deleteTask';
import ModifyingTask from './menus/modifyingTask'; import ModifyingTask from './menus/modifyingTask';
import ModifyingRouting from './menus/modifyingRouting'; import ModifyingRouting from './menus/modifyingRouting';
import ModifyingBeginTime from './menus/modifyingBeginTime';
import GernaratePlan from '../components/menus/gernaratePlanTrain'; import GernaratePlan from '../components/menus/gernaratePlanTrain';
import MovePlaningTrain from '../components/menus/movePlaningTrain'; import MovePlaningTrain from '../components/menus/movePlaningTrain';
import ModifyingStationIntervalTime from '../components/menus/modifyingStationIntervalTime'; import ModifyingStationIntervalTime from '../components/menus/modifyingStationIntervalTime';
@ -88,7 +86,6 @@ export default {
DeleteTask, DeleteTask,
ModifyingTask, ModifyingTask,
ModifyingRouting, ModifyingRouting,
ModifyingBeginTime,
// AddSmoothRunTime, // AddSmoothRunTime,
// EditSmoothRunTime, // EditSmoothRunTime,
ModifyingStationIntervalTime, ModifyingStationIntervalTime,

View File

@ -1,109 +0,0 @@
<template>
<el-dialog
v-dialogDrag
class="planEdit__tool duplicate-train"
:title="title"
:visible.sync="dialogShow"
width="420px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-row type="flex" justify="center">
<el-radio-group v-model="model.forward">
<el-radio :label="true">{{ $t('planMonitor.forward') }}</el-radio>
<el-radio :label="false">{{ $t('planMonitor.backward') }}</el-radio>
</el-radio-group>
</el-row>
<el-row style="margin-top: 20px">
<el-col :span="5" :offset="4">{{ $t('planMonitor.frequency') }}</el-col>
<el-col :span="10">
<el-input-number v-model="model.times" size="mini" :min="1" controls-position="right" />
</el-col>
</el-row>
<el-row style="margin: 10px 0px">
<el-col :span="5" :offset="4">{{ $t('planMonitor.intervals') }}</el-col>
<el-col :span="10">
<el-input-number v-model="model.intervals" size="mini" :min="30" controls-position="right" />
<span>{{ $t('global.second') }}</span>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button size="medium" @click="doClose">{{ $t('global.cancel') }}</el-button>
<el-button type="primary" size="medium" @click="handleCommit">{{ $t('global.confirm') }}</el-button>
</span>
</el-dialog>
</template>
<script>
import { duplicateService } from '@/api/runplan';
export default {
name: 'DuplicateTrain',
components: {
},
data() {
return {
dialogShow: false,
loading: false,
model: {
serviceNumber: '',
forward: false,
times: 0,
intervals: 0
}
};
},
computed: {
title() {
return this.$t('planMonitor.duplicateTrain');
}
},
mounted() {
},
methods: {
doShow(params) {
this.model.serviceNumber = params.serviceNumber;
this.dialogShow = true;
},
doClose() {
this.loading = false;
this.dialogShow = false;
},
handleCommit() {
this.model['planId'] = this.$route.query.planId;
this.model['serviceNumber'] = this.model.serviceNumber;
this.doClose();
duplicateService(this.model).then(resp => {
// this.$emit('dispatchOperate', {
// dialogName: 'openRunPlan', operate: 'loadRunPlanData', params: Object.assign({refresh: true}, this.$route.query)
// });
this.$emit('refresh');
this.$message.success(this.$t('tip.duplicatePlanSuccessful'));
}).catch((error) => {
if (error.code === 500001) {
this.$messageBox(this.$t('tip.duplicatePlanFailed') + this.$t('tip.duplicatePlanFailedTips'));
} else {
this.$messageBox(this.$t('tip.duplicatePlanFailed'));
}
});
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/mixin.scss";
.duplicate-train{
/deep/ {
.el-dialog__body{
padding: 0 20px;
}
.dialog-footer{
display: flex;
justify-content: center;
}
}
}
</style>

View File

@ -1,71 +0,0 @@
<template>
<el-dialog
v-dialogDrag
class="planEdit__tool modifying-begin-time"
:title="title"
:visible.sync="dialogShow"
width="300px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-row>
<el-col :span="9" :offset="1" style="height: 32px; line-height: 32px;">{{ $t('planMonitor.modifying.modifyStartTime') }}</el-col>
<el-col :span="14">
<el-time-picker v-model="beginTime" size="mini" :clearable="false" />
</el-col>
</el-row>
<el-row type="flex" justify="center" style="margin-top: 20px">
<el-button @click="handleCommit">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
</el-row>
</el-dialog>
</template>
<script>
export default {
name: 'ModifyingBeginTime',
components: {
},
data() {
return {
dialogShow: false,
loading: false,
beginTime: ''
};
},
computed: {
title() {
return this.$t('planMonitor.modifying.modifyStartTimeTitle');
}
},
mounted() {
},
methods: {
doShow() {
this.dialogShow = true;
},
doClose() {
this.loading = false;
this.dialogShow = false;
},
handleCommit() {
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/mixin.scss";
/deep/ {
.el-date-editor {
width: 120px !important;
}
.el-button {
margin-left: 20px !important;
margin-right: 20px !important;
}
}
</style>

View File

@ -1,114 +0,0 @@
<template>
<el-dialog v-dialogDrag class="planEdit__tool update-station-interval-time" :title="title" :visible.sync="dialogShow" width="420px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
<el-row>
<el-form ref="form" :model="runPlanLevelVO" label-width="140px" size="mini" :rules="rules">
<el-form-item :label="$t('planMonitor.updateStation.level1')" prop="level1">
<el-input-number v-model="runPlanLevelVO.level1" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level2')" prop="level2">
<el-input-number v-model="runPlanLevelVO.level2" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level3')" prop="level3">
<el-input-number v-model="runPlanLevelVO.level3" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level4')" prop="level4">
<el-input-number v-model="runPlanLevelVO.level4" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
<el-form-item :label="$t('planMonitor.updateStation.level5')" prop="level5">
<el-input-number v-model="runPlanLevelVO.level5" :min="1" />
<span>{{ $t('global.second') }}</span>
</el-form-item>
</el-form>
</el-row>
<el-row type="flex" justify="center" class="button-group">
<el-button @click="handleCommit">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
</el-row>
</el-dialog>
</template>
<script>
export default {
name: 'UpdateStationIntervalTime',
components: {
},
data() {
return {
dialogShow: false,
loading: false,
editModel: {},
runPlanLevelVO: {}
};
},
computed: {
title() {
return this.$t('planMonitor.updateStation.updateData');
},
rules() {
return {
level1: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel1'), trigger: 'blur' }
],
level2: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel2'), trigger: 'blur' }
],
level3: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel3'), trigger: 'blur' }
],
level4: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel4'), trigger: 'blur' }
],
level5: [
{ required: true, message: this.$t('planMonitor.updateStation.pleaseInputLevel5'), trigger: 'blur' }
]
};
}
},
mounted() {
},
methods: {
doShow(params) {
this.editModel = params || {};
this.runPlanLevelVO = Object.assign({}, this.editModel.runPlanLevelVO || {});
this.dialogShow = true;
},
doClose() {
this.loading = false;
this.dialogShow = false;
},
handleCommit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const model = {
level1: this.runPlanLevelVO.level1,
level2: this.runPlanLevelVO.level2,
level3: this.runPlanLevelVO.level3,
level4: this.runPlanLevelVO.level4,
level5: this.runPlanLevelVO.level5,
stationRunningId: this.runPlanLevelVO.stationRunningId
};
this.$emit('handleConfirm', model);
this.doClose();
}
});
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/mixin.scss";
/deep/ {
.el-input {
width: 120px;
}
.el-input-number {
width: 120px;
}
}
</style>