mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
案例
This commit is contained in:
@@ -86,12 +86,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:35px; ">
|
||||
<div style="height:32px; ">
|
||||
<author :avatar="item.authorInfo.avatar" :name="item.authorInfo.name" :info="item.authorInfo.orgInfo" :sex="item.authorInfo.sex"></author>
|
||||
</div>
|
||||
<div class="keyword-text">
|
||||
<span v-if="item.orgDomain">{{ item.orgDomain }}</span>
|
||||
<span v-if="item.majorType">{{ item.majorType }}</span>
|
||||
<span style="color:#666" v-if="item.orgDomain">{{ item.orgDomain }}</span>
|
||||
<span style="color:#666" v-if="item.majorType">{{ item.majorType }}</span>
|
||||
<span v-if="item.keyword1">{{ item.keyword1 }}</span>
|
||||
<span v-if="item.keyword2">{{ item.keyword2 }}</span>
|
||||
<span v-if="item.keyword3">{{ item.keyword3 }}</span>
|
||||
@@ -99,10 +99,10 @@
|
||||
<span v-if="item.keyword5">{{ item.keyword5 }}</span>
|
||||
</div>
|
||||
</router-link>
|
||||
<div class="case-info-summary">
|
||||
<router-link :to="'/case/detail?id='+item.id">
|
||||
<div class="case-info-summary" @click="jumcasedet(item)">
|
||||
<!-- <router-link :to="'/case/detail?id='+item.id"> -->
|
||||
{{displayAll(item)}}
|
||||
</router-link>
|
||||
<!-- </router-link> -->
|
||||
<span style="color:#588afc;cursor:pointer;" v-if="item.summary.length>190" @click.stop="changeIsAll(item)">
|
||||
{{item.isAll?'收起':'展开'}}
|
||||
</span>
|
||||
@@ -146,8 +146,8 @@
|
||||
<img v-if="index===2" :src="`${webBaseUrl}/images/third.png`"/>
|
||||
<span style="margin-left: 10px" v-if="index!=2&&index!=0&&index!=1">{{index+1}}</span>
|
||||
</el-col>
|
||||
<el-tooltip :enterable="false" @click.native="jumpRouter(item)" effect="light" :content="item.sysCreateUname" placement="top-start">
|
||||
<el-col :span="15" style="cursor: pointer;" class="title-line-ellipsis"> {{ item.sysCreateUname }}</el-col>
|
||||
<el-tooltip :enterable="false" effect="light" :content="item.sysCreateUname" placement="top-start">
|
||||
<el-col :span="15" class="title-line-ellipsis"> {{ item.sysCreateUname }}</el-col>
|
||||
</el-tooltip>
|
||||
<!-- <el-col class="center" style="color: #FF8E00;" :span="5">{{ item.score }}</el-col> -->
|
||||
</el-row>
|
||||
@@ -311,6 +311,7 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
this.$nextTick(function() {
|
||||
this.closeSearch();
|
||||
});
|
||||
@@ -345,6 +346,10 @@ export default {
|
||||
window.removeEventListener("scroll", this.handleScroll);
|
||||
},
|
||||
methods: {
|
||||
jumcasedet(item) {
|
||||
this.$router.push({path:'/case/detail',query:{id:item.id}});
|
||||
|
||||
},
|
||||
debounce(func, wait) {
|
||||
// 非立即执行
|
||||
let timeout;
|
||||
@@ -845,6 +850,7 @@ export default {
|
||||
}
|
||||
}
|
||||
.case-info-summary {
|
||||
cursor: pointer;
|
||||
margin-bottom: 5px;
|
||||
word-break: break-all;
|
||||
line-height: 25px;
|
||||
|
||||
Reference in New Issue
Block a user