This commit is contained in:
lmj
2022-06-08 19:13:28 +08:00
parent 4dbce900e3
commit d5cfca7cb7
2 changed files with 34 additions and 7 deletions

View File

@@ -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}
];