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
0a4891b4
Commit
0a4891b4
authored
Apr 24, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
score页面修改
parent
2034f25c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
3 deletions
+42
-3
rule.html
src/inspect_report/templates/inspect/rule.html
+4
-0
score.html
src/inspect_report/templates/inspect/score.html
+6
-2
group.js
static/inspect/js/group.js
+1
-1
score.js
static/inspect/js/score.js
+31
-0
No files found.
src/inspect_report/templates/inspect/rule.html
View file @
0a4891b4
...
@@ -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"
...
...
src/inspect_report/templates/inspect/score.html
View file @
0a4891b4
...
@@ -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=
""
>
...
...
static/inspect/js/group.js
View file @
0a4891b4
...
@@ -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
){
...
...
static/inspect/js/score.js
View file @
0a4891b4
...
@@ -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
;
};
}
}
})
})
...
...
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