Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
罗超
confucius
Commits
c39b56ca
Commit
c39b56ca
authored
Dec 22, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d4bb723a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
38 deletions
+48
-38
rewardDetailed.vue
src/pages/course/rewardDetailed.vue
+44
-35
erpindex.js
src/utils/erpindex.js
+4
-3
No files found.
src/pages/course/rewardDetailed.vue
View file @
c39b56ca
<
template
>
<
template
>
<div
class=
"rewardDetailed page-body"
>
<div
class=
"rewardDetailed page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"TId"
option-label=
"TeacherName"
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"msg.TeacherId"
:options=
"TeacherList"
emit-value
map-options
label=
"关联老师"
/>
v-model=
"msg.TeacherId"
:options=
"TeacherList"
emit-value
map-options
label=
"关联老师"
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.Type"
:options=
"TypeList"
emit-value
map-options
label=
"上课类型"
/>
v-model=
"msg.Type"
:options=
"TypeList"
emit-value
map-options
label=
"上课类型"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"vertical"
:data=
"data.List"
:columns=
"columns"
row-key=
"name"
>
separator=
"vertical"
:data=
"data.List"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
教师课时费明细
</div>
<div
class=
"col-2 q-table__title"
>
教师课时费明细
</div>
<q-space
/>
<q-space
/>
<div
class=
"page-option"
>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
label=
"导出"
/>
<q-btn
color=
"accent"
size=
"sm"
label=
"导出"
@
click=
"Export"
/>
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:body-cell-Type=
"props"
>
<
template
v-slot:body-cell-Type=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
>
{{
props
.
row
.
Type
==
1
?
'带班'
:
'代课'
}}
</span>
<span>
{{
props
.
row
.
Type
==
1
?
'带班'
:
'代课'
}}
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
</
template
>
</
template
>
</q-table>
</q-table>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
style=
"margin-top: 30px"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"vertical"
:data=
"data.Statistics"
:columns=
"columnsZ"
row-key=
"name"
>
style=
"margin-top: 30px"
separator=
"vertical"
:data=
"data.Statistics"
:columns=
"columnsZ"
row-key=
"name"
>
<
template
v-slot:top=
"props"
>
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
教师课时费汇总
</div>
<div
class=
"col-2 q-table__title"
>
教师课时费汇总
</div>
<q-space
/>
<q-space
/>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</
template
>
</
template
>
<
template
v-slot:body-cell-Type=
"props"
>
<
template
v-slot:body-cell-Type=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
>
{{
props
.
row
.
Type
==
1
?
'带班'
:
'代课'
}}
</span>
<span>
{{
props
.
row
.
Type
==
1
?
'带班'
:
'代课'
}}
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -54,21 +54,21 @@
...
@@ -54,21 +54,21 @@
<
script
>
<
script
>
import
{
import
{
getTeachingBonusDetailList
,
//明细详情
getTeachingBonusDetailList
,
//明细详情
}
from
'../../api/course/class'
}
from
'../../api/course/class'
import
{
import
{
getTeacherDropDownList
,
getTeacherDropDownList
,
}
from
'../../api/school/index'
;
}
from
'../../api/school/index'
;
export
default
{
export
default
{
name
:
"rewardDetailed"
,
name
:
"rewardDetailed"
,
data
(){
data
()
{
return
{
return
{
columns
:
[{
columns
:
[{
name
:
'Date'
,
name
:
'Date'
,
label
:
'日期'
,
label
:
'日期'
,
field
:
'Date'
,
field
:
'Date'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'TeacherName'
,
name
:
'TeacherName'
,
field
:
'TeacherName'
,
field
:
'TeacherName'
,
...
@@ -115,8 +115,7 @@
...
@@ -115,8 +115,7 @@
},
},
],
],
columnsZ
:[
columnsZ
:
[{
{
name
:
'TeacherName'
,
name
:
'TeacherName'
,
label
:
'教师姓名'
,
label
:
'教师姓名'
,
field
:
'TeacherName'
,
field
:
'TeacherName'
,
...
@@ -153,29 +152,39 @@
...
@@ -153,29 +152,39 @@
data
:
[],
data
:
[],
loading
:
true
,
loading
:
true
,
msg
:
{
msg
:
{
rowsPerPage
:
999
,
rowsPerPage
:
999
,
BonusId
:
0
,
BonusId
:
0
,
TeacherId
:
0
,
TeacherId
:
0
,
Type
:
0
Type
:
0
},
},
TeacherList
:
[],
//关联教师下拉数据
TeacherList
:
[],
//关联教师下拉数据
TypeList
:[
TypeList
:
[{
{
Id
:
0
,
Name
:
'不限'
},
Id
:
0
,
{
Id
:
1
,
Name
:
'带班'
},
Name
:
'不限'
{
Id
:
2
,
Name
:
'代课'
},
},
{
Id
:
1
,
Name
:
'带班'
},
{
Id
:
2
,
Name
:
'代课'
},
]
]
}
}
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
query
)
{
if
(
this
.
$route
.
query
)
{
this
.
msg
.
BonusId
=
this
.
$route
.
query
.
Id
;
this
.
msg
.
BonusId
=
this
.
$route
.
query
.
Id
;
this
.
msg
.
TeacherId
=
Number
(
this
.
$route
.
query
.
TeacherId
);
this
.
msg
.
TeacherId
=
Number
(
this
.
$route
.
query
.
TeacherId
);
}
}
this
.
getList
();
this
.
getList
();
this
.
GetTeacherList
()
this
.
GetTeacherList
()
},
},
methods
:{
methods
:
{
Export
()
{
this
.
GetEduDownLoad
(
"/TeachingRewards/GetTeachingBonusDetailToExcel"
,
this
.
msg
,
"课时奖励.xls"
);
},
//获取教师下拉
//获取教师下拉
GetTeacherList
()
{
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
getTeacherDropDownList
({}).
then
(
res
=>
{
...
@@ -185,11 +194,10 @@
...
@@ -185,11 +194,10 @@
TId
:
0
,
TId
:
0
,
TeacherName
:
"不限"
TeacherName
:
"不限"
})
})
}
}
})
})
},
},
getList
(){
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
getTeachingBonusDetailList
(
this
.
msg
).
then
(
res
=>
{
getTeachingBonusDetailList
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -198,11 +206,12 @@
...
@@ -198,11 +206,12 @@
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
goreturn
(){
goreturn
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
},
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/utils/erpindex.js
View file @
c39b56ca
...
@@ -132,7 +132,7 @@ export default {
...
@@ -132,7 +132,7 @@ export default {
};
};
return
obj
;
return
obj
;
},
},
//
下载文件
//
ERP系统文件下载
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
timestamp
=
(
new
Date
()).
valueOf
();
var
timestamp
=
(
new
Date
()).
valueOf
();
...
@@ -228,8 +228,8 @@ export default {
...
@@ -228,8 +228,8 @@ export default {
}
}
},
faildCall
)
},
faildCall
)
},
},
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
if
(
files
&&
files
.
length
>
0
)
{
let
nameList
=
new
Array
()
let
nameList
=
new
Array
()
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
...
@@ -285,6 +285,7 @@ export default {
...
@@ -285,6 +285,7 @@ export default {
}
}
item
[
filed
]
=
value
;
item
[
filed
]
=
value
;
},
},
//验证只能输入2位小数【负数:isMinus传true】
//验证只能输入2位小数【负数:isMinus传true】
Vue
.
prototype
.
checkPrice
=
function
(
item
,
filed
,
isMinus
)
{
Vue
.
prototype
.
checkPrice
=
function
(
item
,
filed
,
isMinus
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
value
=
""
+
item
[
filed
];
//转字符串
...
@@ -392,7 +393,7 @@ export default {
...
@@ -392,7 +393,7 @@ export default {
window
.
open
(
url
);
window
.
open
(
url
);
}
}
//文件下载
//
教育
文件下载
Vue
.
prototype
.
GetEduDownLoad
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
Vue
.
prototype
.
GetEduDownLoad
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
var
apiurl
=
process
.
env
.
API
+
cmd
;
var
apiurl
=
process
.
env
.
API
+
cmd
;
var
postData
=
{
var
postData
=
{
...
...
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