Commit 0a4891b4 authored by lvshibao's avatar lvshibao

score页面修改

parent 2034f25c
...@@ -96,6 +96,10 @@ ...@@ -96,6 +96,10 @@
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="countryvalue" v-if="country_show == true" filterable placeholder="请选择县" @change="changeCountry"> <el-select v-model="countryvalue" v-if="country_show == 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"
......
...@@ -115,7 +115,11 @@ ...@@ -115,7 +115,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_show == 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"
...@@ -123,7 +127,7 @@ ...@@ -123,7 +127,7 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="seatvalue" filterable placeholder="请选择" @change='changeSeat'> <el-select v-model="seatvalue" v-if="seat_show == true" filterable placeholder="请选择" @change='changeSeat'>
<el-option <el-option
label="全部工号" label="全部工号"
value=""> value="">
......
...@@ -82,7 +82,7 @@ new Vue({ ...@@ -82,7 +82,7 @@ new Vue({
console.log(msg); console.log(msg);
this.cityvalue = msg; this.cityvalue = msg;
this.countryvalue = null; this.countryvalue = null;
this.getCountry(this.cityvalue); this.getCountry();
this.getRule(this.cityvalue,this.countryvalue,this.start_date,this.end_date,this.takevalue, this.currentPage , 10); // 获取统计数据 this.getRule(this.cityvalue,this.countryvalue,this.start_date,this.end_date,this.takevalue, this.currentPage , 10); // 获取统计数据
}, },
changeCountry(msg){ changeCountry(msg){
......
...@@ -8,6 +8,7 @@ new Vue({ ...@@ -8,6 +8,7 @@ new Vue({
countryList: [], countryList: [],
cityvalue: null, cityvalue: null,
countryvalue: '', countryvalue: '',
country_show: false,
isscrollTop: false, isscrollTop: false,
popseatName: '', popseatName: '',
scrollTop: 0, scrollTop: 0,
...@@ -16,6 +17,7 @@ new Vue({ ...@@ -16,6 +17,7 @@ new Vue({
end_date: '', end_date: '',
seatList: [], seatList: [],
seatvalue: null, seatvalue: null,
seat_show: true,
teamvalue: null, teamvalue: null,
loading: true, loading: true,
tableData: [], tableData: [],
...@@ -82,6 +84,7 @@ new Vue({ ...@@ -82,6 +84,7 @@ new Vue({
this.cityvalue = msg; this.cityvalue = msg;
this.countryvalue = ''; this.countryvalue = '';
this.seatvalue = null; this.seatvalue = null;
this.getCountry();
this.getTake(); this.getTake();
this.page = 1; this.page = 1;
this.getRule(this.cityvalue, this.countryvalue, this.start_date, this.end_date, this.seatvalue, this.page, this.page_size); // 获取统计数据 this.getRule(this.cityvalue, this.countryvalue, this.start_date, this.end_date, this.seatvalue, this.page, this.page_size); // 获取统计数据
...@@ -89,6 +92,7 @@ new Vue({ ...@@ -89,6 +92,7 @@ new Vue({
changeCountry(msg) { changeCountry(msg) {
this.countryvalue = msg; this.countryvalue = msg;
this.seatvalue = null; this.seatvalue = null;
this.getTake();
this.page = 1; this.page = 1;
this.getRule(this.cityvalue, this.countryvalue, this.start_date, this.end_date, this.seatvalue, this.page, this.page_size); // 获取统计数据 this.getRule(this.cityvalue, this.countryvalue, this.start_date, this.end_date, this.seatvalue, this.page, this.page_size); // 获取统计数据
}, },
...@@ -97,6 +101,23 @@ new Vue({ ...@@ -97,6 +101,23 @@ new Vue({
this.page = 1; this.page = 1;
this.getRule(this.cityvalue, this.countryvalue, this.start_date, this.end_date, this.seatvalue, this.page, this.page_size); // 获取统计数据 this.getRule(this.cityvalue, this.countryvalue, this.start_date, this.end_date, this.seatvalue, this.page, this.page_size); // 获取统计数据
}, },
getCountry() {
let that = this;
RquestsGet('api/v1/agency/country/?city_id=' + this.cityvalue).then(data => {
//console.log(data);
if (data.code != 0) {
that.$message('服务器错误')
} else {
that.countryList = data.data.country_list;
if (that.countryList.length > 0) {
that.country_show = true;
} else {
that.country_show = false;
};
}
})
},
getCity() { getCity() {
let that = this; let that = this;
var request = new XMLHttpRequest(); var request = new XMLHttpRequest();
...@@ -113,6 +134,11 @@ new Vue({ ...@@ -113,6 +134,11 @@ 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_show = true;
} else {
that.country_show = false;
};
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;
...@@ -155,6 +181,11 @@ new Vue({ ...@@ -155,6 +181,11 @@ new Vue({
//that.takeList = [{agentName:'全部坐席'}] //that.takeList = [{agentName:'全部坐席'}]
} else { } else {
that.seatList = data.data; that.seatList = data.data;
if (that.seatList.length > 0) {
that.seat_show = true;
} else {
that.seat_show = false;
};
} }
}) })
......
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