This commit is contained in:
zyy 2020-01-09 16:24:10 +08:00
commit 41329739dc
2 changed files with 161 additions and 477 deletions

View File

@ -74,6 +74,7 @@
<manage-user ref="manageUser" /> <manage-user ref="manageUser" />
<help-about ref="helpAbout" /> <help-about ref="helpAbout" />
<set-limit-speed ref="setLimitSpeed" /> <set-limit-speed ref="setLimitSpeed" />
<system-login ref="systemLogin" />
</div> </div>
</template> </template>
<script> <script>
@ -93,6 +94,7 @@ import ViewDevice from './menuDialog/viewDevice';
import ManageUser from './menuDialog/manageUser'; import ManageUser from './menuDialog/manageUser';
import HelpAbout from './menuDialog/helpAbout'; import HelpAbout from './menuDialog/helpAbout';
import SetLimitSpeed from './menuDialog/setLimitSpeed'; import SetLimitSpeed from './menuDialog/setLimitSpeed';
import SystemLogin from './menuDialog/systemLogin';
import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo'; import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo';
import { EventBus } from '@/scripts/event-bus'; import { EventBus } from '@/scripts/event-bus';
@ -110,7 +112,8 @@ export default {
TrainDelete, TrainDelete,
ManageUser, ManageUser,
HelpAbout, HelpAbout,
SetLimitSpeed SetLimitSpeed,
SystemLogin
}, },
props: { props: {
selected: { selected: {
@ -131,536 +134,98 @@ export default {
menuNormal: { menuNormal: {
Local: [ Local: [
{ {
title: '系统', title: '访问控制',
operate: OperationEvent.Command.mBar.system, operate: OperationEvent.Command.mBar.system,
children: [ children: [
{ {
title: '登录', title: '登录',
click: this.undeveloped click: this.login
}, },
{ {
title: '注销', title: '注销',
click: this.undeveloped click: this.undeveloped
}, },
{ {
type: 'separator' title: '登录转移',
},
{
title: '连接主用中心',
click: this.undeveloped click: this.undeveloped
}, },
{ {
title: '连接备用中心', title: '区域分配',
click: this.undeveloped click: this.undeveloped
}, },
{ {
type: 'separator' title: '员工管理',
click: this.undeveloped
}, },
{ {
title: '退出', title: '职位功能划分',
click: this.undeveloped
},
{
title: '用户概况',
click: this.undeveloped
},
{
title: '登录概览',
click: this.undeveloped click: this.undeveloped
} }
] ]
}, },
{ {
title: '临时限速', title: '列车库存',
operate: OperationEvent.Command.mBar.limitSpeed, operate: OperationEvent.Command.mBar.check
children: [
{
title: '设置临时限速',
operate: OperationEvent.Section.setLimitSpeed,
click: this.setLimitSpeed
}, },
{ {
title: '取消临时限速', title: '显示控制',
operate: OperationEvent.Section.cancelSpeed, operate: OperationEvent.Command.mBar.view
click: this.cancleLimitSpeed
}
]
},
{
title: '查看',
operate: OperationEvent.Command.mBar.check,
children: [
{
title: '运行图',
click: this.undeveloped
},
{
title: '报告分析',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '视图',
click: this.undeveloped,
operate: '',
children: [{
title: '报警',
click: this.undeveloped
},
{
title: '列车运行信息',
click: this.undeveloped
},
{
title: '设备状态',
click: this.undeveloped
},
{
title: '列车详细信息',
click: this.undeveloped
},
{
title: '站台详细信息',
click: this.undeveloped
}]
},
{
title: '终端站发车列表',
click: this.undeveloped
},
{
title: '详细设备状态',
click: this.undeveloped
},
{
title: '查找列车',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '显示目的地号',
click: this.undeveloped
},
{
title: '显示轨道名',
click: this.undeveloped
},
{
title: '显示道岔名',
click: this.undeveloped
},
{
title: '显示信号机名',
click: this.undeveloped
},
{
title: '显示车次窗位置',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '显示车次号',
click: this.undeveloped
},
{
title: '显示车组号',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '全屏',
click: this.undeveloped
},
{
title: '放大',
click: this.undeveloped
},
{
title: '缩小',
click: this.undeveloped
},
{
title: '恢复',
click: this.undeveloped
}
]
},
{
title: '车站定位',
operate: '',
children: [
]
},
{
title: '显示',
operate: OperationEvent.Command.mBar.view,
hide: true,
children: [
{
title: '设置列车识别号显示',
click: this.setTrainIdDisplay,
operate: OperationEvent.Command.view.setTrainIdDisplay
},
{
title: '设置名称显示',
click: this.setNameDisplay,
operate: OperationEvent.Command.view.setNameDisplay
},
{
title: '设置设备显示',
click: this.setDeviceDisplay,
operate: OperationEvent.Command.view.setDeviceDisplay
}
]
},
{
title: 'ATS终端操作',
operate: '',
children: [
{
title: '当天运行车计划',
click: this.undeveloped
},
{
title: '出入库预告',
click: this.undeveloped
}
]
},
{
title: '计划车操作',
operate: '',
children: [
{
title: '添加计划车',
click: this.undeveloped
},
{
title: '平移计划车',
click: this.undeveloped
},
{
title: '删除计划车',
click: this.undeveloped
}
]
},
{
title: '批处理命令',
operate: '',
children: [
{
title: '全线扣车',
click: this.undeveloped
},
{
title: '取消全线扣车',
click: this.undeveloped
},
{
title: '取消上行全线扣车',
click: this.undeveloped
},
{
title: '取消下行全线扣车',
click: this.undeveloped
}
]
},
{
title: '信息管理',
operate: '',
children: [
{
title: '调度日志',
click: this.undeveloped
},
{
title: '调度留言提醒',
click: this.undeveloped
},
{
title: '报警设置',
click: this.undeveloped
}
]
},
{
title: '帮助',
children: [
{
title: '关于ITS GPC 工作站',
click: this.about,
operate: OperationEvent.Command.help.about
}
]
} }
], ],
Center: [ Center: [
{ {
title: '系统', title: '访问控制',
operate: OperationEvent.Command.mBar.system, operate: OperationEvent.Command.mBar.system,
children: [ children: [
{ {
title: '登录', title: '登录',
click: this.undeveloped click: this.login
}, },
{ {
title: '注销', title: '注销',
click: this.undeveloped click: this.undeveloped
}, },
{ {
type: 'separator' title: '登录转移',
},
{
title: '连接主用中心',
click: this.undeveloped click: this.undeveloped
}, },
{ {
title: '连接备用中心', title: '区域分配',
click: this.undeveloped click: this.undeveloped
}, },
{ {
type: 'separator' title: '员工管理',
click: this.undeveloped
}, },
{ {
title: '退出', title: '职位功能划分',
click: this.undeveloped
},
{
title: '用户概况',
click: this.undeveloped
},
{
title: '登录概览',
click: this.undeveloped click: this.undeveloped
} }
] ]
}, },
{ {
title: '临时限速', title: '列车库存',
operate: OperationEvent.Command.mBar.limitSpeed, operate: OperationEvent.Command.mBar.check
children: [
{
title: '设置临时限速',
operate: OperationEvent.Section.setLimitSpeed,
click: this.setLimitSpeed
}, },
{ {
title: '取消临时限速', title: '显示控制',
operate: OperationEvent.Section.cancelSpeed, operate: OperationEvent.Command.mBar.view
click: this.cancleLimitSpeed
}
]
},
{
title: '查看',
operate: OperationEvent.Command.mBar.check,
children: [
{
title: '运行图',
click: this.undeveloped
},
{
title: '报告分析',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '视图',
click: this.undeveloped,
operate: '',
children: [{
title: '报警',
click: this.undeveloped
},
{
title: '列车运行信息',
click: this.undeveloped
},
{
title: '设备状态',
click: this.undeveloped
},
{
title: '列车详细信息',
click: this.undeveloped
},
{
title: '站台详细信息',
click: this.undeveloped
}]
},
{
title: '终端站发车列表',
click: this.undeveloped
},
{
title: '详细设备状态',
click: this.undeveloped
},
{
title: '查找列车',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '显示目的地号',
click: this.undeveloped
},
{
title: '显示轨道名',
click: this.undeveloped
},
{
title: '显示道岔名',
click: this.undeveloped
},
{
title: '显示信号机名',
click: this.undeveloped
},
{
title: '显示车次窗位置',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '显示车次号',
click: this.undeveloped
},
{
title: '显示车组号',
click: this.undeveloped
},
{
type: 'separator'
},
{
title: '全屏',
click: this.undeveloped
},
{
title: '放大',
click: this.undeveloped
},
{
title: '缩小',
click: this.undeveloped
},
{
title: '恢复',
click: this.undeveloped
}
]
},
{
title: '车站定位',
operate: '',
children: [
]
},
{
title: '显示',
operate: OperationEvent.Command.mBar.view,
hide: true,
children: [
{
title: '设置列车识别号显示',
click: this.setTrainIdDisplay,
operate: OperationEvent.Command.view.setTrainIdDisplay
},
{
title: '设置名称显示',
click: this.setNameDisplay,
operate: OperationEvent.Command.view.setNameDisplay
},
{
title: '设置设备显示',
click: this.setDeviceDisplay,
operate: OperationEvent.Command.view.setDeviceDisplay
}
]
},
{
title: 'ATS终端操作',
operate: '',
children: [
{
title: '当天运行车计划',
click: this.undeveloped
},
{
title: '出入库预告',
click: this.undeveloped
}
]
},
{
title: '计划车操作',
operate: '',
children: [
{
title: '添加计划车',
click: this.undeveloped
},
{
title: '平移计划车',
click: this.undeveloped
},
{
title: '删除计划车',
click: this.undeveloped
}
]
},
{
title: '批处理命令',
operate: '',
children: [
{
title: '全线扣车',
click: this.undeveloped
},
{
title: '取消全线扣车',
click: this.undeveloped
},
{
title: '取消上行全线扣车',
click: this.undeveloped
},
{
title: '取消下行全线扣车',
click: this.undeveloped
}
]
},
{
title: '信息管理',
operate: '',
children: [
{
title: '调度日志',
click: this.undeveloped
},
{
title: '调度留言提醒',
click: this.undeveloped
},
{
title: '报警设置',
click: this.undeveloped
}
]
},
{
title: '帮助',
children: [
{
title: '关于ITS GPC 工作站',
click: this.about,
operate: OperationEvent.Command.help.about
}
]
} }
] ]
} }
@ -877,6 +442,20 @@ export default {
} }
}); });
}, },
login(order) {
this.closeMenu(true);
this.$refs.systemLogin.doShow();
// const operate = {
// operation: order.operate
// };
// this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
// if (valid) {
// this.closeMenu(true);
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
// this.$refs.systemLogin.doShow();
// }
// });
},
undeveloped() { undeveloped() {
this.doClose(); this.doClose();
this.$alert('实现中......', '提示', { this.$alert('实现中......', '提示', {

View File

@ -0,0 +1,105 @@
<template>
<el-dialog
v-dialogDrag
class="chengdou-03__systerm stand-stop-time"
:title="title"
:visible.sync="show"
width="500px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-form ref="form" size="small" label-width="0" :model="addModel" :rules="rules">
<el-row>
<el-col :span="12">
<div style="text-align: center;">用户名</div>
</el-col>
<el-col :span="12">
<div style="text-align: center;">密码</div>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="username">
<el-input v-model="addModel.username" style="width:200px;" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="password">
<el-input v-model="addModel.password" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<div style="text-align: center;">用户角色</div>
</el-row>
<el-row>
<el-col :span="12" :offset="6">
<el-form-item prop="role">
<div />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item prop="notes">
<el-input v-model="addModel.notes" type="textarea" :rows="3" />
</el-form-item>
</el-row>
</el-form>
<el-row justify="center" class="button-group">
<el-col :span="16" :offset="5">
<el-button type="primary" :loading="loading" @click="commit">确定</el-button>
<el-button @click="cancel">取消</el-button>
<el-button>帮助</el-button>
</el-col>
</el-row>
</el-dialog>
</template>
<script>
export default {
name: 'SystemLogin',
data() {
return {
addModel: {
username: '',
password: '',
role: '',
note: ''
},
rules: {},
dialogShow: false
};
},
computed: {
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
title() {
return '登录';
}
},
methods: {
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
doShow() {
this.dialogShow = true;
},
cancel() {
this.doClose();
},
commit() {
this.$refs['form'].validate((valid) => {
});
}
}
};
</script>
<style scoped>
</style>