Commit 23d0d818 authored by lvshibao's avatar lvshibao

数据分析-违规项分析

parent 5b1bca4d
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"> :default-time="['00:00:00', '23:59:59']">
</el-date-picker> </el-date-picker>
<el-select v-model="taskvalue" filterable placeholder="请选择" @change="changeTask"> <el-select v-if="sel_is_show == true" v-model="taskvalue" filterable placeholder="请选择" @change="changeTask">
<el-option <el-option
v-for="item in taskList" v-for="item in taskList"
:key="item.id" :key="item.id"
......
...@@ -15,7 +15,7 @@ new Vue({ ...@@ -15,7 +15,7 @@ new Vue({
poppagesize: 10, poppagesize: 10,
poptotal: 10, poptotal: 10,
poprule: '', poprule: '',
poptables: '', poptables: '',
popcurrentPage: 1, popcurrentPage: 1,
isHidePage: true, isHidePage: true,
scrollTop: 0, scrollTop: 0,
...@@ -27,10 +27,11 @@ new Vue({ ...@@ -27,10 +27,11 @@ new Vue({
dateRange:[new Date(), new Date()], dateRange:[new Date(), new Date()],
takevalue: '', takevalue: '',
titleInfo: { titleInfo: {
"total_session": 0, "total_session": 0,
"validate_session": 0, "validate_session": 0,
"ratio": 0, "ratio": 0,
}, },
sel_is_show: true,
loading: true, loading: true,
poptableData: [], poptableData: [],
tableData: [] tableData: []
...@@ -113,7 +114,7 @@ new Vue({ ...@@ -113,7 +114,7 @@ new Vue({
}, },
popCurrentChange(page){ popCurrentChange(page){
this.poppage = page; this.poppage = page;
this.getDetail(this.taskvalue,this.start_date,this.end_date,this.poptables,this.poprule, this.poppage, this.poppagesize); this.getDetail(this.taskvalue,this.start_date,this.end_date,this.poptables,this.poprule, this.poppage, this.poppagesize);
}, },
getRule(task,start_date,end_date,agentName){ getRule(task,start_date,end_date,agentName){
let that = this; let that = this;
...@@ -160,6 +161,12 @@ new Vue({ ...@@ -160,6 +161,12 @@ new Vue({
return false; return false;
} }
that.titleInfo = data.data; that.titleInfo = data.data;
if (['合肥', '芜湖', '淮北', '安庆', '黄山', '滁州', '阜阳', '亳州', '宿州', '六安', '宣城', '巢湖', '池州', '淮南', '安徽省营业部', '蚌埠', '马鞍山', '铜陵'].indexOf(data.username) !== -1) {
that.sel_is_show = false;
that.taskvalue = data.username;
} else {
that.sel_is_show = true;
}
//this.$loading().close(); //this.$loading().close();
}) })
}, },
...@@ -168,7 +175,7 @@ new Vue({ ...@@ -168,7 +175,7 @@ new Vue({
}, },
rowDetail(index,tableData){ rowDetail(index,tableData){
let data = tableData[index + (this.currentPage-1) * this.pagesize]; let data = tableData[index + (this.currentPage-1) * this.pagesize];
console.log(data); console.log(data);
//this.poptableData = tableData[index].details; //this.poptableData = tableData[index].details;
this.poptables = data.tables; this.poptables = data.tables;
...@@ -176,7 +183,7 @@ new Vue({ ...@@ -176,7 +183,7 @@ new Vue({
this.popcurrentPage = 1; this.popcurrentPage = 1;
this.poppage = 1; this.poppage = 1;
//this.taskvalue = tableData.area; //this.taskvalue = tableData.area;
this.getDetail(this.taskvalue,this.start_date,this.end_date,this.poptables,this.poprule, this.poppage, this.poppagesize); this.getDetail(this.taskvalue,this.start_date,this.end_date,this.poptables,this.poprule, this.poppage, this.poppagesize);
}, },
getDetail(task,start_date,end_date, tables, rule, page, page_size){ getDetail(task,start_date,end_date, tables, rule, page, page_size){
......
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