mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
案例
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="back_num">
|
||||
<div class="back_num" v-if="numIsFalse">
|
||||
<div class="search_div_num">
|
||||
当前已检索 <span style="color:#FF4040 ;">
|
||||
{{ caseList.count }}</span> 条数据
|
||||
@@ -197,7 +197,7 @@
|
||||
<div class="case-info-title">
|
||||
<div class="case-titdiv">
|
||||
<div class="case-tittext">
|
||||
<span class="title-line-ellipsis" v-html="item.title"></span>
|
||||
<span :style="{maxWidth:item.excellentTag&&item.viewRankTags.length != 0?'400px':item.viewRankTags.length != 0?'500px':''}" class="title-line-ellipsis" v-html="item.title"></span>
|
||||
</div>
|
||||
<div class="case-activeText">
|
||||
<!-- <span v-if="item.breCommend" class="comWords"
|
||||
@@ -239,11 +239,11 @@
|
||||
<div style="color:#2974D6;font-weight: 450;" v-for="(item, idx) in item.majorType" :key="idx">
|
||||
{{ majorTypeTranslate(item) }}
|
||||
</div>
|
||||
<div v-if="item.keyword1">{{ item.keyword1 }}</div>
|
||||
<div v-if="item.keyword2">{{ item.keyword2 }}</div>
|
||||
<div v-if="item.keyword3">{{ item.keyword3 }}</div>
|
||||
<div v-if="item.keyword4">{{ item.keyword4 }}</div>
|
||||
<div v-if="item.keyword5">{{ item.keyword5 }}</div>
|
||||
<div v-if="item.keyword1 && item.keyword1 != 'null'">{{ item.keyword1 }}</div>
|
||||
<div v-if="item.keyword2 && item.keyword2 != 'null'">{{ item.keyword2 }}</div>
|
||||
<div v-if="item.keyword3 && item.keyword3 != 'null'">{{ item.keyword3 }}</div>
|
||||
<div v-if="item.keyword4 && item.keyword4 != 'null'">{{ item.keyword4 }}</div>
|
||||
<div v-if="item.keyword5 && item.keyword5 != 'null'">{{ item.keyword5 }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </router-link> -->
|
||||
@@ -481,13 +481,14 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
numIsFalse: true,
|
||||
switch: {
|
||||
'total': '总',
|
||||
'quarter': '季度',
|
||||
},
|
||||
favorableName: '季度',
|
||||
popularityName: '季度',
|
||||
pubTimeNum: 0,
|
||||
pubTimeNum: 1,
|
||||
pageViewNum: 0,
|
||||
twoId:'',
|
||||
treeList:[],
|
||||
@@ -1247,18 +1248,27 @@ export default {
|
||||
this.search(true);
|
||||
},
|
||||
searchexcellent(num) {
|
||||
if(this.queryCondition.type==num){
|
||||
this.queryCondition.excellent =false;
|
||||
this.queryCondition.type = '';
|
||||
this.search(true)
|
||||
return
|
||||
}
|
||||
this.pubTimeNum = 0
|
||||
this.pageViewNum = 0
|
||||
this.queryCondition.orderField = ''
|
||||
this.queryCondition.orderAsc = ''
|
||||
// if(this.queryCondition.type==num){
|
||||
// this.queryCondition.excellent =false;
|
||||
// this.queryCondition.type = '';
|
||||
// this.search(true)
|
||||
// return
|
||||
// }
|
||||
this.queryCondition.excellent =false;
|
||||
this.queryCondition.type = num;
|
||||
if(num == 'excellent'){
|
||||
this.queryCondition.excellent =true;
|
||||
this.queryCondition.type = num;
|
||||
}
|
||||
if(num == 'all'){
|
||||
this.pubTimeNum = 1
|
||||
this.queryCondition.orderField = 'sysCreateTime'
|
||||
this.queryCondition.orderAsc = false
|
||||
}
|
||||
this.search(true);
|
||||
// this.getCaseData();
|
||||
},
|
||||
@@ -1418,6 +1428,7 @@ export default {
|
||||
this.moreState = 2;
|
||||
// this.queryCondition.pubTimeNum = this.pubTimeNum
|
||||
// this.queryCondition.pageViewNum = this.pageViewNum
|
||||
this.numIsFalse = true
|
||||
if(this.queryCondition.type == 'collect'){
|
||||
const params = {
|
||||
pageIndex:this.queryCondition.pageIndex,
|
||||
@@ -1446,6 +1457,9 @@ export default {
|
||||
// 给所有的赋值
|
||||
this.caseList.count = res.result.count;
|
||||
this.caseList.showPagCount = res.result.count;
|
||||
setTimeout(() => {
|
||||
this.numIsFalse = false
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1479,6 +1493,9 @@ export default {
|
||||
// 给所有的赋值
|
||||
this.caseList.count = res.result.count;
|
||||
this.caseList.showPagCount = res.result.count;
|
||||
setTimeout(() => {
|
||||
this.numIsFalse = false
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1513,6 +1530,9 @@ export default {
|
||||
// 给所有的赋值
|
||||
this.caseList.count = res.result.count;
|
||||
this.caseList.showPagCount = res.result.count;
|
||||
setTimeout(() => {
|
||||
this.numIsFalse = false
|
||||
}, 3000);
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
@@ -2382,9 +2402,13 @@ export default {
|
||||
border-radius: 4px;
|
||||
// background: #04243C;
|
||||
&:hover{
|
||||
background: #387DF7;
|
||||
// background: #387DF7;
|
||||
border: 1px solid #387DF7;
|
||||
.text{
|
||||
color: #fff;
|
||||
// color: #fff;
|
||||
}
|
||||
.png{
|
||||
background: url('../../../assets/images/case/Frame(17).png') no-repeat;
|
||||
}
|
||||
}
|
||||
.png{
|
||||
@@ -2423,7 +2447,7 @@ export default {
|
||||
.png{
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: url('../../../../public/images/browse.png') no-repeat;
|
||||
background: url('../../../assets/images/case/Frame(17).png') no-repeat;
|
||||
background-size: 100%;
|
||||
margin-right: 9px;
|
||||
}
|
||||
@@ -2443,9 +2467,13 @@ export default {
|
||||
border-radius: 4px;
|
||||
// background: #04243C;
|
||||
&:hover{
|
||||
background: #387DF7;
|
||||
// background: #387DF7;
|
||||
border: 1px solid #387DF7;
|
||||
.text{
|
||||
color: #fff;
|
||||
// color: #fff;
|
||||
}
|
||||
.png{
|
||||
background: url('../../../assets/images/case/Frame(4).png') no-repeat;
|
||||
}
|
||||
}
|
||||
.png{
|
||||
@@ -2484,7 +2512,7 @@ export default {
|
||||
.png{
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: url('../../../../public/images/collect.png') no-repeat;
|
||||
background: url('../../../assets/images/case/Frame(4).png') no-repeat;
|
||||
background-size: 100%;
|
||||
margin-right: 9px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user