|
@@ -5,59 +5,98 @@
|
|
|
<div class="searchDate">
|
|
|
<div class="date startDate" @click="dateSection.status = true">
|
|
|
开始
|
|
|
- <span>{{dateSection.showStartDate}}</span>
|
|
|
- </div>-
|
|
|
+ <span>{{ dateSection.showStartDate }}</span>
|
|
|
+ </div>
|
|
|
+ -
|
|
|
<div class="date endDate" @click="dateEndSection.status = true">
|
|
|
结束
|
|
|
- <span>{{dateEndSection.showEndDate}}</span>
|
|
|
+ <span>{{ dateEndSection.showEndDate }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div class="searchMore">
|
|
|
筛选<i class="arrowDown"></i>
|
|
|
</div>-->
|
|
|
- <van-dropdown-menu active-color="#14928A">
|
|
|
+ <van-dropdown-menu active-color="#01C1B5">
|
|
|
<van-dropdown-item title="筛选" ref="item" v-model="search.status">
|
|
|
<div class="dropList">
|
|
|
<div class="dropItem">
|
|
|
<p class="dropTitle">课程类型</p>
|
|
|
- <div class="radioGroup">
|
|
|
- <span :class="search.type=='PRACTICE'?'actived':''" @click="search.type='PRACTICE'">网管课</span>
|
|
|
- <span :class="search.type=='VIP'?'actived':''" @click="search.type='VIP'">VIP课</span>
|
|
|
- <span :class="search.type==0?'actived':''" @click="search.type=0" style="margin-top: .08rem">全部</span>
|
|
|
+ <div class="radioGroup" id='courseType'>
|
|
|
+ <span
|
|
|
+ :class="search.type == 'PRACTICE' ? 'actived' : ''"
|
|
|
+ @click="search.type = 'PRACTICE'"
|
|
|
+ >网管课</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ :class="search.type == 'VIP' ? 'actived' : ''"
|
|
|
+ @click="search.type = 'VIP'"
|
|
|
+ >VIP课</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ :class="search.type == 0 ? 'actived' : ''"
|
|
|
+ @click="search.type = 0"
|
|
|
+ >全部</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dropItem">
|
|
|
<p class="dropTitle">评价进度</p>
|
|
|
<div class="radioGroup">
|
|
|
- <span :class="search.hasReview==0?'actived':''" @click="search.hasReview=0">待完成</span>
|
|
|
- <span :class="search.hasReview==1?'actived':''" @click="search.hasReview=1">已完成</span>
|
|
|
+ <span
|
|
|
+ :class="search.hasReview == 0 ? 'actived' : ''"
|
|
|
+ @click="search.hasReview = 0"
|
|
|
+ >待完成</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ :class="search.hasReview == 1 ? 'actived' : ''"
|
|
|
+ @click="search.hasReview = 1"
|
|
|
+ >已完成</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dropItem">
|
|
|
<p class="dropTitle">提交作业</p>
|
|
|
<div class="radioGroup">
|
|
|
<span
|
|
|
- :class="search.hasHandHomework==1?'actived':''"
|
|
|
- @click="search.hasHandHomework=1"
|
|
|
- >是</span>
|
|
|
+ :class="search.hasHandHomework == 1 ? 'actived' : ''"
|
|
|
+ @click="search.hasHandHomework = 1"
|
|
|
+ >是</span
|
|
|
+ >
|
|
|
<span
|
|
|
- :class="search.hasHandHomework==0?'actived':''"
|
|
|
- @click="search.hasHandHomework=0"
|
|
|
- >否</span>
|
|
|
+ :class="search.hasHandHomework == 0 ? 'actived' : ''"
|
|
|
+ @click="search.hasHandHomework = 0"
|
|
|
+ >否</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dropItem">
|
|
|
<p class="dropTitle">完成双向沟通</p>
|
|
|
<div class="radioGroup">
|
|
|
- <span :class="search.hasLiaison==1?'actived':''" @click="search.hasLiaison=1">是</span>
|
|
|
- <span :class="search.hasLiaison==0?'actived':''" @click="search.hasLiaison=0">否</span>
|
|
|
+ <span
|
|
|
+ :class="search.hasLiaison == 1 ? 'actived' : ''"
|
|
|
+ @click="search.hasLiaison = 1"
|
|
|
+ >是</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ :class="search.hasLiaison == 0 ? 'actived' : ''"
|
|
|
+ @click="search.hasLiaison = 0"
|
|
|
+ >否</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dropItem">
|
|
|
<p class="dropTitle">学生是否到课</p>
|
|
|
<div class="radioGroup">
|
|
|
- <span :class="search.hasArrived==1?'actived':''" @click="search.hasArrived=1">是</span>
|
|
|
- <span :class="search.hasArrived==0?'actived':''" @click="search.hasArrived=0">否</span>
|
|
|
+ <span
|
|
|
+ :class="search.hasArrived == 1 ? 'actived' : ''"
|
|
|
+ @click="search.hasArrived = 1"
|
|
|
+ >是</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ :class="search.hasArrived == 0 ? 'actived' : ''"
|
|
|
+ @click="search.hasArrived = 0"
|
|
|
+ >否</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -69,31 +108,53 @@
|
|
|
</van-dropdown-menu>
|
|
|
</div>
|
|
|
<div v-if="dataShow" key="data">
|
|
|
- <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="getList">
|
|
|
+ <van-list
|
|
|
+ v-model="loading"
|
|
|
+ :finished="finished"
|
|
|
+ finished-text="没有更多了"
|
|
|
+ @load="getList"
|
|
|
+ >
|
|
|
<van-cell
|
|
|
- v-for="(item,index) in courseList"
|
|
|
+ v-for="(item, index) in courseList"
|
|
|
:key="index"
|
|
|
class="cellGroup"
|
|
|
:title="item.classDate | filterClass"
|
|
|
- title-class="sectionTitle"
|
|
|
value-class="sectionValue"
|
|
|
>
|
|
|
+ <template slot="title">
|
|
|
+ <div class="titleWrap" style="word-break: break-all">
|
|
|
+ <img class="titleIcon" :src="getIcon(item.groupType)" alt="" />
|
|
|
+ <div class="">
|
|
|
+ <p class="content van-ellipsis courseName">
|
|
|
+ {{ item.courseName }}
|
|
|
+ </p>
|
|
|
+ <p class="content van-ellipsis courseTime">
|
|
|
+ {{ item.classDate | formatTimer }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- -->
|
|
|
+ </template>
|
|
|
+
|
|
|
<template solt="default">
|
|
|
- <p class="content van-ellipsis">{{ item.courseName }}</p>
|
|
|
<van-button
|
|
|
type="primary"
|
|
|
round
|
|
|
size="small"
|
|
|
- v-if="item.reviewId==0"
|
|
|
+ v-if="item.reviewId == 0"
|
|
|
@click="submitReview(item)"
|
|
|
- >提交评价</van-button>
|
|
|
+ >提交评价</van-button
|
|
|
+ >
|
|
|
<van-button
|
|
|
type="primary"
|
|
|
- round class="van-update"
|
|
|
+ round
|
|
|
+ class="van-update"
|
|
|
size="small"
|
|
|
- v-if="item.reviewId>0"
|
|
|
+ v-if="item.reviewId > 0"
|
|
|
@click="submitReview(item)"
|
|
|
- >修改评价</van-button>
|
|
|
+ >修改评价</van-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
</van-list>
|
|
@@ -130,10 +191,10 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import MHeader from '@/components/MHeader'
|
|
|
-import MEmpty from "@/components/MEmpty"
|
|
|
-import { browser } from '@/common/common'
|
|
|
-import { getOnlineCourse } from "@/api/audition"
|
|
|
+import MHeader from "@/components/MHeader";
|
|
|
+import MEmpty from "@/components/MEmpty";
|
|
|
+import { browser } from "@/common/common";
|
|
|
+import { getOnlineCourse } from "@/api/audition";
|
|
|
// SINGLE,MIX,HIGH,VIP,DEMO,COMPREHENSIVE,PRACTICE,ENLIGHTENMENT,TRAINING_SINGLE,TRAINING_MIX,CLASSROOM,COMM,HIGH_ONLINE,MUSIC_NETWORK
|
|
|
export default {
|
|
|
name: "teacherList",
|
|
@@ -146,14 +207,14 @@ export default {
|
|
|
minDate: new Date(2020, 0, 1),
|
|
|
maxDate: new Date(2025, 10, 1),
|
|
|
currentDate: null,
|
|
|
- showStartDate: null
|
|
|
+ showStartDate: null,
|
|
|
},
|
|
|
dateEndSection: {
|
|
|
status: false,
|
|
|
minDate: new Date(2020, 0, 1),
|
|
|
maxDate: new Date(2025, 10, 1),
|
|
|
currentDate: null,
|
|
|
- showEndDate: null
|
|
|
+ showEndDate: null,
|
|
|
},
|
|
|
search: {
|
|
|
status: false,
|
|
@@ -167,7 +228,14 @@ export default {
|
|
|
loading: false,
|
|
|
finished: false,
|
|
|
dataShow: true, // 是否显示
|
|
|
- page: 1
|
|
|
+ page: 1,
|
|
|
+ iconList: {
|
|
|
+ pIcon: require("@/assets/images/Pdot.png"),
|
|
|
+ mIcon: require("@/assets/images/Mdot.png"),
|
|
|
+ wIcon: require("@/assets/images/Wdot.png"),
|
|
|
+ vIcon: require("@/assets/images/Vdot.png"),
|
|
|
+ tIcon: require("@/assets/images/Tdot.png"),
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -183,8 +251,8 @@ export default {
|
|
|
localStorage.setItem("Authorization", decodeURI(params.Authorization));
|
|
|
localStorage.setItem("userInfo", decodeURI(params.Authorization));
|
|
|
}
|
|
|
- if(browser().android || browser().iPhone) {
|
|
|
- this.headerStatus = false
|
|
|
+ if (browser().android || browser().iPhone) {
|
|
|
+ this.headerStatus = false;
|
|
|
}
|
|
|
this.dateSection.currentDate = new Date();
|
|
|
this.dateSection.showStartDate = this.timeFormat(
|
|
@@ -200,8 +268,12 @@ export default {
|
|
|
this.dateSection.showStartDate = this.timeFormat(
|
|
|
new Date(this.search.startTime.replace(/-/g, "/"))
|
|
|
);
|
|
|
- this.dateSection.currentDate = new Date(this.search.startTime.replace(/-/g, "/"))
|
|
|
- this.dateEndSection.currentDate = new Date(this.search.endTime.replace(/-/g, "/"))
|
|
|
+ this.dateSection.currentDate = new Date(
|
|
|
+ this.search.startTime.replace(/-/g, "/")
|
|
|
+ );
|
|
|
+ this.dateEndSection.currentDate = new Date(
|
|
|
+ this.search.endTime.replace(/-/g, "/")
|
|
|
+ );
|
|
|
this.dateEndSection.showEndDate = this.timeFormat(
|
|
|
new Date(this.search.endTime.replace(/-/g, "/"))
|
|
|
);
|
|
@@ -222,8 +294,8 @@ export default {
|
|
|
this.dateSection.showStartDate = this.timeFormat(
|
|
|
this.dateSection.currentDate
|
|
|
);
|
|
|
- this.dataShow = true
|
|
|
- this.page = 1
|
|
|
+ this.dataShow = true;
|
|
|
+ this.page = 1;
|
|
|
this.onRefresh();
|
|
|
this.dateSection.status = false;
|
|
|
},
|
|
@@ -231,8 +303,8 @@ export default {
|
|
|
this.dateEndSection.showEndDate = this.timeFormat(
|
|
|
this.dateEndSection.currentDate
|
|
|
);
|
|
|
- this.dataShow = true
|
|
|
- this.page = 1
|
|
|
+ this.dataShow = true;
|
|
|
+ this.page = 1;
|
|
|
this.onRefresh();
|
|
|
this.dateEndSection.status = false;
|
|
|
},
|
|
@@ -254,14 +326,14 @@ export default {
|
|
|
hasHandHomework: null,
|
|
|
hasLiaison: null,
|
|
|
hasArrived: null,
|
|
|
- type: null
|
|
|
+ type: null,
|
|
|
};
|
|
|
},
|
|
|
submitInfo() {
|
|
|
// 提交请求
|
|
|
this.onRefresh();
|
|
|
- this.dataShow = true
|
|
|
- this.page = 1
|
|
|
+ this.dataShow = true;
|
|
|
+ this.page = 1;
|
|
|
this.search.status = false;
|
|
|
this.$refs.item.toggle();
|
|
|
},
|
|
@@ -272,9 +344,9 @@ export default {
|
|
|
(this.search.endTime =
|
|
|
this.dateEndSection.showEndDate.replace(/\//g, "-") + " 23:59:59"),
|
|
|
(this.search.page = this.page);
|
|
|
- this.search.type = this.search.type ? this.search.type : null
|
|
|
+ this.search.type = this.search.type ? this.search.type : null;
|
|
|
this.search.rows = 20;
|
|
|
- getOnlineCourse(this.search).then(res => {
|
|
|
+ getOnlineCourse(this.search).then((res) => {
|
|
|
let result = res.data;
|
|
|
this.loading = false;
|
|
|
if (result.code == 200) {
|
|
@@ -307,15 +379,25 @@ export default {
|
|
|
submitReview(item) {
|
|
|
this.$router.push({
|
|
|
path: "/courseEvaluation",
|
|
|
- query: { id: item.id, reviewId: item.reviewId, isInside: true }
|
|
|
+ query: { id: item.id, reviewId: item.reviewId, isInside: true },
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ getIcon(type) {
|
|
|
+ let obj = {
|
|
|
+ MUSIC: this.iconList.mIcon,
|
|
|
+ VIP: this.iconList.vIcon,
|
|
|
+ DEMO: this.iconList.tIcon,
|
|
|
+ PRACTICE: this.iconList.pIcon,
|
|
|
+ COMM: this.iconList.wIcon,
|
|
|
+ };
|
|
|
+ return obj[type];
|
|
|
+ },
|
|
|
},
|
|
|
filters: {
|
|
|
filterClass(val) {
|
|
|
return val.substring(0, 10);
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
@@ -324,7 +406,7 @@ export default {
|
|
|
min-height: 100vh;
|
|
|
overflow-y: auto;
|
|
|
overflow-x: hidden;
|
|
|
- background-color: #F3F4F8;
|
|
|
+ background-color: #f3f4f8;
|
|
|
}
|
|
|
/deep/.van-dropdown-item__content {
|
|
|
height: 100%;
|
|
@@ -335,7 +417,7 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
background: #fff;
|
|
|
margin-bottom: 0.12rem;
|
|
|
- padding: .1rem 0.16rem;
|
|
|
+ padding: 0.1rem 0.16rem;
|
|
|
align-items: center;
|
|
|
|
|
|
.searchDate {
|
|
@@ -387,16 +469,16 @@ export default {
|
|
|
padding: 0.12rem 0;
|
|
|
}
|
|
|
.btn-reset {
|
|
|
- background-color: #e1f6f4;
|
|
|
- color: #14928a;
|
|
|
+ background-color: #EEEFF3;
|
|
|
+ color: @mColor;
|
|
|
}
|
|
|
.btn-sure {
|
|
|
- background-color: #14928a;
|
|
|
+ background-color: @mColor;
|
|
|
color: #fff;
|
|
|
}
|
|
|
}
|
|
|
.dropList {
|
|
|
- margin-bottom: .55rem;
|
|
|
+ margin-bottom: 0.55rem;
|
|
|
}
|
|
|
.dropItem {
|
|
|
padding: 0.1rem 0.16rem;
|
|
@@ -404,32 +486,40 @@ export default {
|
|
|
font-size: 0.17rem;
|
|
|
color: #1a1a1a;
|
|
|
}
|
|
|
+ #courseType {
|
|
|
+ span {
|
|
|
+ width: 1.02rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
.radioGroup {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- padding-top: .08rem;
|
|
|
+ padding-top: 0.08rem;
|
|
|
flex-wrap: wrap;
|
|
|
span {
|
|
|
color: #000000;
|
|
|
- background-color: #f4f4f4;
|
|
|
+ background-color: #ffffff;
|
|
|
width: 48%;
|
|
|
- padding: .08rem 0;
|
|
|
+ padding: 0.08rem 0;
|
|
|
text-align: center;
|
|
|
border-radius: 2px;
|
|
|
+ border: 1px solid #E2E0E0;
|
|
|
&.actived {
|
|
|
- color: #14928a;
|
|
|
- background: url("../../assets/images/audition/icon_check.png")
|
|
|
- no-repeat bottom right #e4f6f5;
|
|
|
- background-size: 0.2rem;
|
|
|
+ color: @mColor;
|
|
|
+ // background: url("../../assets/images/audition/icon_check.png")
|
|
|
+ // no-repeat bottom right #e4f6f5;
|
|
|
+ // background-size: 0.2rem;
|
|
|
+ border: 1px solid @mColor;
|
|
|
+ background: #ffffff;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.cellGroup {
|
|
|
- padding: 0.16rem;
|
|
|
- font-size: .14rem;
|
|
|
- line-height: .24rem;
|
|
|
+ // padding: 0.16rem;
|
|
|
+ font-size: 0.14rem;
|
|
|
+ line-height: 0.24rem;
|
|
|
}
|
|
|
.sectionTitle {
|
|
|
font-size: 0.16rem;
|
|
@@ -440,31 +530,26 @@ export default {
|
|
|
.sectionValue {
|
|
|
display: flex;
|
|
|
width: 70%;
|
|
|
- flex: 1 auto;
|
|
|
- justify-content: space-between;
|
|
|
+ justify-content: flex-end;
|
|
|
align-items: center;
|
|
|
height: auto !important;
|
|
|
- .content {
|
|
|
- font-size: 0.17rem;
|
|
|
- color: #1a1a1a;
|
|
|
- }
|
|
|
+
|
|
|
.van-button {
|
|
|
font-size: 0.14rem;
|
|
|
- background-color: #14928a;
|
|
|
- border-color: #14928a;
|
|
|
+ background-color: @mColor;
|
|
|
+ border-color: @mColor;
|
|
|
padding: 0 0.12rem;
|
|
|
min-width: 0.88rem;
|
|
|
- height: .3rem;
|
|
|
+ height: 0.3rem;
|
|
|
&.van-update {
|
|
|
background-color: #fff;
|
|
|
- color: #14928a;
|
|
|
+ color: @mColor;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/deep/.van-cell__title {
|
|
|
font-size: 0.14rem;
|
|
|
color: @mFontColor;
|
|
|
- flex: 1 auto;
|
|
|
}
|
|
|
.logo {
|
|
|
width: 0.35rem;
|
|
@@ -504,4 +589,37 @@ export default {
|
|
|
/deep/.van-dropdown-menu__bar {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
+.titleWrap {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: flex-start;
|
|
|
+ .content {
|
|
|
+ width: 2rem;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ font-size: 0.17rem;
|
|
|
+ color: #1a1a1a;
|
|
|
+ }
|
|
|
+ .courseName {
|
|
|
+ font-size: 0.16rem;
|
|
|
+ color: #1a1a1a;
|
|
|
+ }
|
|
|
+ .courseTime {
|
|
|
+ font-size: 0.13rem;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+}
|
|
|
+.titleIcon {
|
|
|
+ width: 0.42rem;
|
|
|
+ height: 0.42rem;
|
|
|
+ margin-right: 0.1rem;
|
|
|
+}
|
|
|
+/deep/.van-picker__cancel,
|
|
|
+/deep/.van-picker__confirm {
|
|
|
+ color: @mColor;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.van-popup--bottom {
|
|
|
+ border-radius: 0.1rem 0.1rem 0px 0px;
|
|
|
+}
|
|
|
</style>
|