+
+
+
+ {{ index2UnicodeList[i] }}、{{ el.title }}
+
+
+
考试总分:
@@ -13,9 +15,13 @@
+
diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue
index 76bb4eb7a..f5b8feb10 100644
--- a/src/views/newMap/jointTrainingNew/index.vue
+++ b/src/views/newMap/jointTrainingNew/index.vue
@@ -117,7 +117,8 @@ export default {
countdownTime: '00:00:00',
practicalTime: 0,
countdown: null,
- questionList: []
+ questionList: [],
+ practicalExamTime: 0
};
},
computed: {
@@ -392,15 +393,14 @@ export default {
const paperResp = await getTestPaperDatail(this.$route.query.raceId);
if (paperResp.data && paperResp.data.practicalQuestions) {
this.questionList = [];
+ this.practicalExamTime = paperResp.data.practicalExamTime;
const storeKey = this.$store.state.user.id + '' + this.$route.query.raceId + 'practical';
const startTime = localStore.get(storeKey);
if (startTime) {
const dt = new Date().getTime() - startTime;
this.practicalTime = paperResp.data.practicalExamTime * 60 - Math.floor(dt / 1000);
} else {
- this.practicalTime = paperResp.data.practicalExamTime * 60;
- const storeValue = new Date().getTime();
- localStore.set(storeKey, storeValue);
+ this.practicalTime = this.practicalExamTime * 60;
}
this.countdownTime = this.computationTime(this.practicalTime);
paperResp.data.practicalQuestions.forEach(elem => {
@@ -436,6 +436,12 @@ export default {
}
},
startCounting() {
+ const storeKey = this.$store.state.user.id + '' + this.$route.query.raceId + 'practical';
+ const startTime = localStore.get(storeKey);
+ if (!startTime) {
+ const storeValue = new Date().getTime();
+ localStore.set(storeKey, storeValue);
+ }
this.countdown = setInterval(() => {
if (this.practicalTime <= 0) {
if (this.countdown) {
diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue
index 66bb76afc..46d315955 100644
--- a/src/views/scriptManage/scriptRecord/addAction.vue
+++ b/src/views/scriptManage/scriptRecord/addAction.vue
@@ -75,7 +75,7 @@ import Vue from 'vue';
import Cookies from 'js-cookie';
import ConstConfig from '@/scripts/ConstConfig';
import CommandOperation from './command';
-import {addScriptAction, addScriptActionNew, modifyScriptAction, getAvailableDeviceCommand, getScriptPlayMember, getScriptPlayMemberNew} from '@/api/simulation';
+import {addScriptAction, addScriptActionNew, modifyScriptAction, modifyScriptActionNew, getAvailableDeviceCommand, getScriptPlayMember, getScriptPlayMemberNew} from '@/api/simulation';
export default {
name: 'AddAction',
components:{
@@ -451,20 +451,39 @@ export default {
} else {
const actionId = this.modalData.actionVO.id;
- modifyScriptAction(group, actionId, data).then(response=>{
- this.modifying = false;
- this.isNotModify = true;
- this.$emit('setDisabled', this.isNotModify);
- this.buttonName = this.$t('scriptRecord.addConversitionButton');
- this.operateType = 'add';
- this.$message.success(this.$t('scriptRecord.modifyConversitionSuccess'));
- this.$emit('create');
- // this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
- this.initActionData();
- }).catch(error => {
- this.modifying = false;
- this.$messageBox(`${this.$t('scriptRecord.modifyConversitionFail')}: ${error.message}`);
- });
+ if (this.drawWay) {
+ data.id = actionId;
+ modifyScriptActionNew(group, data).then(response=>{
+ this.modifying = false;
+ this.isNotModify = true;
+ this.$emit('setDisabled', this.isNotModify);
+ this.buttonName = this.$t('scriptRecord.addConversitionButton');
+ this.operateType = 'add';
+ this.$message.success(this.$t('scriptRecord.modifyConversitionSuccess'));
+ this.$emit('create');
+ // this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
+ this.initActionData();
+ }).catch(error => {
+ this.modifying = false;
+ this.$messageBox(`${this.$t('scriptRecord.modifyConversitionFail')}: ${error.message}`);
+ });
+ } else {
+ modifyScriptAction(group, actionId, data).then(response=>{
+ this.modifying = false;
+ this.isNotModify = true;
+ this.$emit('setDisabled', this.isNotModify);
+ this.buttonName = this.$t('scriptRecord.addConversitionButton');
+ this.operateType = 'add';
+ this.$message.success(this.$t('scriptRecord.modifyConversitionSuccess'));
+ this.$emit('create');
+ // this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
+ this.initActionData();
+ }).catch(error => {
+ this.modifying = false;
+ this.$messageBox(`${this.$t('scriptRecord.modifyConversitionFail')}: ${error.message}`);
+ });
+ }
+
}
} else {
console.log('error submit!!');
diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue
index 3de960ade..0d78946cd 100644
--- a/src/views/scriptManage/scriptRecord/getAction.vue
+++ b/src/views/scriptManage/scriptRecord/getAction.vue
@@ -20,7 +20,7 @@
- {{ $t('scriptRecord.modifyConversitionButton') }}
+ {{ $t('scriptRecord.modifyConversitionButton') }}
@@ -158,8 +158,8 @@ export default {
// memberVOList = memberVOList.replace(new RegExp(rolename, 'g'), element.label);
// });
// memberVOList = JSON.parse(memberVOList);
- const lastData = JSON.stringify(response.data);
- const memberVOList = this.covert(lastData, ConstConfig.ConstSelect.roleTypeNew);
+ const lastData = JSON.stringify(response.data.memberVOList);
+ const memberVOList = this.covert(lastData, ConstConfig.ConstSelect.roleType);
const actionList = response.data.actionVOList;
@@ -218,9 +218,7 @@ export default {
this.loadInitData();
},
modifyAction(row) {
- if (!this.drawWay) {
- this.$emit('setAction', row);
- }
+ this.$emit('setAction', row);
}
}
};