Commit 4a469f75 authored by lixy's avatar lixy

分公司入股

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