Commit e2694620 authored by zhangyanni's avatar zhangyanni

重置

parent ca75e02b
...@@ -48,7 +48,9 @@ ...@@ -48,7 +48,9 @@
</ul> </ul>
</mt-loadmore> </mt-loadmore>
<noData v-if="hasData" :nodata="true"></noData> <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> </div>
</template> </template>
...@@ -56,11 +58,13 @@ ...@@ -56,11 +58,13 @@
import api from '../../views/bigbusiness/api/api'; import api from '../../views/bigbusiness/api/api';
import noData from '../../views/mobile/searchempty'; import noData from '../../views/mobile/searchempty';
import selectScreen from '../../views/mobile/selectScreen' import selectScreen from '../../views/mobile/selectScreen'
import selectScreenProject from '../../views/mobile/proselectScreen'
export default { export default {
name: "searchList", name: "searchList",
components:{ components:{
noData, noData,
selectScreen selectScreen,
selectScreenProject
}, },
props:{ props:{
isMargin:{ isMargin:{
...@@ -79,6 +83,7 @@ ...@@ -79,6 +83,7 @@
allLoaded:false, allLoaded:false,
flags:false, flags:false,
stateData:{}, stateData:{},
stateProjectData:{},
fullscreenLoading:false, fullscreenLoading:false,
whichTab:0, whichTab:0,
isSelect:false, isSelect:false,
...@@ -91,8 +96,14 @@ ...@@ -91,8 +96,14 @@
this.stateData = val; this.stateData = val;
this.page = 1; this.page = 1;
this.fullscreenLoading = true; this.fullscreenLoading = true;
if(this.$route.query.tab==1) this.getProjectList(); this.getInitList();
else if(this.$route.query.tab==2||this.isMargin) this.getInitList(); },
groupdataProject(val){
this.stateProjectData = val;
this.page = 1;
this.fullscreenLoading = true;
this.getProjectList();
}, },
isScreenVisible(data){ isScreenVisible(data){
...@@ -101,14 +112,14 @@ ...@@ -101,14 +112,14 @@
getProjectList(param){ getProjectList(param){
if(!this.isMargin){ 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 = { let params = {
pagination:{ pagination:{
numberOfPages:this.page, numberOfPages:this.page,
number:this.pageSize number:this.pageSize
}, },
search: this.stateData search: this.stateProjectData
}; };
this.fullscreenLoading = true; this.fullscreenLoading = true;
api.selectProjectAxios(params).then(res => { api.selectProjectAxios(params).then(res => {
...@@ -251,6 +262,12 @@ ...@@ -251,6 +262,12 @@
globalMsg.$on("isShowScreen",(data)=>{ globalMsg.$on("isShowScreen",(data)=>{
this.isSelect = data; this.isSelect = data;
}) })
document.addEventListener('touchmove', function (event) {
event.preventDefault();
}, false);
document.addEventListener('touchmove', function (event) {
window.event.returnValue = false;
}, false);
}, },
} }
</script> </script>
......
...@@ -194,6 +194,7 @@ ...@@ -194,6 +194,7 @@
this.projectstateSet(); this.projectstateSet();
this.cooperationwaySet(); this.cooperationwaySet();
this.selectBigBusinessLevelOneSet(); 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