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:
@@ -35,7 +35,7 @@
|
||||
<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>
|
||||
<el-row><comments @success="success" v-if="resolveId != ''" :obj-type="3" :obj-id="resolveId" :authorId="caseDetail.sysCreateAid" :toUsers="toUsers"></comments></el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -143,7 +143,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
ankingList:[],
|
||||
toUsers:[],
|
||||
ankingList:[],
|
||||
Popularity:[],
|
||||
Positive:[],
|
||||
resolveId: '',
|
||||
@@ -215,16 +216,11 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
getCaseData() {
|
||||
apiCase.detail(this.resolveId,true).then(res => {
|
||||
if (res.status == 200) {
|
||||
|
||||
if (JSON.stringify(res.result) != '{}') {
|
||||
this.caseDetail = res.result;
|
||||
console.log(this.caseDetail.filePath)
|
||||
this.getCaseUserDetail();
|
||||
if(this.caseDetail.filePath){
|
||||
this.pdfPath=this.basePath+this.caseDetail.filePath;
|
||||
@@ -240,6 +236,9 @@ export default {
|
||||
apiUser.getByIds([this.caseDetail.sysCreateAid]).then(res => {
|
||||
if (res.status == 200 && res.result.length>0) {
|
||||
this.authorInfo = res.result[0];
|
||||
this.toUsers = [
|
||||
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
||||
];
|
||||
//console.log(res.result,'res.result');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user