查看成绩
This commit is contained in:
parent
e2f172f60e
commit
8a28894dc9
@ -3,14 +3,9 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>包头市安全生产考试服务平台</title>
|
||||
<title>安全生产三项岗位人员考试服务平台</title>
|
||||
<script src="./static/jquery-2.1.4.min.js"></script>
|
||||
<script src="./static/laydate/laydate.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script>
|
||||
$("body").css("width", $(window).width());
|
||||
</script>
|
||||
<!-- <script src="./static/layui-v2.5.7/layui/layui.js"></script>-->
|
||||
<!-- <link rel="stylesheet" href="./static/layui-v2.5.7/layui/css/layui.css">-->
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="footer-top">
|
||||
<div class="footer-box footer-box1">
|
||||
<router-link to="/">网站首页</router-link>
|
||||
<a href="javascript: void(0);">0471-1234567</a>
|
||||
<!-- <a href="javascript: void(0);">0471-1234567</a>-->
|
||||
</div>
|
||||
<div class="footer-box footer-box2">
|
||||
<a href="javascript: void(0);">网站主办单位:包头市应急管理局</a>
|
||||
@ -42,7 +42,7 @@ export default {
|
||||
|
||||
<style lang="stylus" rel="stylesheet/stylus" scoped>
|
||||
.footer
|
||||
background #045BA4
|
||||
background #e5e5e5
|
||||
.footer-top
|
||||
width 1200px
|
||||
margin 0 auto
|
||||
@ -51,14 +51,14 @@ export default {
|
||||
.footer-box
|
||||
float left
|
||||
text-align center
|
||||
border-right 1px dashed #339df6
|
||||
border-right 1px dashed #aaa
|
||||
line-height 30px
|
||||
height 95px
|
||||
a
|
||||
display block
|
||||
text-align center
|
||||
font-size 14px
|
||||
color #fff
|
||||
color #666
|
||||
.footer-box1
|
||||
width 160px
|
||||
height 95px
|
||||
@ -77,8 +77,8 @@ export default {
|
||||
background url("~@/assets/images/depar.png") no-repeat right center
|
||||
.footer-bottom
|
||||
text-align center
|
||||
background #044780
|
||||
background #aaa
|
||||
line-height 50px
|
||||
font-size 14px
|
||||
color #fff
|
||||
color #666
|
||||
</style>
|
||||
|
@ -1,9 +1,10 @@
|
||||
<template>
|
||||
<div class="header">
|
||||
<div class="header-box">
|
||||
<div class="head-container">
|
||||
<router-link to="/" tag="div" class="title">
|
||||
<h1>包头市安全生产考试服务平台</h1>
|
||||
<p>Baotou Workplace Safety Examination Service Platform</p>
|
||||
<h1>安全生产三项岗位人员考试服务平台</h1>
|
||||
<p>The Examination Service Platform For The Three Posts Of Safety Production</p>
|
||||
</router-link>
|
||||
<div class="nav">
|
||||
<ul>
|
||||
@ -18,11 +19,12 @@
|
||||
<router-link to="/register" class="register-btn">注册</router-link>
|
||||
</div>
|
||||
<div class="login" v-else>
|
||||
<router-link to="/center" class="login-btn">{{ userInfo.name }}</router-link>
|
||||
<router-link to="/center" class="login-btn" :title="userInfo.name">{{ userInfo.name }}</router-link>
|
||||
<a href="javascript: void(0);" class="logout-btn" @click="doLogout">退出登录</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -89,14 +91,20 @@ export default {
|
||||
min-width 1200px
|
||||
background url("~@/assets/images/head-bg.jpg") no-repeat center
|
||||
background-size: auto 100%
|
||||
.header-box
|
||||
height 110px
|
||||
box-sizing border-box
|
||||
background url("~@/assets/images/login-head-bg.png") no-repeat
|
||||
background-size: 100% 100%
|
||||
.head-container
|
||||
width 1200px
|
||||
|
||||
margin 0 auto
|
||||
padding-top 20px
|
||||
overflow hidden
|
||||
.title
|
||||
float left
|
||||
margin-right 50px
|
||||
margin-right 30px
|
||||
cursor pointer
|
||||
h1
|
||||
font-size 22px
|
||||
@ -116,7 +124,7 @@ export default {
|
||||
clear both
|
||||
li
|
||||
float left
|
||||
padding 0 40px
|
||||
padding 0 34px
|
||||
font-size 18px
|
||||
color #fff
|
||||
border-right 2px solid #fff
|
||||
@ -144,7 +152,13 @@ export default {
|
||||
padding-left 25px
|
||||
font-size 16px
|
||||
color #fff
|
||||
vertical-align top
|
||||
&.login-btn
|
||||
width 100px
|
||||
white-space nowrap
|
||||
overflow hidden
|
||||
text-overflow ellipsis
|
||||
box-sizing border-box
|
||||
background url("~@/assets/images/login-icon.png") no-repeat left center
|
||||
background-size 18px 18px
|
||||
padding-right 10px
|
||||
|
BIN
src/assets/images/center-tab1.png
Normal file
BIN
src/assets/images/center-tab1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 416 KiB |
@ -1,7 +1,11 @@
|
||||
const registerUrl = 'http://124.67.110.246:8081/signup/'
|
||||
const loginUrl = 'http://124.67.110.246:8081/signup/'
|
||||
const signUrl = 'http://124.67.110.246:8081/signup/'
|
||||
const personInfoUrl = 'http://124.67.110.246:8081/signup/'
|
||||
const registerUrl = 'http://124.67.110.246:9999/signup/'
|
||||
const loginUrl = 'http://124.67.110.246:9999/signup/'
|
||||
const signUrl = 'http://124.67.110.246:9999/signup/'
|
||||
const personInfoUrl = 'http://124.67.110.246:9999/signup/'
|
||||
// const registerUrl = 'http://192.168.0.109:8070/signup/'
|
||||
// const loginUrl = 'http://192.168.0.109:8070/signup/'
|
||||
// const signUrl = 'http://192.168.0.109:8070/signup/'
|
||||
// const personInfoUrl = 'http://192.168.0.109:8070/signup/'
|
||||
export default {
|
||||
registerUrl,
|
||||
loginUrl,
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<div class="login">
|
||||
<div class="login-box">
|
||||
<h3>正在登陆到包头市安全生产考试服务平台</h3>
|
||||
<h3>安全生产三项岗位人员考试服务平台</h3>
|
||||
<!-- <p>Baotou Unified Identity Verification Platform</p>-->
|
||||
<input type="text" v-model="loginInfo.username" placeholder="请输入账号">
|
||||
<input type="password" v-model="loginInfo.password" placeholder="请输入密码" @keyup.enter="submitLogin">
|
||||
@ -81,24 +81,28 @@ export default {
|
||||
border-radius 10px
|
||||
box-shadow 0 0 17px #DEDEDE
|
||||
.login
|
||||
position fixed
|
||||
top 0
|
||||
right 0
|
||||
left 0
|
||||
bottom 0
|
||||
//position fixed
|
||||
//top 0
|
||||
//right 0
|
||||
//left 0
|
||||
//bottom 0
|
||||
background url("~@/assets/images/login-bg.jpg") no-repeat center
|
||||
background-size 100% 100%
|
||||
overflow hidden
|
||||
.login-box
|
||||
width 460px
|
||||
height 720px
|
||||
padding 80px 55px 180px 45px
|
||||
padding 80px 40px 180px
|
||||
box-sizing border-box
|
||||
position absolute
|
||||
top 50%
|
||||
left 54%
|
||||
margin-top -360px
|
||||
//position absolute
|
||||
//top 50%
|
||||
//left 54%
|
||||
//margin-top -360px
|
||||
background #fff url("~@/assets/images/login-box-bg1.png") no-repeat left bottom
|
||||
background-size 100% auto
|
||||
margin-top 100px
|
||||
margin-bottom 70px
|
||||
margin-left 54%
|
||||
h3
|
||||
font-size 20px
|
||||
text-align center
|
||||
@ -147,11 +151,8 @@ export default {
|
||||
margin-bottom 0
|
||||
color #999
|
||||
.bottom-text
|
||||
position absolute
|
||||
left 0
|
||||
right 0
|
||||
bottom 30px
|
||||
text-align center
|
||||
color #fff
|
||||
font-size 14px
|
||||
margin-bottom 30px
|
||||
</style>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="container">
|
||||
<div class="center-header">
|
||||
<div class="header-container">
|
||||
<router-link to="/" tag="div" class="title">包头市安全生产考试服务平台</router-link>
|
||||
<router-link to="/" tag="div" class="title">安全生产三项岗位人员考试服务平台</router-link>
|
||||
<div class="person-info">
|
||||
<a href="javascript: void(0);" class="user-name">
|
||||
<i class="icon"></i>
|
||||
@ -117,13 +117,6 @@
|
||||
<option :value="item.workTypeId" v-for="item in workTypeLv2">{{ item.workTypeName }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
培训类型
|
||||
<input type="radio" id="radio1" value="1" name="type" v-model="planType">
|
||||
<label for="radio1">初训</label>
|
||||
<input type="radio" id="radio2" value="2" name="type" v-model="planType">
|
||||
<label for="radio2">复训</label>
|
||||
</div>
|
||||
</div>
|
||||
<!--按钮-->
|
||||
<div class="btn-box">
|
||||
@ -268,32 +261,33 @@
|
||||
<div class="org-box" v-for="item in orgList">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="10%">机构名称:</td>
|
||||
<td width="30%"><span>{{item.planName}}</span></td>
|
||||
<td width="10%">培训地点:</td>
|
||||
<td width="30%"><span>{{item.planAddress}}</span></td>
|
||||
<td width="20%" rowspan="4">
|
||||
<button @click="signOrg(item.classPlanId, item.orgId, item.planName)" v-if="item.applyClassPlanState == 0">报考</button>
|
||||
<button v-else-if="item.applyClassPlanState == 1" style="background: #eee">已报考</button>
|
||||
<td width="14%">机构名称:</td>
|
||||
<td width="26%"><span>{{item.institutionName}}</span></td>
|
||||
<td width="14%">机构地址:</td>
|
||||
<td width="26%"><span>{{item.institutionAddress}}</span></td>
|
||||
<td width="20%" rowspan="6">
|
||||
<button @click="signOrg('', item.institutionId, '')" v-if="item.applyStatus">报考</button>
|
||||
<button v-else style="background: #eee">已报考</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">报名时间:</td>
|
||||
<td width="30%">{{ item.signUpStartTime }} <br>至<br> {{ item.signUpEndTime }}</td>
|
||||
<td width="10%">开班人数:</td>
|
||||
<td width="30%">{{ item.planPersonNum }}人</td>
|
||||
<td>机构简介:</td>
|
||||
<td colspan="3">{{ item.institutionDesc }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">开班时间:</td>
|
||||
<td width="30%">{{ item.planStartTime }} <br>至<br> {{ item.planEndTime }}</td>
|
||||
<td width="10%">已报名数:</td>
|
||||
<td width="30%">{{ item.applyClassPlanUserNumber }}人</td>
|
||||
<td colspan="4">符合开班人数 - <span class="count type1">{{ item.applyUserNum1 }}人</span>| 已报名人数 - <span class="count type2">{{ item.applyUserNum2 }}人</span>| 已通过审核人数 - <span class="count type3">{{ item.applyUserNum3 }}人</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">联系人</td>
|
||||
<td width="30%">{{ item.chargePerson }}</td>
|
||||
<td width="10%">联系电话:</td>
|
||||
<td width="30%">{{ item.chargePersonTel }}</td>
|
||||
<td>负责人:</td>
|
||||
<td>{{ item.institutionPrincipal }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系方式:</td>
|
||||
<td>{{ item.institutionContact }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top;line-height: 40px">二维码:</td>
|
||||
<td><img :src="item.qrCode" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@ -332,38 +326,34 @@
|
||||
</div>
|
||||
<div v-if="tab == 1">
|
||||
<h3 class="right-title">报考情况</h3>
|
||||
<!--报名列表-->
|
||||
<div class="sign-list" v-if="!checkingSigned">
|
||||
<div class="signed-box" v-for="item in myApplyList">
|
||||
<div class="signed-left">
|
||||
<div class="status wait" v-if="item.applyAuditState == 0">待审核</div>
|
||||
<div class="status error" v-if="item.applyAuditState == 1">用户撤回</div>
|
||||
<div class="status complete" v-if="item.applyAuditState == 2">审核通过</div>
|
||||
<div class="status complete" v-if="item.applyAuditState == 3">报名完成</div>
|
||||
<div class="status error" v-if="item.applyAuditState == -1">审核不通过</div>
|
||||
<h3>{{ item.applyName }} | 报名时间:{{ item.gmtCreate }}</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="10%">姓 名:</td>
|
||||
<td width="40%">{{ item.applyName }}</td>
|
||||
<td width="10%">培训计划:</td>
|
||||
<td width="40%">{{ item.applyClassName }}</td>
|
||||
<td width="10%">证件类型:</td>
|
||||
<td width="40%">{{ item.applyCardTypeName }}</td>
|
||||
<td width="10%">证件号码:</td>
|
||||
<td width="40%">{{ item.applyCardNumber }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>证件类型:</td>
|
||||
<td>{{ item.applyCardTypeName }}</td>
|
||||
<td>证件号码:</td>
|
||||
<td>{{ item.applyCardNumber }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>报名时间:</td>
|
||||
<td>2021-04-27 09:38:08</td>
|
||||
<td width="10%">培训机构:</td>
|
||||
<td width="40%">{{ item.applyInstitutionName }}</td>
|
||||
<td>手 机:</td>
|
||||
<td>{{ item.applyPhone }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>报名情况:</td>
|
||||
<td>
|
||||
<p v-if="item.applyAuditState == 0">待审核</p>
|
||||
<p v-if="item.applyAuditState == 1" style="color: red">用户撤回</p>
|
||||
<p v-if="item.applyAuditState == 2" style="color: #00FF00">审核通过</p>
|
||||
<p v-if="item.applyAuditState == 3" style="color: #00FF00">报名完成</p>
|
||||
<p v-if="item.applyAuditState == -1" style="color: red">审核不通过</p>
|
||||
</td>
|
||||
<td width="10%">报名工种:</td>
|
||||
<td width="40%">{{ item.applyWorkTypeName }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">符合开班人数 - <span class="count type1">{{ item.applyUserNum1 }}人</span>| 已报名人数 - <span class="count type2">{{ item.applyUserNum2 }}人</span>| 已通过审核人数 - <span class="count type3">{{ item.applyUserNum3 }}人</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>操 作:</td>
|
||||
@ -410,34 +400,34 @@
|
||||
<tr>
|
||||
<td width="10%">姓名</td>
|
||||
<td width="40%">
|
||||
<input type="text" v-model="signedInfo.applyName" :disabled="signedInfo.isDisabled">
|
||||
<input type="text" v-model="signedInfo.applyName" disabled>
|
||||
</td>
|
||||
<td width="10%">出生日期</td>
|
||||
<td width="40%">
|
||||
<input type="text" v-model="signedInfo.applyDataBirth" :disabled="signedInfo.isDisabled">
|
||||
<input type="text" v-model="signedInfo.applyDataBirth" disabled>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">证件类型</td>
|
||||
<td width="40%">
|
||||
<select v-model="signedInfo.applyCardType" :disabled="signedInfo.isDisabled">
|
||||
<select v-model="signedInfo.applyCardType" :disabled="signedInfo.isDisabled" @change="reselectCardType">
|
||||
<option value="0">请选择证件类型</option>
|
||||
<option :value="item.dataId" v-for="item in paperTypeList">{{item.dataName}}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="10%">证件号码</td>
|
||||
<td width="40%">
|
||||
<input type="text" v-model="signedInfo.applyCardNumber" :disabled="signedInfo.isDisabled">
|
||||
<input type="text" v-model="signedInfo.applyCardNumber" :disabled="hasreCardNum">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">手机号码</td>
|
||||
<td width="40%">
|
||||
<input type="text" v-model="signedInfo.applyPhone" :disabled="signedInfo.isDisabled">
|
||||
<input type="text" v-model="signedInfo.applyPhone" disabled>
|
||||
</td>
|
||||
<td width="10%">性别</td>
|
||||
<td width="40%">
|
||||
<select v-model="signedInfo.applySex" :disabled="signedInfo.isDisabled">
|
||||
<select v-model="signedInfo.applySex" disabled>
|
||||
<option value="0">请选择性别</option>
|
||||
<option :value="item.dataId" v-for="item in sexList">{{item.dataName}}</option>
|
||||
</select>
|
||||
@ -543,11 +533,11 @@
|
||||
<tr>
|
||||
<th width="5%">序号</th>
|
||||
<th width="15%">培训机构</th>
|
||||
<th width="19%">培训计划</th>
|
||||
<th width="13%">考试开始时间</th>
|
||||
<th width="13%">考试结束时间</th>
|
||||
<th width="20%">考试地点</th>
|
||||
<th width="10%">操作</th>
|
||||
<th width="19%">班号</th>
|
||||
<th width="28%">考试开始时间</th>
|
||||
<th width="28%">考试结束时间</th>
|
||||
<!-- <th width="20%">考试地点</th>-->
|
||||
<!-- <th width="10%">操作</th>-->
|
||||
</tr>
|
||||
<tr v-for="(item,idx) in examList">
|
||||
<td>{{ idx+1 }}</td>
|
||||
@ -555,11 +545,11 @@
|
||||
<td>{{ item.planName }}</td>
|
||||
<td>{{ item.examTimeStart }}</td>
|
||||
<td>{{ item.examTimeEnd }}</td>
|
||||
<td>{{ item.examAddress }}</td>
|
||||
<td>
|
||||
<!-- <router-link :to="{path: '/print', query: {distributionCardCode : item.distributionCardCode}}" target="_blank">打印准考证</router-link>-->
|
||||
<a href="javascript: void(0);" @click="print(item.distributionCardCode)">打印准考证</a>
|
||||
</td>
|
||||
<!-- <td>{{ item.examAddress }}</td>-->
|
||||
<!-- <td>-->
|
||||
<!-- <router-link :to="{path: '/print', query: {distributionCardCode : item.distributionCardCode}}" target="_blank">打印准考证</router-link>–>-->
|
||||
<!-- <a href="javascript: void(0);" @click="print(item.distributionCardCode)">打印准考证</a>-->
|
||||
<!-- </td>-->
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@ -587,8 +577,50 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="tab == 3">
|
||||
<div class="no-data">
|
||||
暂无记录
|
||||
<h3 class="right-title">我的成绩</h3>
|
||||
<div class="ticket-container">
|
||||
<table class="ticket-table">
|
||||
<tr>
|
||||
<th width="5%">序号</th>
|
||||
<th width="15%">姓名</th>
|
||||
<th width="15%">培训机构</th>
|
||||
<th width="15%">工种名称</th>
|
||||
<th width="18%">开始时间</th>
|
||||
<th width="18%">结束时间</th>
|
||||
<th width="14%">成绩</th>
|
||||
</tr>
|
||||
<tr v-for="(item,idx) in achievementList">
|
||||
<td>{{ (page.page - 1) * page.rows + idx + 1 }}</td>
|
||||
<td>{{ item.applyName }}</td>
|
||||
<td>{{ item.applyUnitName }}</td>
|
||||
<td>{{ item.applyWorkTypeName }}</td>
|
||||
<td>{{ item.examStartTime }}</td>
|
||||
<td>{{ item.examEndTime }}</td>
|
||||
<td>{{ item.applyTestScores }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="pager" v-if="page.totalPage > 1">
|
||||
<span @click="paging(1)">首页</span>
|
||||
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
||||
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
||||
<li v-for="cpage in page.totalPage" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
||||
{{cpage}}
|
||||
</li>
|
||||
</ul>
|
||||
<ul v-if="page.totalPage > 5">
|
||||
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
||||
{{cpage}}
|
||||
</li>
|
||||
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(page.totalPage - 5 + cpage)">
|
||||
{{page.totalPage - 5 + cpage}}
|
||||
</li>
|
||||
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.page - (3 - cpage))}" :key="cpage" @click="paging(page.page - (3 - cpage))">
|
||||
{{page.page - (3 - cpage)}}
|
||||
</li>
|
||||
</ul>
|
||||
<span @click="paging(page.page + 1)" v-if="page.page < page.totalPage">下一页</span>
|
||||
<span @click="paging(page.totalPage)">尾页</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="tab == 4">
|
||||
@ -597,15 +629,21 @@
|
||||
<img src="@/assets/images/btn_hr1.png" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<router-link to="/" tag="div" class="my-certificate">
|
||||
<div class="my-certificate">
|
||||
<a href="http://cx.mem.gov.cn/" target="_blank">
|
||||
<img src="@/assets/images/btn_hr2.png" alt="">
|
||||
</router-link>
|
||||
<router-link to="/" tag="div" class="my-certificate">
|
||||
</a>
|
||||
</div>
|
||||
<div class="my-certificate">
|
||||
<a href="http://cx.mem.gov.cn/" target="_blank">
|
||||
<img src="@/assets/images/btn_general.png" alt="">
|
||||
</router-link>
|
||||
<router-link to="/" tag="div" class="my-certificate">
|
||||
</a>
|
||||
</div>
|
||||
<div class="my-certificate">
|
||||
<a href="http://cx.mem.gov.cn/" target="_blank">
|
||||
<img src="@/assets/images/btn_safe.png" alt="">
|
||||
</router-link>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="tab == 5">
|
||||
<h3 class="right-title">关于包头市领取安全生产考试资格证书有关事项的通告</h3>
|
||||
@ -957,7 +995,7 @@
|
||||
<input type="file" id="upload-avatar" @change="uploadAvatar($event)">
|
||||
<label for="upload-avatar" v-if="!personInfo.userPhotoId">点击上传</label>
|
||||
<label for="upload-avatar" v-else>
|
||||
<img :src="personUrl + 'route/file/download/true/' + personInfo.userPhotoId" alt="">
|
||||
<img :src="personUrl + 'route/file/download/true/' + personInfo.userPhotoId" alt="" style="max-width: 150px">
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
@ -1036,7 +1074,7 @@ export default {
|
||||
workSelectedTypeLv1: 0,
|
||||
workTypeLv2: [],
|
||||
workSelectedTypeLv2: 0,
|
||||
planType: '',
|
||||
// planType: '',
|
||||
promiseText: '',
|
||||
paperTypeList: [],
|
||||
sexList: [],
|
||||
@ -1083,7 +1121,9 @@ export default {
|
||||
orgKeywords: '',
|
||||
basicStaffInfoId: '',
|
||||
isSignSuccess: false,
|
||||
hasCardNum: false
|
||||
hasCardNum: false,
|
||||
hasreCardNum: true,
|
||||
achievementList: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -1099,10 +1139,8 @@ export default {
|
||||
this.checkingSigned = false
|
||||
} else if (tab == 2) {
|
||||
this.getExamList()
|
||||
}
|
||||
if (tab == 7) {
|
||||
} else if (tab == 7) {
|
||||
this.getPersonInfo()
|
||||
|
||||
this.$nextTick(function () {
|
||||
laydate.render({
|
||||
elem: "#birthday",
|
||||
@ -1112,16 +1150,29 @@ export default {
|
||||
}
|
||||
});
|
||||
})
|
||||
} else if (tab == 3) {
|
||||
this.getAchievement()
|
||||
}
|
||||
} else {
|
||||
this.$layer.msg('请先完善个人信息')
|
||||
}
|
||||
},
|
||||
// 重新报名选择证件类型
|
||||
reselectCardType: function () {
|
||||
if (this.signedInfo.applyCardType == this.personInfo.cardType) {
|
||||
this.signedInfo.applyCardNumber = this.personInfo.idCardNumber
|
||||
this.hasreCardNum = true
|
||||
} else {
|
||||
this.signedInfo.applyCardNumber = ''
|
||||
this.hasreCardNum = false
|
||||
}
|
||||
},
|
||||
// 报名成功返回
|
||||
successBack: function () {
|
||||
this.tab = 0
|
||||
this.signStep = 0
|
||||
this.isSignSuccess = false
|
||||
// this.tab = 0
|
||||
// this.signStep = 0
|
||||
// this.isSignSuccess = false
|
||||
this.$router.go(0)
|
||||
},
|
||||
// 下一步
|
||||
nextStep: function () {
|
||||
@ -1133,10 +1184,10 @@ export default {
|
||||
this.$layer.msg('请选择报考工种')
|
||||
return
|
||||
}
|
||||
if (this.planType == 0) {
|
||||
this.$layer.msg('请选择培训类型')
|
||||
return
|
||||
}
|
||||
// if (this.planType == 0) {
|
||||
// this.$layer.msg('请选择培训类型')
|
||||
// return
|
||||
// }
|
||||
this.signStep++
|
||||
this.getPersonInfo(true)
|
||||
if (this.signStep == 1) {
|
||||
@ -1168,12 +1219,21 @@ export default {
|
||||
content: '确定选择该培训机构吗?<br>一旦选择确定后无法修改',
|
||||
btn: ['确认', '取消'],
|
||||
yes: function () {
|
||||
var type
|
||||
if (self.workSelectedTypeLv2 != 0) {
|
||||
type = self.workSelectedTypeLv2
|
||||
} else if (self.workSelectedTypeLv1 != 0) {
|
||||
type = self.workSelectedTypeLv1
|
||||
} else {
|
||||
type = self.workSelectedType
|
||||
}
|
||||
var info = self.signInfo
|
||||
info['applyClassId'] = planId
|
||||
info['applyClassName'] = name
|
||||
info['applyInstitutionId'] = orgId
|
||||
info['applyWorkTypeId'] = type
|
||||
axios.post(self.signUrl + 'app/apply/save', info,{
|
||||
// axios.post('http://192.168.109:8070/signup/app/apply/save', info,{
|
||||
// axios.post('http://192.168.120:7009/signup/app/apply/save', info,{
|
||||
headers: {
|
||||
token: self.token
|
||||
}
|
||||
@ -1183,6 +1243,7 @@ export default {
|
||||
self.isSignSuccess = true
|
||||
// self.tab = 1
|
||||
}).catch(function (error) {
|
||||
self.$layer.closeAll()
|
||||
self.$layer.msg(error.response.data.msg)
|
||||
})
|
||||
},
|
||||
@ -1437,18 +1498,28 @@ export default {
|
||||
catalogId = self.workSelectedTypeLv1
|
||||
}
|
||||
var info = self.page
|
||||
info['workerCatalog'] = catalogId
|
||||
info['planType'] = self.planType
|
||||
info['applyCardNumber'] = self.signInfo.applyCardNumber
|
||||
var type
|
||||
if (self.workSelectedTypeLv2 != 0) {
|
||||
type = self.workSelectedTypeLv2
|
||||
} else if (self.workSelectedTypeLv1 != 0) {
|
||||
type = self.workSelectedTypeLv1
|
||||
} else {
|
||||
type = self.workSelectedType
|
||||
}
|
||||
info['workTypeId'] = type
|
||||
info['keywords'] = self.orgKeywords
|
||||
axios.get(self.signUrl + 'app/apply/listPageApplyClassPlan', {
|
||||
// axios.get('http://192.168.0.109:8070/signup/app/apply/listPageApplyClassPlan', {
|
||||
axios.get(self.signUrl + 'app/apply/list-page-apply-work-type', {
|
||||
// axios.get('http://192.168.0.120:7009/signup/app/apply/list-page-apply-work-type', {
|
||||
params: info,
|
||||
headers: {
|
||||
token: self.token
|
||||
}
|
||||
}).then(function (res) {
|
||||
console.log(res)
|
||||
self.isLoading = false
|
||||
for (let i = 0; i < res.data.rows.length; i++) {
|
||||
res.data.rows[i].qrCode = 'data:image/jpg;base64,' + res.data.rows[i].qrCode
|
||||
}
|
||||
self.orgList = res.data.rows
|
||||
self.page.page = res.data.page
|
||||
self.page.totalPage = Math.ceil(res.data.total / self.page.rows)
|
||||
@ -1507,6 +1578,8 @@ export default {
|
||||
this.getOrgList()
|
||||
} else if (this.tab == 2) {
|
||||
this.getExamList()
|
||||
} else if (this.tab == 3) {
|
||||
this.getAchievement()
|
||||
}
|
||||
},
|
||||
// 查看审核记录
|
||||
@ -1540,6 +1613,7 @@ export default {
|
||||
if (!isResign) {
|
||||
self.signedInfo['isDisabled'] = 1
|
||||
} else {
|
||||
// self.signedInfo['isDisabled'] = 0
|
||||
self.showResignBtn = true
|
||||
}
|
||||
self.checkingSigned = true
|
||||
@ -1559,6 +1633,9 @@ export default {
|
||||
self.showResignBtn = false
|
||||
self.getMyApply()
|
||||
}
|
||||
}).catch(function (error) {
|
||||
self.$layer.msg(error.response.data.msg)
|
||||
self.isLoading = false
|
||||
})
|
||||
},
|
||||
// 获取我的考试列表
|
||||
@ -1632,6 +1709,7 @@ export default {
|
||||
// 保存个人信息
|
||||
savePersonInfo: function () {
|
||||
var self = this
|
||||
console.log(self.personInfo)
|
||||
if (this.personInfo.fullName) {
|
||||
self.isLaoding = true
|
||||
axios.post(self.personUrl + 'app/basic-staff-info/save', self.personInfo, {
|
||||
@ -1658,6 +1736,7 @@ export default {
|
||||
var formdata = new FormData()
|
||||
formdata.append('image', file)
|
||||
axios.post(self.personUrl + 'app/file/uploadimage', formdata, {
|
||||
// axios.post('http://192.168.0.109:8070/signup/app/file/uploadimage', formdata, {
|
||||
headers: {
|
||||
token: self.token
|
||||
}
|
||||
@ -1665,6 +1744,7 @@ export default {
|
||||
self.$layer.msg('上传成功')
|
||||
self.isLaoding = false
|
||||
self.personInfo.userPhotoId = res.data.data
|
||||
// self.getPersonInfo()
|
||||
})
|
||||
},
|
||||
// 报名选择证件类型判断回填
|
||||
@ -1684,6 +1764,21 @@ export default {
|
||||
window.print();
|
||||
window.location.reload()
|
||||
}, 500);
|
||||
},
|
||||
// 获取我的成绩
|
||||
getAchievement: function () {
|
||||
var self = this
|
||||
axios.get('http://192.168.0.111:8089/signup/app/applystudents/listpage', {
|
||||
params: self.page,
|
||||
headers: {
|
||||
token: self.token
|
||||
}
|
||||
}).then(function (res) {
|
||||
console.log(res)
|
||||
self.achievementList = res.data.rows
|
||||
self.page.page = res.data.page
|
||||
self.page.totalPage = Math.ceil(res.data.total / self.page.rows)
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
@ -1777,14 +1872,13 @@ export default {
|
||||
cursor pointer
|
||||
.person-info
|
||||
float right
|
||||
margin-top 5px
|
||||
a
|
||||
display inline-block
|
||||
font-size 16px
|
||||
color #fff
|
||||
margin-right 30px
|
||||
line-height 20px
|
||||
height 20px
|
||||
line-height 60px
|
||||
height 60px
|
||||
&.user-name
|
||||
i
|
||||
background url("~@/assets/images/icon_aggregate1.png") no-repeat left top
|
||||
@ -1792,7 +1886,7 @@ export default {
|
||||
display inline-block
|
||||
width 17px
|
||||
height 20px
|
||||
vertical-align top
|
||||
vertical-align middle
|
||||
margin-right 5px
|
||||
&.back
|
||||
padding-right 30px
|
||||
@ -1804,7 +1898,7 @@ export default {
|
||||
display inline-block
|
||||
width 19px
|
||||
height 20px
|
||||
vertical-align top
|
||||
vertical-align middle
|
||||
margin-right 5px
|
||||
&.logout
|
||||
i
|
||||
@ -1813,7 +1907,7 @@ export default {
|
||||
display inline-block
|
||||
width 17px
|
||||
height 16px
|
||||
vertical-align top
|
||||
vertical-align middle
|
||||
margin-right 5px
|
||||
.content
|
||||
width 1200px
|
||||
@ -1830,7 +1924,7 @@ export default {
|
||||
margin-top 10px
|
||||
cursor pointer
|
||||
&:first-child
|
||||
background url("~@/assets/images/center-tab6.png") no-repeat
|
||||
background url("~@/assets/images/center-tab1.png") no-repeat
|
||||
background-size 100% 100%
|
||||
&.active
|
||||
background url("~@/assets/images/center-tab1-on.png") no-repeat
|
||||
@ -2083,6 +2177,15 @@ export default {
|
||||
color #000
|
||||
span
|
||||
font-weight bold
|
||||
&.count
|
||||
font-weight normal
|
||||
margin-right 10px
|
||||
&.type1
|
||||
color #4184dd
|
||||
&.type2
|
||||
color orange
|
||||
&.type3
|
||||
color green
|
||||
button
|
||||
border none
|
||||
outline none
|
||||
@ -2108,13 +2211,36 @@ export default {
|
||||
margin 20px 0
|
||||
.signed-box
|
||||
overflow hidden
|
||||
border #e8e8e8 solid 1px
|
||||
box-shadow 0 0 10px #eee
|
||||
position relative
|
||||
margin-bottom 10px
|
||||
margin-bottom 20px
|
||||
.signed-left
|
||||
width 100%
|
||||
padding 25px 30px
|
||||
padding 0 30px 25px
|
||||
box-sizing border-box
|
||||
position relative
|
||||
.status
|
||||
position absolute
|
||||
top 0
|
||||
left 0
|
||||
width 110px
|
||||
height 40px
|
||||
border-top-left-radius 5px
|
||||
border-bottom-right-radius 20px
|
||||
text-align center
|
||||
line-height 40px
|
||||
color #fff
|
||||
&.complete
|
||||
background #4184dd
|
||||
&.wait
|
||||
background #5bd9f0
|
||||
&.error
|
||||
background #f6704d
|
||||
h3
|
||||
font-size 18px
|
||||
color #333
|
||||
line-height 40px
|
||||
margin-left 95px
|
||||
table
|
||||
table-layout fixed
|
||||
width 100%
|
||||
@ -2122,6 +2248,14 @@ export default {
|
||||
height 35px
|
||||
font-size 16px
|
||||
color #000
|
||||
span
|
||||
margin-right 10px
|
||||
&.type1
|
||||
color #4184dd
|
||||
&.type2
|
||||
color orange
|
||||
&.type3
|
||||
color green
|
||||
button
|
||||
width 100px
|
||||
height 35px
|
||||
@ -2319,6 +2453,8 @@ export default {
|
||||
font-size 16px
|
||||
color #000
|
||||
height 40px
|
||||
vertical-align top
|
||||
line-height 40px
|
||||
&:nth-child(odd)
|
||||
text-align right
|
||||
&:nth-child(even)
|
||||
@ -2349,6 +2485,7 @@ export default {
|
||||
text-align center
|
||||
padding 20px 0
|
||||
background #fff
|
||||
min-width 1200px
|
||||
p
|
||||
font-size 16px
|
||||
color #333
|
||||
@ -2400,7 +2537,7 @@ export default {
|
||||
width 16px
|
||||
height 16px
|
||||
border-radius 50%
|
||||
border 1px solid greenyellow
|
||||
border 1px solid greenorange
|
||||
position absolute
|
||||
background #fff
|
||||
top 0
|
||||
|
@ -1,28 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<img :src="imgPath" alt="">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Print",
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
imgPath: ''
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
mounted() {
|
||||
this.imgPath = this.$route.query.distributionCardCode
|
||||
this.$nextTick(function() {
|
||||
window.print()
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" rel="stylesheet/stylus" scoped>
|
||||
|
||||
</style>
|
@ -19,19 +19,15 @@
|
||||
<div class="loading" v-if="isLoading">
|
||||
<img src="@/assets/images/loading.gif" alt="">
|
||||
</div>
|
||||
<Footer></Footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import url from '@/assets/public/url'
|
||||
import Footer from '@/assets/components/Footer'
|
||||
export default {
|
||||
name: 'Register',
|
||||
components: {
|
||||
Footer
|
||||
},
|
||||
components: {},
|
||||
data () {
|
||||
return {
|
||||
url: url.registerUrl,
|
||||
@ -46,6 +42,7 @@ export default {
|
||||
methods: {
|
||||
submitRegister: function () {
|
||||
var self = this
|
||||
if (self.registerInfo.username && self.registerInfo.password && self.registerInfo.passwordSame) {
|
||||
self.isLoading = true
|
||||
axios.post(self.url + 'app/register/default', self.registerInfo).then(function (res) {
|
||||
console.log(res)
|
||||
@ -57,6 +54,10 @@ export default {
|
||||
}, 1500)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
self.$layer.msg('用户名或密码不能为空')
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
@ -77,33 +78,34 @@ export default {
|
||||
border-radius 10px
|
||||
box-shadow 0 0 17px #DEDEDE
|
||||
.login
|
||||
position fixed
|
||||
top 0
|
||||
right 0
|
||||
left 0
|
||||
bottom 0
|
||||
//position fixed
|
||||
//top 0
|
||||
//right 0
|
||||
//left 0
|
||||
//bottom 0
|
||||
background url("~@/assets/images/login-bg.jpg") no-repeat center
|
||||
background-size 100% 100%
|
||||
overflow hidden
|
||||
.login-box
|
||||
width 460px
|
||||
height 720px
|
||||
padding 80px 55px 180px 45px
|
||||
box-sizing border-box
|
||||
position absolute
|
||||
top 50%
|
||||
left 54%
|
||||
margin-top -360px
|
||||
//position absolute
|
||||
//top 50%
|
||||
//left 54%
|
||||
//margin-top -360px
|
||||
background #fff url("~@/assets/images/login-box-bg1.png") no-repeat left bottom
|
||||
background-size 100% auto
|
||||
.back
|
||||
color #4293f4
|
||||
line-height 45px
|
||||
margin-top 100px
|
||||
margin-bottom 70px
|
||||
margin-left 54%
|
||||
h3
|
||||
font-size 24px
|
||||
font-size 20px
|
||||
text-align center
|
||||
color #0d1c28
|
||||
margin-bottom 10px
|
||||
font-weight normal
|
||||
margin-bottom 70px
|
||||
p
|
||||
font-size 12px
|
||||
color #999
|
||||
@ -127,6 +129,9 @@ export default {
|
||||
border none
|
||||
outline none
|
||||
border-radius 3px
|
||||
margin-bottom 20px
|
||||
a
|
||||
color #4293f4
|
||||
.link
|
||||
margin-bottom 25px
|
||||
overflow hidden
|
||||
@ -146,11 +151,8 @@ export default {
|
||||
margin-bottom 0
|
||||
color #999
|
||||
.bottom-text
|
||||
position absolute
|
||||
left 0
|
||||
right 0
|
||||
bottom 30px
|
||||
text-align center
|
||||
color #fff
|
||||
font-size 14px
|
||||
margin-bottom 30px
|
||||
</style>
|
||||
|
@ -11,7 +11,6 @@ import Question from '@/pages/Question/Question'
|
||||
import Login from '@/pages/Login/Login'
|
||||
import Register from '@/pages/Register/Register'
|
||||
import Test from '@/pages/Test/Test'
|
||||
import Print from '@/pages/Print/Print'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
@ -71,11 +70,6 @@ export default new Router({
|
||||
path: '/test',
|
||||
name: 'Test',
|
||||
component: Test
|
||||
},
|
||||
{
|
||||
path: '/print',
|
||||
name: 'Print',
|
||||
component: Print
|
||||
}
|
||||
],
|
||||
scrollBehavior(to, from, saveTop) {
|
||||
|
Loading…
Reference in New Issue
Block a user