Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
train-admin-h5
Overview
Overview
Details
Activity
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
tangjiale
train-admin-h5
Commits
379095fa
Commit
379095fa
authored
Jun 24, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复Bug
parent
182c35a7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
add-course.vue
pages/components/add-course.vue
+5
-5
import-student.vue
pages/components/import-student.vue
+0
-2
courseManage.vue
pages/courseManage.vue
+2
-2
salesManage.vue
pages/salesManage.vue
+3
-3
service.js
plugins/framework/core/service.js
+3
-1
service.js
plugins/service.js
+1
-1
student.js
services/student.js
+2
-2
No files found.
pages/components/add-course.vue
View file @
379095fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-06 09:28:37
* @Date: 2022-06-06 09:28:37
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
14 19:18:12
* @LastEditTime: 2022-06-
24 10:03:00
-->
-->
<
template
>
<
template
>
<div
class=
"add-course-bg"
>
<div
class=
"add-course-bg"
>
...
@@ -304,15 +304,15 @@ export default {
...
@@ -304,15 +304,15 @@ export default {
height
:
auto
!important
;
height
:
auto
!important
;
}
}
.image-ctn
{
.image-ctn
{
height
:
186
px
;
height
:
208
px
;
width
:
3
00
px
;
width
:
3
34
px
;
object-fit
:
cover
;
object-fit
:
cover
;
object-position
:
center
;
object-position
:
center
;
}
}
.upload-bg
{
.upload-bg
{
cursor
:
pointer
;
cursor
:
pointer
;
height
:
186
px
;
height
:
208
px
;
width
:
3
00
px
;
width
:
3
34
px
;
border
:
1px
solid
#000000
;
border
:
1px
solid
#000000
;
.el-icon-plus{
.el-icon-plus{
margin-top
:
60px
;
margin-top
:
60px
;
...
...
pages/components/import-student.vue
View file @
379095fa
...
@@ -150,8 +150,6 @@ export default {
...
@@ -150,8 +150,6 @@ export default {
formData
.
append
(
"file"
,
this
.
file
);
formData
.
append
(
"file"
,
this
.
file
);
const
config
=
{
const
config
=
{
onUploadProgress
:
progressEvent
=>
{
onUploadProgress
:
progressEvent
=>
{
debugger
// progressEvent.loaded:已上传文件大小
// progressEvent.loaded:已上传文件大小
// progressEvent.total:被上传文件的总大小
// progressEvent.total:被上传文件的总大小
this
.
progressPercent
=
Number
((
progressEvent
.
loaded
/
progressEvent
.
total
*
100
).
toFixed
(
2
))
this
.
progressPercent
=
Number
((
progressEvent
.
loaded
/
progressEvent
.
total
*
100
).
toFixed
(
2
))
...
...
pages/courseManage.vue
View file @
379095fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-02 14:08:46
* @Date: 2022-06-02 14:08:46
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
16 18:29:27
* @LastEditTime: 2022-06-
24 09:52:32
-->
-->
<
template
>
<
template
>
<div
class=
"page-bg"
>
<div
class=
"page-bg"
>
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'基础班'
,
value
:
1
},{
name
:
'提高班'
,
value
:
2
},{
name
:
'精英班'
,
value
:
3
},{
name
:
'赛事班'
,
value
:
4
}]
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'基础班'
,
value
:
1
},{
name
:
'提高班'
,
value
:
2
},{
name
:
'精英班'
,
value
:
3
},{
name
:
'赛事班'
,
value
:
4
}]
},{
},{
label
:
'课程类型:'
,
field
:
'type'
,
type
:
'select'
,
autoSelect
:
true
,
required
:
true
,
label
:
'课程类型:'
,
field
:
'type'
,
type
:
'select'
,
autoSelect
:
true
,
required
:
true
,
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'体验课'
,
value
:
1
},
{
name
:
'正式班课'
,
value
:
0
}]
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'体验课'
,
value
:
2
},
{
name
:
'正式班课'
,
value
:
1
}]
},{
},{
label
:
'课程状态:'
,
field
:
'status'
,
type
:
'select'
,
autoSelect
:
true
,
required
:
true
,
label
:
'课程状态:'
,
field
:
'status'
,
type
:
'select'
,
autoSelect
:
true
,
required
:
true
,
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'已发布'
,
value
:
1
},
{
name
:
'未发布'
,
value
:
0
}]
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'已发布'
,
value
:
1
},
{
name
:
'未发布'
,
value
:
0
}]
...
...
pages/salesManage.vue
View file @
379095fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-16 16:01:31
* @Date: 2022-06-16 16:01:31
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
0 16:34:08
* @LastEditTime: 2022-06-2
4 09:47:13
-->
-->
<
template
>
<
template
>
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
ds
:
{
service
:
'base'
,
func
:
'getUserAllSchList'
,
params
:{
all
:
true
}}
ds
:
{
service
:
'base'
,
func
:
'getUserAllSchList'
,
params
:{
all
:
true
}}
},{
},{
label
:
'课程类型:'
,
field
:
'type'
,
type
:
'select'
,
autoSelect
:
true
,
required
:
true
,
label
:
'课程类型:'
,
field
:
'type'
,
type
:
'select'
,
autoSelect
:
true
,
required
:
true
,
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'体验课'
,
value
:
1
},
{
name
:
'正式班课'
,
value
:
0
}]
ds
:
[{
name
:
'全部'
,
value
:
''
},
{
name
:
'体验课'
,
value
:
2
},
{
name
:
'正式班课'
,
value
:
1
}]
},{
},{
placeholder
:
"请输入学生姓名 "
,
field
:
"stuName"
,
type
:
"text"
,
label
:
""
,
placeholder
:
"请输入学生姓名 "
,
field
:
"stuName"
,
type
:
"text"
,
label
:
""
,
},{
},{
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
...
this
.
params
,
...
this
.
params
,
};
};
delete
param
.
undefined
delete
param
.
undefined
let
failName
=
`
体验课订单
列表
${
let
failName
=
`
销课记录
列表
${
param
.
startDate
?
param
.
startDate
+
"-"
+
param
.
endDate
:
""
param
.
startDate
?
param
.
startDate
+
"-"
+
param
.
endDate
:
""
}
`
;
}
`
;
this
.
$service
.
course
this
.
$service
.
course
...
...
plugins/framework/core/service.js
View file @
379095fa
...
@@ -44,6 +44,8 @@ export default class Service {
...
@@ -44,6 +44,8 @@ export default class Service {
});
});
}
}
let
o
=
{
let
o
=
{
...
options
,
...{
url
:
options
.
url
,
url
:
options
.
url
,
method
:
options
.
method
,
method
:
options
.
method
,
timeout
:
options
.
timeout
||
5000
,
timeout
:
options
.
timeout
||
5000
,
...
@@ -51,6 +53,7 @@ export default class Service {
...
@@ -51,6 +53,7 @@ export default class Service {
...
options
.
headers
||
{},
...
options
.
headers
||
{},
'content-type'
:
CONTENT_TYPE_MAP
[
options
.
contentType
||
'json'
.
toLowerCase
()
]
'content-type'
:
CONTENT_TYPE_MAP
[
options
.
contentType
||
'json'
.
toLowerCase
()
]
}
}
}
};
};
if
(
options
.
downloadFile
||
options
.
playAudio
)
{
// 下载文件
if
(
options
.
downloadFile
||
options
.
playAudio
)
{
// 下载文件
o
.
responseType
=
'blob'
;
o
.
responseType
=
'blob'
;
...
@@ -133,7 +136,6 @@ export default class Service {
...
@@ -133,7 +136,6 @@ export default class Service {
* 请求之后处理
* 请求之后处理
*/
*/
sendAfter
(
options
)
{
sendAfter
(
options
)
{
const
_sendTo
=
options
=>
{
const
_sendTo
=
options
=>
{
let
promise
=
this
.
sendTo
(
options
);
let
promise
=
this
.
sendTo
(
options
);
if
(
options
.
lock
)
{
if
(
options
.
lock
)
{
...
...
plugins/service.js
View file @
379095fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-11 14:08:04
* @Date: 2022-06-11 14:08:04
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
11 14:13:27
* @LastEditTime: 2022-06-
24 09:09:09
*/
*/
/**
/**
* http基础类
* http基础类
...
...
services/student.js
View file @
379095fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 09:23:35
* @Date: 2022-02-11 09:23:35
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
11 14:08:5
1
* @LastEditTime: 2022-06-
24 09:09:0
1
*/
*/
import
services
from
'../plugins/service'
import
services
from
'../plugins/service'
export
default
class
StudentService
extends
Service
{
export
default
class
StudentService
extends
Service
{
...
@@ -68,7 +68,7 @@ export default class StudentService extends Service {
...
@@ -68,7 +68,7 @@ export default class StudentService extends Service {
//学生导入
//学生导入
downloadRecordImport
(
param
,
config
=
{}){
downloadRecordImport
(
param
,
config
=
{}){
return
service
s
.
post
({
return
thi
s
.
post
({
url
:
'/student/studentImport'
,
url
:
'/student/studentImport'
,
data
:
param
,
data
:
param
,
progress
:
true
,
progress
:
true
,
...
...
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