mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal into online
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="searBox" v-if="speciData.length > 15">
|
<div class="searBox" v-if="searchwd">
|
||||||
<el-button type="text" id="closeSearchBtn" @click="closeSearch">
|
<el-button type="text" id="closeSearchBtn" @click="closeSearch">
|
||||||
{{word}}
|
{{word}}
|
||||||
<i :class="showAll ? 'el-icon-arrow-up ': 'el-icon-arrow-down'"></i>
|
<i :class="showAll ? 'el-icon-arrow-up ': 'el-icon-arrow-down'"></i>
|
||||||
@@ -281,8 +281,9 @@ export default {
|
|||||||
speciData:[],
|
speciData:[],
|
||||||
moreState: 1, // 1 加载更多 2 加载中 3无数据
|
moreState: 1, // 1 加载更多 2 加载中 3无数据
|
||||||
isSeach: false,
|
isSeach: false,
|
||||||
searchwd: true,
|
searchwd: false,
|
||||||
showAll: true, //是否展开全部
|
showAll: true, //是否展开全部
|
||||||
|
initHeight:40,//原始 高度
|
||||||
searchRecords: [],
|
searchRecords: [],
|
||||||
caseList: {
|
caseList: {
|
||||||
count: 0,
|
count: 0,
|
||||||
@@ -326,9 +327,9 @@ export default {
|
|||||||
this.queryCondition.orgDomain = null;
|
this.queryCondition.orgDomain = null;
|
||||||
};
|
};
|
||||||
this.specialized();
|
this.specialized();
|
||||||
this.$nextTick(function() {
|
// this.$nextTick(function() {
|
||||||
this.closeSearch();
|
// this.closeSearch();
|
||||||
});
|
// });
|
||||||
if (!this.portalCase.readProtocol) {
|
if (!this.portalCase.readProtocol) {
|
||||||
this.protocolDialogVisible = true;
|
this.protocolDialogVisible = true;
|
||||||
}
|
}
|
||||||
@@ -362,9 +363,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
specialized(){
|
specialized(){
|
||||||
|
let $this=this;
|
||||||
apiCase.majorTypes().then(res =>{
|
apiCase.majorTypes().then(res =>{
|
||||||
if(res.status == 200){
|
if(res.status == 200){
|
||||||
this.speciData = res.result
|
this.speciData = res.result;
|
||||||
|
this.$nextTick(function() {
|
||||||
|
$this.initHeight = document.getElementById("searchBox").offsetHeight;
|
||||||
|
$this.closeSearch();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -399,17 +405,18 @@ export default {
|
|||||||
closeSearch() {
|
closeSearch() {
|
||||||
this.showAll = !this.showAll;
|
this.showAll = !this.showAll;
|
||||||
var searchBoxHeght = document.getElementById("searchBox");
|
var searchBoxHeght = document.getElementById("searchBox");
|
||||||
var searchBoxWidth = document.getElementById("searchBox");
|
//console.log(this.initHeight,'this.initHeight');
|
||||||
if (searchBoxWidth.clientWidth > 950) {
|
if(this.initHeight>80){
|
||||||
this.searchwd = false;
|
this.searchwd = true;
|
||||||
}
|
}
|
||||||
if (this.showAll == false) {
|
//console.log(het,'het');
|
||||||
searchBoxHeght.style.height = 40 + "px";
|
if(this.showAll){
|
||||||
} else {
|
//searchBoxHeght.style.height = "auto";
|
||||||
searchBoxHeght.style.height = "auto";
|
searchBoxHeght.style.maxHeight = this.initHeight + "px";
|
||||||
|
}else{
|
||||||
|
searchBoxHeght.style.maxHeight = 70 + "px";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAnkingData() {
|
getAnkingData() {
|
||||||
apiCase.usernameList(5).then(res => {
|
apiCase.usernameList(5).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
@@ -781,6 +788,7 @@ export default {
|
|||||||
}
|
}
|
||||||
#searchBox {
|
#searchBox {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
}
|
}
|
||||||
.ranking-title {
|
.ranking-title {
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
|
|||||||
Reference in New Issue
Block a user