From e72fdcdb78661e4464c009ef241ccd04b8e272a7 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 13 May 2020 18:59:28 +0800
Subject: [PATCH 01/44] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=AF=BC=E8=88=AA?=
=?UTF-8?q?=E6=A0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/index_Common.js | 117 ++++++++++++++++++++++++-------------
1 file changed, 76 insertions(+), 41 deletions(-)
diff --git a/src/router/index_Common.js b/src/router/index_Common.js
index 65c58eb54..2034c8ee5 100644
--- a/src/router/index_Common.js
+++ b/src/router/index_Common.js
@@ -346,43 +346,43 @@ export const asyncRouter = [
}
]
},
- { // 个人地图
- path: '/design/userlist',
- redirect: '/design/userlist/home',
- component: Layout,
- meta: {
- roles: [admin]
- },
- children: [
- {
- path: '',
- redirect: '/design/userlist/home',
- component: DesignPlatformUser,
- meta: {
- i18n: 'router.designUserPage',
- icon: 'design'
- },
- children: [
- {
- path: 'home',
- component: DesignPlatformHome,
- meta: {
- }
- },
- { // 地图 绘制
- path: 'map/draw/:mapId/:view',
- component: Mapedit,
- hidden: true
- },
- { // 运行图设计
- path: 'runPlan/detail/:mapId',
- component: PlanMonitorDetail,
- hidden: true
- }
- ]
- }
- ]
- },
+ // { // 个人地图
+ // path: '/design/userlist',
+ // redirect: '/design/userlist/home',
+ // component: Layout,
+ // meta: {
+ // roles: [admin]
+ // },
+ // children: [
+ // {
+ // path: '',
+ // redirect: '/design/userlist/home',
+ // component: DesignPlatformUser,
+ // meta: {
+ // i18n: 'router.designUserPage',
+ // icon: 'design'
+ // },
+ // children: [
+ // {
+ // path: 'home',
+ // component: DesignPlatformHome,
+ // meta: {
+ // }
+ // },
+ // { // 地图 绘制
+ // path: 'map/draw/:mapId/:view',
+ // component: Mapedit,
+ // hidden: true
+ // },
+ // { // 运行图设计
+ // path: 'runPlan/detail/:mapId',
+ // component: PlanMonitorDetail,
+ // hidden: true
+ // }
+ // ]
+ // }
+ // ]
+ // },
{ // 全屏战场图
path: '/display/:mode',
component: Display,
@@ -847,15 +847,16 @@ export const asyncRouter = [
]
},
{ // 新个人地图
- path: '/design/usermap',
- redirect: '/design/usermap/home',
+ path: '/design',
+ // redirect: '/design/usermap/home',
component: Layout,
meta: {
+ i18n: 'router.newDesignUserPage',
roles: [admin, user]
},
children: [
{
- path: '',
+ path: 'usermap',
redirect: '/design/usermap/home',
component: NewDesignPlatformUser,
meta: {
@@ -866,6 +867,7 @@ export const asyncRouter = [
{
path: 'home',
component: DesignPlatformHome,
+ hidden: true,
meta: {
}
}
@@ -877,15 +879,48 @@ export const asyncRouter = [
]
},
{ // 新地图绘制
- path: 'map/draw/:mapId/:view',
+ path: 'usermap/map/draw/:mapId/:view',
component: NewMapDraft,
hidden: true
+ },
+ {
+ path:'iscs/design',
+ redirect: '/iscs/design',
+ component: IscsDesign,
+ meta: {
+ i18n: 'router.iscsDraw',
+ roles: [admin]
+ },
+ children: [
+ {
+ path: 'edit/:id/:mode',
+ component: IscsDraw,
+ hidden: true
+ }
+ ]
+ },
+ {
+ path: 'iscs/system',
+ redirect: '/iscs/system',
+ component: IscsSystem,
+ meta: {
+ i18n: 'router.iscsSystem',
+ roles: [admin]
+ },
+ children: [
+ {
+ path: 'config/:mode',
+ component: IscsConfig,
+ hidden: true
+ }
+ ]
}
]
},
{ // iscs系统
path: '/iscs',
component: Layout,
+ hidden: true,
meta: {
i18n: 'router.iscsSystem',
roles: [admin]
From 36ca6dc3d1a931ac81805b028387b69aff003484 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 13 May 2020 19:31:14 +0800
Subject: [PATCH 02/44] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=20?=
=?UTF-8?q?=E8=81=8A=E5=A4=A9=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/socket.js | 2 +-
src/views/newMap/jointTrainingNew/chatBox.vue | 4 +-
.../newMap/jointTrainingNew/chatContent.vue | 39 +++---
.../jointTrainingNew/chatCoversitionList.vue | 127 +++++++++++++-----
.../jointTrainingNew/chatMemberList.vue | 12 ++
5 files changed, 132 insertions(+), 52 deletions(-)
diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js
index f765c9702..1a56e4335 100644
--- a/src/store/modules/socket.js
+++ b/src/store/modules/socket.js
@@ -151,7 +151,7 @@ function handleSimulationInfo(state, data) {
memberOnline:data.member.online,
chatTime: data.chatTime,
targetOnline:data.targetMember ? data.targetMember.online : null,
- targetName:data.targetMember ? data.targetMember.name : 'All',
+ targetName:data.targetMember ? data.targetMember : 'All',
targetRole:data.targetMember ? data.targetMember.role : null,
group: data.group,
date: +new Date(`${myDate1} ${chatTime}`)
diff --git a/src/views/newMap/jointTrainingNew/chatBox.vue b/src/views/newMap/jointTrainingNew/chatBox.vue
index 6e184f086..97be499dc 100644
--- a/src/views/newMap/jointTrainingNew/chatBox.vue
+++ b/src/views/newMap/jointTrainingNew/chatBox.vue
@@ -85,7 +85,8 @@ export default {
'$store.state.socket.simulationRoleList': function (val) {
if (val && val.length) {
this.$nextTick(() => {
- debugger;
+ this.$refs.chatMemberList.setMemberStatus(val);
+ this.$refs.chatCoversitionList.setCoversitionStatus(val);
});
}
}
@@ -116,6 +117,7 @@ export default {
addCoversition({data, headerTitle}) {
this.$refs.chatCoversitionList.addCoversition(data);
this.currentCoversition = {id:data.id, group:data.group};
+ this.$refs.chatCoversitionList.setCurrentCoversition(this.currentCoversition);
this.headerTitle = headerTitle;
},
// 语音录制开始
diff --git a/src/views/newMap/jointTrainingNew/chatContent.vue b/src/views/newMap/jointTrainingNew/chatContent.vue
index d5ad57611..e09b49033 100644
--- a/src/views/newMap/jointTrainingNew/chatContent.vue
+++ b/src/views/newMap/jointTrainingNew/chatContent.vue
@@ -3,12 +3,12 @@
-
@{{ chatContent.targetName }}
+
@{{ covertName(chatContent.targetName) }}
{{ chatContent.message }}
@@ -69,7 +69,7 @@ export default {
}
coversition.src = coversition.isAudio ? `/jlcloud/audio/${coversition.audioPath}` : '';
coversition.memberName = coversition.member.name;
- coversition.targetName = coversition.targetMember ? coversition.targetMember.name : 'All';
+ coversition.targetName = coversition.targetMember ? coversition.targetMember : 'All';
coversition.memberRole = coversition.member.role;
return coversition;
});
@@ -83,18 +83,27 @@ export default {
formatTime(time) {
return /\d{2}:\d{2}:\d{2}/.exec(time)[0] || time;
},
- handle(chatContent) {
- let data = chatContent.memberRole;
- const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
- roleTypeList.forEach(function(element) {
- const rolename = element.value;
- if (Cookies.get('user_lang') == 'en') {
- data = data.replace(rolename, element.enLabel);
- } else {
- data = data.replace(rolename, element.label);
- }
- });
- return data + '-' + chatContent.memberName;
+ covertName(data) {
+ if (data != 'All') {
+ const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
+ roleTypeList.forEach(function(element) {
+ const rolename = element.value;
+ if (Cookies.get('user_lang') == 'en') {
+ if (rolename == data.role) {
+ data.role = element.enLabel;
+ }
+ } else {
+ if (rolename == data.role) {
+ data.role = element.label;
+ }
+ }
+ });
+ const deviceName = data.deviceName ? '-' + data.deviceName : '';
+ const memberName = data.name ? '-' + data.name : '';
+ return data.role + deviceName + memberName;
+ } else {
+ return 'All';
+ }
},
playAudio(id) {
document.querySelector('#' + id).play();
diff --git a/src/views/newMap/jointTrainingNew/chatCoversitionList.vue b/src/views/newMap/jointTrainingNew/chatCoversitionList.vue
index c47b67953..9d311842a 100644
--- a/src/views/newMap/jointTrainingNew/chatCoversitionList.vue
+++ b/src/views/newMap/jointTrainingNew/chatCoversitionList.vue
@@ -24,59 +24,79 @@ export default {
};
},
mounted() {
- getSimulationConversationListNew(this.$route.query.group).then(resp=>{
- if (resp.data) {
- const data = resp.data;
- data.map(coversition=>{
- coversition.coverName = this.handleMemberName(coversition);
- return coversition;
- });
- this.coversitionList = data;
- if (resp.data && resp.data.length && resp.data.length > 0) {
- this.currentCoversition = resp.data[0];
- this.$emit('setCurrentCoversition', resp.data[0]);
- }
- }
- });
+ this.initPage(true);
},
methods:{
+ initPage(status) {
+ getSimulationConversationListNew(this.$route.query.group).then(resp=>{
+ if (resp.data) {
+ const data = resp.data;
+ data.map(coversition=>{
+ const objectCover = this.handleMemberName(coversition);
+ coversition.coverName = objectCover.coversitionName;
+ coversition.isOnline = objectCover.isOnline;
+ return coversition;
+ });
+ this.coversitionList = data;
+ if (resp.data && resp.data.length && resp.data.length > 0 && status) {
+ this.currentCoversition = resp.data[0];
+ this.$emit('setCurrentCoversition', resp.data[0]);
+ }
+ }
+ });
+ },
addCoversition(data) {
const index = this.coversitionList.findIndex(item=>{ return item.id == data.id; });
if (index < 0) {
- data.coverName = this.handleMemberName(data);
+ const objectCover = this.handleMemberName(data);
+ data.coverName = objectCover.coversitionName;
+ data.isOnline = objectCover.isOnline;
this.coversitionList.push(data);
}
},
+ setCurrentCoversition(data) {
+ this.currentCoversition = data;
+ },
changeCoversition(coversition) {
- this.$emit('setHeadTitle', coversition.coverName);
+ this.$emit('setHeadTitle', !coversition.isOnline ? coversition.coverName + ' (离线)' : coversition.coverName);
this.currentCoversition = {id:coversition.id, group:coversition.group};
this.$emit('setCurrentCoversition', coversition);
// this.$refs.chatContent.reloadData(this.currentCoversition);
},
handleMemberName(conversition) {
if (conversition.group) {
- return conversition.name;
+ return {coversitionName:conversition.name, isOnline:true};
} else {
let coversitionName = '';
- conversition.memberList.forEach(member=>{
- if (member.userId != this.$store.state.user.id) {
- const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
- let data = member.role;
- roleTypeList.forEach(function(element) {
- const rolename = element.value;
- if (Cookies.get('user_lang') == 'en') {
- data = data.replace(rolename, element.enLabel);
- } else {
- data = data.replace(rolename, element.label);
- }
- });
- const deviceName = member.deviceName ? '-' + member.deviceName : '';
- const memberName = member.name ? '-' + member.name : '';
- coversitionName = data + deviceName + memberName;
- }
- });
- return coversitionName;
+ let isOnline = true;
+ if (conversition.memberList) {
+ conversition.memberList.forEach(member=>{
+ if (member.userId != this.$store.state.user.id) {
+ const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
+ let data = member.role;
+ roleTypeList.forEach(function(element) {
+ const rolename = element.value;
+ if (Cookies.get('user_lang') == 'en') {
+ data = data.replace(rolename, element.enLabel);
+ } else {
+ data = data.replace(rolename, element.label);
+ }
+ });
+ const deviceName = member.deviceName ? '-' + member.deviceName : '';
+ const memberName = member.name ? '-' + member.name : '';
+ isOnline = member.online;
+ coversitionName = data + deviceName + memberName;
+ }
+ });
+ } else {
+ coversitionName = conversition.name;
+ }
+ return {coversitionName:coversitionName, isOnline:isOnline};
}
+ },
+ setCoversitionStatus(data) {
+ this.initPage(false);
+ // this.changeCoversition(this.currentCoversition);
}
}
};
@@ -109,4 +129,41 @@ export default {
.coversition-active{
background: #e0e0e0;
}
+
+// 谷歌、safari、qq浏览器、360浏览器滚动条样式
+// 定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸
+.coversition-list::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+ // height: 110px;
+ background-color: #FFFFFF;
+}
+/*定义滚动条轨道 内阴影+圆角*/
+.coversition-list::-webkit-scrollbar-track {
+ // box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
+ border-radius: 10px;
+ background-color: #FFFFFF;;
+}
+/*定义滑块 内阴影+圆角*/
+.coversition-list::-webkit-scrollbar-thumb {
+ border-radius: 10px;
+ // box-shadow: inset 0 0 6px rgba(0,0,0,.3);
+ background-color: #cacaca;
+}
+/*滑块效果*/
+.coversition-list::-webkit-scrollbar-thumb:hover {
+ border-radius: 5px;
+ // box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
+ background: rgba(0,0,0,0.4);
+}
+/*IE滚动条颜色*/
+html {
+ scrollbar-face-color:#bfbfbf;/*滚动条颜色*/
+ scrollbar-highlight-color:#000;
+ scrollbar-3dlight-color:#000;
+ scrollbar-darkshadow-color:#000;
+ scrollbar-Shadow-color:#adadad;/*滑块边色*/
+ scrollbar-arrow-color:rgba(0,0,0,0.4);/*箭头颜色*/
+ scrollbar-track-color:#eeeeee;/*背景颜色*/
+}
diff --git a/src/views/newMap/jointTrainingNew/chatMemberList.vue b/src/views/newMap/jointTrainingNew/chatMemberList.vue
index 14ffe79e0..f78781ab3 100644
--- a/src/views/newMap/jointTrainingNew/chatMemberList.vue
+++ b/src/views/newMap/jointTrainingNew/chatMemberList.vue
@@ -44,6 +44,18 @@ export default {
});
}
},
+ setMemberStatus(memberInfo) {
+ this.getSimulationMembers();
+ // memberInfo.forEach(member=>{
+ // if (this.coversitionList) {
+ // this.coversitionList.forEach(item=>{
+ // if (item.id == member.id) {
+ // item.online = member.online;
+ // }
+ // });
+ // }
+ // });
+ },
getSimulationMembers() {
getSimulationMembersNew(this.$route.query.group).then(resp => {
let lastData = JSON.stringify(resp.data);
From 034a36d25fa271ea2199a5c195aa82af5b9707e5 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 14 May 2020 09:15:23 +0800
Subject: [PATCH 03/44] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=BE=AE=E4=BF=A1?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/userInfo.vue | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/layout/components/userInfo.vue b/src/layout/components/userInfo.vue
index 22e2c02b5..f2ccfba3d 100644
--- a/src/layout/components/userInfo.vue
+++ b/src/layout/components/userInfo.vue
@@ -542,6 +542,7 @@ export default {
},
generateQrCode() {
getWxQrCode(LoginParams[this.loginClient]).then(response => {
+ this.loadingCode = false;
this.sessionId = response.data.sessionId;
this.loginUrl = response.data.url;
this.binding = true;
@@ -684,6 +685,9 @@ export default {
line-height: 28px;
margin-bottom: 10px;
}
+ .login-qrcode {
+ width: 150px;
+ }
}
diff --git a/src/views/newMap/displayNew/chatView/chatContent.vue b/src/views/newMap/displayNew/chatView/chatContent.vue
new file mode 100644
index 000000000..e09b49033
--- /dev/null
+++ b/src/views/newMap/displayNew/chatView/chatContent.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
@{{ covertName(chatContent.targetName) }}
+
+
{{ chatContent.message }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/newMap/displayNew/chatView/chatCoversitionList.vue b/src/views/newMap/displayNew/chatView/chatCoversitionList.vue
new file mode 100644
index 000000000..30f92ebb8
--- /dev/null
+++ b/src/views/newMap/displayNew/chatView/chatCoversitionList.vue
@@ -0,0 +1,168 @@
+
+
+
+
+
{{ coversition.coverName }}
+
+
+
+
+
diff --git a/src/views/newMap/displayNew/chatView/chatMemberList.vue b/src/views/newMap/displayNew/chatView/chatMemberList.vue
new file mode 100644
index 000000000..01a0d0b06
--- /dev/null
+++ b/src/views/newMap/displayNew/chatView/chatMemberList.vue
@@ -0,0 +1,154 @@
+
+
+
成员列表
+
+
{{ member.memberName }}
+
+
+
+
+
diff --git a/src/views/newMap/displayNew/chatView/chatSetting.vue b/src/views/newMap/displayNew/chatView/chatSetting.vue
new file mode 100644
index 000000000..26e59ac5b
--- /dev/null
+++ b/src/views/newMap/displayNew/chatView/chatSetting.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
diff --git a/src/views/newMap/displayNew/designIndex.vue b/src/views/newMap/displayNew/designIndex.vue
index 5ccf32337..7fb6a0f28 100644
--- a/src/views/newMap/displayNew/designIndex.vue
+++ b/src/views/newMap/displayNew/designIndex.vue
@@ -5,8 +5,6 @@
-
-
-
-
-
@@ -54,9 +49,7 @@ import MapSystemDraft from '@/views/newMap/mapsystemNew/index';
import MenuDemon from '@/views/newMap/displayNew/menuDemon';
import MenuSchema from '@/views/newMap/displayNew/menuSchema';
import MenuSystemTime from '@/views/newMap/displayNew/menuSystemTime';
-import MenuScript from '@/views/newMap/displayNew/menuScript';
import AddQuest from './demon/addQuest';
-import Scheduling from './demon/scheduling';
import { mapGetters } from 'vuex';
import { setGoodsTryUse } from '@/api/management/goods';
import { clearSimulation, getSimulationInfoNew } from '@/api/simulation';
@@ -80,12 +73,10 @@ export default {
AddQuest,
MapSystemDraft,
MenuDemon,
- MenuScript,
MenuSchema,
MenuSystemTime,
- // Jl3dSimulation,
- Jl3dDrive,
- Scheduling
+ Jl3dDrive
+ // Scheduling
},
props: {
size: {
@@ -119,8 +110,7 @@ export default {
'04': '02', // 司机 => 行调
'05': '' // 派班 => null
},
- isDrive: this.prdType == '04',
- isShowScheduling: this.prdType == '05'
+ isDrive: this.prdType == '04'
};
},
computed: {
@@ -146,9 +136,6 @@ export default {
right() {
return this.$store.state.config.width / 2 - 55;
},
- trainingId() {
- return this.$route.query.trainingId;
- },
mapId() {
return this.$route.query.mapId;
},
@@ -156,24 +143,12 @@ export default {
// return this.$route.query.prdType;
return this.$store.state.training.prdType;
},
- skinCode() {
- return this.$route.query.skinCode;
- },
- isLesson() {
- return this.mode === 'teach' || this.mode === 'manage';
- },
isDemon() {
return this.mode === 'demon';
- },
- isScript() {
- return this.mode === 'script';
}
// isDrive() {
// return this.prdType == '04';
// },
- // isShowScheduling() {
- // return this.prdType == '05';
- // }
},
watch: {
'$store.state.config.menuBarLoadedCount': function (val) {
@@ -183,19 +158,12 @@ export default {
this.mapBoxP = document.getElementById(this.canvasId).children[0];
this.mapBoxP.style.cursor = '';
},
- '$store.state.training.prdType': function(val) {
- // this.prdType=val;
- this.isDrive = (val == '04');
- this.isShowScheduling = (val == '05');
- },
- '$store.state.socket.permissionOver': function () {
- this.$alert('用户权限已被收回', '提示', {
- confirmButtonText: '确定',
- callback: action => {
- this.back();
- }
- });
- },
+ // '$store.state.training.prdType': function(val) {
+ // debugger;
+ // // this.prdType=val;
+ // this.isDrive = (val == '04');
+ // this.isShowScheduling = (val == '05');
+ // },
'$store.state.app.windowSizeCount': function() {
this.setWindowSize();
},
@@ -322,8 +290,6 @@ export default {
await this.loadSimulationInfo();
if (this.isDemon) {
await this.initLoadDemonData();
- } else if (this.isScript) {
- await this.initLoadTaskData();
}
this.checkLoginLineTimer();
this.checkMouseStatusTimer();
@@ -344,18 +310,6 @@ export default {
this.endViewLoading();
}
},
- // 任务录制系统
- async initLoadTaskData() {
- this.$store.dispatch('training/end', TrainingMode.NORMAL);
- this.$store.dispatch('training/changeOperateMode', { mode: OperateMode.NORMAL }); // 默认为正常模式
- this.switchMode('01');
-
- if (this.group) {
- await this.loadNewMapDataByGroup(this.group);
- } else {
- this.endViewLoading();
- }
- },
// 加载剧本
async runQuestLoadShow() {
this.$refs.addQuest.doShow();
@@ -435,12 +389,8 @@ export default {
},
// 仿真错误时,被动退出时调用
async back() {
- if (this.isLesson) {
- await this.$refs.lessonMenu.back();
- } else if (this.isDemon) {
+ if (this.isDemon) {
await this.$refs.menuDemon.back();
- } else if (this.isScript) {
- await this.$refs.menuScript.back();
}
},
// 设置使用时间
@@ -491,9 +441,7 @@ export default {
this.$nextTick(() => {
const width = this.size ? this.size.width : this.width;
const height = this.size ? this.size.height : this.height;
-
this.$store.dispatch('config/resize', { width, height });
-
this.$store.dispatch('training/updateOffsetStationCode', { offsetStationCode: this.offsetStationCode });
});
}
diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue
index 2220e3349..bac94f7e6 100644
--- a/src/views/newMap/displayNew/menuDemon.vue
+++ b/src/views/newMap/displayNew/menuDemon.vue
@@ -1,5 +1,6 @@
+
{{ $t('display.demon.trialTime') }} {{ countTime }}
@@ -32,6 +33,7 @@