mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提交修改
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<span>工号:{{ authorInfo.code }}</span>
|
||||
<span>部门:{{ authorInfo.orgInfo }}</span>
|
||||
<!-- <span>案例编号:{{ caseDetail.id }}</span> -->
|
||||
<span>{{ caseDetail.sysCreateTime.substring(0,10) }}</span>
|
||||
<span v-if="caseDetail.sysCreateTime">{{ caseDetail.sysCreateTime.substring(0,10) }}</span>
|
||||
<interactBar :views="false" :data="caseDetail" :type="3" :comments="false" :shares="false"></interactBar>
|
||||
</div>
|
||||
<div class="btn-div">
|
||||
@@ -31,7 +31,7 @@
|
||||
<!-- <div class="content">
|
||||
{{ caseDetail.content }}
|
||||
</div> -->
|
||||
<pdfPreview :filePath="basePath+caseDetail.filePath"></pdfPreview>
|
||||
<pdfPreview v-if="pdfPath" :filePath="pdfPath"></pdfPreview>
|
||||
</el-card>
|
||||
<!-- :authorId="articleDetailData.sysCreateAid" -->
|
||||
<el-row><comments @success="success" v-if="resolveId != ''" :obj-type="3" :obj-id="resolveId" :authorId="caseDetail.sysCreateAid"></comments></el-row>
|
||||
@@ -70,7 +70,7 @@
|
||||
import { mapGetters } from 'vuex';
|
||||
import portalHeader from '@/components/PortalHeader.vue';
|
||||
import portalFooter from '@/components/PortalFooter.vue';
|
||||
import pdfPreview from '@/components/PdfPreview/index.vue';
|
||||
import pdfPreview from '@/components/PdfPreview/view.vue';
|
||||
|
||||
import interactBar from '@/components/Portal/interactBar.vue';
|
||||
import comments from '@/components/Portal/comments.vue';
|
||||
@@ -88,6 +88,7 @@ export default {
|
||||
return {
|
||||
resolveId: '',
|
||||
basePath:process.env.VUE_APP_FILE_BASE_URL,
|
||||
pdfPath:'',
|
||||
caseDetail: {
|
||||
id:'',
|
||||
filePath:''
|
||||
@@ -124,8 +125,9 @@ export default {
|
||||
},
|
||||
getCaseUserDetail() {
|
||||
apiUser.getByIds([this.caseDetail.sysCreateAid]).then(res => {
|
||||
if (res.status == 200) {
|
||||
if (res.status == 200 && res.result.length>0) {
|
||||
this.authorInfo = res.result[0];
|
||||
//console.log(res.result,'res.result');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user