Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
b3f538fa09
@ -100,12 +100,12 @@ export default {
|
|||||||
label: '设置临时限速',
|
label: '设置临时限速',
|
||||||
handler: this.setSpeed,
|
handler: this.setSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
|
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '取消临时限速',
|
|
||||||
handler: this.cancelSpeed,
|
|
||||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
|
|
||||||
}
|
}
|
||||||
|
// {
|
||||||
|
// label: '取消临时限速',
|
||||||
|
// handler: this.cancelSpeed,
|
||||||
|
// cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
|
||||||
|
// }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
menuForce: [
|
menuForce: [
|
||||||
@ -293,17 +293,17 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancelSpeed() {
|
// cancelSpeed() {
|
||||||
let sectionCode = this.selected.code;
|
// let sectionCode = this.selected.code;
|
||||||
if (this.selected.type == '02' || this.selected.type == '03') {
|
// if (this.selected.type == '02' || this.selected.type == '03') {
|
||||||
sectionCode = this.selected.parentCode;
|
// sectionCode = this.selected.parentCode;
|
||||||
}
|
// }
|
||||||
commitOperate(menuOperate.Section.cancelSpeed, {sectionCode:sectionCode}).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Section.cancelSpeed, {sectionCode:sectionCode}).then(({valid, operate})=>{
|
||||||
if (valid) {
|
// if (valid) {
|
||||||
this.$refs.speedLimitControl.doShow(operate, this.selected);
|
// this.$refs.speedLimitControl.doShow(operate, this.selected);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
// 设置故障
|
// 设置故障
|
||||||
setStoppage() {
|
setStoppage() {
|
||||||
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
|
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
|
||||||
|
@ -297,7 +297,7 @@ export default {
|
|||||||
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
|
||||||
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
|
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
|
||||||
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
|
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
|
||||||
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' },
|
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
|
||||||
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -316,7 +316,7 @@ export default {
|
|||||||
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
|
||||||
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
|
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
|
||||||
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
|
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
|
||||||
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' },
|
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '0' },
|
||||||
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -133,6 +133,7 @@ const CompanyManage = () => import('@/views/system/companyManage/index');
|
|||||||
const QuestionsRuleManage = () => import('@/views/system/questionsRuleManage/index');
|
const QuestionsRuleManage = () => import('@/views/system/questionsRuleManage/index');
|
||||||
const PreTheoryImport = () => import('@/views/competitionManage/bankList/preImport');
|
const PreTheoryImport = () => import('@/views/competitionManage/bankList/preImport');
|
||||||
const PlanScheduleWicket = () => import('@/views/newMap/displayNew/demon/planSchedule');
|
const PlanScheduleWicket = () => import('@/views/newMap/displayNew/demon/planSchedule');
|
||||||
|
const MessageBoard = () => import('@/views/messageBoard/index');
|
||||||
|
|
||||||
// import { GenerateRouteProjectList } from '@/scripts/ProjectConfig';
|
// import { GenerateRouteProjectList } from '@/scripts/ProjectConfig';
|
||||||
// import { getSessionStorage } from '@/utils/auth';
|
// import { getSessionStorage } from '@/utils/auth';
|
||||||
@ -404,6 +405,11 @@ export const publicAsyncRoute = [
|
|||||||
path: '/practiceDisplay',
|
path: '/practiceDisplay',
|
||||||
component: PracticeDisplay,
|
component: PracticeDisplay,
|
||||||
hidden: true
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/messageBoard',
|
||||||
|
component: MessageBoard,
|
||||||
|
hidden: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
// 城市轨道项目
|
// 城市轨道项目
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<!--<el-dialog-->
|
||||||
id="elDialog"
|
<!--id="elDialog"-->
|
||||||
title="留言板"
|
<!--title="留言板"-->
|
||||||
:visible.sync="dialogVisible"
|
<!--:visible.sync="dialogVisible"-->
|
||||||
fullscreen
|
<!--fullscreen-->
|
||||||
:show-close="false"
|
<!--:show-close="false"-->
|
||||||
center
|
<!--center-->
|
||||||
:before-close="handleClose"
|
<!--:before-close="handleClose"-->
|
||||||
>
|
<!-->-->
|
||||||
|
<div id="elDialog" class="message-board-box">
|
||||||
|
<div class="message-board-title">留言板</div>
|
||||||
<div style="width: 80%;margin-left: 10%;padding: 20px;margin-bottom: 20px;background-color: rgba(255,255,255,0);border: 1px solid #ebeef5;border-radius: 4px;box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);">
|
<div style="width: 80%;margin-left: 10%;padding: 20px;margin-bottom: 20px;background-color: rgba(255,255,255,0);border: 1px solid #ebeef5;border-radius: 4px;box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);">
|
||||||
<div v-if="postCommentList.length">
|
<div v-if="postCommentList.length">
|
||||||
<template v-for="(item,i) in postCommentList">
|
<template v-for="(item,i) in postCommentList">
|
||||||
@ -90,11 +92,13 @@
|
|||||||
<el-button type="danger" @click="commitComment">留言</el-button>
|
<el-button type="danger" @click="commitComment">留言</el-button>
|
||||||
</span>
|
</span>
|
||||||
<el-button size="mini" type="danger" style="position: fixed; right: 100px;top: 80px;width: 90px;" @click="goSlide">我要留言</el-button>
|
<el-button size="mini" type="danger" style="position: fixed; right: 100px;top: 80px;width: 90px;" @click="goSlide">我要留言</el-button>
|
||||||
<el-button size="mini" style="position: fixed; right: 100px;top: 120px;width: 90px;" @click="dialogVisible = false">退出留言板</el-button>
|
<!--<el-button size="mini" style="position: fixed; right: 100px;top: 120px;width: 90px;" @click="dialogVisible = false">退出留言板</el-button>-->
|
||||||
<div v-show="imgShow" style="position: fixed;width: 100%;height: 100%;left: 0;top: 0;background: rgba(0,0,0,0.5);cursor: zoom-out;" @click="handelCloseImg">
|
<div v-show="imgShow" style="position: fixed;width: 100%;height: 100%;left: 0;top: 0;background: rgba(0,0,0,0.5);cursor: zoom-out;" @click="handelCloseImg">
|
||||||
<img id="targetImg" src="" style="position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);min-width: 500px;max-height: 80%;height: auto;">
|
<img id="targetImg" src="" style="position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);min-width: 500px;max-height: 80%;height: auto;">
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</div>
|
||||||
|
|
||||||
|
<!--</el-dialog>-->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -105,13 +109,12 @@ import unlike_icon from '@/assets/unlike.png';
|
|||||||
import reply_icon from '@/assets/reply.png';
|
import reply_icon from '@/assets/reply.png';
|
||||||
import delete_icon from '@/assets/delete.png';
|
import delete_icon from '@/assets/delete.png';
|
||||||
import { superAdmin } from '@/router/index_APP_TARGET';
|
import { superAdmin } from '@/router/index_APP_TARGET';
|
||||||
import { getSessionStorage } from '@/utils/auth';
|
|
||||||
import { ProjectCode } from '@/scripts/ProjectConfig';
|
import { ProjectCode } from '@/scripts/ProjectConfig';
|
||||||
export default {
|
export default {
|
||||||
name: 'MessageBoard',
|
name: 'MessageBoard',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
// dialogVisible: false,
|
||||||
content: '',
|
content: '',
|
||||||
postCommentList: [],
|
postCommentList: [],
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -140,7 +143,7 @@ export default {
|
|||||||
return this.$store.state.user.roles.includes(superAdmin);
|
return this.$store.state.user.roles.includes(superAdmin);
|
||||||
},
|
},
|
||||||
projectCode() {
|
projectCode() {
|
||||||
const project = getSessionStorage('project');
|
const project = this.$route.query.project;
|
||||||
return ProjectCode[project];
|
return ProjectCode[project];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -152,20 +155,18 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.projectCode === 'DRTS' || this.projectCode === 'BJD') {
|
|
||||||
getPostByProjectCode(this.projectCode).then(resp => {
|
getPostByProjectCode(this.projectCode).then(resp => {
|
||||||
this.postId = resp.data.id;
|
this.postId = resp.data.id;
|
||||||
});
|
});
|
||||||
}
|
this.handleCurrentChange();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClose() {
|
// handleClose() {
|
||||||
this.dialogVisible = false;
|
// this.dialogVisible = false;
|
||||||
},
|
// },
|
||||||
doShow() {
|
// doShow() {
|
||||||
this.handleCurrentChange();
|
// this.dialogVisible = true;
|
||||||
this.dialogVisible = true;
|
// },
|
||||||
},
|
|
||||||
commitComment() {
|
commitComment() {
|
||||||
const images = this.content.match(/<img/g);
|
const images = this.content.match(/<img/g);
|
||||||
const answerContent = this.handleEmojiContent(this.content);
|
const answerContent = this.handleEmojiContent(this.content);
|
||||||
@ -370,6 +371,7 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.dialog-footer{
|
.dialog-footer{
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 10px 0 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@ -389,16 +391,22 @@ export default {
|
|||||||
width: 100px;
|
width: 100px;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
/deep/ .el-dialog.is-fullscreen{
|
.message-board-box{
|
||||||
background-image:url('../../../../assets/bg_board.jpg');
|
width: 100%;
|
||||||
|
background-image:url('../../assets/bg_board.jpg');
|
||||||
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
/deep/.ql-container{
|
/deep/.ql-container{
|
||||||
height: 80%;
|
height: 80%;
|
||||||
}
|
}
|
||||||
/deep/.el-dialog__title{
|
.message-board-title{
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: #F00;
|
color: #F00;
|
||||||
font-family: 'fangsong';
|
font-family: 'fangsong';
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
height: 80px;
|
||||||
|
line-height: 80px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -46,7 +46,6 @@
|
|||||||
<scheduling v-if="scheduleLoadShow" ref="scheduling" :group="group" />
|
<scheduling v-if="scheduleLoadShow" ref="scheduling" :group="group" />
|
||||||
<scheduling-view v-if="schedulePreviewShow" ref="schedulingView" :group="group" />
|
<scheduling-view v-if="schedulePreviewShow" ref="schedulingView" :group="group" />
|
||||||
<qr-code ref="qrCode" />
|
<qr-code ref="qrCode" />
|
||||||
<message-board ref="messageBoard" />
|
|
||||||
<contect-us ref="contectUs" />
|
<contect-us ref="contectUs" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -60,7 +59,6 @@ import SchedulingView from '@/views/newMap/displayNew/demon/schedulingView';
|
|||||||
import { EventBus } from '@/scripts/event-bus';
|
import { EventBus } from '@/scripts/event-bus';
|
||||||
import DistributeDraft from '@/views/components/limits/distribute';
|
import DistributeDraft from '@/views/components/limits/distribute';
|
||||||
import QrCode from '@/components/QrCode';
|
import QrCode from '@/components/QrCode';
|
||||||
import MessageBoard from './demon/messageBoard';
|
|
||||||
import ContectUs from '@/views/newMap/displayNew/dispatherContest/contectUs';
|
import ContectUs from '@/views/newMap/displayNew/dispatherContest/contectUs';
|
||||||
import { PermissionType } from '@/scripts/ConstDic';
|
import { PermissionType } from '@/scripts/ConstDic';
|
||||||
export default {
|
export default {
|
||||||
@ -72,8 +70,7 @@ export default {
|
|||||||
SchedulingView,
|
SchedulingView,
|
||||||
DistributeDraft,
|
DistributeDraft,
|
||||||
QrCode,
|
QrCode,
|
||||||
ContectUs,
|
ContectUs
|
||||||
MessageBoard
|
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
isAllShow:{
|
isAllShow:{
|
||||||
@ -321,7 +318,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
messageBoardShow() {
|
messageBoardShow() {
|
||||||
this.$refs.messageBoard.doShow();
|
// this.$refs.messageBoard.doShow();
|
||||||
|
const routeData = this.$router.resolve({
|
||||||
|
path:'/messageBoard',
|
||||||
|
query:{
|
||||||
|
project: this.$route.query.project,
|
||||||
|
noPreLogout: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.open(routeData.href, '_blank', 'noopener noreferrer');
|
||||||
},
|
},
|
||||||
contectUs() {
|
contectUs() {
|
||||||
this.$refs.contectUs.doShow();
|
this.$refs.contectUs.doShow();
|
||||||
|
Loading…
Reference in New Issue
Block a user