登录调整&综合演练调整&菜单调整

This commit is contained in:
fan 2020-06-23 15:18:44 +08:00
parent 5cfec3e09f
commit a2664eb5dc
53 changed files with 391 additions and 734 deletions

View File

@ -53,20 +53,8 @@ export default {
mounted() {
this.prohibitSystemContextMenu();
var beforeUnload_time = 0;
var gap_time = 0;
var isFireFox = navigator.userAgent.indexOf('Firefox') > -1;
window.addEventListener('unload', async e => {
gap_time = new Date().getTime() - beforeUnload_time;
if (gap_time <= 5) {
await this.$store.dispatch('exit');
}
});
window.addEventListener('beforeunload', async e => {
beforeUnload_time = new Date().getTime();
if (isFireFox) {
await this.$store.dispatch('exit');
}
await this.$store.dispatch('preLogout');
});
this.$nextTick(() => { this.subscribe(); });

View File

@ -45,7 +45,16 @@ export function logout(token) {
}
});
}
// 预登出
export function preLogout(token) {
return request({
url: '/api/login/preLogout',
method: 'get',
params: {
token
}
});
}
// 检查登录状态 WAIT,SCAN,SUCCESS,CANCEL,EXPIRE,
export function checkLoginStatus(sessionId) {
return new Promise((resolve, reject) => {

BIN
src/assets/bg_ibp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 KiB

View File

@ -183,7 +183,6 @@ export default {
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
// this.$store.dispatch('training/setCommonMenuStep', operate);
this.$refs.trainAddPlan.doShow(operate);
}
});
@ -278,7 +277,6 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
// this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.SetFault, this.selected);
}
});
@ -287,7 +285,6 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
// this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.SetFault, this.selected);
}
});

View File

@ -284,7 +284,6 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
// this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
@ -293,7 +292,6 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
// this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});

View File

@ -8,12 +8,14 @@
<stand-stop-time ref="standStopTime" :system-name="systemName" />
<notice-info ref="noticeInfo" pop-class="beijing-01__systerm" />
<stand-back-strategy ref="standBackStrategy" />
<set-fault ref="setFault" pop-class="beijing-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import StandControl from '@/jmapNew/theme/components/menus/dialog/standControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import StandJumpStopControl from '@/jmapNew/theme/components/menus/dialog/standJumpStopControl';
import StandBackStrategy from './dialog/standBackStrategy';
import StandDetail from './dialog/standDetail';
@ -38,7 +40,8 @@ export default {
StandRunLevel,
NoticeInfo,
StandBackStrategy,
StandStopTime
StandStopTime,
SetFault
},
props: {
selected: {
@ -199,7 +202,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -207,7 +210,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -6,6 +6,7 @@
<speed-limit-control ref="speedLimitControl" />
<alxe-effective ref="alxeEffective" />
<notice-info ref="noticeInfo" pop-class="beijing-01__systerm" />
<set-fault ref="setFault" pop-class="beijing-01__systerm" />
</div>
</template>
@ -13,6 +14,7 @@
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SpeedLimitControl from './dialog/speedLimitControl';
import AlxeEffective from './dialog/alxeEffective';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -32,7 +34,8 @@ export default {
SwitchControl,
SpeedLimitControl,
AlxeEffective,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -193,7 +196,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -201,7 +204,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -5,12 +5,16 @@
<section-control ref="sectionControl" pop-class="chengdou-01__system" />
<section-cmd-control ref="sectionCmdControl" />
<speed-limit-control ref="speedLimitControl" />
<set-fault ref="setFault" pop-class="chengdou-01__system" />
<train-add-plan ref="trainAddPlan" pop-class="chengdou-01__system" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SpeedLimitControl from './dialog/speedLimitControl';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import SectionCmdControl from './dialog/sectionCmdControl';
@ -28,7 +32,9 @@ export default {
NoticeInfo,
SpeedLimitControl,
SectionControl,
SectionCmdControl
SectionCmdControl,
SetFault,
TrainAddPlan
},
props: {
selected: {
@ -133,7 +139,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('training/setCommonMenuStep', step);
this.$refs.trainAddPlan.doShow(step);
}
});
},
@ -174,7 +180,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -182,7 +188,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -3,12 +3,14 @@
<pop-menu ref="popMenu" :menu="menu" :pop-class="popClass" />
<notice-info ref="noticeInfo" pop-class="chengdou-01__system" />
<create-device-label ref="createDeviceLabel" />
<set-fault ref="setFault" :pop-class="popClass" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import CreateDeviceLabel from './dialog/createDeviceLabel';
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
@ -22,7 +24,8 @@ export default {
components: {
PopMenu,
NoticeInfo,
CreateDeviceLabel
CreateDeviceLabel,
SetFault
},
props: {
selected: {
@ -257,7 +260,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -265,7 +268,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault.cancelFault, this.selected);
}
});
},

View File

