Commit 4a469f75 authored by lixy's avatar lixy

分公司入股

parent 51627703
......@@ -34,7 +34,7 @@ export const constantRouterMap = [{
},
{
path: '/stockCrowd',
component: _import('baseInfo/stockCrowd/index'),
component: _import('baseInfo/stockCrowd/stockCrowd'),
name: '分公司入股',
hidden: true
// authority: 'stockCrowd'
......
......@@ -12,9 +12,11 @@
<el-form-item style="margin-bottom: 3px;">
<el-select class="filter-item" style="width: 70%;margin-right: 10px;" v-model="listQuery.addrProvince"
placeholder="请选择省份(直辖市)" @change='getValue'>
<el-option :key="undefined" label="无" :value="undefined"></el-option>
<el-option v-for="item in provinceRegions" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
<el-select class="filter-item" v-model="listQuery.addrCity" placeholder="请选择城市">
<el-option :key="undefined" label="无" :value="undefined"></el-option>
<el-option v-for="item in cityRegions4Query" :key="item.id" :label="item.name"
:value="item.id"></el-option>
</el-select>
......@@ -22,6 +24,7 @@
<el-form-item style="margin-bottom: 3px;">
<el-select class="filter-item" style="width: 70%;margin-right: 10px;" v-model="listQuery.priceStart"
placeholder="股价" @change='getStartValue'>
<el-option :key="undefined" label="无" :value="undefined"></el-option>
<el-option v-for="item in allStockPrice" :key="item.id" :label="item.name" :value="item"></el-option>
</el-select>
<!-- <el-select class="filter-item" v-model="listQuery.priceEnd" placeholder="结束股价" @change='getEndValue'>-->
......@@ -169,6 +172,7 @@
addrTown: undefined
},
inline: true,
send: !1,//是否已发送请求
}
},
computed: {
......@@ -285,10 +289,10 @@
console.log("scroll");
let isLoading = false;
window.onscroll = () => {
// 距离底部200px时加载一次
// 距离底部0px时加载一次
let ss = document.documentElement.offsetHeight - document.documentElement.scrollTop - window.innerHeight;
console.log(ss);
let bottomOfWindow = document.documentElement.offsetHeight - document.documentElement.scrollTop - window.innerHeight <= 0;
let bottomOfWindow = document.documentElement.offsetHeight - document.documentElement.scrollTop - window.innerHeight == 0;
if (bottomOfWindow) {
this.getListReachBottom();
}
......@@ -298,7 +302,7 @@
goBack() {
console.log(this.optionName);
let that = this;
this.$router.push({path: '/companyInfo'})
// this.$router.push({path: '/companyInfo'})
},
/**
* 选择省份
......@@ -337,12 +341,16 @@
*/
getListReachBottom: function () {
var that = this;
if(this.send){
return;
}
if (this.nomore) {
return false
}
let allList = this.list;
this.nomore = false;
this.nodata = false;
this.send = !0;debugger
stockSearchPage(this.listQuery)
.then(res => {
if (res.code == 1) {
......@@ -363,6 +371,7 @@
this.nodata = true;
}
}
this.send = !1;
});
},
/**
......@@ -370,11 +379,15 @@
*/
getList: function () {
var that = this;
if(this.send){
return;
}
this.nomore = false;
this.nodata = false;
this.list = [];
this.listQuery.page = 1;
let allList = this.list;
this.send = !0;
stockSearchPage(this.listQuery)
.then(res => {
if (res.code == 1) {
......@@ -395,6 +408,7 @@
this.nodata = true;
}
}
this.send = !1;debugger
});
},
}
......
This diff is collapsed.
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