@@ -84,6 +84,7 @@ export default {
bottom:15,
recordSending:false,
currentCoversition:{},
+ memberListCoversition:{},
seconds:0,
inter:null,
isHasCoversition:false,
@@ -100,10 +101,10 @@ export default {
},
computed:{
isShow() {
- return this.userRole != 'ADMIN' && this.userRole != 'AUDIENCE' && !this.isHasCoversition;
+ return this.userRole != '' && this.userRole != 'ADMIN' && this.userRole != 'AUDIENCE' && !this.isHasCoversition;
},
isButtonShow() {
- return this.userRole != 'ADMIN' && this.userRole != 'AUDIENCE' && this.isHasCoversition;
+ return this.userRole != '' && this.userRole != 'ADMIN' && this.userRole != 'AUDIENCE' && this.isHasCoversition;
}
},
watch: {
@@ -166,6 +167,7 @@ export default {
if (this.recordSending) {
this.cancleRecording();
}
+ this.memberListCoversition = coversition || {id:null};
this.$refs.chatContent.scrollTop();
},
getCoversitionList() {
diff --git a/src/views/newMap/displayNew/chatView/chatMemberList.vue b/src/views/newMap/displayNew/chatView/chatMemberList.vue
index 9312509d7..a58adb699 100644
--- a/src/views/newMap/displayNew/chatView/chatMemberList.vue
+++ b/src/views/newMap/displayNew/chatView/chatMemberList.vue
@@ -1,7 +1,7 @@
成员列表
-
+
{
let lastData = JSON.stringify(resp.data);
const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
diff --git a/src/views/newMap/displayNew/menuScript.vue b/src/views/newMap/displayNew/menuScript.vue
index 789431329..655245d1e 100644
--- a/src/views/newMap/displayNew/menuScript.vue
+++ b/src/views/newMap/displayNew/menuScript.vue
@@ -84,6 +84,8 @@ export default {
return 'STATION_SUPERVISOR';
} else if (this.$store.state.training.prdType == '04') {
return 'DRIVER';
+ } else if (this.$store.state.training.prdType == null) {
+ return '';
} else {
return 'AUDIENCE';
}
diff --git a/src/views/scriptManage/display/tipScriptRecordNew.vue b/src/views/scriptManage/display/tipScriptRecordNew.vue
index 46bee6261..f81c2984d 100644
--- a/src/views/scriptManage/display/tipScriptRecordNew.vue
+++ b/src/views/scriptManage/display/tipScriptRecordNew.vue
@@ -7,7 +7,7 @@
当前剧本角色:
-
+
@@ -64,6 +64,7 @@ export default {
backDisabled: false,
autoSaveScript: null,
isSavingScript: false,
+ mapLocation:null,
memberList:[],
size: {
width: 300,
@@ -75,6 +76,13 @@ export default {
'$store.state.map.mapViewLoadedCount': function (val) {
Vue.prototype.$jlmap.setOptions(this.$store.state.scriptRecord.mapLocation);
this.isPause = !(this.$store.state.scriptRecord.simulationPause);
+ if (this.mapLocation) {
+ const newMapLocation = {'offsetX': this.mapLocation.x, 'offsetY': this.mapLocation.y, 'scaleRate': this.mapLocation.scale};
+ Vue.prototype.$jlmap.setOptions(newMapLocation);
+ }
+ if (this.$store.state.scriptRecord.bgSet) {
+ this.$store.dispatch('training/setPrdType', null);
+ }
},
'$store.state.scriptRecord.bgSet': function (val) {
this.backDisabled = val;
@@ -92,6 +100,7 @@ export default {
this.language = this.$route.query.lang == 'en' ? this.$t('scriptRecord.english') : this.$t('scriptRecord.chinese');
getDraftScriptByGroupNew(this.group).then(response=>{
this.backDisabled = response.data.bgSet;
+ this.mapLocation = response.data.mapLocation;
this.$store.dispatch('scriptRecord/updateBgSet', response.data.bgSet);
});
},
@@ -130,6 +139,8 @@ export default {
prdType = '02';
} else if (memberInfo.role == '司机') {
prdType = '04';
+ } else {
+ prdType = '';
}
}
this.$store.dispatch('training/setPrdType', prdType);
@@ -170,7 +181,7 @@ export default {
saveScriptDataNew(this.group).then(resp => {
this.$message.success(this.$t('scriptRecord.saveDataSucess'));
this.isSavingScript = false;
- // this.initAutoSaveScript();
+ this.initAutoSaveScript();
}).catch(error => {
this.$messageBox(`${this.$t('scriptRecord.saveDataFail')}: ${error.message}`);
this.isSavingScript = false;
@@ -188,6 +199,7 @@ export default {
saveScriptScenesNew(this.group).then(resp => {
updateMapLocationNew(group, dataZoom).then(response=>{
this.$store.dispatch('scriptRecord/updateBgSet', true);
+ this.$store.dispatch('training/setPrdType', null);
this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess'));
}).catch(error => {
this.$messageBox(`${this.$t('scriptRecord.updateLocationFail')}: ${error.message}`);
@@ -226,7 +238,9 @@ export default {
this.$parent.resetBeginTime();
this.$refs['getAction'].loadInitData();
this.initData();
- this.initAutoSaveScript();
+ this.memberId = '';
+ this.$store.dispatch('training/setPrdType', '01');
+ // this.initAutoSaveScript();
this.$store.dispatch('scriptRecord/updateBgSet', false);
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
}).catch(() => {