@ -3,12 +3,14 @@
<pop-menu ref="popMenu" :menu="menu" />
<notice-info ref="noticeInfo" pop-class="chengdou-01__system" />
<platform-dwell ref="platformDwell" />
<set-fault ref="setFault" pop-class="chengdou-01__system" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import PlatformDwell from './dialog/platformDwell';
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
@ -22,7 +24,8 @@ export default {
components: {
PopMenu,
NoticeInfo,
PlatformDwell
PlatformDwell,
SetFault
},
props: {
selected: {
@ -140,7 +143,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -148,7 +151,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -4,6 +4,7 @@
<notice-info ref="noticeInfo" pop-class="chengdou-01__system" />
<switch-control ref="switchControl" pop-class="chengdou-01__system" />
<create-device-label ref="createDeviceLabel" />
<set-fault ref="setFault" pop-class="chengdou-01__system" />
</div>
</template>
@ -12,6 +13,7 @@ import PopMenu from '@/components/PopMenu';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import CreateDeviceLabel from './dialog/createDeviceLabel';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import CancelMouseState from '@/mixin/CancelMouseState';
import { mapGetters } from 'vuex';
@ -26,7 +28,8 @@ export default {
PopMenu,
NoticeInfo,
CreateDeviceLabel,
SwitchControl
SwitchControl,
SetFault
},
mixins: [
CancelMouseState
@ -180,7 +183,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -188,7 +191,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -5,12 +5,16 @@
<train-create ref="trainCreate" />
<section-detail ref="sectionDetail" />
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="chengdou-03__systerm" />
<set-fault ref="setFault" pop-class="chengdou-03__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionDetail from './dialog/sectionDetail';
import TrainCreate from './dialog/trainCreate';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +32,9 @@ export default {
SectionControl,
SectionDetail,
TrainCreate,
NoticeInfo
NoticeInfo,
TrainAddPlan,
SetFault
},
props: {
selected: {
@ -192,7 +198,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -200,7 +206,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},
@ -225,7 +231,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('training/setCommonMenuStep', step);
this.$refs.trainAddPlan.doShow(step);
}
});
}

View File

@ -7,13 +7,15 @@
<route-guide ref="routeGuide" />
<route-hand-control ref="routeHandControl" />
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
<password-box ref="passwordBox" :pop-class="'chengdou-03__systerm'" @checkOver="passWordCommit" />
<password-box ref="passwordBox" pop-class="'chengdou-03__systerm'" @checkOver="passWordCommit" />
<set-fault ref="setFault" pop-class="chengdou-03__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import RouteSelection from './dialog/routeSelection';
import RouteDetail from './dialog/routeDetail';
import RouteHandControl from './dialog/routeHandControl';
@ -37,7 +39,8 @@ export default {
RouteDetail,
RouteGuide,
NoticeInfo,
PasswordBox
PasswordBox,
SetFault
},
props: {
selected: {
@ -230,7 +233,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -238,7 +241,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -4,6 +4,7 @@
<stand-control ref="standControl" />
<stand-detail ref="standDetail" />
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
<set-fault ref="setFault" pop-class="chengdou-03__systerm" />
</div>
</template>
@ -12,6 +13,7 @@ import PopMenu from '@/components/PopMenu';
import StandControl from './dialog/standControl';
import StandDetail from './dialog/standDetail';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
@ -25,7 +27,8 @@ export default {
PopMenu,
StandControl,
StandDetail,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -154,7 +157,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -162,7 +165,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -4,6 +4,7 @@
<section-control ref="sectionControl" pop-class="chengdou-03__systerm" />
<switch-control ref="switchControl" pop-class="chengdou-03__systerm" />
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
<set-fault ref="setFault" pop-class="chengdou-03__systerm" />
</div>
</template>
@ -11,6 +12,7 @@
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import CancelMouseState from '@/mixin/CancelMouseState';
@ -26,7 +28,8 @@ export default {
PopMenu,
SectionControl,
SwitchControl,
NoticeInfo
NoticeInfo,
SetFault
},
mixins: [
CancelMouseState
@ -153,7 +156,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -161,7 +164,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -5,12 +5,16 @@
<section-un-lock ref="sectionUnLock" />
<speed-limit-control ref="speedLimitControl" />
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="foshan-01__systerm" />
<set-fault ref="setFault" pop-class="foshan-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionUnLock from './dialog/sectionUnLock';
import SpeedLimitControl from './dialog/speedLimitControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +32,9 @@ export default {
SectionControl,
SectionUnLock,
SpeedLimitControl,
NoticeInfo
NoticeInfo,
TrainAddPlan,
SetFault
},
props: {
selected: {
@ -160,7 +166,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('training/setCommonMenuStep', step);
this.$refs.trainAddPlan.doShow(step);
}
});
},
@ -168,7 +174,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -176,7 +182,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -9,12 +9,14 @@
<route-detail ref="routeDetail" :system-name="systemName" />
<router-command ref="routerCommand" />
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
<set-fault ref="setFault" pop-class="foshan-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import RouteSelection from './dialog/routeSelection';
import RouteLock from './dialog/routeLock';
import RouteUnLock from './dialog/routeUnLock';
@ -41,7 +43,8 @@ export default {
RouteHandControl,
RouteDetail,
RouterCommand,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -228,7 +231,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -236,7 +239,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -9,12 +9,14 @@
<stand-back-strategy ref="standBackStrategy" />
<stand-detain-train-all ref="standDetainTrainAll" />
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
<set-fault ref="setFault" pop-class="foshan-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import StandControl from '@/jmapNew/theme/components/menus/dialog/standControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import StandJumpStopControl from '@/jmapNew/theme/components/menus/dialog/standJumpStopControl';
import StandBackStrategy from './dialog/standBackStrategy';
import StandDetail from './dialog/standDetail';
@ -40,7 +42,8 @@ export default {
NoticeInfo,
StandBackStrategy,
StandStopTime,
StandDetainTrainAll
StandDetainTrainAll,
SetFault
},
props: {
selected: {
@ -197,7 +200,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -205,7 +208,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.cancelFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -5,12 +5,14 @@
<switch-un-lock ref="switchUnLock" />
<speed-limit-control ref="speedLimitControl" />
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
<set-fault ref="setFault" pop-class="foshan-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchUnLock from './dialog/switchUnLock';
import SpeedLimitControl from './dialog/speedLimitControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +30,8 @@ export default {
SwitchControl,
SwitchUnLock,
SpeedLimitControl,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -145,7 +148,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -153,7 +156,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -222,7 +222,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -230,7 +230,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -8,12 +8,14 @@
<route-hand-control ref="routeHandControl" />
<route-detail ref="routeDetail" />
<notice-info ref="noticeInfo" pop-class="fuzhou-01__systerm" />
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import RouteSelection from './dialog/routeSelection';
import RouteLock from './dialog/routeLock';
import RouteCmdControl from './dialog/routeCmdControl';
@ -36,7 +38,8 @@ export default {
RouteCmdControl,
RouteHandControl,
RouteDetail,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -218,7 +221,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -226,7 +229,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -8,6 +8,7 @@
<stand-detain-train-all ref="standDetainTrainAll" />
<notice-info ref="noticeInfo" pop-class="fuzhou-01__systerm" />
<stand-back-strategy ref="standBackStrategy" />
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
</div>
</template>
@ -20,6 +21,7 @@ import StandRunLevel from './dialog/standRunLevel';
import StandStopTime from './dialog/standStopTime';
import StandDetainTrainAll from './dialog/standDetainTrainAll';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
// import Handler from '@/scripts/cmdPlugin/Handler';
import { mapGetters } from 'vuex';
// import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
@ -38,7 +40,8 @@ export default {
NoticeInfo,
StandBackStrategy,
StandStopTime,
StandDetainTrainAll
StandDetainTrainAll,
SetFault
},
props: {
selected: {
@ -222,7 +225,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -230,7 +233,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -5,12 +5,14 @@
<switch-cmd-control ref="switchCmdControl" />
<speed-cmd-control ref="speedCmdControl" />
<notice-info ref="noticeInfo" pop-class="fuzhou-01__systerm" />
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchCmdControl from './dialog/switchCmdControl';
import SpeedCmdControl from './dialog/speedCmdControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +30,8 @@ export default {
SwitchControl,
SwitchCmdControl,
SpeedCmdControl,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -219,7 +222,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -227,7 +230,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -5,12 +5,16 @@
<section-cmd-control ref="sectionCmdControl" />
<speed-cmd-control ref="speedCmdControl" />
<notice-info ref="noticeInfo" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="haerbin-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionCmdControl from './dialog/sectionCmdControl';
import SpeedCmdControl from './dialog/speedCmdControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +32,9 @@ export default {
SectionControl,
SectionCmdControl,
SpeedCmdControl,
NoticeInfo
NoticeInfo,
TrainAddPlan,
SetFault
},
props: {
selected: {
@ -144,7 +150,7 @@ export default {
createPlanTrain() {
commitOperate(menuOperate.Train.createPlanTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', operate);
this.$refs.trainAddPlan.doShow(operate);
}
});
},
@ -152,7 +158,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -160,7 +166,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -8,6 +8,7 @@
<route-hand-control ref="routeHandControl" />
<route-detail ref="routeDetail" />
<notice-info ref="noticeInfo" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
</div>
</template>
@ -20,6 +21,7 @@ import RouteCmdControl from './dialog/routeCmdControl';
import RouteHandControl from './dialog/routeHandControl';
import RouteDetail from './dialog/routeDetail';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import { mapGetters } from 'vuex';
@ -38,7 +40,8 @@ export default {
RouteCmdControl,
RouteHandControl,
RouteDetail,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -174,7 +177,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -182,7 +185,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -8,6 +8,7 @@
<stand-detain-train-all ref="standDetainTrainAll" />
<notice-info ref="noticeInfo" pop-class="haerbin-01__systerm" />
<stand-back-strategy ref="standBackStrategy" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
</div>
</template>
@ -20,6 +21,7 @@ import StandRunLevel from './dialog/standRunLevel';
import StandStopTime from './dialog/standStopTime';
import StandDetainTrainAll from './dialog/standDetainTrainAll';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import Handler from '@/scripts/cmdPlugin/Handler';
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
@ -38,7 +40,8 @@ export default {
NoticeInfo,
StandBackStrategy,
StandStopTime,
StandDetainTrainAll
StandDetainTrainAll,
SetFault
},
props: {
selected: {
@ -222,7 +225,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -230,7 +233,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -5,12 +5,14 @@
<switch-cmd-control ref="switchCmdControl" />
<speed-cmd-control ref="speedCmdControl" />
<notice-info ref="noticeInfo" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchCmdControl from './dialog/switchCmdControl';
import SpeedCmdControl from './dialog/speedCmdControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +30,8 @@ export default {
SwitchControl,
SwitchCmdControl,
SpeedCmdControl,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -141,7 +144,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -149,7 +152,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -6,12 +6,16 @@
<speed-limit-control ref="speedLimitControl" />
<alxe-effective ref="alxeEffective" />
<notice-info ref="noticeInfo" pop-class="ningbo-01__systerm" />
<set-fault ref="setFault" pop-class="ningbo-01__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="ningbo-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionUnLock from './dialog/sectionUnLock';
import SpeedLimitControl from './dialog/speedLimitControl';
import AlxeEffective from './dialog/alxeEffective';
@ -21,7 +25,6 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default {
name: 'SectionMenu',
@ -31,7 +34,9 @@ export default {
SectionUnLock,
SpeedLimitControl,
AlxeEffective,
NoticeInfo
NoticeInfo,
TrainAddPlan,
SetFault
},
props: {
selected: {
@ -168,7 +173,7 @@ export default {
addPlanTrain() {
commitOperate(menuOperate.Train.createPlanTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', operate);
this.$refs.trainAddPlan.doShow(operate);
}
});
},
@ -243,7 +248,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -251,7 +256,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
}

View File

@ -8,12 +8,14 @@
<route-detail ref="routeDetail" :system-name="systemName" />
<router-command ref="routerCommand" />
<notice-info ref="noticeInfo" :pop-class="systemName" />
<set-fault ref="setFault" :pop-class="systemName" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import RouteSelection from './dialog/routeSelection';
import RouteUnLock from './dialog/routeUnLock';
import RouteHandControl from '@/jmapNew/theme/components/menus/dialog/routeHandControl';
@ -36,7 +38,8 @@ export default {
RouteHandControl,
RouteDetail,
RouterCommand,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -344,7 +347,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -352,7 +355,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
}

View File

@ -8,6 +8,7 @@
<stand-stop-time ref="standStopTime" :system-name="systemName" />
<StandBulkBuckleTrain ref="standBulkBuckleTrain" />
<notice-info ref="noticeInfo" pop-class="ningbo-01__systerm" />
<set-fault ref="setFault" :pop-class="systemName" />
</div>
</template>
@ -15,6 +16,7 @@
import PopMenu from '@/components/PopMenu';
import StandControl from '@/jmapNew/theme/components/menus/dialog/standControl';
import StandJumpStopControl from '@/jmapNew/theme/components/menus/dialog/standJumpStopControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import StandDetail from './dialog/standDetail';
import StandRunLevel from '@/jmapNew/theme/components/menus/dialog/standRunLevel';
import StandStopTime from '@/jmapNew/theme/components/menus/dialog/standStopTime';
@ -36,7 +38,8 @@ export default {
StandDetail,
StandRunLevel,
NoticeInfo,
StandStopTime
StandStopTime,
SetFault
},
props: {
selected: {
@ -200,7 +203,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -208,7 +211,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -6,12 +6,14 @@
<speed-limit-control ref="speedLimitControl" />
<alxe-effective ref="alxeEffective" />
<notice-info ref="noticeInfo" pop-class="ningbo-01__systerm" />
<set-fault ref="setFault" pop-class="ningbo-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchUnLock from './dialog/switchUnLock';
import SpeedLimitControl from './dialog/speedLimitControl';
import AlxeEffective from './dialog/alxeEffective';
@ -31,7 +33,8 @@ export default {
SwitchUnLock,
SpeedLimitControl,
AlxeEffective,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -275,7 +278,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -283,7 +286,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
}

View File

@ -5,12 +5,16 @@
<section-cmd-control ref="sectionCmdControl" />
<speed-cmd-control ref="speedCmdControl" />
<notice-info ref="noticeInfo" pop-class="xian-01__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="xian-01__systerm" />
<set-fault ref="setFault" pop-class="xian-01__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionCmdControl from './dialog/sectionCmdControl';
import SpeedCmdControl from './dialog/speedCmdControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -28,7 +32,9 @@ export default {
SectionControl,
SectionCmdControl,
SpeedCmdControl,
NoticeInfo
NoticeInfo,
TrainAddPlan,
SetFault
},
props: {
selected: {
@ -183,7 +189,7 @@ export default {
addPlanTrain() {
commitOperate(menuOperate.Train.createPlanTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', operate);
this.$refs.trainAddPlan.doShow(operate);
}
});
},
@ -191,7 +197,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -199,7 +205,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -8,12 +8,14 @@
<notice-info ref="noticeInfo" pop-class="xian-01__systerm" />
<route-hand-control ref="routeHandControl" :system-name="systemName" />
<route-detail ref="routeDetail" :system-name="systemName" />
<set-fault ref="setFault" :pop-class="systemName" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu';
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import RouteSelection from './dialog/routeSelection';
import RouteLock from './dialog/routeLock';
import RouteCmdControl from './dialog/routeCmdControl';
@ -36,7 +38,8 @@ export default {
RouteCmdControl,
RouteHandControl,
RouteDetail,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -244,7 +247,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -252,7 +255,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -8,6 +8,7 @@
<stand-detain-train-all ref="standDetainTrainAll" />
<notice-info ref="noticeInfo" pop-class="xian-01__systerm" />
<stand-back-strategy ref="standBackStrategy" />
<set-fault ref="setFault" pop-class="xian-01__systerm" />
</div>
</template>
@ -20,6 +21,7 @@ import StandRunLevel from './dialog/standRunLevel';
import StandStopTime from './dialog/standStopTime';
import StandDetainTrainAll from './dialog/standDetainTrainAll';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import { mapGetters } from 'vuex';
// import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
@ -37,7 +39,8 @@ export default {
NoticeInfo,
StandBackStrategy,
StandStopTime,
StandDetainTrainAll
StandDetainTrainAll,
SetFault
},
props: {
selected: {
@ -193,7 +196,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -201,7 +204,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -11,6 +11,7 @@
<script>
import PopMenu from '@/components/PopMenu';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchCmdControl from './dialog/switchCmdControl';
import SpeedCmdControl from './dialog/speedCmdControl';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
@ -27,7 +28,8 @@ export default {
SwitchControl,
SwitchCmdControl,
SpeedCmdControl,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -217,7 +219,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -225,7 +227,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},

View File

@ -6,12 +6,16 @@
<speed-limit-control ref="speedLimitControl" />
<alxe-effective ref="alxeEffective" />
<notice-info ref="noticeInfo" pop-class="xian-02__systerm" />
<set-fault ref="setFault" pop-class="xian-02__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="xian-02__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu/index';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionUnLock from './dialog/sectionUnLock';
import SpeedLimitControl from './dialog/speedLimitControl';
import AlxeEffective from './dialog/alxeEffective';
@ -31,7 +35,9 @@ export default {
SectionUnLock,
SpeedLimitControl,
AlxeEffective,
NoticeInfo
NoticeInfo,
TrainAddPlan,
SetFault
},
props: {
selected: {
@ -199,8 +205,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
// this.$refs.trainAddPlan.doShow(step, this.selected);
this.$store.dispatch('training/setCommonMenuStep', step);
this.$refs.trainAddPlan.doShow(step);
}
});
},
@ -208,7 +213,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -216,7 +221,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -8,6 +8,7 @@
<route-detail ref="routeDetail" />
<router-command ref="routerCommand" />
<notice-info ref="noticeInfo" pop-class="xian-02__systerm" />
<set-fault ref="setFault" pop-class="xian-02__systerm" />
</div>
</template>
@ -20,6 +21,7 @@ import RouteHandControl from './dialog/routeHandControl';
import RouterCommand from './dialog/routerCommand';
import RouteDetail from './dialog/routeDetail';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
// import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
@ -37,7 +39,8 @@ export default {
RouteHandControl,
RouteDetail,
RouterCommand,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -262,7 +265,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -270,7 +273,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -6,12 +6,14 @@
<speed-limit-control ref="speedLimitControl" />
<alxe-effective ref="alxeEffective" />
<notice-info ref="noticeInfo" pop-class="xian-02__systerm" />
<set-fault ref="setFault" pop-class="xian-02__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu/index';
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchUnLock from './dialog/switchUnLock';
import SpeedLimitControl from './dialog/speedLimitControl';
import AlxeEffective from './dialog/alxeEffective';
@ -31,7 +33,8 @@ export default {
SwitchUnLock,
SpeedLimitControl,
AlxeEffective,
NoticeInfo
NoticeInfo,
SetFault
},
props: {
selected: {
@ -219,7 +222,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -227,7 +230,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -5,12 +5,14 @@
<update-stand-plan ref="updateStandPlan" :selected="selected" />
<warning-confirm ref="warningConfirm" :selected="selected" />
<stop-profile ref="stopProfile" :selected="selected" />
<set-fault ref="setFault" pop-class="xian-02__systerm" />
</div>
</template>
<script>
import PopMenu from '@/components/PopMenu/index';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import UpdateStandPlan from './dialog/updateStandPlan';
import WarningConfirm from './dialog/warningConfirm';
import StopProfile from './dialog/stopProfile';
@ -27,7 +29,8 @@ export default {
NoticeInfo,
UpdateStandPlan,
WarningConfirm,
StopProfile
StopProfile,
SetFault
},
props: {
selected: {
@ -279,7 +282,7 @@ export default {
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault);
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
});
},
@ -287,7 +290,7 @@ export default {
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},

View File

@ -35,9 +35,7 @@ const training = {
prdType: '', // 产品类型
roles: '', // 角色权限类型
group: '', // 设置全局 group
centerStationCode:'', // 当前居中的集中站code
commonMenuCount: 0, // 公共菜单计数
commonMenuStep: null // 公共菜单步骤
centerStationCode:'' // 当前居中的集中站code
},
getters: {
@ -95,9 +93,6 @@ const training = {
return trainList;
},
commonMenuCount: (state) => {
return state.commonMenuCount;
},
commonMenuStep: (state) => {
return state.commonMenuStep;
}
@ -217,10 +212,6 @@ const training = {
},
setCenterStationCode:(state, centerStationCode) => {
state.centerStationCode = centerStationCode;
},
setCommonMenuStep: (state, commonMenuStep) => {
state.commonMenuStep = commonMenuStep;
state.commonMenuCount++;
}
},
@ -623,11 +614,6 @@ const training = {
/** 设置当前居中的集中站code */
setCenterStationCode:({ commit }, centerStationCode) => {
commit('setCenterStationCode', centerStationCode);
},
/** 公共菜单操作 */
setCommonMenuStep:({ commit }, commonMenuStep) => {
commit('setCommonMenuStep', commonMenuStep);
}
}
};

View File

@ -1,5 +1,5 @@
import { setSessionStorage } from '@/utils/auth';
import { login, logout, getInfo } from '@/api/login';
import { login, logout, getInfo, preLogout } from '@/api/login';
import { getToken, setToken, removeToken } from '@/utils/auth';
import { getUserConfigInfo } from '@/api/management/user';
import { LoginParams } from '@/utils/login';
@ -72,9 +72,10 @@ const user = {
const password = userInfo.password.trim();
const type = userInfo.type;
const project = userInfo.project;
const deviceCode = userInfo.deviceCode;
return new Promise((resolve, reject) => {
// 登录系统
const params = Object.assign({ account: username, password, project:project }, type == 'design' ? LoginParams.Design : LoginParams.LianKeTang);
const params = Object.assign({ account: username, password, project:project, deviceCode:deviceCode }, type == 'design' ? LoginParams.Design : LoginParams.LianKeTang);
login(params).then(resp => {
const token = resp.data;
const header = { group: '', 'X-Token': token };
@ -163,7 +164,16 @@ const user = {
});
});
},
preLogout({commit, dispatch}) {
const token = getToken();
return new Promise((resolve, reject) => {
preLogout(token).then(() => {
resolve();
}).catch(error => {
reject(error);
});
});
},
// 关闭页面
exit({ commit, dispatch }) {
const token = getToken();

View File

@ -5,7 +5,6 @@
<div class="but-group">
<el-button v-if="hasRelease" size="mini" @click="operationManage">{{ $t('lesson.trainingRule') }}</el-button>
<el-button v-if="hasRelease" size="mini" @click="trainingManage">{{ $t('lesson.trainingManage') }}</el-button>
<!-- <el-button v-if="hasRelease" size="mini" @click="taskManage">{{ $t('lesson.taskManage') }}</el-button> -->
<el-button size="mini" type="primary" @click="lessonCreateByPublish">{{ $t('lesson.createNewCoursesFromRelease') }}</el-button>
<el-button size="mini" type="primary" @click="lessonCreate">{{ $t('lesson.newConstruction') }}</el-button>
</div>

View File

@ -1,19 +1,26 @@
<template>
<div class="login-container" :style="{'background-image': 'url('+bgImg+')'}">
<div v-if="loginTitle" class="left-logo-box">
<div
v-loading="ibpDevice"
class="login-container"
:style="{'background-image': 'url('+bgImg+')'}"
element-loading-spinner="el-icon-loading"
element-loading-text="等待主工作站登录中"
element-loading-background="rgba(0, 0, 0, 0)"
>
<div v-if="loginTitle && !ibpDevice" class="left-logo-box">
<img class="logo" :src="logoImg" :style="{width: loginTitle==='jyd'?'300px':'60px'}">
<span>{{ loginTitle==='jyd'?'':loginTitle }}</span>
</div>
<div v-if="isProject" class="text-box">
<div v-if="isProject && !ibpDevice" class="text-box">
<img v-if="!loginTitle" class="logo" :src="logoImg" style="width: 80px">
<span>{{ title }}</span>
</div>
<div class="language_box">
<div v-if="!ibpDevice" class="language_box">
<el-tooltip effect="dark" :content="this.$t('login.clickSwitchLanguage')" placement="bottom-end">
<el-button class="language_btn" type="text" @click="handleLanguage">{{ language }}</el-button>
</el-tooltip>
</div>
<div class="content-box">
<div v-if="!ibpDevice" class="content-box">
<div class="qrcode-main">
<div class="login-code-box" @click="loginRefresh">
<qrcode-vue
@ -105,6 +112,7 @@ import QrcodeVue from 'qrcode.vue';
import { getLoginWmurl, checkLoginStatus } from '@/api/login';
import { LoginParams } from '@/utils/login';
import bgImg from '@/assets/bg1.jpg';
import bgIbpImg from '@/assets/bg_ibp.png';
import { UrlConfig } from '@/scripts/ConstDic';
import { loginInfo, ProjectIcon, GenerateRouteProjectList, VersionBaseNoShow, MainBodyNoShow} from '@/scripts/ProjectConfig';
import { removeToken } from '@/utils/auth';
@ -131,8 +139,8 @@ export default {
}
};
return {
bgImg: bgImg,
QCode: QCode,
loading111: true,
isAutoLogin: false,
loginForm: {
username: '',
@ -180,11 +188,20 @@ export default {
logoImg() {
const projectName = this.$route.path.split('/')[1];
return ProjectIcon[projectName];
},
bgImg() {
return this.$route.query.ibpDevice ? bgIbpImg : bgImg;
},
ibpDevice() {
return this.$route.query.ibpDevice;
}
},
created() {
document.querySelector("link[rel*='icon']").href = loginInfo[this.project].linkIcon || ProjectIcon[this.project];
this.computedAttribute();
if (this.$route.query.projectDevice) {
}
if (Cookies.get(this.cookiesName) && Cookies.get(this.cookiesToken)) {
const model = {'username': Cookies.get(this.cookiesName), 'password': Cookies.get(this.cookiesToken), 'project':loginInfo[this.project].loginParam};
model.type = this.modelType;
@ -246,6 +263,9 @@ export default {
this.loadingCode = true;
const params = LoginParams[this.loginClient];
params.project = loginInfo[this.project].loginParam;
if (this.$route.query.projectDevice) {
params.deviceCode = this.$route.query.projectDevice;
}
getLoginWmurl(params).then(response => {
this.sessionId = response.data.sessionId;
this.loginUrl = response.data.url;
@ -311,6 +331,7 @@ export default {
const model = Object.assign({}, this.loginForm);
model.password = md5(model.password);
model.type = this.modelType;
model.deviceCode = this.$route.query.projectDevice;
this.loading = true;
if (this.isAutoLogin) {
Cookies.set(this.cookiesName, model.username, { expires: 2});
@ -355,6 +376,9 @@ export default {
setSessionStorage('raceId', this.$route.query.raceId);
this.$router.push({ path: this.path, query:{ raceId:this.$route.query.raceId } });
}
} else if (this.$route.query.projectDevice) {
const query = { group: '', drawWay: true };
this.$router.push({ path: `/trainroom`, query: query });
} else if (!this.$route.path.includes('jsxt/login') && !this.$route.path.includes('refereeJsxt/login')) {
this.$router.push({ path: this.path });
} else {
@ -416,6 +440,22 @@ export default {
height: 23px;
margin-bottom: 10px;
}
.el-loading-spinner i {
font-size: 100px;
}
.el-loading-spinner .el-loading-text {
font-size: 24px;
color: #FFF;
}
.login-code-box {
.el-loading-spinner i {
font-size: 14px;
}
.el-loading-spinner .el-loading-text {
font-size: 14px;
color: #409EFF;
}
}
}
</style>

View File

@ -1,86 +0,0 @@
<template>
<div class="menus" :style="{width: width + 'px'}">
<set-fault ref="setFault" :class-name="className" />
<train-add-plan ref="trainAddPlan" :class-name="className" />
</div>
</template>
<script>
import SetFault from './menus/setFault';
import TrainAddPlan from './menus/trainAddPlan';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { mapGetters } from 'vuex';
export default {
name: 'CommonMenu',
components: {
SetFault,
TrainAddPlan
},
props: {
selected: {
type: Object,
default() {
return null;
}
}
},
data() {
return {
className: ''
};
},
computed: {
...mapGetters('config', [
'width'
])
},
watch: {
'$store.state.training.commonMenuCount': function (val) {
const operate = this.$store.state.training.commonMenuStep || {};
switch (operate.operation) {
case OperationEvent.MixinCommand.stoppage.menu.operation:
case OperationEvent.MixinCommand.cancelStoppage.menu.operation:
this.$refs.setFault.doShow(operate, this.selected);
break;
case OperationEvent.Train.createPlanTrain.menu.operation:
this.$refs.trainAddPlan.doShow(operate, this.selected);
break;
}
}
},
created() {
switch (this.$route.query.lineCode) {
case '02':
case '05':
this.className = 'fuzhou-01__systerm';
break;
case '03':
this.className = 'beijing-01__systerm';
break;
case '04':
this.className = 'chengdou-03__systerm';
break;
case '06':
this.className = 'ningbo-01__systerm';
break;
case '07':
this.className = 'haerbin-01__systerm';
break;
case '08':
this.className = 'foshan-01__systerm';
break;
case '09':
this.className = 'xian-02__system';
break;
case '10':
case '11':
this.className = 'xian-01__systerm';
break;
}
}
};
</script>
<style scoped>
</style>

View File

@ -3,7 +3,6 @@
<training-tips ref="trainingTips" />
<component :is="menus" :selected="selected" />
<jlmap-visual ref="jlmapVisual" @onSelect="clickEvent" @onMenu="contextmenu" />
<common-menu ref="commonMenu" :selected="selected" />
</div>
</template>
@ -14,14 +13,12 @@ import { getDeviceMenuByDeviceType, OperationEvent } from '@/scripts/ConstDic';
import deviceType from '@/jmap/constant/deviceType';
import JlmapVisual from '@/views/newMap/jlmapNew/index';
import TrainingTips from '@/views/newMap/mapsystemNew/plugin/trainingtip';
import CommonMenu from './commonMenu';
export default {
name: 'LessonCanvas',
components: {
JlmapVisual,
TrainingTips,
CommonMenu
TrainingTips
},
data() {
return {

View File

@ -1,93 +0,0 @@
<template>
<el-dialog
v-dialogDrag
:class="className"
class="notice-info"
:title="title"
:visible.sync="show"
width="360px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
append-to-body
>
<div class="context">
<template v-for="(message,index) in messages">
<div :key="index">{{ message }}</div>
</template>
</div>
<el-row justify="center" class="button-group">
<el-col :span="10" :offset="8">
<el-button :id="domIdSure" type="primary" @click="commit">{{ $t('global.confirm') }}</el-button>
</el-col>
</el-row>
</el-dialog>
</template>
<script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default {
name: 'NoticeInfo',
props: {
className: {
type: String,
default() {
return '';
}
}
},
data() {
return {
dialogShow: false,
messages: [this.$t('tip.commandFailed')]
};
},
computed: {
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
title() {
return this.$t('tip.hint');
},
domIdSure() {
return this.dialogShow ? OperationEvent.Command.close.notice.domId : '';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(messages) {
this.dialogShow = true;
this.messages = [this.$t('tip.commandFailed')];
if (messages && messages != 'null') {
this.messages.push(messages);
}
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.doClose();
},
cancel() {
this.doClose();
}
}
};
</script>
<style>
.notice-info .context {
padding-bottom: 40px !important;
border: 1px solid lightgray;
}
</style>

View File

@ -1,166 +0,0 @@
<template>
<el-dialog v-dialogDrag :class="className" :title="title" :visible.sync="show" width="350px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
<el-row class="header">
<el-col :span="11"><span>设备:</span></el-col>
<el-col :span="11" :offset="2"><span>故障类型:</span></el-col>
</el-row>
<el-row>
<el-form ref="form" :model="form" :rules="rules">
<el-col :span="11">
<el-form-item>
<el-input v-model="deviceName" size="small" disabled />
</el-form-item>
</el-col>
<el-col :span="11" :offset="2">
<el-form-item prop="faultType">
<el-select v-model="form.faultType" size="small" style="height: 28px;" placeholder="请选择">
<el-option
v-for="item in faultList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-form>
</el-row>
<el-row justify="center" class="button-group">
<el-col :span="10" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="4">
<el-button :id="domIdCancel" @click="cancel">取消</el-button>
</el-col>
</el-row>
</el-dialog>
</template>
<script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import OperationHandler from '@/scripts/cmdPlugin/OperationHandler';
import { deviceFaultType, deviceType} from '@/scripts/cmdPlugin/Config';
export default {
name: 'SwitchControl',
props: {
className: {
type: String,
default() {
return '';
}
}
},
data() {
return {
dialogShow: false,
loading: false,
operation: '',
stationName: '',
switchName: '',
activeShow: false,
deviceName: '',
faultList: [],
form: { faultType: ''},
rules: {
faultType: [
{ required: true, message: '请选择故障类型', trigger: 'change'}
]
}
};
},
computed: {
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
domIdConfirm() {
return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operation) : '';
},
title() {
if (this.operation === OperationEvent.MixinCommand.stoppage.menu.operation) {
return '设置故障';
} else if (this.operation === OperationEvent.MixinCommand.cancelStoppage.menu.operation) {
return '取消故障';
}
return '';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(operate, selected) {
if (!this.dialogShow) {
this.switchName = '';
this.stationName = '';
this.operation = operate.operation;
this.cmdType = operate.cmdType;
this.deviceName = deviceType[selected._type] + '-' + selected.name;
this.faultList = deviceFaultType[selected._type];
}
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.form.faultType = '';
this.$refs.form.resetFields();
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs.form.validate((valid) => {
if (valid) {
this.sendCommand();
}
});
},
sendCommand() { //
this.loading = true;
const setp = {
over: true,
operation: this.operation,
cmdType: this.cmdType,
param: {
faultType: this.form.faultType
}
};
this.$store.dispatch('training/nextNew', setp).then(({ valid }) => {
this.loading = false;
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.doClose();
} else {
this.doClose();
this.$messageBox('设置或取消故障操作失败!');
}
}).catch((error) => {
this.loading = false;
this.doClose();
this.$messageBox(error.message || '设置或取消故障操作失败!');
});
},
cancel() {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(() => {
this.doClose();
});
}
}
};
</script>

View File

@ -1,225 +0,0 @@
<template>
<el-dialog
v-dialogDrag
:class="className"
class="stand-stop-time"
:title="title"
:visible.sync="show"
width="340px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-form ref="form" size="small" label-width="80px" :model="addModel" :rules="rules">
<div style="width: 96%;">
<el-form-item label="车 次 号:" label-width="95px" prop="tripNumber">
<el-select v-model="addModel.tripNumber" filterable @change="tripNumberChange">
<el-option
v-for="tripNum in tripNumberList"
:key="tripNum"
:label="tripNum"
:value="tripNum"
/>
</el-select>
</el-form-item>
<el-form-item label="服 务 号:" label-width="95px" prop="serviceNumber">
<el-select v-model="addModel.serviceNumber" filterable>
<el-option
v-for="serviceNumber in serviceNumberList"
:key="serviceNumber"
:label="serviceNumber"
:value="serviceNumber"
/>
</el-select>
</el-form-item>
</div>
</el-form>
<el-row justify="center" class="button-group">
<el-col :span="10" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="4">
<el-button :id="domIdCancel" @click="cancel"> </el-button>
</el-col>
</el-row>
<notice-info ref="noticeInfo" :class-name="className" />
</el-dialog>
</template>
<script>
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { getTripNumberList, getServiceNumbersByTripNum } from '@/api/simulation';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import NoticeInfo from './noticeInfo';
export default {
name: 'TrainAddPlan',
components: {
NoticeInfo
},
props: {
className: {
type: String,
default() {
return '';
}
}
},
data() {
return {
trainNoList: [],
selected: null,
tripNumberList: [],
serviceNumberList: [],
addModel: {
serviceNumber: '', //
tripNumber: '' //
},
rules: {
serviceNumber: [
{ required: true, message: '请输入服务号', trigger: 'blur' }
],
tripNumber: [
{ required: true, message: '请输入车次号', trigger: 'change' }
]
},
dialogShow: false,
loading: false
};
},
computed: {
...mapGetters('map', [
'trainList',
'stationStandList',
'trainWindowSectionCode'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
domIdConfirm() {
return this.dialogShow ? OperationEvent.Train.createPlanTrain.menu.domId : '';
},
title() {
return '创建计划车';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
tripNumberChange(tripNumber) {
getServiceNumbersByTripNum(this.$route.query.group, tripNumber).then(resp => {
this.serviceNumberList = [];
if (typeof resp.data == 'string') {
this.serviceNumberList.push(resp.data);
} else {
resp.data.forEach(item => {
if (!this.serviceNumberList.includes(item)) {
this.serviceNumberList.push(item);
}
});
}
if (this.serviceNumberList.length === 1) {
this.addModel.serviceNumber = this.serviceNumberList[0];
}
});
},
doShow(operate, selected) {
this.selected = selected;
//
// if (!this.dialogShow) {
// }
this.addModel = {
tripNumber:'',
serviceNumber:''
};
getTripNumberList(this.$route.query.group).then(resp => {
this.tripNumberList = [];
resp.data.forEach(item => {
if (!this.tripNumberList.includes(item)) {
this.tripNumberList.push(item);
}
});
}).catch(error => {
console.log(error);
// this.$messageBox(error.message);
});
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
this.$store.dispatch('map/setTrainWindowShow', false);
// this.mouseCancelState(this.selected);
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const operate = {
over: true,
operation: OperationEvent.Train.createPlanTrain.menu.operation,
cmdType: CMD.Section.CMD_Train_Init_Plan,
param: {
serviceNumber: this.addModel.serviceNumber, //
tripNumber: this.addModel.tripNumber //
}
};
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
}
}).catch(() => {
this.loading = false;
this.$refs.noticeInfo.doShow();
this.doClose();
});
} else {
return false;
}
});
},
cancel() {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store
.dispatch('training/nextNew', operate)
.then(({ valid }) => {
if (valid) {
this.doClose();
}
})
.catch(() => {
this.doClose();
});
}
}
};
</script>
<style scoped>
.foshan-01__systerm .el-dialog .base-label {
background: rgba(0, 0, 0, x);
position: relative;
left: -5px;
top: -18px;
padding: 0 5px;
background-color: #F0F0F0;
}
</style>

View File

@ -125,6 +125,12 @@ export default {
handleClose(done) {
this.dialogVisible = false;
this.data = {};
this.formIbp = {
part: ''
};
this.formLw = {
ibpCodeList: []
};
}
}
};

View File

@ -4,6 +4,7 @@
<device-add ref="add" :project-code="projectCode" @reloadTable="reloadTable" />
<edit-config-gateway ref="editConfigGateway" @reloadTable="reloadTable" />
<edit-config ref="editConfig" @reloadTable="reloadTable" />
<input id="device-manage-url" v-model="url" style="opacity: 0;">
</div>
</template>
@ -23,6 +24,7 @@ export default {
data() {
return {
examResultList: [],
url: '',
pagerConfig: {
pageSize: 'pageSize',
pageIndex: 'pageNum'
@ -52,7 +54,13 @@ export default {
type: 'select',
label: '设备类型',
config: {
data: [{label: '道岔', value: 'SWITCH'}, {label: '信号机', value:'SIGNAL'}, {label: '屏蔽门', value: 'PSD'}]
data: [
{label: '道岔', value: 'SWITCH'},
{label: '信号机', value:'SIGNAL'},
{label: '屏蔽门', value: 'PSD'},
{label: '车站', value: 'LW'},
{label: 'IBP盘', value: 'IBP'}
]
}
}
}
@ -91,7 +99,7 @@ export default {
{
type: 'button',
title: this.$t('global.operate'),
width: '250',
width: '300',
buttons: [
{
name: '编辑配置',
@ -101,6 +109,11 @@ export default {
name: this.$t('global.delete'),
handleClick: this.handleDelete,
type: 'danger'
},
{
name: '登录路径',
handleClick: this.getPath,
showControl: (row) => { return row.type === 'LW' || row.type === 'IBP'; }
}
]
}
@ -177,6 +190,26 @@ export default {
},
reloadTable() {
this.queryList.reload();
},
getPath(index, row) {
let url = '';
if (row.type === 'IBP') {
url = `${window.location.protocol}//${window.location.host}/${this.projectCode.toLowerCase()}/login?projectDevice=${row.code}&ibpDevice=true`;
} else {
url = `${window.location.protocol}//${window.location.host}/${this.projectCode.toLowerCase()}/login?projectDevice=${row.code}`;
}
this.url = url;
this.$messageBox();
this.$confirm(`登录路径:${url}`, '登录路径', {
confirmButtonText: '复制路径',
cancelButtonText: '关闭',
type: 'success'
}).then(() => {
const inputText = document.getElementById('device-manage-url');
inputText.select(); //
document.execCommand('Copy'); //
this.$message.success('登录路径已经复制到粘贴板');
});
}
}
};

View File

@ -5,7 +5,7 @@
{{ $t(titleI18n) }}
</div>
<div class="role__head--add">
<el-button v-if="userId == room.creatorId" :disabled="addRoleDis" icon="el-icon-plus" circle plain @click="handleAddUser()" />
<el-button v-if="userId == room.creatorId && !projectDevice" :disabled="addRoleDis" icon="el-icon-plus" circle plain @click="handleAddUser()" />
</div>
</div>
<div class="role__container">
@ -88,6 +88,9 @@ export default {
userId() {
return this.$store.state.user ? this.$store.state.user.id : '';
},
projectDevice() {
return this.$store.state.user.projectDevice;
},
addRoleDis() {
if (this.roleType === 'CI' && this.options.length > 0) {
return true;

View File

@ -114,7 +114,7 @@
<el-button type="primary" style="margin-left: 10px" :disabled="disabled" @click="handleJoin"> {{ $t('trainRoom.enterSimulation') }}</el-button>
<el-button v-if="userId == room.creatorId" style="margin-left: 10px" type="warning" :disabled="disabled" @click="handleStop"> {{ $t('trainRoom.endSimulation') }}</el-button>
</template>
<el-button type="" :disabled="disabled" @click="handleBack">{{ $t('global.back') }}</el-button>
<el-button v-if="!projectDevice" type="" :disabled="disabled" @click="handleBack">{{ $t('global.back') }}</el-button>
</div>
<add-person ref="addPerson" :audience-list="audienceList" @dispatch="handleDispatchUser" />
<qr-code ref="qrCode" />
@ -186,6 +186,9 @@ export default {
rolesHeight() {
return this.height - 100;
},
projectDevice() {
return this.$store.state.user.projectDevice;
},
isXtyProject() {
return getSessionStorage('project').endsWith('xty');
},

View File

@ -7,6 +7,25 @@
<div class="room__head--notes">
{{ $t('trainRoom.comprehensiveTrainingManager') + room.creator.nickName }}
</div>
<div v-if="projectDevice" class="room__head--info">
<el-dropdown class="avatar-container" trigger="hover" :show-timeout="100" style="height:20px; cursor: pointer;">
<div class="avatar-wrapper">
<span style="color: white;font-size: 16px;">
{{ username }}
</span>
<i class="el-icon-caret-bottom" style="color: #909399;" />
</div>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item>
<span style="display:block;" @click="handleDetail">{{ $t('global.personalDetails') }}</span>
</el-dropdown-item>
<el-dropdown-item>
<span style="display:block;" @click="logout">{{ $t('global.exit') }}</span>
</el-dropdown-item>
</el-dropdown-menu>
<user-info ref="userInfo" />
</el-dropdown>
</div>
</div>
<div class="room__container">
<e-members
@ -38,6 +57,7 @@
/>
</div>
<div class="room__footer" />
<user-info ref="userInfo" />
</div>
</template>
@ -53,12 +73,14 @@ import { getPublishMapInfo, hasDoorStationList } from '@/api/jmap/map';
import { launchFullscreen } from '@/utils/screen';
import { getStationList } from '@/api/runplan';
import { checkLoginLine } from '@/api/login';
import userInfo from '@/layout/components/userInfo';
export default {
components: {
eMembers,
eChat,
eRoles
eRoles,
userInfo
},
data() {
return {
@ -95,6 +117,12 @@ export default {
},
userId() {
return this.$store.state.user ? this.$store.state.user.id : '';
},
username() {
return this.$store.state.user.nickname;
},
projectDevice() {
return this.$store.state.user.projectDevice;
}
},
watch: {
@ -330,6 +358,14 @@ export default {
async clearSubscribe() {
clearSubscribe(`${roomTopic}\/${this.group}`);
await this.$store.dispatch('socket/setRoomSubscribe', false);
},
logout() {
this.$store.dispatch('LogOut').then(() => {
location.reload(); // vue-router bug
});
},
handleDetail() {
this.$refs.userInfo.doShow();
}
}
};
@ -364,6 +400,11 @@ export default {
left: 10px;
bottom: 5px;
}
&--info {
position: absolute;
right: 10px;
bottom: 5px;
}
}
&__container {