diff --git a/.env.development b/.env.development index 907d441c5..fd4fb4605 100644 --- a/.env.development +++ b/.env.development @@ -7,6 +7,8 @@ NODE_ENV = 'development' # VUE_APP_BASE_API = 'http://192.168.3.4:9000' VUE_APP_BASE_API = 'http://192.168.3.6:9000' VUE_APP_VOICE_API = 'https://test.joylink.club/jlcloud/' +# VUE_APP_VOICE_API = 'http://192.168.8.110:9008' + # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # to control whether the babel-plugin-dynamic-import-node plugin is enabled. diff --git a/Jenkinsfile-prd b/Jenkinsfile-prd index 1bd53bb27..09cd9e7b6 100644 --- a/Jenkinsfile-prd +++ b/Jenkinsfile-prd @@ -11,7 +11,6 @@ pipeline { nodejs 'nodejs-10' } steps { - sh 'npm update' sh 'npm install' sh 'npm run build' } diff --git a/Jenkinsfile-test b/Jenkinsfile-test index fff7d237c..7961d5f98 100644 --- a/Jenkinsfile-test +++ b/Jenkinsfile-test @@ -11,7 +11,6 @@ pipeline { nodejs 'nodejs-10' } steps { - sh 'npm update' sh 'npm install' sh 'npm run test' } diff --git a/package.json b/package.json index d551ce4d2..2ec416153 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "path-to-regexp": "2.4.0", "qrcode.vue": "^1.6.2", "qs": "^6.9.3", + "quill-image-extend-module": "^1.1.2", "recordrtc": "^5.5.9", "script-loader": "^0.7.2", "sessionstorage": "^0.1.0", diff --git a/src/api/jmap/map.js b/src/api/jmap/map.js index 9acfc87ba..7a625330d 100644 --- a/src/api/jmap/map.js +++ b/src/api/jmap/map.js @@ -236,3 +236,10 @@ export function getNewMapDataByMapId(mapId) { method: 'get' }); } +/** 发布地图根据id生成子系统及权限 */ +export function generateAncillaryData(mapId) { + return request({ + url: `/api/map/${mapId}/function/generate`, + method: 'post' + }); +} diff --git a/src/api/learn.js b/src/api/learn.js new file mode 100644 index 000000000..738eb18cf --- /dev/null +++ b/src/api/learn.js @@ -0,0 +1,84 @@ +import request from '@/utils/request'; + +// 根据postId帖子ID分页查询留言列表 +export function queryMessagePagingByPostId(postId, params) { + return request({ + url: `/api/learn/${postId}/message/pagedQuery/postId`, + method: 'get', + params: params + }); +} +// 根据项目分页查询留言列表 +export function queryMessagePagingByProjectCode(projectCode, params) { + return request({ + url: `/api/learn/${projectCode}/message/pagedQuery/project`, + method: 'get', + params: params + }); +} +// 回复帖子 +export function answerPost(data) { + return request({ + url: `/api/learn/message/create`, + method: 'post', + data: data + }); +} +// 评论留言 +export function commentLevelMessage(messageId, data) { + return request({ + url: `/api/learn/${messageId}/comment`, + method: 'post', + data: data + }); +} +// 评论 留言的评论 +export function commentComents(messageId, commentId, data) { + return request({ + url: `/api/learn/${messageId}/${commentId}/comment`, + method: 'post', + data: data + }); +} +// 管理员删除留言 +export function deleteMessageByAdmin(messageId) { + return request({ + url: `/api/learn/${messageId}/deleteMessage/admin`, + method: 'delete' + }); +} +// 用户自己删除留言 +export function deleteMessageBySelf(messageId) { + return request({ + url: `/api/learn/${messageId}/deleteMessage/user`, + method: 'delete' + }); +} +// 查询留言的评论列表 +export function queryMessageCommentList(messageId) { + return request({ + url: `/api/learn/${messageId}/list`, + method: 'get' + }); +} +// 删除评论回复管理员 +export function deleteCommentByAdmin(commentId) { + return request({ + url: `/api/learn/${commentId}/deleteComment/admin`, + method: 'delete' + }); +} +// 删除评论回复用户 +export function deleteCommentBySelf(commentId) { + return request({ + url: `/api/learn/${commentId}/deleteComment/user`, + method: 'delete' + }); +} +// 根据项目获取项目关联的帖子 +export function getPostByProjectCode(projectCode) { + return request({ + url: `/api/learn/${projectCode}/post`, + method: 'get' + }); +} diff --git a/src/assets/bg_board.jpg b/src/assets/bg_board.jpg new file mode 100644 index 000000000..57b78a062 Binary files /dev/null and b/src/assets/bg_board.jpg differ diff --git a/src/assets/delete.png b/src/assets/delete.png new file mode 100644 index 000000000..a5d3f42fa Binary files /dev/null and b/src/assets/delete.png differ diff --git a/src/assets/like.png b/src/assets/like.png new file mode 100644 index 000000000..d36ee6510 Binary files /dev/null and b/src/assets/like.png differ diff --git a/src/assets/reply.png b/src/assets/reply.png new file mode 100644 index 000000000..04215c4a0 Binary files /dev/null and b/src/assets/reply.png differ diff --git a/src/assets/unlike.png b/src/assets/unlike.png new file mode 100644 index 000000000..dddf99c85 Binary files /dev/null and b/src/assets/unlike.png differ diff --git a/src/components/QueryListPage/DataForm.vue b/src/components/QueryListPage/DataForm.vue index f9edadf9c..f843a0365 100644 --- a/src/components/QueryListPage/DataForm.vue +++ b/src/components/QueryListPage/DataForm.vue @@ -183,6 +183,7 @@ :placeholder="item.placeholder" :disabled="item.disabled" multiple + @change="((val)=>{deviceChange(val, item)})" > \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue b/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue index 0b657cdd8..b3e620c49 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue @@ -29,7 +29,7 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue index f0cae6718..f490d7217 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue @@ -158,7 +158,7 @@ export default { }; this.strategy = row.value; this.isConfirm = true; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue index 3d4c4f2c6..bd08e779f 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue @@ -18,7 +18,7 @@ style="background: #f0f0f0;" >
-
{{ data.name }}
+
{{ node.name }}
import { mapGetters } from 'vuex'; -import { MapDeviceType, OperationEvent } from '@/scripts/ConstDic'; +import { MapDeviceType } from '@/scripts/cmdPlugin/Config'; +import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { mouseCancelState } from '@/jmapNew/theme/components/utils/menuItemStatus'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; @@ -262,7 +263,7 @@ export default { operation: OperationEvent.Command.cancel.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.doClose(); } diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue index de74f773b..85befb629 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue @@ -77,7 +77,8 @@
\ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue index ec304506c..d2ba3392b 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue @@ -1,126 +1,134 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue index ec87e0f81..0dc72a5a4 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue @@ -1,170 +1,181 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue index a60fbeeae..2fc0b1930 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue @@ -27,7 +27,8 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/manageUser.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/manageUser.vue index 2ec6fadfa..62803376d 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/manageUser.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/manageUser.vue @@ -1,282 +1,300 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/stationControl.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/stationControl.vue index fb1ba7387..dab41a4c8 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/stationControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/stationControl.vue @@ -131,7 +131,7 @@ export default { operation: OperationEvent.Command.cancel.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.doClose(); } diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/trainAdd.vue index 6bf8c82a0..9c2ab1ec8 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/trainAdd.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/trainAdd.vue @@ -1,154 +1,167 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/trainDelete.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/trainDelete.vue index bbdd4bb4f..dd2710c1a 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/trainDelete.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/trainDelete.vue @@ -1,141 +1,149 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/menuDialog/trainTranstalet.vue b/src/jmapNew/theme/beijing_01/menus/menuDialog/trainTranstalet.vue index 8b62effb9..fe78e420f 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuDialog/trainTranstalet.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuDialog/trainTranstalet.vue @@ -1,152 +1,165 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/menuStation.vue b/src/jmapNew/theme/beijing_01/menus/menuStation.vue index 595630474..8cfcd8e98 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuStation.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuStation.vue @@ -193,7 +193,7 @@ export default { code: this.selected.code, operation: OperationEvent.Station.setAutoTrigger.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } @@ -209,7 +209,7 @@ export default { code: this.selected.code, operation: OperationEvent.Station.cancelAutoTrigger.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } @@ -224,7 +224,7 @@ export default { code: this.selected.code, operation: OperationEvent.Station.powerUnLock.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.stationCmdControl.doShow(operate, this.selected); @@ -238,7 +238,7 @@ export default { code: this.selected.code, operation: OperationEvent.Station.execKeyOperationTest.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.stationCmdControl.doShow(operate, this.selected); @@ -252,7 +252,7 @@ export default { code: this.selected.code, operation: OperationEvent.Station.humanControlALL.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.stationHumanControlAll.doShow(operate, this.selected); @@ -266,7 +266,7 @@ export default { code: this.selected.code, operation: OperationEvent.Station.atsAutoControlALL.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.stationSetRouteControlAll.doShow(operate, this.selected); diff --git a/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue b/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue index 2e24b5e2e..dc075462a 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue @@ -249,22 +249,6 @@ export default { } }); }, - // 强制取消扣车 - // cancelDetainTrainForce() { - // const operate = { - // start: true, - // code: this.selected.code, - // type: MapDeviceType.StationStand.type, - // label: MapDeviceType.StationStand.label, - // operation: OperationEvent.StationStand.cancelDetainTrainForce.menu.operation - // }; - // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - // if (valid) { - // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - // this.$refs.standControl.doShow(operate, this.selected); - // } - // }); - // }, // 设置跳停 setJumpStop() { commitOperate(menuOperate.StationStand.setJumpStop, {standCode:this.selected.code}, 0).then(({ valid, operate })=>{ diff --git a/src/jmapNew/theme/beijing_01/menus/menuTrain.vue b/src/jmapNew/theme/beijing_01/menus/menuTrain.vue index 9cac90607..71d502bdf 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuTrain.vue @@ -393,7 +393,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.limitSpeed.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { @@ -418,7 +418,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.addTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainDefine.doShow(operate, this.selected); @@ -432,7 +432,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.delTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainDelete.doShow(operate, this.selected); @@ -446,7 +446,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.moveTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainMove.doShow(operate, this.selected); @@ -460,7 +460,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.editTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainEdit.doShow(operate, this.selected); @@ -474,7 +474,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.editTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainSetPlan.doShow(operate, this.selected); @@ -488,7 +488,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.moveEventlyTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainMoveEvently.doShow(operate, this.selected); @@ -502,7 +502,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.deletePlanTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainDeletePlan.doShow(operate, this.selected); @@ -516,7 +516,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.editTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainSetHead.doShow(operate, this.selected); @@ -530,7 +530,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.editTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainSetWork.doShow(operate, this.selected); @@ -544,7 +544,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.editTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainFlag.doShow(operate, this.selected); @@ -558,7 +558,7 @@ export default { code: this.selected.code, operation: OperationEvent.Train.editTrainId.menu.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainFlag.doShow(operate, this.selected); diff --git a/src/jmapNew/theme/beijing_01/menus/passiveDialog/alarm.vue b/src/jmapNew/theme/beijing_01/menus/passiveDialog/alarm.vue index 56483d8d6..78e19c88a 100644 --- a/src/jmapNew/theme/beijing_01/menus/passiveDialog/alarm.vue +++ b/src/jmapNew/theme/beijing_01/menus/passiveDialog/alarm.vue @@ -83,7 +83,7 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userDelete.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userDelete.vue index 243fe7ec2..e62e5d148 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userDelete.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userDelete.vue @@ -1,126 +1,136 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userEdit.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userEdit.vue index 33d38059f..2bb23568a 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userEdit.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/childDialog/userEdit.vue @@ -1,170 +1,181 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/detainTrainContorl.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/detainTrainContorl.vue index d3b7c130e..7bbd277fb 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/detainTrainContorl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/detainTrainContorl.vue @@ -27,7 +27,8 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/manageUser.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/manageUser.vue index 6c22ac606..688ea98e2 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/manageUser.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/manageUser.vue @@ -1,282 +1,300 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue index ae759a395..a3778e533 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue @@ -47,7 +47,8 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userDelete.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userDelete.vue index 243fe7ec2..e62e5d148 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userDelete.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userDelete.vue @@ -1,126 +1,136 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userEdit.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userEdit.vue index 33d38059f..2bb23568a 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userEdit.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/childDialog/userEdit.vue @@ -1,170 +1,181 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainTranstalet.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainTranstalet.vue index 133de1d96..813c752ac 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainTranstalet.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainTranstalet.vue @@ -47,7 +47,8 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userDelete.vue b/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userDelete.vue index 243fe7ec2..e62e5d148 100644 --- a/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userDelete.vue +++ b/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userDelete.vue @@ -1,126 +1,136 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userEdit.vue b/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userEdit.vue index 33d38059f..4b421f185 100644 --- a/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userEdit.vue +++ b/src/jmapNew/theme/race_01/menus/menuDialog/childDialog/userEdit.vue @@ -1,170 +1,181 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/race_01/menus/menuDialog/detainTrainContorl.vue b/src/jmapNew/theme/race_01/menus/menuDialog/detainTrainContorl.vue index d3b7c130e..7bbd277fb 100644 --- a/src/jmapNew/theme/race_01/menus/menuDialog/detainTrainContorl.vue +++ b/src/jmapNew/theme/race_01/menus/menuDialog/detainTrainContorl.vue @@ -27,7 +27,8 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/race_01/menus/menuDialog/manageUser.vue b/src/jmapNew/theme/race_01/menus/menuDialog/manageUser.vue index 6c22ac606..688ea98e2 100644 --- a/src/jmapNew/theme/race_01/menus/menuDialog/manageUser.vue +++ b/src/jmapNew/theme/race_01/menus/menuDialog/manageUser.vue @@ -1,282 +1,300 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/race_01/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/race_01/menus/menuDialog/trainAdd.vue index ae759a395..a3778e533 100644 --- a/src/jmapNew/theme/race_01/menus/menuDialog/trainAdd.vue +++ b/src/jmapNew/theme/race_01/menus/menuDialog/trainAdd.vue @@ -47,7 +47,8 @@ - diff --git a/src/views/competitionManage/theoryQuestion.vue b/src/views/competitionManage/theoryQuestion.vue deleted file mode 100644 index 4085c872e..000000000 --- a/src/views/competitionManage/theoryQuestion.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/competitionManage/theoryReview.vue b/src/views/competitionManage/theoryReview.vue deleted file mode 100644 index f10a9ac53..000000000 --- a/src/views/competitionManage/theoryReview.vue +++ /dev/null @@ -1,213 +0,0 @@ - - - - diff --git a/src/views/components/limits/distribute.vue b/src/views/components/limits/distribute.vue index a12c06355..c011c11bf 100644 --- a/src/views/components/limits/distribute.vue +++ b/src/views/components/limits/distribute.vue @@ -1,7 +1,7 @@ diff --git a/src/views/newMap/displayNew/dispatherContest/contectUs.vue b/src/views/newMap/displayNew/dispatherContest/contectUs.vue new file mode 100644 index 000000000..087ed7e69 --- /dev/null +++ b/src/views/newMap/displayNew/dispatherContest/contectUs.vue @@ -0,0 +1,45 @@ + + + diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue index a4d27e0a8..43184651e 100644 --- a/src/views/newMap/displayNew/dispatherContest/index.vue +++ b/src/views/newMap/displayNew/dispatherContest/index.vue @@ -12,7 +12,6 @@ :jlmap3d-fault-show="false" :driver-show="isDrive" :all-style="'top:'+(offset+textStatusHeight)+'px'" - @changeMap="changeMap" @fieldPractice="fieldPractice" @goTheoryQuiz="goTheoryQuiz" /> @@ -24,8 +23,6 @@ {{ $t('display.lesson.practiceMode') }} {{ $t('display.lesson.testMode') }} - -
@@ -37,9 +34,12 @@ 退出场景 结束 开始 + 说明 @@ -64,8 +64,6 @@ - @@ -85,10 +83,8 @@ import SceneList from './sceneList'; import MenuSchema from '@/views/newMap/displayNew/menuSchema'; import TheoryExamSelect from './theoryExamSelect'; import TheoryExam from './theoryExam'; -// import TheoryQuiz from './quiz'; -// import ThroryResult from './result'; // import { getGoodsTryUse } from '@/api/management/goods'; -import { ranAsPlan, exitRunPlan, clearSimulation, getSimulationInfoNew } from '@/api/simulation'; +import {clearSimulation, getSimulationInfoNew } from '@/api/simulation'; // import { PermissionType } from '@/scripts/ConstDic'; // import { getCountTime } from '@/utils/index'; import { prefixIntrger } from '@/utils/date'; @@ -97,12 +93,11 @@ import SelectRole from '@/views/newMap/displayNew/scriptDisplay/component/select // import { setGoodsTryUse } from '@/api/management/goods'; import {competitionPracticalSceneStart, competitionPracticalSceneExit, competitionPracticalSceneFinish, getEmptyOperationalStatistics} from '@/api/competition'; -import { launchFullscreen } from '@/utils/screen'; import { EventBus } from '@/scripts/event-bus'; -import { createSimulationNew } from '@/api/simulation'; import OperationalStatistic from './operationalStatistic.vue'; import TestResult from './testResult.vue'; import Vue from 'vue'; +import ConstConfig from '@/scripts/ConstConfig'; export default { name: 'MenuDemon', @@ -116,8 +111,6 @@ export default { TheoryExam, OperationalStatistic, TestResult, - // TheoryQuiz, - // ThroryResult, SelectRole }, props: { @@ -144,14 +137,7 @@ export default { }, data() { return { - // tryTime: 0, // 进入页面多少秒 - // timeNow: 0, // 进入页面 相对时间 - // time: null, // 定时器 - // countTime: 0, // 显示 倒计时 - // remainingTime: 0, userRole: 'AUDIENCE', - // goodsId: this.$route.query.goodsId, - // try: this.$route.query.try, // 是否是试用权限 // training: { // id: '', // name: '', @@ -163,13 +149,6 @@ export default { mapLocation: {}, playerList: [], currentPlayList: [], - // formatUsedTime:'', - // formatScore: 0, - // jl3dpassflow: this.$t('display.demon.passengerflow'), - // jl3dname: this.$t('display.demon.threeDimensionalView'), - // jl3dstation: this.$t('display.demon.threeDimensionalStation'), - // jl3dmodel: this.$t('display.demon.deviceView'), - // isShow3dmodel: false, isGoback: false, runing: false, prdTypeMap: { @@ -257,10 +236,6 @@ export default { } }, beforeDestroy() { - // if (this.time) { - // this.setTryTime(); - // clearTimeout(this.time); - // } this.$store.dispatch('scriptRecord/updateSimulationPause', false); this.$store.dispatch('map/resetActiveTrainList', true); }, @@ -272,116 +247,24 @@ export default { }); }, methods: { - // async initLoadPage() { - // try { - // if (this.try != '0') { - // this.loadInitData(); - // } - // } catch (error) { - // console.log(error); - // } - // }, formatTime(initTime) { const hh = prefixIntrger(initTime.getHours(), 2); const mm = prefixIntrger(initTime.getMinutes(), 2); const ss = prefixIntrger(initTime.getSeconds(), 2); return `${hh}:${mm}:${ss}`; }, - // loadInitData() { - // const data = { - // mapId: this.$route.query.mapId, - // prdType: this.$route.query.prdType, - // permissionType: PermissionType.SIMULATION - // }; - // getGoodsTryUse(data).then(res => { - // this.remainingTime = res.data.tryTime; - // this.timeNow = Date.parse(new Date()) / 1000 + this.remainingTime; - // if (this.try) { - // this.time = setInterval(() => { - // this.tryTime += 1; - // this.countTime = getCountTime(this.timeNow); - // if (this.countTime == -1) { - // this.back(); - // } - // }, 1000); - // } - // }).catch(() => { - // this.$messageBox(this.$t('display.demon.getTimeFail')); - // }); - // }, selectBeginTime() { this.$refs.setTime.doShow(); }, - changeMap(query) { - clearSimulation(this.group).then(res=>{ - const data = { mapId: query.mapId, prdType: query.prdType }; - createSimulationNew(data).then(resp => { - this.$store.dispatch('training/over'); - this.$store.dispatch('training/reset'); - this.$store.dispatch('map/mapClear'); - this.$store.dispatch('training/setPrdType', this.currentPrdType); // 改变prdType - query.group = resp.data; - const newQuery = Object.assign({}, query); - newQuery.noFirst = true; - this.$router.replace({query: newQuery}); - launchFullscreen(); - }).catch(error => { - this.$messageBox(this.$t('error.createSimulationFailed') + error.message); - this.disabled = false; - }); - }); - }, start(model) { // 开始仿真 - const data = { - time: model.initTime - }; - if (this.$route.query.prdType === '04') { - data.loadNumber = model.loadNum; - } - ranAsPlan(data, this.group).then(res => { - this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`)); - }).catch(error => { - if (error.code == '5001') { - this.$messageBox(this.$t('error.mapDataError') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '5002') { - this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '5003') { - this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '5004') { - this.$messageBox(this.$t('error.runningDataError') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '5000') { - this.$messageBox(this.$t('error.systemError') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '4000') { - this.$messageBox(this.$t('error.simulationDoesNotExist') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '4001') { - this.$messageBox(this.$t('error.simulationOperationIsNotDefined') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '4002') { - this.$messageBox(this.$t('error.simulationOperationProcessingMethodNotFound') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '4003') { - this.$messageBox(this.$t('error.simulationOperationFailed') + ',' + this.$t('error.startSimulationFailed')); - } else if (error.code == '4004') { - this.$messageBox(this.$t('error.operationConflict') + ',' + this.$t('error.startSimulationFailed')); - } else { - this.$messageBox('按计划行车异常,请退出重试!'); - } - }); + this.$emit('start', model); }, setRuning(run) { this.runing = run; this.$refs.demonMenu.hideScheduling(run); }, end() { - exitRunPlan(this.group).then(() => { - this.$store.dispatch('training/over').then(() => { - this.$store.dispatch('training/setMapDefaultState').then(() => { - this.$store.dispatch('map/resetActiveTrainList', false); - this.$store.dispatch('map/clearJlmapTrainView'); - this.$store.dispatch('map/setTrainWindowShow', false); - }); - }); - }).catch(() => { - this.$messageBox(this.$t('display.demon.endSimulationFail')); - }); + this.$emit('end'); }, handleQuitQuest() { competitionPracticalSceneExit(this.group).then(resp => { @@ -458,6 +341,15 @@ export default { (this.$store.state.training.memberData[role.id] || {}).disabled = true; this.runScriptMode(memberId); }, + handleExplain() { + let name = this.$store.state.training.notifySelected.title; + if (name.includes('—')) { + name = name.split('—')[0]; + } + const ossData = ConstConfig.ConstSelect.ossList.find(ele => { return ele.name == name; }); + const href = `https://joylink.club/oss/cbtc/race/${ossData.url}`; + window.open(href, '_blank'); + }, finishTraining(data) { this.isScriptRun = false; this.showResultData(data); @@ -469,11 +361,8 @@ export default { competitionPracticalSceneFinish(this.group, {operationStatisticVO:{}}).then(res=>{ this.isScriptRun = false; // if (this.scriptMode == ScriptMode.TEST) { - // this.formatScore = res.data; - // this. this.showResultData(res.data); // this.$store.dispatch('scriptRecord/updateAudioPlay', false); - // this.$messageBox('得分:' + this.formatScore); // } // this.userRole = 'AUDIENCE'; // this.$store.dispatch('training/setRoles', 'AUDIENCE'); @@ -590,15 +479,6 @@ export default { this.$message.error('结束仿真失败!'); }); }, - // setTryTime() { - // if (this.try) { - // const data = { time: this.tryTime, goodsId: this.goodsId }; - // if (data.goodsId) { - // setGoodsTryUse(data); - // } - - // } - // }, fieldPractice() { this.$refs.sceneList.doShow(); }, @@ -613,9 +493,6 @@ export default { this.$refs.operationalStatistic.doShow(res.data); }); } - // commitResult(result) { - // this.$refs.theoryResult.doShow(result); - // } } }; diff --git a/src/views/newMap/displayNew/dispatherContest/requestQuestion.vue b/src/views/newMap/displayNew/dispatherContest/requestQuestion.vue deleted file mode 100644 index 207115cd3..000000000 --- a/src/views/newMap/displayNew/dispatherContest/requestQuestion.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue index 70399a75a..cf7ca1a24 100644 --- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue +++ b/src/views/newMap/displayNew/dispatherContest/sceneList.vue @@ -1,26 +1,34 @@