mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 05:16:43 +08:00
feat:新增社招新员工报名页面
This commit is contained in:
31
src/api/new-employee/newEmployee.js
Normal file
31
src/api/new-employee/newEmployee.js
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import ajax from '@/api/boe/boeApiAjax.js'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取嵌入课程信息
|
||||||
|
* @param {Object} params - 参数对象
|
||||||
|
* @param {string} params.course_id - 课程ID
|
||||||
|
*/
|
||||||
|
export function enrollWork(params) {
|
||||||
|
return ajax.postJson('/boe/embed-work/complete-embed', params)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 确认报名注册
|
||||||
|
* @param {Object} data - 提交数据
|
||||||
|
* @param {string} data.id - 项目ID
|
||||||
|
* @param {string} data.method - 方法
|
||||||
|
* @param {string} data.userId - 用户ID
|
||||||
|
* @param {string} data.objectType - 对象类型
|
||||||
|
* @param {FormData} data.formData - 表单数据
|
||||||
|
*/
|
||||||
|
export function enrollRegSure(data) {
|
||||||
|
return ajax.postJson('/boe/enroll-data/reg-sure', data)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取欢迎页数据
|
||||||
|
*/
|
||||||
|
export function getWelcomeData() {
|
||||||
|
return ajax.get('/boe/new-employee/welcome')
|
||||||
|
}
|
||||||
|
|
||||||
BIN
src/assets/images/new-employee/wel.png
Normal file
BIN
src/assets/images/new-employee/wel.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 527 KiB |
File diff suppressed because it is too large
Load Diff
@@ -2,35 +2,67 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="xtop">
|
<div class="xtop">
|
||||||
<div class="xtop-content">
|
<div class="xtop-content">
|
||||||
<div class="xtop-left">
|
<div class="xtop-left">
|
||||||
<div class="xtop-logo">
|
<div class="xtop-logo">
|
||||||
<router-link class="routerLink" to="/index"><img src="../../../assets/logo/logo-white.png" style="width:161px;height:27px;" /></router-link>
|
<router-link class="routerLink" to="/index"
|
||||||
</div>
|
><img
|
||||||
<div class="xtop-nav" v-if="userInfo.role === 1">
|
src="../../../assets/logo/logo-white.png"
|
||||||
<div class="xtop-nav-item"><a :href="`${webBaseUrl}/index`">首页</a></div>
|
style="width: 161px; height: 27px"
|
||||||
<div class="xtop-nav-item"><a :href="`${webBaseUrl}/course`">课程</a></div>
|
/></router-link>
|
||||||
<div class="xtop-nav-item"><a :href="`${webBaseUrl}/case`">案例</a></div>
|
</div>
|
||||||
<div class="xtop-nav-item"><a :href="`${webBaseUrl}/article`">文章</a></div>
|
<div class="xtop-nav" v-if="userInfo.role === 1">
|
||||||
<div class="xtop-nav-item"><a :href="`${webBaseUrl}/qa`">问答</a></div>
|
<div class="xtop-nav-item">
|
||||||
<div class="xtop-nav-item">
|
<a :href="`${webBaseUrl}/index`">首页</a>
|
||||||
<el-dropdown placement="bottom" @command="handleCommand">
|
</div>
|
||||||
<span class="el-dropdown-link" style="color:#fff;font-size:16px;cursor: pointer;">专区</span>
|
<div class="xtop-nav-item">
|
||||||
<el-dropdown-menu slot="dropdown">
|
<a :href="`${webBaseUrl}/course`">课程</a>
|
||||||
<el-dropdown-item command='one'>BOE系列公开课</el-dropdown-item>
|
</div>
|
||||||
<el-dropdown-item command='two' divided>Grow180</el-dropdown-item>
|
<div class="xtop-nav-item">
|
||||||
<el-dropdown-item command='three' divided>管理者进阶</el-dropdown-item>
|
<a :href="`${webBaseUrl}/case`">案例</a>
|
||||||
<el-dropdown-item command='for' divided>U选小课堂</el-dropdown-item>
|
</div>
|
||||||
<el-dropdown-item command='five' divided>社招新员工</el-dropdown-item>
|
<div class="xtop-nav-item">
|
||||||
<el-dropdown-item command="seven" divided>教师专区</el-dropdown-item>
|
<a :href="`${webBaseUrl}/article`">文章</a>
|
||||||
</el-dropdown-menu>
|
</div>
|
||||||
</el-dropdown>
|
<div class="xtop-nav-item">
|
||||||
|
<a :href="`${webBaseUrl}/qa`">问答</a>
|
||||||
|
</div>
|
||||||
|
<div class="xtop-nav-item">
|
||||||
|
<el-dropdown placement="bottom" @command="handleCommand">
|
||||||
|
<span
|
||||||
|
class="el-dropdown-link"
|
||||||
|
style="color: #fff; font-size: 16px; cursor: pointer"
|
||||||
|
>专区</span
|
||||||
|
>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<el-dropdown-item command="one"
|
||||||
|
>BOE系列公开课</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item command="two" divided
|
||||||
|
>Grow180</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item command="three" divided
|
||||||
|
>管理者进阶</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item command="for" divided
|
||||||
|
>U选小课堂</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item command="five" divided
|
||||||
|
>社招新员工</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item command="seven" divided
|
||||||
|
>教师专区</el-dropdown-item
|
||||||
|
>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
|
</div>
|
||||||
|
<div class="xtop-nav-item">
|
||||||
|
<a :href="`${webBaseUrl}/follow`">我的关注</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="xtop-nav-item"><a :href="`${webBaseUrl}/follow`">我的关注</a></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="xtop-right">
|
||||||
<div class="xtop-right">
|
<!-- <div style="margin-left:250px;margin-right:50px;"> -->
|
||||||
<!-- <div style="margin-left:250px;margin-right:50px;"> -->
|
<!-- <el-input placeholder="搜索" style="width: 260px;border-radius: 20px !important;" @keyup.enter.native="searchJump()" clearable maxlength="50" v-model="keyword" class="input-with-select">
|
||||||
<!-- <el-input placeholder="搜索" style="width: 260px;border-radius: 20px !important;" @keyup.enter.native="searchJump()" clearable maxlength="50" v-model="keyword" class="input-with-select">
|
|
||||||
<el-select v-model="findType" style="width: 75px;" slot="prepend" placeholder="请选择">
|
<el-select v-model="findType" style="width: 75px;" slot="prepend" placeholder="请选择">
|
||||||
<el-option label="课程" value="1"></el-option>
|
<el-option label="课程" value="1"></el-option>
|
||||||
<el-option label="案例" value="2"></el-option>
|
<el-option label="案例" value="2"></el-option>
|
||||||
@@ -41,41 +73,115 @@
|
|||||||
</el-input> -->
|
</el-input> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<div>
|
<div>
|
||||||
<el-badge :value="userMsg" :hidden="userMsg==0" class="message-count">
|
<el-badge
|
||||||
<el-link type="primary" :href="`${webBaseUrl}/message/center/index`" :underline="false">
|
:value="userMsg"
|
||||||
<svg-icon style="margin-right: 0;font-size:22px;" icon-class="messfff"></svg-icon>
|
:hidden="userMsg == 0"
|
||||||
|
class="message-count"
|
||||||
|
>
|
||||||
|
<el-link
|
||||||
|
type="primary"
|
||||||
|
:href="`${webBaseUrl}/message/center/index`"
|
||||||
|
:underline="false"
|
||||||
|
>
|
||||||
|
<svg-icon
|
||||||
|
style="margin-right: 0; font-size: 22px"
|
||||||
|
icon-class="messfff"
|
||||||
|
></svg-icon>
|
||||||
</el-link>
|
</el-link>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-dropdown class="person-action-index" style="margin-left: 44px;">
|
<el-dropdown class="person-action-index" style="margin-left: 44px">
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
<span v-if="current == 'qa'" style="color: #333;">{{curIdentity==3? '管理员':curIdentity==2? '教师':'学员'}}</span>
|
<span v-if="current == 'qa'" style="color: #333">{{
|
||||||
<span v-else style="color: #fff;">{{curIdentity==3? '管理员':curIdentity==2? '教师':'学员'}}</span><i class="el-icon-arrow-down el-icon--right"></i>
|
curIdentity == 3
|
||||||
|
? "管理员"
|
||||||
|
: curIdentity == 2
|
||||||
|
? "教师"
|
||||||
|
: "学员"
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #fff">{{
|
||||||
|
curIdentity == 3
|
||||||
|
? "管理员"
|
||||||
|
: curIdentity == 2
|
||||||
|
? "教师"
|
||||||
|
: "学员"
|
||||||
|
}}</span
|
||||||
|
><i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
</span>
|
</span>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item><router-link to="/index">学员</router-link></el-dropdown-item>
|
<el-dropdown-item
|
||||||
<el-dropdown-item v-if="identity == 2 || identity == 5" @click.native="setCurIdentity(2)"><router-link to="/need/waitaudit">教师</router-link></el-dropdown-item>
|
><router-link to="/index">学员</router-link></el-dropdown-item
|
||||||
<el-dropdown-item v-if="identity == 3 || identity == 5" @click.native="setCurIdentity(3)"><a :href="managerPath+'/learningpath'">管理员</a></el-dropdown-item>
|
>
|
||||||
|
<el-dropdown-item
|
||||||
|
v-if="identity == 2 || identity == 5"
|
||||||
|
@click.native="setCurIdentity(2)"
|
||||||
|
><router-link to="/need/waitaudit"
|
||||||
|
>教师</router-link
|
||||||
|
></el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item
|
||||||
|
v-if="identity == 3 || identity == 5"
|
||||||
|
@click.native="setCurIdentity(3)"
|
||||||
|
><a :href="managerPath + '/learningpath'"
|
||||||
|
>管理员</a
|
||||||
|
></el-dropdown-item
|
||||||
|
>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<div style="margin-left: 50px;color: #fff;font-size: 14px;cursor: pointer;">
|
<div
|
||||||
<el-avatar v-if="userInfo.avatar !== ''" :src="userInfo.avatar" style="vertical-align: middle;width:40px;height:40px;margin-right:10px;"></el-avatar>
|
style="
|
||||||
<span v-else style="display: inline-block;">
|
margin-left: 50px;
|
||||||
<img v-if="userInfo.sex === 1 " src="../../../../public/images/Avatarman.png" alt="" style="width: 30px;height: 30px;vertical-align: middle;">
|
color: #fff;
|
||||||
<img v-else src="../../../../public/images/Avatarwoman.png" alt="" style="width: 30px;height: 30px;vertical-align: middle;">
|
font-size: 14px;
|
||||||
</span>
|
cursor: pointer;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-avatar
|
||||||
|
v-if="userInfo.avatar !== ''"
|
||||||
|
:src="userInfo.avatar"
|
||||||
|
style="
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
margin-right: 10px;
|
||||||
|
"
|
||||||
|
></el-avatar>
|
||||||
|
<span v-else style="display: inline-block">
|
||||||
|
<img
|
||||||
|
v-if="userInfo.sex === 1"
|
||||||
|
src="../../../../public/images/Avatarman.png"
|
||||||
|
alt=""
|
||||||
|
style="width: 30px; height: 30px; vertical-align: middle"
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
v-else
|
||||||
|
src="../../../../public/images/Avatarwoman.png"
|
||||||
|
alt=""
|
||||||
|
style="width: 30px; height: 30px; vertical-align: middle"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
|
||||||
{{userInfo.name}}
|
{{ userInfo.name }}
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item @click.native="setCurIdentity(1)"><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item>
|
<el-dropdown-item @click.native="setCurIdentity(1)"
|
||||||
<el-dropdown-item><router-link :to="'/home/'+userInfo.aid">个人主页</router-link></el-dropdown-item>
|
><a
|
||||||
</el-dropdown-menu>
|
:href="`${webBaseUrl}${
|
||||||
|
isTiao ? '/uc/study/task' : '/uc/study/courses'
|
||||||
|
}`"
|
||||||
|
>个人中心</a
|
||||||
|
></el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item
|
||||||
|
><router-link :to="'/home/' + userInfo.aid"
|
||||||
|
>个人主页</router-link
|
||||||
|
></el-dropdown-item
|
||||||
|
>
|
||||||
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -89,20 +195,53 @@
|
|||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="person-action">
|
<div class="person-action">
|
||||||
<el-button @click="logout()" type="text"><svg-icon style="margin-right: 4px;font-size:16px;" icon-class="white-out"></svg-icon>登出</el-button>
|
<el-button @click="logout()" type="text"
|
||||||
|
><svg-icon
|
||||||
|
style="margin-right: 4px; font-size: 16px"
|
||||||
|
icon-class="white-out"
|
||||||
|
></svg-icon
|
||||||
|
>登出</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<el-dialog title="修改登录密码" :close-on-click-modal="false" :visible.sync="pwdDlg.show" width="600px" custom-class="g-dialog">
|
<el-dialog
|
||||||
|
title="修改登录密码"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:visible.sync="pwdDlg.show"
|
||||||
|
width="600px"
|
||||||
|
custom-class="g-dialog"
|
||||||
|
>
|
||||||
<el-form :model="pwdDlg" size="medium" label-width="100px">
|
<el-form :model="pwdDlg" size="medium" label-width="100px">
|
||||||
<el-form-item label="当前密码"><el-input v-model="pwdDlg.nowPwd" type="password" placeholder="当前的登录密码" :style="{ width: '100%' }"></el-input></el-form-item>
|
<el-form-item label="当前密码"
|
||||||
|
><el-input
|
||||||
|
v-model="pwdDlg.nowPwd"
|
||||||
|
type="password"
|
||||||
|
placeholder="当前的登录密码"
|
||||||
|
:style="{ width: '100%' }"
|
||||||
|
></el-input
|
||||||
|
></el-form-item>
|
||||||
<el-form-item label="新密码">
|
<el-form-item label="新密码">
|
||||||
<el-input v-model="pwdDlg.newPwd" type="password" placeholder="新的密码" :maxlength="20" clearable :style="{ width: '100%' }"></el-input>
|
<el-input
|
||||||
|
v-model="pwdDlg.newPwd"
|
||||||
|
type="password"
|
||||||
|
placeholder="新的密码"
|
||||||
|
:maxlength="20"
|
||||||
|
clearable
|
||||||
|
:style="{ width: '100%' }"
|
||||||
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="密码确认">
|
<el-form-item label="密码确认">
|
||||||
<el-input v-model="pwdDlg.rePwd" type="password" placeholder="和上面新密码一致" :maxlength="20" clearable :style="{ width: '100%' }"></el-input>
|
<el-input
|
||||||
|
v-model="pwdDlg.rePwd"
|
||||||
|
type="password"
|
||||||
|
placeholder="和上面新密码一致"
|
||||||
|
:maxlength="20"
|
||||||
|
clearable
|
||||||
|
:style="{ width: '100%' }"
|
||||||
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
@@ -110,14 +249,37 @@
|
|||||||
<el-button type="primary" @click="submitPwd">提交修改</el-button>
|
<el-button type="primary" @click="submitPwd">提交修改</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog custom-class="dialog-signin" :show-close="false" :visible.sync="signInShow" :close-on-click-modal="false" width="520px" top="8vh">
|
<el-dialog
|
||||||
<div>
|
custom-class="dialog-signin"
|
||||||
<img usemap="#HotMap" src="/pc/ad/dlg.png" style="width:416px;height: 576px;">
|
:show-close="false"
|
||||||
<map name="HotMap" id="HotMap">
|
:visible.sync="signInShow"
|
||||||
<area shape="circle" name="link1" coords="380,40,30" @click="closeSignDlg" href="javascript:;" />
|
:close-on-click-modal="false"
|
||||||
<area shape="rectangle" name="link2" coords="150,400,300,500" target="_blank" href="https://boehrsurvey.wjx.cn/vm/PmreuFN.aspx" />
|
width="520px"
|
||||||
</map>
|
top="8vh"
|
||||||
</div>
|
>
|
||||||
|
<div>
|
||||||
|
<img
|
||||||
|
usemap="#HotMap"
|
||||||
|
src="/pc/ad/dlg.png"
|
||||||
|
style="width: 416px; height: 576px"
|
||||||
|
/>
|
||||||
|
<map name="HotMap" id="HotMap">
|
||||||
|
<area
|
||||||
|
shape="circle"
|
||||||
|
name="link1"
|
||||||
|
coords="380,40,30"
|
||||||
|
@click="closeSignDlg"
|
||||||
|
href="javascript:;"
|
||||||
|
/>
|
||||||
|
<area
|
||||||
|
shape="rectangle"
|
||||||
|
name="link2"
|
||||||
|
coords="150,400,300,500"
|
||||||
|
target="_blank"
|
||||||
|
href="https://boehrsurvey.wjx.cn/vm/PmreuFN.aspx"
|
||||||
|
/>
|
||||||
|
</map>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<gonggao></gonggao>
|
<gonggao></gonggao>
|
||||||
<div class="u-class">
|
<div class="u-class">
|
||||||
@@ -148,9 +310,7 @@
|
|||||||
内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科
|
内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text_msg">
|
<div class="text_msg">创新力专区课程版权已到期!</div>
|
||||||
创新力专区课程版权已到期!
|
|
||||||
</div>
|
|
||||||
<!-- <div class="cyl" @click="cylClick">
|
<!-- <div class="cyl" @click="cylClick">
|
||||||
<div class="tyl_title">
|
<div class="tyl_title">
|
||||||
<img
|
<img
|
||||||
@@ -175,44 +335,44 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from "vuex";
|
||||||
import desk from '@/api/console.js';
|
import desk from "@/api/console.js";
|
||||||
import Cookies from 'vue-cookies';
|
import Cookies from "vue-cookies";
|
||||||
import InterestCollection from '@/components/Portal/interestCollection.vue'
|
import InterestCollection from "@/components/Portal/interestCollection.vue";
|
||||||
import GuideBox from '@/components/Portal/guideBox.vue'
|
import GuideBox from "@/components/Portal/guideBox.vue";
|
||||||
import gonggao from '@/components/Gonggao.vue';
|
import gonggao from "@/components/Gonggao.vue";
|
||||||
export default {
|
export default {
|
||||||
components:{InterestCollection,GuideBox,gonggao},
|
components: { InterestCollection, GuideBox, gonggao },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
uClassShow: false,
|
uClassShow: false,
|
||||||
isTiao:false,
|
isTiao: false,
|
||||||
managerPath:process.env.VUE_APP_MANAGER_PATH,
|
managerPath: process.env.VUE_APP_MANAGER_PATH,
|
||||||
interestShow:false,
|
interestShow: false,
|
||||||
checked:true,
|
checked: true,
|
||||||
signInShow: false,
|
signInShow: false,
|
||||||
signLocalTimesKey:'xboe_sign_dlg_times',
|
signLocalTimesKey: "xboe_sign_dlg_times",
|
||||||
keyword: '',
|
keyword: "",
|
||||||
findType: '1',
|
findType: "1",
|
||||||
mouseIndex: 0,
|
mouseIndex: 0,
|
||||||
activeIndex: '',
|
activeIndex: "",
|
||||||
msg: { num: 0 },
|
msg: { num: 0 },
|
||||||
user: { name: '' },
|
user: { name: "" },
|
||||||
pwdDlg: { show: false, newPwd: '', nowPwd: '', rePwd: '' },
|
pwdDlg: { show: false, newPwd: "", nowPwd: "", rePwd: "" },
|
||||||
current:1
|
current: 1,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo', 'userMsg','curIdentity','identity']),
|
...mapGetters(["userInfo", "userMsg", "curIdentity", "identity"]),
|
||||||
showName: function() {
|
showName: function () {
|
||||||
//console.log('name='+this.name);
|
//console.log('name='+this.name);
|
||||||
//console.log('loginName='+this.loginName);
|
//console.log('loginName='+this.loginName);
|
||||||
if (this.userInfo.name != '') {
|
if (this.userInfo.name != "") {
|
||||||
return this.userInfo.name;
|
return this.userInfo.name;
|
||||||
} else {
|
} else {
|
||||||
return this.userInfo.userName;
|
return this.userInfo.userName;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.interestShow = true;
|
this.interestShow = true;
|
||||||
@@ -238,7 +398,7 @@ export default {
|
|||||||
// localStorage.setItem(this.$xpage.constants.newLoginKey,0);
|
// localStorage.setItem(this.$xpage.constants.newLoginKey,0);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.$store.dispatch('refrashMsg');
|
this.$store.dispatch("refrashMsg");
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tylClick() {
|
tylClick() {
|
||||||
@@ -247,11 +407,11 @@ export default {
|
|||||||
cylClick() {
|
cylClick() {
|
||||||
window.open("https://u.boe.com/pc/course?keyword=创新力专区");
|
window.open("https://u.boe.com/pc/course?keyword=创新力专区");
|
||||||
},
|
},
|
||||||
setCurIdentity(iden){
|
setCurIdentity(iden) {
|
||||||
this.$store.dispatch('SetCurIdentity',iden);
|
this.$store.dispatch("SetCurIdentity", iden);
|
||||||
},
|
},
|
||||||
closeSignDlg(){
|
closeSignDlg() {
|
||||||
this.signInShow=false;
|
this.signInShow = false;
|
||||||
},
|
},
|
||||||
handleCommand(val) {
|
handleCommand(val) {
|
||||||
// let obj = {
|
// let obj = {
|
||||||
@@ -271,14 +431,14 @@ export default {
|
|||||||
two: urlPre + "/grow180/login",
|
two: urlPre + "/grow180/login",
|
||||||
three: this.webBaseUrl + "/study/index?study=1",
|
three: this.webBaseUrl + "/study/index?study=1",
|
||||||
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
|
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
|
||||||
five: urlPre + "/boe/new-employee/index.html",
|
five: urlPre + "/new-employee/welcome",
|
||||||
seven: this.webBaseUrl + '/grateful/index'
|
seven: this.webBaseUrl + "/grateful/index",
|
||||||
};
|
};
|
||||||
window.open(obj[val]);
|
window.open(obj[val]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleUcCommand(val){
|
handleUcCommand(val) {
|
||||||
if(val == 'logout'){
|
if (val == "logout") {
|
||||||
this.logout();
|
this.logout();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -289,36 +449,39 @@ export default {
|
|||||||
this.pwdDlg.show = true;
|
this.pwdDlg.show = true;
|
||||||
},
|
},
|
||||||
submitPwd() {
|
submitPwd() {
|
||||||
if (this.pwdDlg.nowPwd == '' || (this.pwdDlg.newPwd == '') | (this.pwdDlg.rePwd == '')) {
|
if (
|
||||||
|
this.pwdDlg.nowPwd == "" ||
|
||||||
|
(this.pwdDlg.newPwd == "") | (this.pwdDlg.rePwd == "")
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
loginName: this.loginName,
|
loginName: this.loginName,
|
||||||
old: this.pwdDlg.nowPwd,
|
old: this.pwdDlg.nowPwd,
|
||||||
newPassword: this.pwdDlg.newPwd,
|
newPassword: this.pwdDlg.newPwd,
|
||||||
rePassword: this.pwdDlg.rePwd
|
rePassword: this.pwdDlg.rePwd,
|
||||||
};
|
};
|
||||||
desk.updatePassword(params).then(res => {
|
desk.updatePassword(params).then((res) => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.$message({ message: '修改成功,请重新登录', type: 'success' });
|
this.$message({ message: "修改成功,请重新登录", type: "success" });
|
||||||
} else {
|
} else {
|
||||||
this.$message({ message: '修改失败,请检查输入', type: 'error' });
|
this.$message({ message: "修改失败,请检查输入", type: "error" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
logout() {
|
logout() {
|
||||||
this.$confirm('确定退出系统吗?', '提示', {
|
this.$confirm("确定退出系统吗?", "提示", {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: "取消",
|
||||||
type: 'warning'
|
type: "warning",
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$store.dispatch('LogOut').then(() => {
|
this.$store.dispatch("LogOut").then(() => {
|
||||||
//location.href = this.webBaseUrl + '/login';
|
//location.href = this.webBaseUrl + '/login';
|
||||||
location.href =process.env.VUE_APP_LOGIN_URL;
|
location.href = process.env.VUE_APP_LOGIN_URL;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -435,7 +598,7 @@ export default {
|
|||||||
border: 0.96px solid rgba(140, 105, 242, 1);
|
border: 0.96px solid rgba(140, 105, 242, 1);
|
||||||
box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3);
|
box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3);
|
||||||
}
|
}
|
||||||
.text_msg{
|
.text_msg {
|
||||||
margin: 43px 0 0 222px;
|
margin: 43px 0 0 222px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #000;
|
color: #000;
|
||||||
@@ -497,89 +660,86 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::v-deep .el-dropdown-menu__item:not(.is-disabled):hover{
|
::v-deep .el-dropdown-menu__item:not(.is-disabled):hover {
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
color: #0059FF !important;
|
color: #0059ff !important;
|
||||||
}
|
}
|
||||||
::v-deep.el-dropdown-menu {
|
::v-deep.el-dropdown-menu {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
::v-deep .el-avatar{
|
::v-deep .el-avatar {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
img{
|
img {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::v-deep.xtop .xtop-right .person-action[data-v-5bcef51e] .message-count i{
|
::v-deep.xtop .xtop-right .person-action[data-v-5bcef51e] .message-count i {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
.el-button--text{
|
.el-button--text {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
img{
|
img {
|
||||||
|
|
||||||
}
|
}
|
||||||
::v-deep .dialog-signin{
|
::v-deep .dialog-signin {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow:none;
|
box-shadow: none;
|
||||||
.el-dialog__header{
|
.el-dialog__header {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.el-dialog__body{
|
.el-dialog__body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.el-dialog__footer {
|
.el-dialog__footer {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
}
|
|
||||||
.signin-bg{
|
|
||||||
position: relative;
|
|
||||||
.el-icon-close{
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
right: 10px;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
}
|
||||||
}
|
.signin-bg {
|
||||||
.signin-box2{
|
position: relative;
|
||||||
margin-left: 100px;
|
.el-icon-close {
|
||||||
font-size: 12px;
|
position: absolute;
|
||||||
.signin-checkbox{
|
top: 20px;
|
||||||
display: flex;
|
right: 10px;
|
||||||
align-items: center;
|
color: #fff;
|
||||||
color: #FFFFFF;
|
font-size: 16px;
|
||||||
margin-top: 10px;
|
}
|
||||||
.el-checkbox{
|
}
|
||||||
margin-right: 5px;
|
.signin-box2 {
|
||||||
}
|
margin-left: 100px;
|
||||||
}
|
font-size: 12px;
|
||||||
.signin-text{
|
.signin-checkbox {
|
||||||
font-family: Alibaba PuHuiTi;
|
display: flex;
|
||||||
font-style:italic;
|
align-items: center;
|
||||||
cursor: pointer;
|
color: #ffffff;
|
||||||
margin-left: 20px;
|
margin-top: 10px;
|
||||||
color:#003eb7;
|
.el-checkbox {
|
||||||
font-weight: bolder;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.signin-box{
|
.signin-text {
|
||||||
|
font-family: Alibaba PuHuiTi;
|
||||||
|
font-style: italic;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-left: 20px;
|
||||||
|
color: #003eb7;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.signin-box {
|
||||||
margin: 0 70px;
|
margin: 0 70px;
|
||||||
p{
|
p {
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
}
|
}
|
||||||
.signin-text{
|
.signin-text {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
.ti-yan{
|
.ti-yan {
|
||||||
border-bottom: 1px solid #FFFFFF;
|
border-bottom: 1px solid #ffffff;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
img{
|
img {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
@@ -587,38 +747,38 @@ img{
|
|||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.signin-a{
|
.signin-a {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: Alibaba PuHuiTi;
|
font-family: Alibaba PuHuiTi;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
span{
|
span {
|
||||||
border-bottom: 1px solid #FFFFFF;
|
border-bottom: 1px solid #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.signin-b{
|
.signin-b {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color:#FFFFFF;
|
color: #ffffff;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
.el-checkbox__inner{
|
.el-checkbox__inner {
|
||||||
//background-color: #588AFC;
|
//background-color: #588AFC;
|
||||||
border-color: #FFFFFF;
|
border-color: #ffffff;
|
||||||
}
|
}
|
||||||
.el-checkbox__input.is-checked .el-checkbox__inner{
|
.el-checkbox__input.is-checked .el-checkbox__inner {
|
||||||
background-color: #588AFC;
|
background-color: #588afc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.dialog-footer-signin{
|
.dialog-footer-signin {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.xtop {
|
.xtop {
|
||||||
height: 72px;
|
height: 72px;
|
||||||
line-height: 72px;
|
line-height: 72px;
|
||||||
min-width: 1280px;
|
min-width: 1280px;
|
||||||
background-color: #0078FC;
|
background-color: #0078fc;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
@@ -628,15 +788,15 @@ img{
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid #e9e9e9;
|
border-bottom: 1px solid #e9e9e9;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
.xtop-content{
|
.xtop-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin:0 40px;
|
margin: 0 40px;
|
||||||
.xtop-left {
|
.xtop-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
.xtop-logo{
|
.xtop-logo {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-right: 50px;
|
padding-right: 50px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -647,27 +807,26 @@ img{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.xtop-nav {
|
.xtop-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
// justify-content: flex-start;
|
// justify-content: flex-start;
|
||||||
a{
|
a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.xtop-nav-item {
|
.xtop-nav-item {
|
||||||
line-height:72px;
|
line-height: 72px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1366px){
|
@media screen and (max-width: 1366px) {
|
||||||
.xtop-nav-item{
|
.xtop-nav-item {
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1366px){
|
@media screen and (min-width: 1366px) {
|
||||||
.xtop-nav-item{
|
.xtop-nav-item {
|
||||||
padding: 0px 24px;
|
padding: 0px 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -676,21 +835,21 @@ img{
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.person-action{
|
.person-action {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: 44px;
|
margin-left: 44px;
|
||||||
::v-deep .message-count{
|
::v-deep .message-count {
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
i{
|
i {
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
color:#409EFF;
|
color: #409eff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button{
|
.el-button {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
// margin-left: 20px;
|
// margin-left: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -708,7 +867,7 @@ img{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.xtop .arrow-down {
|
.xtop .arrow-down {
|
||||||
content: '';
|
content: "";
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-style: solid dashed dashed;
|
border-style: solid dashed dashed;
|
||||||
@@ -789,21 +948,21 @@ img{
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.message-count a{
|
.message-count a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
margin-top: 0 !important;
|
|
||||||
}
|
|
||||||
::v-deep .el-badge{
|
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
.el-badge__content{
|
}
|
||||||
|
::v-deep .el-badge {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
.el-badge__content {
|
||||||
top: 20px;
|
top: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::v-deep .el-link.el-link--primary:hover {
|
::v-deep .el-link.el-link--primary:hover {
|
||||||
color:#588AFC;
|
color: #588afc;
|
||||||
}
|
}
|
||||||
.el-dropdown-link{
|
.el-dropdown-link {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,27 +18,27 @@ export const constantRoutes = [{
|
|||||||
path: '',
|
path: '',
|
||||||
redirect: '/study'
|
redirect: '/study'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/loading',
|
path: '/loading',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/Loading'], resolve),
|
component: (resolve) => require(['@/views/Loading'], resolve),
|
||||||
name: 'loading',
|
name: 'loading',
|
||||||
meta: {title: '正在进入学习中心', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '正在进入学习中心', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/Login'], resolve),
|
component: (resolve) => require(['@/views/Login'], resolve),
|
||||||
name: 'login',
|
name: 'login',
|
||||||
meta: {title: '京东方大学堂登录', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '京东方大学堂登录', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/index',
|
path: '/index',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/Index'], resolve),
|
component: (resolve) => require(['@/views/Index'], resolve),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {title: '首页', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// path: '/grateful/index',
|
// path: '/grateful/index',
|
||||||
// hidden: true,
|
// hidden: true,
|
||||||
@@ -46,329 +46,336 @@ export const constantRoutes = [{
|
|||||||
// name: 'gratefulIndex',
|
// name: 'gratefulIndex',
|
||||||
// meta: { title: '感恩教师首页', icon: 'dashboard', noCache: true, affix: false },
|
// meta: { title: '感恩教师首页', icon: 'dashboard', noCache: true, affix: false },
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
path: '/grateful',
|
path: '/grateful',
|
||||||
component: Grateful,
|
component: Grateful,
|
||||||
redirect: '/grateful/index',
|
redirect: '/grateful/index',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'index',
|
path: 'index',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/grateful/GratefulHomePage'], resolve),
|
component: (resolve) => require(['@/views/grateful/GratefulHomePage'], resolve),
|
||||||
name: 'GratefulHomePage',
|
name: 'GratefulHomePage',
|
||||||
meta: {title: '感恩教师首页', icon: 'dashboard', noCache: true, affix: true, hidden: false}
|
meta: { title: '感恩教师首页', icon: 'dashboard', noCache: true, affix: true, hidden: false }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'teacherEmpowerment',
|
path: 'teacherEmpowerment',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/grateful/TeacherEmpowerment'], resolve),
|
component: (resolve) => require(['@/views/grateful/TeacherEmpowerment'], resolve),
|
||||||
name: 'TeacherEmpowerment',
|
name: 'TeacherEmpowerment',
|
||||||
meta: {title: '教师赋能', icon: 'dashboard', noCache: true, affix: true, hidden: true}
|
meta: { title: '教师赋能', icon: 'dashboard', noCache: true, affix: true, hidden: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'toolDown',
|
path: 'toolDown',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/grateful/ToolDown'], resolve),
|
component: (resolve) => require(['@/views/grateful/ToolDown'], resolve),
|
||||||
name: 'ToolDown',
|
name: 'ToolDown',
|
||||||
meta: {title: '工具下载', icon: 'dashboard', noCache: true, affix: true, hidden: true}
|
meta: { title: '工具下载', icon: 'dashboard', noCache: true, affix: true, hidden: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'gratefulNotice',
|
path: 'gratefulNotice',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/grateful/GratefulNotice'], resolve),
|
component: (resolve) => require(['@/views/grateful/GratefulNotice'], resolve),
|
||||||
name: 'GratefulNotice',
|
name: 'GratefulNotice',
|
||||||
meta: {title: '通知列表', icon: 'dashboard', noCache: true, affix: true, hidden: true}
|
meta: { title: '通知列表', icon: 'dashboard', noCache: true, affix: true, hidden: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'noticeDetail',
|
path: 'noticeDetail',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/grateful/NoticeDetail'], resolve),
|
component: (resolve) => require(['@/views/grateful/NoticeDetail'], resolve),
|
||||||
name: 'NoticeDetail',
|
name: 'NoticeDetail',
|
||||||
meta: {title: '通知详情', icon: 'dashboard', noCache: true, affix: true, hidden: true}
|
meta: { title: '通知详情', icon: 'dashboard', noCache: true, affix: true, hidden: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'teacherOpinion',
|
path: 'teacherOpinion',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/grateful/TeacherOpinion'], resolve),
|
component: (resolve) => require(['@/views/grateful/TeacherOpinion'], resolve),
|
||||||
name: 'TeacherOpinion',
|
name: 'TeacherOpinion',
|
||||||
meta: {title: '师资大全', icon: 'dashboard', noCache: true, affix: true, hidden: true}
|
meta: { title: '师资大全', icon: 'dashboard', noCache: true, affix: true, hidden: true }
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/forward',
|
path: '/forward',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/Forward'], resolve),
|
component: (resolve) => require(['@/views/Forward'], resolve),
|
||||||
name: 'forward',
|
name: 'forward',
|
||||||
meta: {title: '详细信息', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '详细信息', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/course',
|
path: '/course',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/Index'], resolve),
|
component: (resolve) => require(['@/views/portal/course/Index'], resolve),
|
||||||
name: 'course',
|
name: 'course',
|
||||||
meta: {title: '课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/courseRecommended',
|
path: '/courseRecommended',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/CourseRecommended'], resolve),
|
component: (resolve) => require(['@/views/portal/course/CourseRecommended'], resolve),
|
||||||
name: 'courseRecommended',
|
name: 'courseRecommended',
|
||||||
meta: {title: '推荐课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '推荐课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/courseSeries',
|
path: '/courseSeries',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/CourseSeries'], resolve),
|
component: (resolve) => require(['@/views/portal/course/CourseSeries'], resolve),
|
||||||
name: 'courseSeries',
|
name: 'courseSeries',
|
||||||
meta: {title: '系列课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '系列课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/course/micro',
|
path: '/course/micro',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/Micro'], resolve),
|
component: (resolve) => require(['@/views/portal/course/Micro'], resolve),
|
||||||
name: 'courseDetailMicro',
|
name: 'courseDetailMicro',
|
||||||
meta: {title: '课程详情', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '课程详情', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/course/detail',
|
path: '/course/detail',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/Detail'], resolve),
|
component: (resolve) => require(['@/views/portal/course/Detail'], resolve),
|
||||||
name: 'courseDetail',
|
name: 'courseDetail',
|
||||||
meta: {title: '课程详情', keepAlive: true, icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '课程详情', keepAlive: true, icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
// 课程预览
|
// 课程预览
|
||||||
{
|
{
|
||||||
path: '/course/microPreview',
|
path: '/course/microPreview',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/microPreview'], resolve),
|
component: (resolve) => require(['@/views/portal/course/microPreview'], resolve),
|
||||||
name: 'microPreview',
|
name: 'microPreview',
|
||||||
meta: {title: '课程预览', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '课程预览', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/course/rePreview',
|
path: '/course/rePreview',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/rePreview'], resolve),
|
component: (resolve) => require(['@/views/portal/course/rePreview'], resolve),
|
||||||
name: 'courseRePreview',
|
name: 'courseRePreview',
|
||||||
meta: {title: '课程预览', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '课程预览', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
//
|
//
|
||||||
// 外来链接
|
// 外来链接
|
||||||
{
|
{
|
||||||
path: '/course/boeframe',
|
path: '/course/boeframe',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/boeframe'], resolve),
|
component: (resolve) => require(['@/views/portal/boeframe'], resolve),
|
||||||
name: 'courseBoeframe',
|
name: 'courseBoeframe',
|
||||||
meta: {title: '课程预览', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '课程预览', icon: 'dashboard', noCache: true, affix: false },
|
||||||
},
|
},
|
||||||
//外来链接
|
//外来链接
|
||||||
{
|
{
|
||||||
path: '/course/recorded',
|
path: '/course/recorded',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/course/Recorded'], resolve),
|
||||||
|
name: 'courseDetailRecorded',
|
||||||
|
meta: { title: '课程详情', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
//此页面需要指定课程的参数
|
||||||
|
path: '/course/studyindex',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/study/coursenew'], resolve),
|
||||||
|
name: 'courseStudyIndex',
|
||||||
|
meta: { title: '课程学习', keepAlive: true, icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
//讲师认证
|
||||||
|
{
|
||||||
|
path: '/case',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/case/Index'], resolve),
|
||||||
|
name: 'case',
|
||||||
|
meta: { title: '案例', keepAlive: true, icon: 'dashboard', noCache: false, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/case/detail',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/case/Detail'], resolve),
|
||||||
|
name: 'caseDetail',
|
||||||
|
meta: { title: '案例详情', keepAlive: true, icon: 'dashboard', noCache: false, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/case/charts',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/case/Charts'], resolve),
|
||||||
|
name: 'caseCharts',
|
||||||
|
meta: { title: '排行榜', keepAlive: true, icon: 'dashboard', noCache: false, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/case/excellent',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/case/Excellent'], resolve),
|
||||||
|
name: 'caseExcellent',
|
||||||
|
meta: { title: '浏览量榜单', keepAlive: true, icon: 'dashboard', noCache: false, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/article',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/article/Index'], resolve),
|
||||||
|
name: 'article',
|
||||||
|
meta: { title: '文章', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/article/detail',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/article/Detail'], resolve),
|
||||||
|
name: 'articleDetail',
|
||||||
|
meta: { title: '文章详情', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/article/add',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/article/Add'], resolve),
|
||||||
|
name: 'articleAdd',
|
||||||
|
meta: { title: '发布文章', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/qa',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/qa/Index'], resolve),
|
||||||
|
name: 'qa',
|
||||||
|
meta: { title: '问答', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/message',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/user/Message'], resolve),
|
||||||
|
name: 'userMsg',
|
||||||
|
meta: { title: '我的消息', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/home',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/homepage/Index'], resolve),
|
||||||
|
name: 'homePage',
|
||||||
|
redirect: '/home/:id',
|
||||||
|
meta: { title: '个人主页', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
children: [{
|
||||||
|
path: ':id',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/portal/course/Recorded'], resolve),
|
component: (resolve) => require(['@/views/homepage/page'], resolve),
|
||||||
name: 'courseDetailRecorded',
|
name: 'page',
|
||||||
meta: {title: '课程详情', icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '个人主页', icon: 'dashboard', noCache: true, affix: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
//此页面需要指定课程的参数
|
path: ':id/leaving',
|
||||||
path: '/course/studyindex',
|
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: (resolve) => require(['@/views/study/coursenew'], resolve),
|
component: (resolve) => require(['@/views/homepage/leavingMessage'], resolve),
|
||||||
name: 'courseStudyIndex',
|
name: 'leavingMessage',
|
||||||
meta: {title: '课程学习', keepAlive: true, icon: 'dashboard', noCache: true, affix: false},
|
meta: { title: '留言', icon: 'dashboard', noCache: true, affix: true }
|
||||||
},
|
|
||||||
//讲师认证
|
|
||||||
{
|
|
||||||
path: '/case',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/case/Index'], resolve),
|
|
||||||
name: 'case',
|
|
||||||
meta: {title: '案例', keepAlive: true, icon: 'dashboard', noCache: false, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/case/detail',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/case/Detail'], resolve),
|
|
||||||
name: 'caseDetail',
|
|
||||||
meta: {title: '案例详情', keepAlive: true, icon: 'dashboard', noCache: false, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/case/charts',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/case/Charts'], resolve),
|
|
||||||
name: 'caseCharts',
|
|
||||||
meta: {title: '排行榜', keepAlive: true, icon: 'dashboard', noCache: false, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/case/excellent',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/case/Excellent'], resolve),
|
|
||||||
name: 'caseExcellent',
|
|
||||||
meta: {title: '浏览量榜单', keepAlive: true, icon: 'dashboard', noCache: false, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/article',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/article/Index'], resolve),
|
|
||||||
name: 'article',
|
|
||||||
meta: {title: '文章', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/article/detail',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/article/Detail'], resolve),
|
|
||||||
name: 'articleDetail',
|
|
||||||
meta: {title: '文章详情', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/article/add',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/article/Add'], resolve),
|
|
||||||
name: 'articleAdd',
|
|
||||||
meta: {title: '发布文章', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/qa',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/qa/Index'], resolve),
|
|
||||||
name: 'qa',
|
|
||||||
meta: {title: '问答', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/message',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/user/Message'], resolve),
|
|
||||||
name: 'userMsg',
|
|
||||||
meta: {title: '我的消息', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/home',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/homepage/Index'], resolve),
|
|
||||||
name: 'homePage',
|
|
||||||
redirect: '/home/:id',
|
|
||||||
meta: {title: '个人主页', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
children: [{
|
|
||||||
path: ':id',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/homepage/page'], resolve),
|
|
||||||
name: 'page',
|
|
||||||
meta: {title: '个人主页', icon: 'dashboard', noCache: true, affix: true}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: ':id/leaving',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/homepage/leavingMessage'], resolve),
|
|
||||||
name: 'leavingMessage',
|
|
||||||
meta: {title: '留言', icon: 'dashboard', noCache: true, affix: true}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/comments',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/Comments'], resolve),
|
|
||||||
name: 'commentReply',
|
|
||||||
meta: {title: '评论回复', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/qa/answer',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/qa/Answer'], resolve),
|
|
||||||
name: 'qaAnswer',
|
|
||||||
meta: {title: '写回答', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/follow',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/follow'], resolve),
|
|
||||||
name: 'follow',
|
|
||||||
meta: {title: '我的关注', icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/study',
|
|
||||||
component: Layout,
|
|
||||||
redirect: '/study/index',
|
|
||||||
children: [{
|
|
||||||
path: 'index',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/StudyIndex'], resolve),
|
|
||||||
name: 'studyIndex',
|
|
||||||
meta: {title: '首页', icon: 'dashboard', noCache: true, affix: true}
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/teacher',
|
|
||||||
component: Layout,
|
|
||||||
children: [{
|
|
||||||
path: 'index',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/TeacherIndex'], resolve),
|
|
||||||
name: 'teacherIndex',
|
|
||||||
meta: {title: '教师个人中心', icon: 'dashboard', noCache: true, affix: true}
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/manager',
|
|
||||||
component: Layout,
|
|
||||||
children: [{
|
|
||||||
path: 'index',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/ManageIndex'], resolve),
|
|
||||||
name: 'managerIndex',
|
|
||||||
meta: {title: '管理员个人中心', icon: 'dashboard', noCache: true, affix: true}
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/exam/test',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/exam/Test'], resolve),
|
|
||||||
name: 'test',
|
|
||||||
meta: {title: '京东方大学堂考试', icon: 'dashboard', noCache: true, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/video/test',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/course/video'], resolve),
|
|
||||||
name: 'videotest',
|
|
||||||
meta: {title: '课程视频测试', icon: 'dashboard', noCache: true, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/hotforum',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/hotforum/Index'], resolve),
|
|
||||||
name: 'hotforum',
|
|
||||||
meta: {title: '热点论坛', icon: 'dashboard', noCache: true, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/lexiang',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/sso/lexiang'], resolve),
|
|
||||||
name: 'lexiang',
|
|
||||||
meta: {title: '单点登录', icon: 'dashboard', noCache: true, affix: true},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/404',
|
|
||||||
component: (resolve) => require(['@/views/error/404'], resolve),
|
|
||||||
hidden: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/401',
|
|
||||||
component: (resolve) => require(['@/views/error/401'], resolve),
|
|
||||||
hidden: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/500',
|
|
||||||
component: (resolve) => require(['@/views/error/500'], resolve),
|
|
||||||
hidden: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/qualityCourse',
|
|
||||||
hidden: true,
|
|
||||||
component: (resolve) => require(['@/views/portal/course/qualityCourse'], resolve),
|
|
||||||
name: 'qualityCourse',
|
|
||||||
meta: {title: '精品课课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false},
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/comments',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/Comments'], resolve),
|
||||||
|
name: 'commentReply',
|
||||||
|
meta: { title: '评论回复', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/qa/answer',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/qa/Answer'], resolve),
|
||||||
|
name: 'qaAnswer',
|
||||||
|
meta: { title: '写回答', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/follow',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/follow'], resolve),
|
||||||
|
name: 'follow',
|
||||||
|
meta: { title: '我的关注', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/study',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/study/index',
|
||||||
|
children: [{
|
||||||
|
path: 'index',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/StudyIndex'], resolve),
|
||||||
|
name: 'studyIndex',
|
||||||
|
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/teacher',
|
||||||
|
component: Layout,
|
||||||
|
children: [{
|
||||||
|
path: 'index',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/TeacherIndex'], resolve),
|
||||||
|
name: 'teacherIndex',
|
||||||
|
meta: { title: '教师个人中心', icon: 'dashboard', noCache: true, affix: true }
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/manager',
|
||||||
|
component: Layout,
|
||||||
|
children: [{
|
||||||
|
path: 'index',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/ManageIndex'], resolve),
|
||||||
|
name: 'managerIndex',
|
||||||
|
meta: { title: '管理员个人中心', icon: 'dashboard', noCache: true, affix: true }
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/exam/test',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/exam/Test'], resolve),
|
||||||
|
name: 'test',
|
||||||
|
meta: { title: '京东方大学堂考试', icon: 'dashboard', noCache: true, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/video/test',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/course/video'], resolve),
|
||||||
|
name: 'videotest',
|
||||||
|
meta: { title: '课程视频测试', icon: 'dashboard', noCache: true, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/hotforum',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/hotforum/Index'], resolve),
|
||||||
|
name: 'hotforum',
|
||||||
|
meta: { title: '热点论坛', icon: 'dashboard', noCache: true, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/lexiang',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/sso/lexiang'], resolve),
|
||||||
|
name: 'lexiang',
|
||||||
|
meta: { title: '单点登录', icon: 'dashboard', noCache: true, affix: true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/404',
|
||||||
|
component: (resolve) => require(['@/views/error/404'], resolve),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/401',
|
||||||
|
component: (resolve) => require(['@/views/error/401'], resolve),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/500',
|
||||||
|
component: (resolve) => require(['@/views/error/500'], resolve),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/qualityCourse',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/portal/course/qualityCourse'], resolve),
|
||||||
|
name: 'qualityCourse',
|
||||||
|
meta: { title: '精品课课程', keepAlive: true, icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/new-employee/welcome',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/new-employee/WelcomePage'], resolve),
|
||||||
|
name: 'NewEmployeeWelcome',
|
||||||
|
meta: { title: '社招新员工欢迎页', icon: 'dashboard', noCache: true, affix: false },
|
||||||
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -380,7 +387,7 @@ const router = new VueRouter({
|
|||||||
if (saveTop) {
|
if (saveTop) {
|
||||||
return saveTop;
|
return saveTop;
|
||||||
} else {
|
} else {
|
||||||
return {x: 0, y: 0}
|
return { x: 0, y: 0 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
411
src/views/new-employee/WelcomePage.vue
Normal file
411
src/views/new-employee/WelcomePage.vue
Normal file
@@ -0,0 +1,411 @@
|
|||||||
|
<template>
|
||||||
|
<div class="welcome">
|
||||||
|
<p class="top-title">欢迎来到京东方大学</p>
|
||||||
|
<!-- 内容卡片 -->
|
||||||
|
<div class="main">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<img
|
||||||
|
class="img-responsive wel_img"
|
||||||
|
src="@/assets/images/new-employee/wel.png"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<!-- 桌面端显示 -->
|
||||||
|
<div class="right-font visible-lg-block visible-md-block">
|
||||||
|
<p class="greeting">{{ userName }},您好!</p>
|
||||||
|
<p>欢迎加入京东方科技集团股份有限公司</p>
|
||||||
|
<p>从这一刻起,你就是这个大家庭里的一份子。</p>
|
||||||
|
<p>在这里,我们干事业、交朋友、长本领、练胸怀!</p>
|
||||||
|
<p>为了帮你快速融入BOE,我们为你准备了丰富的入职培训课程!</p>
|
||||||
|
<p>快开始学习吧!</p>
|
||||||
|
</div>
|
||||||
|
<!-- 移动端显示 -->
|
||||||
|
<div class="right-font-sm visible-xs-block">
|
||||||
|
<p>{{ userName }},您好!</p>
|
||||||
|
<p>欢迎加入京东方</p>
|
||||||
|
<p>为了帮你快速融入BOE</p>
|
||||||
|
<P>我们为你准备了丰富的入职培训课程</P>
|
||||||
|
<p>快开始学习吧!</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 send_btn">
|
||||||
|
<button
|
||||||
|
v-if="enrollBtn === 'enroll' || enrollBtn === 'end'"
|
||||||
|
class="btn btn-default btn-lg send center-block start-btn"
|
||||||
|
@click="handleEnrollClick"
|
||||||
|
>
|
||||||
|
报名社招新员工项目
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-else
|
||||||
|
class="btn btn-default btn-lg send center-block start-btn"
|
||||||
|
@click="handleStartLearning"
|
||||||
|
>
|
||||||
|
开启学习之旅
|
||||||
|
</button>
|
||||||
|
<p style="color: #ffe551; font-size: 14px; font-family: '黑体'">
|
||||||
|
温馨提示:仅社招新员工可以报名,校招新员工和其他员工请不要点击
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 模态框(Modal)--信息确认 -->
|
||||||
|
<el-dialog
|
||||||
|
title="信息确认"
|
||||||
|
:visible.sync="infoConfirmDialogVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
width="700px"
|
||||||
|
@close="handleDialogClose"
|
||||||
|
>
|
||||||
|
<div v-html="modalContent"></div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="infoConfirmDialogVisible = false">取 消</el-button>
|
||||||
|
<el-button type="primary" :loading="processing" @click="handleConfirm">
|
||||||
|
{{ confirmBtnText }}
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
<!-- 模态框(Modal)--数据提交成功 -->
|
||||||
|
<el-dialog
|
||||||
|
:title="modalTitle"
|
||||||
|
:visible.sync="successDialogVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
width="500px"
|
||||||
|
>
|
||||||
|
<div style="text-align: center; padding: 20px 0">
|
||||||
|
{{ successMessage }}
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="successDialogVisible = false">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
import {
|
||||||
|
enrollWork,
|
||||||
|
enrollRegSure,
|
||||||
|
getWelcomeData,
|
||||||
|
} from "@/api/new-employee/newEmployee";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "WelcomePage",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
userName: "",
|
||||||
|
enrollBtn: "",
|
||||||
|
enrollCode: "",
|
||||||
|
projectId: "",
|
||||||
|
modalContent: "",
|
||||||
|
modalTitle: "",
|
||||||
|
processing: false,
|
||||||
|
confirmBtnText: "确认",
|
||||||
|
infoConfirmDialogVisible: false,
|
||||||
|
successDialogVisible: false,
|
||||||
|
successMessage: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
// 如果需要使用Vuex中的用户信息
|
||||||
|
...mapGetters(["userInfo"]),
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.initPageData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 初始化页面数据
|
||||||
|
async initPageData() {
|
||||||
|
try {
|
||||||
|
// 从后端获取用户信息和报名状态
|
||||||
|
const response = await getWelcomeData();
|
||||||
|
if (response.status === 200) {
|
||||||
|
this.userName = response.result.user_name || this.userInfo.name;
|
||||||
|
this.enrollBtn = response.result.enroll.btn;
|
||||||
|
this.enrollCode = response.result.enroll.code;
|
||||||
|
this.projectId = response.result.project_id;
|
||||||
|
this.modalTitle = response.result.enroll.title;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("初始化数据失败:", error);
|
||||||
|
// 临时测试数据,实际使用时从后端获取
|
||||||
|
this.userName = this.userInfo.name || "新员工";
|
||||||
|
this.enrollBtn = "enroll";
|
||||||
|
this.enrollCode = "10";
|
||||||
|
this.projectId = "123";
|
||||||
|
this.modalTitle = "报名成功";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 开启学习之旅按钮点击
|
||||||
|
handleStartLearning() {
|
||||||
|
this.$router.push("/study/index");
|
||||||
|
},
|
||||||
|
|
||||||
|
// 报名按钮点击
|
||||||
|
async handleEnrollClick() {
|
||||||
|
if (this.enrollBtn === "enroll" || this.enrollBtn === "sureBtn") {
|
||||||
|
await this.embedCourse();
|
||||||
|
} else if (this.enrollBtn === "end") {
|
||||||
|
this.showEndModal();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 嵌入课程信息
|
||||||
|
async embedCourse() {
|
||||||
|
try {
|
||||||
|
const response = await enrollWork({ course_id: this.projectId });
|
||||||
|
|
||||||
|
if (this.enrollCode === "10" || this.enrollCode === "") {
|
||||||
|
this.modalContent = response.result;
|
||||||
|
this.infoConfirmDialogVisible = true;
|
||||||
|
} else {
|
||||||
|
this.$message.warning("报名信息异常");
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("获取嵌入信息失败:", error);
|
||||||
|
this.$message.error("获取报名信息失败");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 确认按钮
|
||||||
|
async handleConfirm() {
|
||||||
|
this.processing = true;
|
||||||
|
this.confirmBtnText = "正在确认,请稍后......";
|
||||||
|
|
||||||
|
// 获取费用计算地选择
|
||||||
|
const jsdVal = document.querySelector(
|
||||||
|
"#childselect > option:selected"
|
||||||
|
)?.value;
|
||||||
|
if (!jsdVal) {
|
||||||
|
this.processing = false;
|
||||||
|
this.confirmBtnText = "确认";
|
||||||
|
this.$message.error("费用计算地不可为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// 构建表单数据
|
||||||
|
const formData = {
|
||||||
|
id: this.projectId,
|
||||||
|
method: "self",
|
||||||
|
userId: this.userInfo.aid,
|
||||||
|
objectType: "project",
|
||||||
|
};
|
||||||
|
|
||||||
|
const response = await enrollRegSure(formData);
|
||||||
|
|
||||||
|
if (response.status === 200) {
|
||||||
|
this.infoConfirmDialogVisible = false;
|
||||||
|
this.$message.success("报名成功!");
|
||||||
|
// 跳转到学习页面
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$router.push("/study/index");
|
||||||
|
}, 1500);
|
||||||
|
} else {
|
||||||
|
this.processing = false;
|
||||||
|
this.confirmBtnText = "确认";
|
||||||
|
this.$message.error(response.message || "报名失败");
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("提交失败:", error);
|
||||||
|
this.processing = false;
|
||||||
|
this.confirmBtnText = "确认";
|
||||||
|
this.$message.error("提交失败,请重试");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 显示结束模态框
|
||||||
|
showEndModal() {
|
||||||
|
this.successMessage = "报名已结束";
|
||||||
|
this.successDialogVisible = true;
|
||||||
|
},
|
||||||
|
|
||||||
|
// 关闭对话框
|
||||||
|
handleDialogClose() {
|
||||||
|
this.processing = false;
|
||||||
|
this.confirmBtnText = "确认";
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/* 欢迎页面样式 */
|
||||||
|
.welcome {
|
||||||
|
min-height: 100vh;
|
||||||
|
background: #2e5aa6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 顶部标题 */
|
||||||
|
.top-title {
|
||||||
|
font-size: 48px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
margin: 40px 20px 60px;
|
||||||
|
font-family: "Microsoft YaHei", sans-serif;
|
||||||
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 主内容卡片 */
|
||||||
|
.welcome .main {
|
||||||
|
background: #2e5aa6;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 50px 40px;
|
||||||
|
max-width: 1200px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 自定义栅格系统 */
|
||||||
|
.welcome .main .row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin: 0 -15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome .main .col-md-6 {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 15px;
|
||||||
|
flex: 0 0 50%;
|
||||||
|
max-width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome .main .col-md-12 {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 15px;
|
||||||
|
flex: 0 0 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wel_img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 右侧文字区域 */
|
||||||
|
.right-font {
|
||||||
|
padding: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-font .greeting {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
font-family: "Microsoft YaHei", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-font p {
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: 2;
|
||||||
|
color: white;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-family: "Microsoft YaHei", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-font-sm p {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.8;
|
||||||
|
color: white;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
font-family: "Microsoft YaHei", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.send_btn {
|
||||||
|
margin-top: 30px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.start-btn {
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 15px 50px;
|
||||||
|
font-size: 20px;
|
||||||
|
border-radius: 50px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.start-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
|
||||||
|
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.start-btn:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 响应式样式 */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.top-title {
|
||||||
|
font-size: 32px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome {
|
||||||
|
padding: 40px 15px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome .main {
|
||||||
|
padding: 30px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome .main .col-md-6 {
|
||||||
|
flex: 0 0 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-font p {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.start-btn {
|
||||||
|
padding: 12px 30px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 显示/隐藏控制 */
|
||||||
|
.visible-lg-block,
|
||||||
|
.visible-md-block,
|
||||||
|
.visible-xs-block {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.visible-lg-block,
|
||||||
|
.visible-md-block {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) and (max-width: 991px) {
|
||||||
|
.visible-xs-block {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
.visible-xs-block {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
Reference in New Issue
Block a user