123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <template>
- <div id="app">
- <div class="banner">
- <img src="../../assets/image/gxq_banner.png" />
- </div>
- <div class="details-container">
- <div class="activity-brief center-row">
- <div class="activity-brief-left">
- <!--<img :src="getThumb(rowKey)" width="100%" />-->
- <div class="img-box">
- <span class="state" style="background: rgb(130, 147, 166); visibility: visible;">{{activityInfo.activityStatusTip}}</span>
- <!--<img :src="getThumb(item.rowKey)" alt="">-->
- <div class="lesson-image">
- <p style="font-size:24px">高新区智慧课堂优秀课例</p>
- <p style="font-size:16px;margin:5px 0">{{activityInfo.parentGradeName}}</p>
- <p style="font-size:28px;">《 {{activityInfo.parentProjectName}} 》</p>
- <p style="font-size:16px;margin-top:8px;">{{activityInfo.schoolName}} {{activityInfo.speaker}}教师 执教</p>
- <p style="font-size:16px;margin-top:8px;">授课平台:{{activityInfo.parentTeachePlateName}}</p>
- </div>
- </div>
- </div>
- <div class="activity-brief-right">
- <div class="activity-brief-title">
- <span>{{activityInfo.name}}</span>
- <span class="status" style="background: #999;">{{activityInfo.activityStatusTip}}</span>
- <Button type="primary" size="large" @click="gotoVideo">进入点播</Button>
- </div>
- <div class="activity-brief-info center-row">
- <div class="brief-info-left">
- <div class="items"><p class="item">主讲单位:<span style="font-weight:bold;color:#000">{{activityInfo.ownUnit}}</span></p></div>
- <div class="items"><p class="item">主讲人:<span style="font-weight:bold;color:#000">{{activityInfo.speaker}}</span></p></div>
- <div class="items"><p class="item">学校:<span style="font-weight:bold;color:#000">{{activityInfo.schoolName}}</span></p></div>
- <div class="items"><p class="item">年级:<span style="font-weight:bold;color:#000">{{activityInfo.parentGradeName}}</span></p></div>
- <div class="items"><p class="item">学科:<span style="font-weight:bold;color:#000">{{activityInfo.parentCategoryName}}</span></p></div>
- <div class="items"><p class="item">课题:<span style="font-weight:bold;color:#000">{{activityInfo.parentProjectName}}</span></p></div>
- </div>
- <div class="brief-info-left">
- <div class="items"><p class="item">活动时间:<span style="font-weight:bold;color:#000">{{activityInfo.timeRangeTip}}</span></p></div>
- <div class="items"><p class="item">授课平台:<span style="font-weight:bold;color:#000">{{activityInfo.parentTeachePlateName}}</span></p></div>
- </div>
- </div>
- </div>
- </div>
- <div class="activity-details center-row">
- <div class="details-left center-col">
- <div class="title-tip">
- <p class="title">观课用户<span>VIEW CLASS USER</span></p>
- <div class="content">
- <!--<p style="margin:15px">专家:刘斌</p>-->
- <p style="margin:15px">成员:公开参与</p>
- </div>
- </div>
- <div class="review-attachment">
- <p class="title">资源下载<span>ATTACHMENT</span></p>
- <div class="content">
- <div class="attach attachicon-2" v-for="(item,index) in attachmentsList" :key="index">
- <a :href="item.fileNameUri" :download="item.fileName" :title="item.fileName">{{item.fileName}}</a>
- <span style="float: right; font-size: 13px;"> {{item.fileSizeTip}}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="details-right center-col">
- <div class="description title-tip" style="margin-top:0">
- <p class="title">
- 观课统计
- <span>VIEW CLASS STATISTICS</span>
- </p>
- <div class="content">
- <div id="views" style="width:100%; height:500px;"></div>
- <div id="comments" style="width:100%; height:500px;"></div>
- </div>
- </div>
- <div class="guide title-tip">
- <p class="title">
- 观点评论
- <span>REVIEW</span>
- </p>
- <div class="content">
- <p class="comment-item" v-for="item in commentList"><span style="color:#666">{{item.employeeName}}</span> : {{item.content}}</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import lessonInfo from '@/static/lessonDetails.json'
- export default {
- components: {
- },
- data() {
- return {
- reviewAcList: [],
- attachmentsList: [],
- commentList: [],
- rowKey:0,
- activityInfo: {}
- }
- },
- created() {
- this.rowKey = sessionStorage.getItem('_lesson_rowKey');
- this.attachmentsList = lessonInfo[this.rowKey].attachments;
- this.activityInfo = lessonInfo[this.rowKey].data;
- this.commentList = lessonInfo[this.rowKey].commentList;
- },
- methods: {
- gotoVideo() {
- this.$router.push(
- {
- path:'commentVideo'
- }
- );
- },
- },
- mounted() {
- let myChart = this.$echarts.init(document.getElementById('views'));
- let schoolList = lessonInfo[this.rowKey ].views.map(a => a.schoolName);
- let viewsList = lessonInfo[this.rowKey ].views.map(a => a.viewCount);
- let option = {
- color: ['#ff8745'],
- tooltip: {
- trigger: 'axis',
- axisPointer : { // 坐标轴指示器,坐标轴触发有效
- type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- xAxis: {
- data: schoolList,
- axisLabel: {
- interval: 0,
- rotate: 40,
- formatter: function (value) {
- return (value.length > 6 ? (value.slice(0,6)+"...") : value )
- },
- },
- splitLine: { // gird 区域中的分割线
- show: false, // 是否显示
- lineStyle: {
- color: '#666',
- width: 0,
- type: 'dashed'
- }
- },
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- height: '400px',
- containLabel: true
- },
- yAxis: {
- name: "点击量",
- splitLine: { // gird 区域中的分割线
- show: false, // 是否显示
- lineStyle: {
- color: '#666',
- width: 1,
- type: 'dashed'
- }
- },
- },
- series: [{
- name: '点击量',
- type: 'bar',
- barWidth: 20,//柱图宽度
- data: viewsList
- }]
- };
- myChart.setOption(option);
- let comments = this.$echarts.init(document.getElementById('comments'));
- let commentList = lessonInfo[this.rowKey ].schoolComments.map(a => a.commentCount);
- let commentsOption = {
- color: ['#ff8745'],
- tooltip: {
- trigger: 'axis',
- axisPointer : { // 坐标轴指示器,坐标轴触发有效
- type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- xAxis: {
- data: schoolList,
- axisLabel: {
- interval: 0,
- rotate: 40,
- formatter: function (value) {
- return (value.length > 6 ? (value.slice(0,6)+"...") : value )
- },
- },
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- height:'400px',
- containLabel: true
- },
- yAxis: {
- name: "评论数",
- splitLine: { // gird 区域中的分割线
- show: false, // 是否显示
- lineStyle: {
- color: '#666',
- width: 1,
- type: 'dashed'
- }
- },
- },
- series: [{
- name: '评论数',
- type: 'bar',
- barWidth: 20,//柱图宽度
- data: commentList
- }]
- };
- comments.setOption(commentsOption);
- }
- }
- </script>
- <style scoped>
- html, body, #app {
- height: 100% !important;
- user-select: none;
- }
- .main-content {
- background: rgb(248,248,248) !important;
- }
- .center-row {
- display: flex;
- flex-direction: row;
- }
- .center-col {
- display: flex;
- flex-direction: column;
- }
- .banner {
- width: 100%;
- margin-top: 80px;
- }
- .banner img {
- width: 100%;
- min-width: 1280px;
- }
- .details-container {
- position: relative;
- width: 1200px;
- margin: 80px auto;
- margin-top: -50px;
- z-index: 999;
- display: flex;
- flex-direction: column;
- }
- .details-container .activity-brief {
- width: 100%;
- background: #fff;
- border-top-left-radius: 8px;
- border-top-right-radius: 8px;
- }
- .details-container .activity-brief .activity-brief-left {
- width: 30%;
- height: 100%;
- padding: 30px 20px 0 20px;
- }
- .details-container .activity-brief .activity-brief-right {
- width: 70%;
- height: 100%;
- padding: 20px;
- }
- .details-container .activity-brief-title {
- font-size: 26px;
- font-weight: bolder;
- color: #333;
- padding: 5px 20px;
- margin-left: 10px;
- border-bottom: 1px solid #f6f6f6;
- }
- .details-container .activity-brief-title .status {
- display: inline-block;
- margin-left: 10px;
- font-size: 14px;
- color: #fff;
- padding: 1px 6px;
- vertical-align: top;
- margin-top: 6px;
- background-color: #53c766;
- border-radius: 3px;
- }
- .details-container .activity-brief-title .ivu-btn {
- width: 120px;
- height: 38px;
- margin-left: 20px;
- margin-bottom: 10px;
- }
- .details-container .brief-info-left {
- width: 50%;
- }
- .details-container .brief-info-left .items {
- margin: 5px;
- }
- .details-container .brief-info-left .items .item {
- font-size: 14px;
- color: #666;
- }
- .details-container .brief-info-left .items .item2 {
- font-size: 20px;
- color: #ffa853;
- }
- .details-container .brief-info-left .items .tips {
- font-size: 14px;
- color: #bbb;
- }
- .details-container .activity-details {
- width: 100%;
- margin-top: 20px;
- }
- .details-container .activity-details .details-left {
- width: 30%;
- height: 100%;
- }
- .details-container .activity-details .details-right {
- width: 70%;
- height: 100%;
- margin-left: 20px;
- }
- .details-container .activity-details .details-right .title-tip {
- margin-top: 20px;
- }
- .details-container .title-tip {
- padding: 20px;
- background: #fff;
- }
- .details-container .review-attachment {
- padding: 20px;
- margin-top: 20px;
- background: #fff;
- }
- .details-container .title {
- color: #33aafe;
- font-size: 16px;
- padding-bottom: 15px;
- border-bottom: 1px solid #f6f6f6;
- }
- .details-container .title span {
- color: #ccc;
- font-size: 14px;
- margin-left: 8px;
- }
- .details-container .title-tip .content {
- color: #999;
- font-size: 14px;
- margin-top: 15px;
- }
- .details-container .details-left .review-attachment .attach {
- height: 40px;
- line-height: 40px;
- padding-left: 40px;
- margin-bottom: 14px;
- margin-top: 10px;
- }
- .details-container .details-left .review-attachment .attach a {
- display: inline-block;
- text-decoration: none;
- font-size: 13px;
- color: #555;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- width: 160px;
- text-decoration: underline;
- }
- .details-container .details-left .review-attachment .attachicon-2 {
- background: url("http://hystkj-oss.oss-cn-shenzhen.aliyuncs.com/icon.png") no-repeat;
- }
- .details-container .comment-item {
- line-height: 40px;
- color: #333;
- font-weight:bold;
- border-bottom: 1px solid #f6f6f6;
- }
- .img-box {
- background:url(../../assets/image/lessonCover.png);
- height: 210px
- }
- .img-box .lesson-image {
- display:flex;
- flex-direction:column;
- justify-content:center;
- align-items:center;
- color:#fff;
- font-weight:bold;
- }
- .img-box .state {
- padding: 5px 8px;
- line-height: 20px;
- position: relative;
- left: 0;
- top: 3px;
- z-index: 1;
- background-color: #13ce66;
- color: #fff
- }
- </style>
|