个人信息关闭后终止状态&贵装备展示留言板

This commit is contained in:
fan 2020-12-02 15:23:23 +08:00
parent 706c2343a0
commit d96df1ce68
5 changed files with 34 additions and 2 deletions

View File

@ -408,6 +408,12 @@ export default {
this.visible = false; this.visible = false;
this.binding = false; this.binding = false;
this.bindSuccess = false; this.bindSuccess = false;
this.nameShow = true;
this.nickNameShow = true;
this.mobileShow = true;
this.emailShow = true;
this.passwordShow = true;
this.companyShow = true;
}, },
switcherName() { switcherName() {
this.editInfo.name = this.userInfo.name; this.editInfo.name = this.userInfo.name;

View File

@ -382,6 +382,7 @@ export default {
width: 100%; width: 100%;
background-image:url('../../assets/bg_board.jpg'); background-image:url('../../assets/bg_board.jpg');
background-size: 100% 100%; background-size: 100% 100%;
min-height: 100%;
} }
/deep/.ql-container{ /deep/.ql-container{
height: 80%; height: 80%;

View File

@ -31,7 +31,7 @@
<!-- <el-button v-if="isContest" size="small" @click=" fieldExam">实操测验</el-button> --> <!-- <el-button v-if="isContest" size="small" @click=" fieldExam">实操测验</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="project === 'bjd'" size="small" @click="distribute">权限分发</el-button> <el-button v-if="project === 'bjd'" size="small" @click="distribute">权限分发</el-button>
<el-button v-if="isContest || project === 'bjd'" size="small" @click="messageBoardShow">留言板</el-button> <el-button v-if="isContest || project === 'bjd' || project === 'gzb'" size="small" @click="messageBoardShow">留言板</el-button>
<el-button v-if="isContest || project === 'bjd'" size="small" @click="contectUs">联系方式</el-button> <el-button v-if="isContest || project === 'bjd'" size="small" @click="contectUs">联系方式</el-button>
</el-button-group> </el-button-group>
</div> </div>
@ -318,7 +318,6 @@ export default {
} }
}, },
messageBoardShow() { messageBoardShow() {
// this.$refs.messageBoard.doShow();
const routeData = this.$router.resolve({ const routeData = this.$router.resolve({
path:'/messageBoard', path:'/messageBoard',
query:{ query:{

View File

@ -9,6 +9,7 @@
</el-radio-group> </el-radio-group>
<span class="display-time">{{ formatUsedTime }}</span> <span class="display-time">{{ formatUsedTime }}</span>
<span v-if="demoMode === TrainingMode.TEST" class="display-score">{{ $t('display.lesson.score') }}{{ formatScore }}</span> <span v-if="demoMode === TrainingMode.TEST" class="display-score">{{ $t('display.lesson.score') }}{{ formatScore }}</span>
<el-button v-if="project == 'gzb'" size="small" @click="messageBoardShow">留言板</el-button>
</el-row> </el-row>
</div> </div>
<div id="teachGroupButton" class="display-draft" :style="{bottom: offsetBottom + 'px'}"> <div id="teachGroupButton" class="display-draft" :style="{bottom: offsetBottom + 'px'}">
@ -35,6 +36,7 @@ import { TrainingMode, UrlConfig } from '@/scripts/ConstDic';
import { timeFormat } from '@/utils/date'; import { timeFormat } from '@/utils/date';
import { getTrainingStepsDetailNew, loadTrainingInSimulation } from '@/api/jmap/training'; import { getTrainingStepsDetailNew, loadTrainingInSimulation } from '@/api/jmap/training';
import { EventBus } from '@/scripts/event-bus'; import { EventBus } from '@/scripts/event-bus';
import { getSessionStorage } from '@/utils/auth';
export default { export default {
name: 'MenuLesson', name: 'MenuLesson',
@ -99,6 +101,9 @@ export default {
}, },
prdType() { prdType() {
return this.$route.query.prdType; return this.$route.query.prdType;
},
project() {
return getSessionStorage('project');
} }
}, },
watch: { watch: {
@ -284,6 +289,16 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
EventBus.$emit('viewLoading', false); EventBus.$emit('viewLoading', false);
}); });
},
messageBoardShow() {
const routeData = this.$router.resolve({
path:'/messageBoard',
query:{
project: this.project,
noPreLogout: true
}
});
window.open(routeData.href, '_blank', 'noopener noreferrer');
} }
} }
}; };

View File

@ -23,6 +23,7 @@
<el-button v-if="deviceManageShow" size="small" @click="handleEquipment">设备管理</el-button> <el-button v-if="deviceManageShow" size="small" @click="handleEquipment">设备管理</el-button>
<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="project == 'gzb'" size="small" @click="messageBoardShow">留言板</el-button>
</el-button-group> </el-button-group>
</div> </div>
<div class="display-draft" :class="{'display-type-hb': lineCode == '07' && $store.state.training.prdType=='01', 'haerbin_btn_box': lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}"> <div class="display-draft" :class="{'display-type-hb': lineCode == '07' && $store.state.training.prdType=='01', 'haerbin_btn_box': lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}">
@ -430,6 +431,16 @@ export default {
this.btnWidth = 0; this.btnWidth = 0;
} }
}, },
messageBoardShow() {
const routeData = this.$router.resolve({
path:'/messageBoard',
query:{
project: this.project,
noPreLogout: true
}
});
window.open(routeData.href, '_blank', 'noopener noreferrer');
},
handleTeach() { handleTeach() {
getPublishLessonListByMapId({mapId: this.mapId}).then(resp => { getPublishLessonListByMapId({mapId: this.mapId}).then(resp => {
const lesson = resp.data.find(item => { const lesson = resp.data.find(item => {