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
787a5de8
Commit
787a5de8
authored
Apr 24, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seat页面修改
parent
0a4891b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
12 deletions
+36
-12
score.html
src/inspect_report/templates/inspect/score.html
+3
-3
seat.html
src/inspect_report/templates/inspect/seat.html
+19
-7
seat.js
static/inspect/js/seat.js
+14
-2
No files found.
src/inspect_report/templates/inspect/score.html
View file @
787a5de8
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,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=
"cityvalue"
filterable
placeholder=
"请选择"
@
change=
"changeCity"
>
<el-select
v-model=
"cityvalue"
filterable
placeholder=
"请选择
市
"
@
change=
"changeCity"
>
<el-option
<el-option
v-for=
"item in cityList"
v-for=
"item in cityList"
:key=
"item.id"
:key=
"item.id"
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
:value=
"item.id"
>
:value=
"item.id"
>
</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
<el-option
label=
"全部县"
label=
"全部县"
value=
""
>
value=
""
>
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
:value=
"item.id"
>
:value=
"item.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-select
v-model=
"seatvalue"
v-if=
"seat_show == true"
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=
""
>
...
...
src/inspect_report/templates/inspect/seat.html
View file @
787a5de8
...
@@ -24,24 +24,36 @@
...
@@ -24,24 +24,36 @@
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-
if=
"sel_is_show == true"
v-model=
"taskvalue"
filterable
placeholder=
"请选择"
@
change=
"changeTask
"
>
<el-select
v-
model=
"cityvalue"
filterable
placeholder=
"请选择市"
@
change=
"changeCity
"
>
<el-option
<el-option
v-for=
"item in
task
List"
v-for=
"item in
city
List"
:key=
"item.id"
:key=
"item.id"
:label=
"item.name"
:label=
"item.name"
:value=
"item.id"
>
:value=
"item.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-select
v-model=
"takevalue"
filterable
placeholder=
"请选择"
@
change=
'changeTake'
>
<el-select
v-if=
"country_show == true"
v-model=
"countryvalue"
filterable
placeholder=
"请选择县"
@
change=
"changeCountry"
>
<el-option
label=
"全部县"
value=
""
>
</el-option>
<el-option
v-for=
"item in countryList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
<el-select
v-if=
"seat_show == true"
v-model=
"seatvalue"
filterable
placeholder=
"请选择坐席"
@
change=
'changeSeat'
>
<el-option
<el-option
label=
"全部坐席"
label=
"全部坐席"
value=
""
>
value=
""
>
</el-option>
</el-option>
<el-option
<el-option
v-for=
"item in
take
List"
v-for=
"item in
seat
List"
:key=
"item.
agentNam
e"
:key=
"item.
cod
e"
:label=
"item.
agentN
ame"
:label=
"item.
n
ame"
:value=
"item.
agentNam
e"
>
:value=
"item.
cod
e"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-button
type=
'primary'
size=
'mini'
style=
'height:30px;'
@
click=
'loadData()'
>
<el-button
type=
'primary'
size=
'mini'
style=
'height:30px;'
@
click=
'loadData()'
>
...
...
static/inspect/js/seat.js
View file @
787a5de8
...
@@ -8,9 +8,11 @@ new Vue({
...
@@ -8,9 +8,11 @@ new Vue({
countryList
:
[],
countryList
:
[],
cityvalue
:
''
,
cityvalue
:
''
,
countryvalue
:
''
,
countryvalue
:
''
,
country_show
:
false
,
start_date
:
''
,
start_date
:
''
,
end_date
:
''
,
end_date
:
''
,
seatList
:
[],
seatList
:
[],
seat_show
:
true
,
seatvalue
:
''
,
seatvalue
:
''
,
loading
:
true
,
loading
:
true
,
tableData
:
[],
tableData
:
[],
...
@@ -18,7 +20,6 @@ new Vue({
...
@@ -18,7 +20,6 @@ new Vue({
name
:
''
,
name
:
''
,
sort
:
'
des
'
,
sort
:
'
des
'
,
},
},
sel_is_show
:
true
,
BASEURL
:
window_url
,
BASEURL
:
window_url
,
currentPage
:
1
,
currentPage
:
1
,
pagesize
:
15
,
pagesize
:
15
,
...
@@ -68,6 +69,11 @@ new Vue({
...
@@ -68,6 +69,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
;
...
@@ -78,14 +84,20 @@ new Vue({
...
@@ -78,14 +84,20 @@ new Vue({
},
},
getTake
()
{
getTake
()
{
let
that
=
this
;
let
that
=
this
;
RquestsGet
(
'
api/v1/tasks/seat/?city=
'
+
that
.
cityvalue
+
'
country=
'
+
this
.
countryvalue
+
'
&start_date=
'
+
this
.
start_date
+
'
&end_date=
'
+
this
.
end_date
).
then
(
data
=>
{
RquestsGet
(
'
api/v1/tasks/seat/?city=
'
+
that
.
cityvalue
+
'
&country=
'
+
that
.
countryvalue
+
'
&start_date=
'
+
this
.
start_date
+
'
&end_date=
'
+
this
.
end_date
).
then
(
data
=>
{
//console.log(data);
//console.log(data);
if
(
data
.
code
!=
0
)
{
if
(
data
.
code
!=
0
)
{
//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
;
};
}
}
})
})
},
},
sortChange
(
item
)
{
sortChange
(
item
)
{
...
...
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