mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 20:36:43 +08:00
案例
This commit is contained in:
@@ -18,7 +18,11 @@
|
||||
<span>工号:{{ authorInfo.code }}</span>
|
||||
<span>部门:{{ authorInfo.orgInfo }}</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>
|
||||
|
||||
</div>
|
||||
@@ -148,6 +152,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// orginfo:'京东方科技集团股份有限公司/北京中祥英科技有限公司/技术中心/成都开发部',
|
||||
toUsers:[],
|
||||
ankingList:[],
|
||||
Popularity:[],
|
||||
@@ -164,6 +169,7 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
//this.pdfPath=this.basePath+'/case/demo1.pdf';
|
||||
this.resolveId = this.$route.query.id;
|
||||
if (this.resolveId) {
|
||||
@@ -178,6 +184,14 @@ export default {
|
||||
);
|
||||
},
|
||||
methods: {
|
||||
// info(){
|
||||
// if(this.orginfo){
|
||||
// let idx=this.orginfo.indexOf('/');
|
||||
// if(idx>-1){
|
||||
// this.orginfo=this.orginfo.substring(idx+1);
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
createPlayUrl(u){
|
||||
let nowDate=new Date();
|
||||
let ctime=parseInt(nowDate.getTime()/1000);
|
||||
@@ -254,6 +268,11 @@ export default {
|
||||
apiUser.getByIds([this.caseDetail.authorId]).then(res => {
|
||||
if (res.status == 200 && res.result.length>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 = [
|
||||
{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">
|
||||
<div class="case-info">
|
||||
<div class="case-info-cont">
|
||||
<div class="case-info-title">
|
||||
<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> -->
|
||||
<div class="case-titdiv">
|
||||
<span class="case-tittext" v-html="item.title"></span>
|
||||
@@ -88,13 +89,15 @@
|
||||
<time-show :time="item.sysCreateTime"></time-show>
|
||||
</div>
|
||||
</div>
|
||||
</router-link>
|
||||
|
||||
</div>
|
||||
</router-link>
|
||||
|
||||
<div style="height:35px; ">
|
||||
<author :avatar="item.authorInfo.avatar" :name="item.authorInfo.name" :info="item.authorInfo.orgInfo" :sex="item.authorInfo.sex"></author>
|
||||
|
||||
</div>
|
||||
<router-link :to="'/case/detail?id='+item.id">
|
||||
<div class="keyword-text">
|
||||
<span v-if="item.keyword1">{{ item.keyword1 }}</span>
|
||||
<span v-if="item.keyword2">{{ item.keyword2 }}</span>
|
||||
@@ -103,14 +106,19 @@
|
||||
<span v-if="item.keyword5">{{ item.keyword5 }}</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="case-info-summary">
|
||||
<router-link :to="'/case/detail?id='+item.id">
|
||||
|
||||
{{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?'收起':'展开'}}
|
||||
</span>
|
||||
</div>
|
||||
</router-link>
|
||||
<div style="display: flex;justify-content: space-between;">
|
||||
<div style="margin:8px 0;">
|
||||
<interactBar :type="0" :shares="false" :data="item" :readonly="true"></interactBar> </div>
|
||||
|
||||
Reference in New Issue
Block a user