权限,搜索中心

This commit is contained in:
宋伟佳
2021-07-01 10:51:13 +08:00
parent 75416241a6
commit 9d73280dd6
9 changed files with 68 additions and 52 deletions
+16 -13
View File
@@ -34,8 +34,8 @@
{{ toggleConditionTips }}
</div>
<div class="condition-content">
<div class="condition-item" v-for="(condition, key) of searchOptions" :key="condition.dicId"
v-if="key < 5|| showAllSearchOption">
<div class="condition-item" v-for="(condition, index) of searchOptions" :key="condition.dicId"
v-if=" index < 5 || showAllSearchOption">
<div class="condition-item-title">{{ condition.dictionaryName }}</div>
<ul>
<li v-for="(conditionOpt, optIndex) in condition.menuTypes" :key="conditionOpt.id">
@@ -189,6 +189,7 @@ export default {
selectedOptions: {
list: ["stand"]
},
titleName: ["标准类别", "标准/政策状态", "参与深度", "适用车辆类型","采标程度",],
resultLoading: false,
total: 0,
page: 1,
@@ -214,7 +215,7 @@ export default {
this.$http.post("search/searchCenter/getMenu", {}, {
_this: this
}, res => {
_this.searchOptions = [
_this.searchData = [
{
dicId: "ZYLX",
dictionaryName: "资源类型",
@@ -242,11 +243,15 @@ export default {
]
}
];
_this.searchData = res.data;
for (let i = 0; i < res.data.length; i++) {
if (_this.searchOptions.length >= 6) break;
_this.searchOptions.push(res.data[i]);
}
_this.titleName.forEach(item => {
for (let i = 0; i < res.data.length; i++) {
if (res.data[i].dictionaryName == item) {
_this.searchData.push(res.data[i]);
break;
}
}
});
_this.searchOptions = JSON.parse(JSON.stringify(_this.searchData));
}, e => {
});
},
@@ -267,17 +272,15 @@ export default {
this.AllCheck = true;
//点击全部显示分页
this.AllPage = true;
this.searchOptions = [condition]
this.searchOptions = [condition];
this.searchCondition.selectIndex = ["All"];
this.searchSarByInputKey();
} else {
this.AllPage = false;
this.Allitems = [];
this.AllCheck = false;
for (let i = 0; i < this.searchData.length; i++) {
if (this.searchOptions.length >= 6) break;
this.searchOptions.push(this.searchData[i]);
}
this.searchOptions = [];
this.searchOptions.push(...this.searchData);
}
} else {
this.AllPage = false;