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
c94e08fd
Commit
c94e08fd
authored
Jun 28, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新交互优化
parent
e8d3f8c7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
27 deletions
+29
-27
left-nav.vue
components/layout/left-nav.vue
+1
-1
top-head.vue
components/layout/top-head.vue
+1
-1
default.vue
layouts/default.vue
+4
-4
courseJoin.vue
pages/courseJoin.vue
+6
-6
login.vue
pages/login.vue
+1
-1
salesManage.vue
pages/salesManage.vue
+14
-12
index.js
store/index.js
+2
-2
No files found.
components/layout/left-nav.vue
View file @
c94e08fd
...
...
@@ -74,7 +74,7 @@ export default {
//菜单列表
this
.
$service
.
base
.
getPermissions
().
then
((
res
)
=>
{
this
.
leftNav
=
res
||
[];
this
.
leftNav
.
unshift
({
menuName
:
'首页'
,
menuUrl
:
'/'
})
//
this.leftNav.unshift({menuName:'首页',menuUrl:'/'})
});
},
updateRoute
(
item
){
...
...
components/layout/top-head.vue
View file @
c94e08fd
...
...
@@ -63,7 +63,7 @@
this
.
$service
.
base
.
getUserInfo
(
this
.
myUserInfo
.
token
).
then
(
result
=>
{
this
.
$store
.
commit
(
'updateUserInfo'
,
result
);
setTimeout
(()
=>
{
location
.
href
=
'/pxsys/'
location
.
href
=
'/pxsys/
studentManage
'
},
500
)
})
})
...
...
layouts/default.vue
View file @
c94e08fd
...
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 16:53:37
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
02 14:25
:18
* @LastEditTime: 2022-06-
28 10:01
:18
-->
<
template
>
<div
class=
"customer"
>
...
...
@@ -12,7 +12,7 @@
<!--左侧导航-->
<left-nav></left-nav>
<!--页面历史路由-->
<
history-router></history-router
>
<
!--
<history-router></history-router>
--
>
<!--页面头部-->
<top-head></top-head>
</
template
>
...
...
@@ -76,8 +76,8 @@
&-main{
padding
:
0
;
width
:
calc
(
100%
-
264px
);
min-height
:
calc
(
100vh
-
11
2px
);
margin
:
11
2px
16px
32px
248px
;
min-height
:
calc
(
100vh
-
8
2px
);
margin
:
8
2px
16px
32px
248px
;
}
}
</
style
>
pages/courseJoin.vue
View file @
c94e08fd
...
...
@@ -64,23 +64,23 @@ export default {
func
:
"joinCourseList"
,
selectable
:
false
,
customRow
:
true
,
columns
:
[
{
title
:
"学生姓名"
,
field
:
"bmStuName"
,
width
:
'
15
0px'
,},
{
title
:
"学生姓名"
,
field
:
"bmStuName"
,
width
:
'
8
0px'
,},
{
title
:
"性别"
,
width
:
'
12
0px'
,
title
:
"性别"
,
width
:
'
6
0px'
,
type
:
'customField'
,
fieldFunction
:
row
=>
row
.
bmGender
==
1
?
'男'
:
'女'
,
},
{
title
:
"联系方式"
,
field
:
"bmPhone"
,
width
:
'1
5
0px'
,},
{
title
:
"联系方式"
,
field
:
"bmPhone"
,
width
:
'1
2
0px'
,},
{
title
:
"课程名称"
,
field
:
"name"
},
{
title
:
"所属校区"
,
field
:
"shortName"
},
{
title
:
"所属校区"
,
field
:
"shortName"
,
width
:
'140px'
,
},
//报名状态(0:待确认报名,1:已确认报名,2:待取消报名,3:已取消报名)
{
title
:
"报名状态"
,
width
:
'1
2
0px'
,
title
:
"报名状态"
,
width
:
'1
0
0px'
,
type
:
'customField'
,
fieldFunction
:
row
=>
(
orderState
[
row
.
bmStatus
]
||
''
),
},
{
title
:
"价格"
,
width
:
'
10
0px'
,
title
:
"价格"
,
width
:
'
8
0px'
,
type
:
'customField'
,
fieldFunction
:
row
=>
(
row
.
cost
/
100
),
},
...
...
pages/login.vue
View file @
c94e08fd
...
...
@@ -72,7 +72,7 @@
this
.
$service
.
base
.
getUserInfo
(
res
.
token
).
then
(
result
=>
{
result
.
token
=
res
.
token
this
.
$store
.
commit
(
'updateUserInfo'
,
result
);
this
.
$router
.
push
(
'/'
);
this
.
$router
.
push
(
'/
studentManage
'
);
})
})
},
...
...
pages/salesManage.vue
View file @
c94e08fd
...
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-16 16:01:31
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
7 11:08:28
* @LastEditTime: 2022-06-2
8 09:58:00
-->
<
template
>
...
...
@@ -61,9 +61,9 @@ export default {
// height:(screen.height - (480 * this.$px2rem)),
columns
:[
{
title
:
"学生姓名"
,
type
:
'customViewField'
,
width
:
'
12
0px'
,
title
:
"学生姓名"
,
type
:
'customViewField'
,
width
:
'
8
0px'
,
},{
title
:
"性别"
,
width
:
'
10
0px'
,
title
:
"性别"
,
width
:
'
6
0px'
,
type
:
'customField'
,
fieldFunction
:
row
=>
row
.
bmGender
==
1
?
'男'
:
'女'
,
},{
...
...
@@ -71,23 +71,25 @@ export default {
},{
title
:
"课程名称"
,
field
:
"name"
},{
title
:
"课程类型"
,
type
:
'customField'
,
width
:
'
10
0px'
,
title
:
"课程类型"
,
type
:
'customField'
,
width
:
'
8
0px'
,
fieldFunction
:
row
=>
(
row
.
type
==
1
?
'正式课'
:
'体验课'
),
},{
title
:
"价格"
,
type
:
'customField'
,
width
:
'
12
0px'
,
title
:
"价格"
,
type
:
'customField'
,
width
:
'
8
0px'
,
fieldFunction
:
row
=>
(
row
.
cost
/
100
),
},{
title
:
"教练"
,
type
:
'customField'
,
fieldFunction
:
row
=>
(
row
.
pxEmployeeList
.
filter
(
v
=>
v
.
empPosition
==
'coach'
)).
map
(
e
=>
e
.
empName
).
join
(
','
),
}
// {
// title: "班主任",type: 'customField',
// fieldFunction: row => (row.pxEmployeeList.filter(v => v.empPosition == 'manger')).map(e => e.empName).join(','),
// }
,{
title
:
"总课时"
,
field
:
"totalKs"
,
width
:
'80px'
,
},{
title
:
"班主任"
,
type
:
'customField'
,
fieldFunction
:
row
=>
(
row
.
pxEmployeeList
.
filter
(
v
=>
v
.
empPosition
==
'manger'
)).
map
(
e
=>
e
.
empName
).
join
(
','
),
},{
title
:
"总课时"
,
field
:
"totalKs"
,
width
:
'100px'
,
},{
title
:
"剩余课时"
,
field
:
"syKs"
,
width
:
'100px'
,
title
:
"剩余课时"
,
field
:
"syKs"
,
width
:
'80px'
,
},{
title
:
'操作'
,
width
:
"1
3
0px"
,
type
:
"buttons"
,
fixed
:
'right'
,
title
:
'操作'
,
width
:
"1
1
0px"
,
type
:
"buttons"
,
fixed
:
'right'
,
buttons
:
[
{
name
:
"详情"
,
type
:
'success'
,
event
:
"detail"
,
...
...
store/index.js
View file @
c94e08fd
...
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 15:54:33
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
10 11:28:53
* @LastEditTime: 2022-06-
28 10:00:54
*/
import
Vue
from
'vue'
//配置对象
...
...
@@ -19,7 +19,7 @@ export default {
//历史路由
historyRoute
:[
{
menuName
:
'
首页'
,
menuUrl
:
'/
'
}
{
menuName
:
'
学生管理'
,
menuUrl
:
'/studentManage
'
}
],
}),
mutations
:
{
...
...
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