Commit cc8b061d authored by lvshibao's avatar lvshibao

group页面修改

parent d72a8084
...@@ -95,7 +95,11 @@ ...@@ -95,7 +95,11 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="countryvalue" filterable placeholder="请选择县" @change="changeCountry"> <el-select v-model="countryvalue" v-if="country_chow == true" filterable placeholder="请选择县" @change="changeCountry">
<el-option
label="全部县"
value="">
</el-option>
<el-option <el-option
v-for="item in countryList" v-for="item in countryList"
:key="item.id" :key="item.id"
......
...@@ -23,6 +23,7 @@ new Vue({ ...@@ -23,6 +23,7 @@ new Vue({
popcurrentPage: 1, popcurrentPage: 1,
isHidePage: true, isHidePage: true,
scrollTop: 0, scrollTop: 0,
country_chow: false,
BASEURL: window_url, BASEURL: window_url,
end_date:'', end_date:'',
sortObj:{ sortObj:{
...@@ -69,7 +70,7 @@ new Vue({ ...@@ -69,7 +70,7 @@ new Vue({
this.sortObj = { this.sortObj = {
name: item.prop, name: item.prop,
sort: order sort: order
} };
this.getRule(this.cityvalue,this.countryvalue,this.start_date,this.end_date,this.takevalue); // 获取统计数据 this.getRule(this.cityvalue,this.countryvalue,this.start_date,this.end_date,this.takevalue); // 获取统计数据
}, },
changeRange(dateRange){ changeRange(dateRange){
...@@ -117,6 +118,9 @@ new Vue({ ...@@ -117,6 +118,9 @@ new Vue({
} else { } else {
that.cityList = data.data.city_list; that.cityList = data.data.city_list;
that.countryList = data.data.country_list; that.countryList = data.data.country_list;
if (that.countryList.length > 0) {
that.country_chow = true
}
that.cityvalue = data.data.city_id; that.cityvalue = data.data.city_id;
console.log(that.cityvalue); console.log(that.cityvalue);
that.init_simple = true; that.init_simple = true;
......
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