mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
案例
This commit is contained in:
@@ -18,7 +18,11 @@
|
|||||||
<span>工号:{{ authorInfo.code }}</span>
|
<span>工号:{{ authorInfo.code }}</span>
|
||||||
<span>部门:{{ authorInfo.orgInfo }}</span>
|
<span>部门:{{ authorInfo.orgInfo }}</span>
|
||||||
<!-- <span>案例编号:{{ caseDetail.id }}</span> -->
|
<!-- <span>案例编号:{{ caseDetail.id }}</span> -->
|
||||||
<span v-if="caseDetail.sysCreateTime">{{ caseDetail.sysCreateTime.substring(0,10) }}</span>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="label">
|
||||||
|
<span style="margin-left:0px;" v-if="caseDetail.sysCreateTime">{{ caseDetail.sysCreateTime.substring(0,10) }}</span>
|
||||||
<interactBar :data="caseDetail" :type="3" :comments="false" :shares="true"></interactBar>
|
<interactBar :data="caseDetail" :type="3" :comments="false" :shares="true"></interactBar>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -148,6 +152,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
// orginfo:'京东方科技集团股份有限公司/北京中祥英科技有限公司/技术中心/成都开发部',
|
||||||
toUsers:[],
|
toUsers:[],
|
||||||
ankingList:[],
|
ankingList:[],
|
||||||
Popularity:[],
|
Popularity:[],
|
||||||
@@ -164,6 +169,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
//this.pdfPath=this.basePath+'/case/demo1.pdf';
|
//this.pdfPath=this.basePath+'/case/demo1.pdf';
|
||||||
this.resolveId = this.$route.query.id;
|
this.resolveId = this.$route.query.id;
|
||||||
if (this.resolveId) {
|
if (this.resolveId) {
|
||||||
@@ -178,6 +184,14 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// info(){
|
||||||
|
// if(this.orginfo){
|
||||||
|
// let idx=this.orginfo.indexOf('/');
|
||||||
|
// if(idx>-1){
|
||||||
|
// this.orginfo=this.orginfo.substring(idx+1);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
createPlayUrl(u){
|
createPlayUrl(u){
|
||||||
let nowDate=new Date();
|
let nowDate=new Date();
|
||||||
let ctime=parseInt(nowDate.getTime()/1000);
|
let ctime=parseInt(nowDate.getTime()/1000);
|
||||||
@@ -253,7 +267,12 @@ export default {
|
|||||||
getCaseUserDetail() {
|
getCaseUserDetail() {
|
||||||
apiUser.getByIds([this.caseDetail.authorId]).then(res => {
|
apiUser.getByIds([this.caseDetail.authorId]).then(res => {
|
||||||
if (res.status == 200 && res.result.length>0) {
|
if (res.status == 200 && res.result.length>0) {
|
||||||
this.authorInfo = res.result[0];
|
this.authorInfo = res.result[0];
|
||||||
|
console.log(this.authorInfo)
|
||||||
|
let idx=this.authorInfo.orgInfo.indexOf('/');
|
||||||
|
if(idx>-1){
|
||||||
|
this.authorInfo.orgInfo=this.authorInfo.orgInfo.substring(idx+1);
|
||||||
|
}
|
||||||
this.toUsers = [
|
this.toUsers = [
|
||||||
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -78,8 +78,9 @@
|
|||||||
<el-col :span="24" v-for="item in caseList.list" :key="item.id" class="case-list">
|
<el-col :span="24" v-for="item in caseList.list" :key="item.id" class="case-list">
|
||||||
<div class="case-info">
|
<div class="case-info">
|
||||||
<div class="case-info-cont">
|
<div class="case-info-cont">
|
||||||
<div class="case-info-title">
|
|
||||||
<router-link :to="'/case/detail?id='+item.id">
|
<router-link :to="'/case/detail?id='+item.id">
|
||||||
|
<div class="case-info-title">
|
||||||
|
|
||||||
<!-- <span v-if="i % 2 == 0" style="color:red;margin-right:5px">[组织推荐]</span> -->
|
<!-- <span v-if="i % 2 == 0" style="color:red;margin-right:5px">[组织推荐]</span> -->
|
||||||
<div class="case-titdiv">
|
<div class="case-titdiv">
|
||||||
<span class="case-tittext" v-html="item.title"></span>
|
<span class="case-tittext" v-html="item.title"></span>
|
||||||
@@ -88,13 +89,15 @@
|
|||||||
<time-show :time="item.sysCreateTime"></time-show>
|
<time-show :time="item.sysCreateTime"></time-show>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
|
||||||
</div>
|
</div>
|
||||||
|
</router-link>
|
||||||
|
|
||||||
<div style="height:35px; ">
|
<div style="height:35px; ">
|
||||||
<author :avatar="item.authorInfo.avatar" :name="item.authorInfo.name" :info="item.authorInfo.orgInfo" :sex="item.authorInfo.sex"></author>
|
<author :avatar="item.authorInfo.avatar" :name="item.authorInfo.name" :info="item.authorInfo.orgInfo" :sex="item.authorInfo.sex"></author>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<router-link :to="'/case/detail?id='+item.id">
|
||||||
<div class="keyword-text">
|
<div class="keyword-text">
|
||||||
<span v-if="item.keyword1">{{ item.keyword1 }}</span>
|
<span v-if="item.keyword1">{{ item.keyword1 }}</span>
|
||||||
<span v-if="item.keyword2">{{ item.keyword2 }}</span>
|
<span v-if="item.keyword2">{{ item.keyword2 }}</span>
|
||||||
@@ -103,14 +106,19 @@
|
|||||||
<span v-if="item.keyword5">{{ item.keyword5 }}</span>
|
<span v-if="item.keyword5">{{ item.keyword5 }}</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="case-info-summary">
|
<div class="case-info-summary">
|
||||||
<router-link :to="'/case/detail?id='+item.id">
|
|
||||||
{{displayAll(item)}}
|
{{displayAll(item)}}
|
||||||
</router-link>
|
|
||||||
<span style="color:#588afc" v-if="item.summary.length>180" @click.stop="changeIsAll(item)">
|
|
||||||
|
<span style="color:#588afc" v-if="item.summary.length>190" @click.stop="changeIsAll(item)">
|
||||||
|
|
||||||
{{item.isAll?'收起':'展开'}}
|
{{item.isAll?'收起':'展开'}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</router-link>
|
||||||
<div style="display: flex;justify-content: space-between;">
|
<div style="display: flex;justify-content: space-between;">
|
||||||
<div style="margin:8px 0;">
|
<div style="margin:8px 0;">
|
||||||
<interactBar :type="0" :shares="false" :data="item" :readonly="true"></interactBar> </div>
|
<interactBar :type="0" :shares="false" :data="item" :readonly="true"></interactBar> </div>
|
||||||
|
|||||||
Reference in New Issue
Block a user