mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -142,32 +142,32 @@ const exportPdfPre=function (data){
|
||||
* */
|
||||
const exportPdf=function (udata){
|
||||
// return ajax.postJson(baseURL,'/xboe/subgroup/m/noteinfo/exportPdf',data);
|
||||
//return ajax.post(baseURL,'/xboe/subgroup/m/noteinfo/exportPdf',data);
|
||||
var url = baseURL + '/xboe/subgroup/m/noteinfo/exportPdf';
|
||||
axios({
|
||||
method: 'POST',
|
||||
url: url,
|
||||
data:udata,
|
||||
responseType: 'blob',
|
||||
headers: { 'XBOE-Access-Token':getToken(),'Content-Type':'application/pdf;charset=utf-8'}
|
||||
}).then(res => {
|
||||
//resolveBlob(res, mimeMap.zip);
|
||||
console.log(res);
|
||||
const aLink = document.createElement('a')
|
||||
var blob = new Blob([res.request.response], { type: 'application/pdf' })
|
||||
return ajax.postJson(baseURL,'/xboe/subgroup/m/noteinfo/expPdf',udata);
|
||||
// var url = baseURL + '/xboe/subgroup/m/noteinfo/exportPdf';
|
||||
// axios({
|
||||
// method: 'POST',
|
||||
// url: url,
|
||||
// data:udata,
|
||||
// responseType: 'blob',
|
||||
// headers: { 'XBOE-Access-Token':getToken(),'Content-Type':'application/pdf;charset=utf-8'}
|
||||
// }).then(res => {
|
||||
// //resolveBlob(res, mimeMap.zip);
|
||||
// console.log(res);
|
||||
// const aLink = document.createElement('a')
|
||||
// var blob = new Blob([res.request.response], { type: 'application/pdf' })
|
||||
// //从response的headers中获取filename, 后端response.setHeader("Content-disposition", "attachment; filename=xxxx.docx") 设置的文件名;
|
||||
//var patt = new RegExp('filename=([^;]+\\.[^\\.;]+);*')
|
||||
//var contentDisposition = decodeURI(res.headers['content-disposition'])
|
||||
//var result = patt.exec(contentDisposition)
|
||||
//var fileName = result[1]
|
||||
//fileName = fileName.replace(/\"/g, '')
|
||||
aLink.href = URL.createObjectURL(blob)
|
||||
aLink.setAttribute('download','我的笔记.pdf') // 设置下载文件名称
|
||||
document.body.appendChild(aLink)
|
||||
aLink.click()
|
||||
document.body.removeChild(aLink)
|
||||
// aLink.href = URL.createObjectURL(blob)
|
||||
// aLink.setAttribute('download','我的笔记.pdf') // 设置下载文件名称
|
||||
// document.body.appendChild(aLink)
|
||||
// aLink.click()
|
||||
// document.body.removeChild(aLink)
|
||||
|
||||
})
|
||||
// })
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,11 @@
|
||||
<div class="share-time">{{ item.time }}</div>
|
||||
</div>
|
||||
<div class="coures-content">
|
||||
<span>【文章】</span>{{item.title}}
|
||||
<div style="width: 100%;">【文章】{{item.title}}</div>
|
||||
<div style="color: #999999;font-size: 12px;font-weight: normal; cursor: pointer;width: 50px;" v-if="!item.isRead&&type=='myShare'" @click.stop="deleteshares(item)">
|
||||
<svg-icon icon-class="withdraw" style="margin-right: 5px;font-size: 14px;" ></svg-icon>
|
||||
撤回
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 旧版 -->
|
||||
@@ -130,12 +134,15 @@ export default {
|
||||
width: 100%;
|
||||
padding: 30px 0;
|
||||
border-bottom:1px solid #e9e9e9 ;
|
||||
|
||||
.coures-content{
|
||||
margin-top: 20px;
|
||||
font-size: 16px;
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
word-break:break-all;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
span{
|
||||
font-size: 16px;
|
||||
margin-left: -9px;
|
||||
@@ -143,10 +150,12 @@ export default {
|
||||
}
|
||||
.coures-head{
|
||||
display: flex;
|
||||
|
||||
.share-name{
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
margin-right: 17px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.share-time{
|
||||
font-size: 14px;
|
||||
|
||||
@@ -14,7 +14,10 @@
|
||||
<div class="share-time">{{ item.time }}</div>
|
||||
</div>
|
||||
<div class="coures-content">
|
||||
<span>【案例】</span>{{item.title}}
|
||||
<div style="width: 100%;">【案例】{{item.title}}</div>
|
||||
<div v-if="!item.isRead&&type=='myShare'" @click.stop="deleteshares(item)" style="color: #999999;font-size: 12px;font-weight: normal;width: 50px;">
|
||||
<svg-icon icon-class="withdraw" style="margin-right: 5px;font-size: 14px;" ></svg-icon>
|
||||
撤回</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -122,6 +125,8 @@ export default {
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
word-break:break-all;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
span{
|
||||
font-size: 16px;
|
||||
margin-left: -9px;
|
||||
|
||||
@@ -161,7 +161,6 @@ export default {
|
||||
//$this.controlHeight=h-
|
||||
this.listHeight=val-95;
|
||||
this.inputHeight=(val-220);
|
||||
|
||||
this.inputRows=parseInt(this.inputHeight/30);
|
||||
if(this.inputRows>20){
|
||||
this.inputRows=20;
|
||||
@@ -492,6 +491,8 @@ export default {
|
||||
|
||||
.newcote-text {
|
||||
// margin-top: 24px;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
height: 100%;
|
||||
@@ -560,15 +561,12 @@ export default {
|
||||
.mynote-tab {
|
||||
width: 180px;
|
||||
margin-top: 17px;
|
||||
|
||||
display: flex;
|
||||
|
||||
div {
|
||||
font-size: 16px;
|
||||
color: #666666;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.noteactive span {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
|
||||
@@ -14,7 +14,10 @@
|
||||
<div class="share-time">{{ item.time }}</div>
|
||||
</div>
|
||||
<div class="coures-content">
|
||||
<span>【课程】</span>{{item.title}}
|
||||
<div style="width: 100%;">【课程】{{item.title}}</div>
|
||||
<div v-if="!item.isRead&&type=='myShare'" @click.stop="deleteshares(item)" style="color: #999999;font-size: 12px;font-weight: normal;width: 50px;">
|
||||
<svg-icon icon-class="withdraw" style="margin-right: 5px;font-size: 14px;" ></svg-icon>
|
||||
撤回</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -167,6 +170,8 @@ export default {
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
word-break:break-all;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
span{
|
||||
font-size: 16px;
|
||||
margin-left: -9px;
|
||||
|
||||
@@ -143,6 +143,7 @@
|
||||
|
||||
<style scoped>
|
||||
.follow-btn{
|
||||
cursor: pointer;
|
||||
/* margin-top: 18px;
|
||||
height: 40px;
|
||||
width: 140px; */
|
||||
|
||||
@@ -100,12 +100,11 @@
|
||||
if(!data.contentId){
|
||||
return;
|
||||
}
|
||||
console.log(data.info,'data.info')
|
||||
if(!data.info.enabled || data.info.deleted){
|
||||
this.$message.warning("此课程已停用或已删除");
|
||||
return;
|
||||
}
|
||||
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
|
||||
this.$router.push({ path: '/course/studyindex?id=', query: { id: data.contentId } });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.pageId = this.$xpage.getHomeId(this.$route);
|
||||
this.sex = this.userInfo.sex;
|
||||
// 判断路由是进入的学员默认页面就重置setCurIdentity
|
||||
@@ -131,6 +132,7 @@
|
||||
if(this.pageId !== this.userInfo.aid) {
|
||||
this.followHas();
|
||||
}
|
||||
|
||||
},
|
||||
methods:{
|
||||
cancelFollow() {
|
||||
@@ -350,6 +352,7 @@
|
||||
}
|
||||
}
|
||||
.content-one-info{
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
line-height: 30px;
|
||||
width: 80px;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="comment" v-for="(com,comIdx) in list" :key="com.id">
|
||||
<div class="comment-top">
|
||||
<div class="comment-author">
|
||||
<authorInfo :avatar="com.avatar" :name="com.name" :sex="com.sex" :info="com.orgInfo" :sign="com.sign"></authorInfo>
|
||||
<authorInfo :avatar="com.avatar" :name="com.name" :sex="com.sex" :info="com.orgInfo" :sign="com.sign" :aid="com.sysCreateAid"></authorInfo>
|
||||
</div>
|
||||
</div>
|
||||
<div class="comment-body" >
|
||||
@@ -47,7 +47,7 @@
|
||||
<div class="comment" v-for="(reply,replyIdx) in com.replyList" :key="reply.id" v-if="com.showAll || replyIdx<3" :class="replyIdx===com.replyList.length-1 ? 'comment-last' : ''">
|
||||
<div class="comment-top">
|
||||
<div class="comment-author">
|
||||
<authorInfo :avatar="reply.avatar" :name="reply.sysCreateBy" :sex="reply.sex" :info="reply.orgInfo" :sign="reply.sign"></authorInfo>
|
||||
<authorInfo :avatar="reply.avatar" :aid="reply.sysCreateAid" :name="reply.sysCreateBy" :sex="reply.sex" :info="reply.orgInfo" :sign="reply.sign"></authorInfo>
|
||||
<span style="margin-left: 10px;color: #8590A6;font-size:14px; ">
|
||||
<!-- <svg-icon style="font-size: 10px;margin-right: 0;" icon-class="triangle"></svg-icon> -->
|
||||
<span>回复了</span>
|
||||
|
||||
@@ -14,7 +14,10 @@
|
||||
<div class="share-time">{{ item.time }}</div>
|
||||
</div>
|
||||
<div class="coures-content">
|
||||
<span>【问答】</span>{{item.title}}
|
||||
<div style="width: 100%;">【问答】{{item.title}}</div>
|
||||
<div v-if="!item.isRead&&type=='myShare'" @click.stop="deleteshares(item)" style="color: #999999;font-size: 12px;font-weight: normal;width: 50px;">
|
||||
<svg-icon icon-class="withdraw" style="margin-right: 5px;font-size: 14px;" ></svg-icon>
|
||||
撤回</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 旧版 -->
|
||||
@@ -137,6 +140,8 @@ export default {
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
word-break:break-all;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
span{
|
||||
font-size: 16px;
|
||||
margin-left: -9px;
|
||||
|
||||
@@ -128,6 +128,9 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
//this.orgInfo=cutFullName(testName,1);
|
||||
this.orgInfo=cutFullName(this.userInfo.departFullName,1);
|
||||
this.loadUserStat();
|
||||
this.$bus.$on('u-Currency',(num)=>{
|
||||
this.statData.uvalue = num;
|
||||
})
|
||||
|
||||
},
|
||||
methods:{
|
||||
|
||||
12
src/icons/svg/withdraw.svg
Normal file
12
src/icons/svg/withdraw.svg
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="19px" height="18px" viewBox="0 0 19 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>编组 19</title>
|
||||
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="我分享的" transform="translate(-1721.000000, -465.000000)" stroke-width="2">
|
||||
<g id="编组-19" transform="translate(1721.644444, 465.000000)">
|
||||
<path d="M2.6077919,5.0612599 L12.0876493,5.39622409 C14.7185321,5.48918451 16.8032826,7.64889926 16.8032826,10.2814239 C16.8032826,12.8874215 14.6907041,15 12.0847064,15 L4.93033545,15 L4.93033545,15" id="路径-76" stroke="#999999"></path>
|
||||
<polyline id="路径-77" stroke="#979797" points="6.36367768 1 2 5.8476065 6.36367768 9.03062995"></polyline>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 901 B |
@@ -59,7 +59,6 @@
|
||||
<p class="ranking-title">贡献榜</p>
|
||||
<ul class="ranking-data">
|
||||
<li class="index-one-line-ellipsis" v-for="(item, index) in ankingList" :key="index" style="margin-top:30px;line-height: 22px;cursor: pointer;">
|
||||
<router-link :to="'article/detail?id=' + item.id">
|
||||
<span class="portal-right-text orange-one" v-if="index==0" style="margin-right:20px">
|
||||
<img :src="`${webBaseUrl}/images/list-01.png`" alt="">
|
||||
</span>
|
||||
@@ -76,7 +75,6 @@
|
||||
<img :src="`${webBaseUrl}/images/list05.png`" alt="">
|
||||
</span>
|
||||
<span class="portal-title-desc">{{ item.sysCreateUname }} <span class="orinfo-text"> {{ item.orinfo }}</span> </span>
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -541,6 +541,7 @@
|
||||
apiStat.getUserStatTotalInfo(this.userInfo.aid).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.uinfo.uCurrency = res.result.uvalue;
|
||||
this.$bus.$emit('u-Currency',res.result.uvalue)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user