|
|
@@ -13,7 +13,7 @@
|
|
|
<div class="search-nav">
|
|
|
<div id="search-block " class="">
|
|
|
<el-tabs v-model="searchType" type="card" @tab-click="handleTypeClick">
|
|
|
- <el-tab-pane v-for="item in tabArr" :label="item.label" :name="item.name" :key="item.label"></el-tab-pane>
|
|
|
+ <el-tab-pane v-for="item in searchTabArr" :label="item.label" :name="item.name" :key="item.label"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<div class="search-input">
|
|
|
<el-input placeholder="请输入内容" v-model="searchVal" class="input-with-select" ref="searchInput">
|
|
|
@@ -57,8 +57,8 @@
|
|
|
</el-pagination>
|
|
|
</el-col>
|
|
|
<el-col :span="6" class="popular-modules" style="padding-left: 15px">
|
|
|
- <PopularProject :hotCrowdTestProjectVOs="hotCrowdTestProjectVOs" style="margin-bottom: 15px"/>
|
|
|
- <PopularTask :hotCrowdTaskVOs="hotCrowdTaskVOs"/>
|
|
|
+ <PopularProject :hotCrowdTestProjectVOs="hotCrowdTestProjectVOs" style="margin-bottom: 15px" v-if="SQUARE_DISPLAY.popular_project"/>
|
|
|
+ <PopularTask :hotCrowdTaskVOs="hotCrowdTaskVOs" v-if="SQUARE_DISPLAY.popular_task"/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -74,27 +74,21 @@
|
|
|
import PopularTask from './PopularTask'
|
|
|
import {storageGet} from '@/js/index.js'
|
|
|
import {notify} from "../../constants";
|
|
|
- import {logoTitle} from "../../config";
|
|
|
+ import {logoTitle,square_searchTabArr,square_menuArr,square_searchType,square_currTab,SQUARE_DISPLAY} from "../../config";
|
|
|
|
|
|
export default {
|
|
|
name: 'Square2.0',
|
|
|
data(){
|
|
|
return {
|
|
|
logoTitle,
|
|
|
+ SQUARE_DISPLAY,
|
|
|
user: {},
|
|
|
isLogin: false,
|
|
|
- searchType:'project',
|
|
|
+ searchType:square_searchType,
|
|
|
searchVal: '',
|
|
|
- currTab:'squareHome',
|
|
|
- tabArr : [
|
|
|
- {label:"项目",name:"project"},
|
|
|
- {label:"任务",name:"task"}
|
|
|
- ],
|
|
|
- menuArr: [
|
|
|
- {label:"首页",name:"squareHome"},
|
|
|
- {label:"测试项目",name:"project"},
|
|
|
- {label:"测试任务",name:"task"}
|
|
|
- ],
|
|
|
+ currTab:square_currTab,
|
|
|
+ searchTabArr : square_searchTabArr,
|
|
|
+ menuArr: square_menuArr,
|
|
|
projectAndTaskArr:[],
|
|
|
type: 0,
|
|
|
hotCrowdTestProjectVOs:[],
|
|
|
@@ -136,6 +130,7 @@
|
|
|
},
|
|
|
handleTypeClick(tab){
|
|
|
this.searchType = tab.name;
|
|
|
+ this.currTab = tab.name;
|
|
|
this.activePage = 1;
|
|
|
this.$refs.searchInput.focus()
|
|
|
},
|