Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
inspect_report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengjinlei
inspect_report
Commits
23d0d818
Commit
23d0d818
authored
Mar 25, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据分析-违规项分析
parent
5b1bca4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
rule.html
src/inspect_report/templates/inspect/rule.html
+1
-1
rule.js
static/inspect/js/rule.js
+14
-7
No files found.
src/inspect_report/templates/inspect/rule.html
View file @
23d0d818
...
...
@@ -87,7 +87,7 @@
end-placeholder=
"结束日期"
:default-time=
"['00:00:00', '23:59:59']"
>
</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
v-for=
"item in taskList"
:key=
"item.id"
...
...
static/inspect/js/rule.js
View file @
23d0d818
...
...
@@ -15,7 +15,7 @@ new Vue({
poppagesize
:
10
,
poptotal
:
10
,
poprule
:
''
,
poptables
:
''
,
poptables
:
''
,
popcurrentPage
:
1
,
isHidePage
:
true
,
scrollTop
:
0
,
...
...
@@ -27,10 +27,11 @@ new Vue({
dateRange
:[
new
Date
(),
new
Date
()],
takevalue
:
''
,
titleInfo
:
{
"
total_session
"
:
0
,
"
validate_session
"
:
0
,
"
ratio
"
:
0
,
"
total_session
"
:
0
,
"
validate_session
"
:
0
,
"
ratio
"
:
0
,
},
sel_is_show
:
true
,
loading
:
true
,
poptableData
:
[],
tableData
:
[]
...
...
@@ -113,7 +114,7 @@ new Vue({
},
popCurrentChange
(
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
){
let
that
=
this
;
...
...
@@ -160,6 +161,12 @@ new Vue({
return
false
;
}
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();
})
},
...
...
@@ -168,7 +175,7 @@ new Vue({
},
rowDetail
(
index
,
tableData
){
let
data
=
tableData
[
index
+
(
this
.
currentPage
-
1
)
*
this
.
pagesize
];
console
.
log
(
data
);
console
.
log
(
data
);
//this.poptableData = tableData[index].details;
this
.
poptables
=
data
.
tables
;
...
...
@@ -176,7 +183,7 @@ new Vue({
this
.
popcurrentPage
=
1
;
this
.
poppage
=
1
;
//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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment