Commit 0a4891b4 authored by lvshibao's avatar lvshibao

score页面修改

parent 2034f25c
......@@ -96,6 +96,10 @@
</el-option>
</el-select>
<el-select v-model="countryvalue" v-if="country_show == true" filterable placeholder="请选择县" @change="changeCountry">
<el-option
label="全部县"
value="">
</el-option>
<el-option
v-for="item in countryList"
:key="item.id"
......
......@@ -115,7 +115,11 @@
:value="item.id">
</el-option>
</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
v-for="item in countryList"
:key="item.id"
......@@ -123,7 +127,7 @@
:value="item.id">
</el-option>
</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
label="全部工号"
value="">
......
......@@ -82,7 +82,7 @@ new Vue({
console.log(msg);
this.cityvalue = msg;
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); // 获取统计数据
},
changeCountry(msg){
......
......@@ -8,6 +8,7 @@ new Vue({
countryList: [],
cityvalue: null,
countryvalue: '',
country_show: false,
isscrollTop: false,
popseatName: '',
scrollTop: 0,
......@@ -16,6 +17,7 @@ new Vue({
end_date: '',
seatList: [],
seatvalue: null,
seat_show: true,
teamvalue: null,
loading: true,
tableData: [],
......@@ -82,6 +84,7 @@ new Vue({
this.cityvalue = msg;
this.countryvalue = '';
this.seatvalue = null;
this.getCountry();
this.getTake();
this.page = 1;
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({
changeCountry(msg) {
this.countryvalue = msg;
this.seatvalue = null;
this.getTake();
this.page = 1;
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({
this.page = 1;
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() {
let that = this;
var request = new XMLHttpRequest();
......@@ -113,6 +134,11 @@ new Vue({
} else {
that.cityList = data.data.city_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;
console.log(that.cityvalue);
that.init_simple = true;
......@@ -155,6 +181,11 @@ new Vue({
//that.takeList = [{agentName:'全部坐席'}]
} else {
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