mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 12:56: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);
|
||||
@@ -253,7 +267,12 @@ export default {
|
||||
getCaseUserDetail() {
|
||||
apiUser.getByIds([this.caseDetail.authorId]).then(res => {
|
||||
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 = [
|
||||
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user