竞赛 场景代码调整

This commit is contained in:
joylink_cuiweidong 2020-10-14 18:10:32 +08:00
parent 17a18eb328
commit f91dd07cab
3 changed files with 19 additions and 13 deletions

View File

@ -21,10 +21,10 @@
<iscs-environment v-else-if="iscsMode=='environment02'" ref="" @iscsChange="iscsChange" @handleSave="handleSave" /> <!-- 环境与设备监控系统 -->
<iscs-psd v-else-if="iscsMode=='psdSystem02'" ref="" @iscsChange="iscsChange" @handleSave="handleSave" /> <!-- 屏蔽门系统 -->
</div>
<div class="right-card" :class="{'hide': tableShow}">
<div class="btn_table_box" @click="clickTableBtn"><i :class="tableShow?'el-icon-arrow-right':'el-icon-arrow-left'" /></div>
<group-card @handleSave="handleSave" />
</div>
<div class="right-card" :class="{'hide': tableShow}">
<div class="btn_table_box" @click="clickTableBtn"><i :class="tableShow?'el-icon-arrow-right':'el-icon-arrow-left'" /></div>
<group-card @handleSave="handleSave" />
</div>
</div>
</transition>
</template>
@ -66,9 +66,9 @@ export default {
IscsPowerMonitoring,
IscsSignalSystem,
IscsPsd,
IscsEnvironment,
IscsEnvironment,
GroupCard
GroupCard
},
data() {
return {
@ -77,8 +77,8 @@ export default {
height: this.$store.state.app.height - 60
},
widthLeft: Number(localStore.get('LeftWidth')) || 450,
draftShow: false,
tableShow: false
draftShow: false,
tableShow: false
};
},
computed:{
@ -105,10 +105,10 @@ export default {
},
clickDraftBtn() {
this.draftShow = !this.draftShow;
},
clickTableBtn() {
this.tableShow = !this.tableShow;
},
},
clickTableBtn() {
this.tableShow = !this.tableShow;
},
handleSave(data) {
const param = {
graphData: data,

View File

@ -73,7 +73,7 @@
<throry-result ref="theoryResult" @restart="goTheoryQuiz" /> -->
<select-role ref="selectRole" :member-list="currentPlayList" @selectRole="selectRole" />
<operational-statistic ref="operationalStatistic" />
<operational-statistic ref="operationalStatistic" @finishTraining="finishTraining" />
</div>
@ -463,6 +463,9 @@ export default {
(this.$store.state.training.memberData[role.id] || {}).disabled = true;
this.runScriptMode(memberId);
},
finishTraining() {
this.isScriptRun = false;
},
endTraining() {
competitionPracticalSceneFinish(this.group, {operationStatisticVO:{}}).then(res=>{
this.isScriptRun = false;

View File

@ -78,6 +78,9 @@ export default {
} else {
competitionPracticalSceneFinish(this.$route.query.group, this.resultData).then(res=>{
this.$message.success('运营统计数据提交成功');
this.formatScore = res.data;
this.$messageBox('得分:' + this.formatScore);
this.$emit('finishTraining');
this.$store.dispatch('scriptRecord/updateOperationalItemVOs', this.resultData.itemVOS);
this.dialogShow = false;
}).catch(error=>{