Commit dd49cd21 authored by youjj's avatar youjj

去除结束价格

parent ff225149
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
</el-form-item> </el-form-item>
<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 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'>
<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-option v-for="item in allStockPrice" :key="item.id" :label="item.name" :value="item"></el-option>-->
<!-- </el-select>-->
<el-button @click="getList()" style="height: 35px;margin-left: 10px;">搜索</el-button> <el-button @click="getList()" style="height: 35px;margin-left: 10px;">搜索</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -312,9 +312,10 @@ ...@@ -312,9 +312,10 @@
* @param target * @param target
*/ */
getStartValue() { getStartValue() {
if (this.listQuery.priceStart >= this.listQuery.priceEnd) { this.listQuery.priceEnd = this.listQuery.priceStart;
this.listQuery.priceEnd = undefined; // if (this.listQuery.priceStart >= this.listQuery.priceEnd) {
} // this.listQuery.priceEnd = undefined;
// }
}, },
/** /**
* 选择股价结束价格 * 选择股价结束价格
......
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