123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <!--
- * @Description: 我的技能培训
- * @Author: 空白格
- * @Date: 2022-08-24 10:02:17
- * @LastEditors: wangcc
- * @LastEditTime: 2022-08-26 11:19:34
- * @FilePath: \veterans_client_web\src\views\PersonalCenter\SkillTraining\SkillTrainingIndex.vue
- * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
- -->
- <template>
- <div>
- <banner title="我的技能培训" :breadcrumb="false"></banner>
- <div class="breadcrumb">
- <div class="_container">
- <div class="banner-breadcrumb-breadcrumb">
- <el-breadcrumb separator-class="el-icon-arrow-right">
- <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
- <el-breadcrumb-item :to="{ path: '/personalcenter'}">我的</el-breadcrumb-item>
- <el-breadcrumb-item>我的技能培训</el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div>
- </div>
- <div class="deliverBox">
- <div class="_container">
- <div class="box-list">
- <div class="tabs">
- <span
- @click="tabsClick(index,item)"
- :class="{activeSpan:currentClass==index}"
- v-for="(item,index) in tabsList"
- :key="index"
- >{{item.name}}</span>
- </div>
- <div style="display:table;width:100%">
- <div class="deliverList-box" v-for="(train,index) in deliverList" :key="index" @click="trainDetail(train)">
- <div class="line"></div>
- <h3 class="title-h3">{{train.name}}</h3>
- <div class="deliver">
- <div class="log">
- <img :src="train.img" alt />
- </div>
- <div class="center">
- <h3>培训学校:{{train.schoolName}}</h3>
- <p style="display: flex;">
- <span style="margin-right:6px">难度</span>
- <el-rate v-model="train.difficult" disabled text-color="#ff9900"></el-rate>
- </p>
- <!-- <p class="comment">报名人数:16/60</p> -->
- <p class="comment">培训周期:{{train.cycle}}个月</p>
- </div>
- <div class="right-box">
- <span class="time">开始时间:{{train.applyTime.slice(0,10)}}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="pagination" v-if="total">
- <el-pagination
- background
- layout="prev, pager, next"
- :page-size="queryParams.pageSize"
- :total="total"
- @current-change="currentChange"
- />
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import banner from '@/components/BannerBreadcrumb/index.vue';
- import { myTrainList } from '@/api/PersonalCenter/index';
- export default {
- name: 'EvaluateIndex',
- components: { banner },
- data() {
- return {
- value: 3,
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- type: '1'
- },
- total: 0,
- loading: false,
- currentClass: 0,
- deliverList: [],
- tabsList: [
- {
- id: 1,
- name: '培训中'
- },
- {
- id: 0,
- name: '已报名'
- }
- ]
- };
- },
- created() {
- this.getList()
- },
- methods: {
- /**
- * 分页切换触发
- * @date 2022-08-16
- * @param {any} page
- * @returns {any}
- */
- currentChange(page) {
- this.queryParams.pageNum = page;
- this.getList();
- },
- /**
- * 获取列表
- * @date 2022-08-11
- * @returns {any}
- */
- getList() {
- this.loading = true;
- myTrainList(this.queryParams).then((res) => {
- this.deliverList = res.rows;
- this.total = Number(res.total);
- this.loading = false;
- });
- },
- tabsClick(index,item) {
- this.currentClass = index;
- this.queryParams.type = item.id
- this.getList()
- },
- trainDetail(item) {
- this.$router.push({
- name: 'SkillsTrainingDetails',
- query: { id:item.id }
- });
- }
- }
- };
- </script>
- <style lang='scss' scoped>
- ._container {
- width: 1200px !important;
- margin-right: auto;
- margin-left: auto;
- padding-right: 15px;
- padding-left: 15px;
- max-width: none !important;
- }
- ._container:after,
- ._container:before {
- display: table;
- content: ' ';
- clear: both;
- }
- .breadcrumb {
- background-color: #f5f7fa;
- height: 70px;
- display: flex;
- align-items: center;
- }
- .banner-breadcrumb-breadcrumb {
- .el-breadcrumb {
- font-size: 18px;
- }
- :deep(.el-breadcrumb__inner.is-link) {
- color: #7e7e7e;
- font-weight: normal;
- }
- :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner) {
- color: #ff0000;
- }
- }
- .box-list {
- background-color: #fff;
- padding: 10px 0 80px 0;
- display: table;
- width: 100%;
- .tabs {
- padding: 10px 20px;
- span {
- color: #1a1a1a;
- display: inline-block;
- height: 35px;
- font-size: 22px;
- cursor: pointer;
- margin-right: 36px;
- }
- .activeSpan {
- color: #416050;
- border-bottom: 4px solid #416050;
- }
- }
- h1 {
- color: #222222;
- font-size: 26px;
- margin: 19px 20px;
- }
- .deliver {
- cursor: pointer;
- width: 100%;
- background: #ffffff;
- display: flex;
- align-items: self-start;
- justify-content: space-between;
- float: left;
- margin-top: 20px;
- .log {
- width: 60px;
- height: 60px;
- background: #ffffff;
- border: 1px solid #e2e2e2;
- border-radius: 4px;
- overflow: hidden;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .center {
- width: 290px;
- h3 {
- color: #1a1a1a;
- margin-bottom: 10px;
- font-size: 18px;
- font-family: 'SourceHanSansCN';
- font-weight: 400;
- }
- p {
- color: #666666;
- font-size: 14px;
- line-height: 20px;
- .meta_cell {
- display: inline-block;
- margin-right: 5px;
- }
- .meta_cell:after {
- padding: 0 1px 0 4px;
- display: inline-block;
- color: #919090;
- content: '|';
- }
- .meta_cell:last-child:after {
- content: '';
- }
- }
- .comment {
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- .right-box {
- display: flex;
- flex-direction: column;
- justify-content: right;
- span {
- text-align: right;
- }
- .pir {
- color: #ef651f;
- font-size: 20px;
- }
- .time {
- color: #999999;
- font-size: 14px;
- margin-top: 75px;
- }
- .postStatus {
- line-height: 40px;
- color: #0f0f0f;
- }
- }
- }
- }
- .pagination {
- text-align: center;
- margin-top: 20px;
- :deep(.el-pager .active) {
- background-color: #ff3939;
- }
- :deep(.el-pagination.is-background .el-pager li:not(.disabled).active) {
- background-color: #ff3939;
- }
- }
- .deliverList-box {
- display: flex;
- flex-direction: column;
- border: 1px solid rgba(0, 0, 0, 0.11);
- padding: 10px 20px;
- margin: 10px 20px;
- transition: 0.5s;
- border-radius: 3px;
- width: 518px;
- position: relative;
- float: left;
- .title-h3 {
- color: #222222;
- line-height: 40px;
- font-size: 20px;
- }
- .line {
- width: 4px;
- height: 30px;
- position: absolute;
- background-color: #ef651f;
- left: 0;
- top: 16px;
- }
- }
- .deliverList-box:hover {
- box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.11);
- }
- .interview-state {
- display: flex;
- justify-content: space-between;
- border-bottom: 1px dashed #ccc;
- line-height: 50px;
- font-size: 22px;
- color: #3ca7fe;
- .grey {
- color: #999999;
- }
- .green {
- color: #709078;
- }
- .red {
- color: #ff3939;
- }
- }
- .button-btn {
- width: 100%;
- display: flex;
- justify-content: center;
- margin: 10px 0;
- }
- .video {
- width: 200px;
- }
- </style>
|