Commit e2694620 authored by zhangyanni's avatar zhangyanni

重置

parent ca75e02b
......@@ -48,7 +48,9 @@
</ul>
</mt-loadmore>
<noData v-if="hasData" :nodata="true"></noData>
<selectScreen v-if="isVisible" @active="groupdata"></selectScreen>
<selectScreen v-if="isVisible&&$route.query.tab==2" @active="groupdata"></selectScreen>
<selectScreenProject v-if="isVisible&&$route.query.tab==1" @active="groupdataProject"></selectScreenProject>
</div>
</template>
......@@ -56,11 +58,13 @@
import api from '../../views/bigbusiness/api/api';
import noData from '../../views/mobile/searchempty';
import selectScreen from '../../views/mobile/selectScreen'
import selectScreenProject from '../../views/mobile/proselectScreen'
export default {
name: "searchList",
components:{
noData,
selectScreen
selectScreen,
selectScreenProject
},
props:{
isMargin:{
......@@ -79,6 +83,7 @@
allLoaded:false,
flags:false,
stateData:{},
stateProjectData:{},
fullscreenLoading:false,
whichTab:0,
isSelect:false,
......@@ -91,8 +96,14 @@
this.stateData = val;
this.page = 1;
this.fullscreenLoading = true;
if(this.$route.query.tab==1) this.getProjectList();
else if(this.$route.query.tab==2||this.isMargin) this.getInitList();
this.getInitList();
},
groupdataProject(val){
this.stateProjectData = val;
this.page = 1;
this.fullscreenLoading = true;
this.getProjectList();
},
isScreenVisible(data){
......@@ -101,14 +112,14 @@
getProjectList(param){
if(!this.isMargin){
this.stateData.context = window.sessionStorage.getItem("keyword")?window.sessionStorage.getItem("keyword"):undefined;
this.stateProjectData.context = window.sessionStorage.getItem("keyword")?window.sessionStorage.getItem("keyword"):undefined;
}
let params = {
pagination:{
numberOfPages:this.page,
number:this.pageSize
},
search: this.stateData
search: this.stateProjectData
};
this.fullscreenLoading = true;
api.selectProjectAxios(params).then(res => {
......@@ -251,6 +262,12 @@
globalMsg.$on("isShowScreen",(data)=>{
this.isSelect = data;
})
document.addEventListener('touchmove', function (event) {
event.preventDefault();
}, false);
document.addEventListener('touchmove', function (event) {
window.event.returnValue = false;
}, false);
},
}
</script>
......
......@@ -194,6 +194,7 @@
this.projectstateSet();
this.cooperationwaySet();
this.selectBigBusinessLevelOneSet();
this.resetClik();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment