仿真 综合演练 添加 联系方式

This commit is contained in:
joylink_cuiweidong 2020-12-29 16:15:10 +08:00
parent afef8f9e9f
commit 3329053207
2 changed files with 16 additions and 2 deletions

View File

@ -24,7 +24,8 @@
<el-button v-if="isContest" size="small" :disabled="practiceDisabled" @click="fieldPractice">实操练习</el-button> <el-button v-if="isContest" size="small" :disabled="practiceDisabled" @click="fieldPractice">实操练习</el-button>
<el-button v-if="isContest" size="small" @click="goTheoryQuiz">理论考试</el-button> <el-button v-if="isContest" size="small" @click="goTheoryQuiz">理论考试</el-button>
<el-button v-if="messageBoard" size="small" @click="messageBoardShow">留言板</el-button> <el-button v-if="messageBoard" size="small" @click="messageBoardShow">留言板</el-button>
<el-button v-if="isContest" size="small" @click="contectUs">联系方式</el-button> <!-- v-if="isContest" -->
<el-button v-if="!isLocal" size="small" @click="contectUs">联系方式</el-button>
</el-button-group> </el-button-group>
</div> </div>
<Jl3d-Device <Jl3d-Device
@ -139,6 +140,9 @@ export default {
}, },
running() { running() {
return this.$store.state.training.started; return this.$store.state.training.started;
},
isLocal() { //
return process.env.VUE_APP_PRO === 'local';
} }
}, },
mounted() { mounted() {

View File

@ -24,6 +24,7 @@
<el-button v-if="teachSystemShow" size="small" @click="handleTeach">教学系统</el-button> <el-button v-if="teachSystemShow" size="small" @click="handleTeach">教学系统</el-button>
<el-button v-if="examSystemShow" size="small" @click="handleExam">考试系统</el-button> <el-button v-if="examSystemShow" size="small" @click="handleExam">考试系统</el-button>
<el-button v-if="messageBoard" size="small" @click="messageBoardShow">留言板</el-button> <el-button v-if="messageBoard" size="small" @click="messageBoardShow">留言板</el-button>
<el-button v-if="!isLocal" size="small" @click="contectUs">联系方式</el-button>
</el-button-group> </el-button-group>
</div> </div>
<div class="display-draft" :class="{'haerbin_btn_box': lineCode == '07'||lineCode=='14'}" :style="{bottom: offsetBottom + 'px'}"> <div class="display-draft" :class="{'haerbin_btn_box': lineCode == '07'||lineCode=='14'}" :style="{bottom: offsetBottom + 'px'}">
@ -41,6 +42,7 @@
<qr-code ref="qrCode" /> <qr-code ref="qrCode" />
<set-time ref="setTime" @ConfirmSelectBeginTime="start" /> <set-time ref="setTime" @ConfirmSelectBeginTime="start" />
<equipment ref="equipment" /> <equipment ref="equipment" />
<contect-us ref="contectUs" />
</div> </div>
</template> </template>
@ -57,6 +59,7 @@ import { NoSimulationQrCodeList } from '@/scripts/ProjectConfig';
import { getPublishLessonListByMapId } from '@/api/jmap/lesson'; import { getPublishLessonListByMapId } from '@/api/jmap/lesson';
import { getPostByProjectCode } from '@/api/learn'; import { getPostByProjectCode } from '@/api/learn';
import { ProjectCode } from '@/scripts/ProjectConfig'; import { ProjectCode } from '@/scripts/ProjectConfig';
import ContectUs from '@/views/newMap/displayNew/dispatherContest/contectUs';
export default { export default {
name: 'MenuDemonJoint', name: 'MenuDemonJoint',
@ -64,7 +67,8 @@ export default {
ChatBox, ChatBox,
QrCode, QrCode,
SetTime, SetTime,
Equipment Equipment,
ContectUs
}, },
props: { props: {
group: { group: {
@ -138,6 +142,9 @@ export default {
isProject() { isProject() {
return getSessionStorage('project') != 'login' && getSessionStorage('project') != 'design'; return getSessionStorage('project') != 'login' && getSessionStorage('project') != 'design';
}, },
isLocal() { //
return process.env.VUE_APP_PRO === 'local';
},
hasOneButton() { hasOneButton() {
let num = 0; let num = 0;
if ((this.isShow3dmodel && this.isShowScheduling) || if ((this.isShow3dmodel && this.isShowScheduling) ||
@ -473,6 +480,9 @@ export default {
this.$message.error('获取课程ID失败'); this.$message.error('获取课程ID失败');
}); });
}, },
contectUs() {
this.$refs.contectUs.doShow();
},
handleExam() { handleExam() {
if (this.$route.query.type === 'IM') { if (this.$route.query.type === 'IM') {
const routeData = this.$router.resolve({ const routeData = this.$router.resolve({