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
652b5f69
Commit
652b5f69
authored
Jun 23, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
b9a724fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
add-student.vue
pages/components/add-student.vue
+12
-4
order-detail.vue
pages/components/order-detail.vue
+3
-3
experienceOrder.vue
pages/experienceOrder.vue
+1
-1
No files found.
pages/components/add-student.vue
View file @
652b5f69
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-02 15:02:39
* @Date: 2022-06-02 15:02:39
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
14 19:02:32
* @LastEditTime: 2022-06-
23 15:57:31
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<el-input
v-model=
"param.otherPhone"
placeholder=
"请输入手机号"
style=
"width:222px"
></el-input>
<el-input
v-model=
"param.otherPhone"
placeholder=
"请输入手机号"
style=
"width:222px"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所在校区"
prop=
"schIds"
>
<el-form-item
label=
"所在校区"
prop=
"schIds"
>
<t-select
v-model=
"param.schIds"
:ds=
"
{service:'base', func: 'getUserAllSchList'}">
</t-select>
<t-select
multiple
v-model=
"param.schIds"
:ds=
"
{service:'base', func: 'getUserAllSchList'}">
</t-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"就读学校"
prop=
"readSchName"
>
<el-form-item
label=
"就读学校"
prop=
"readSchName"
>
<el-input
v-model=
"param.readSchName"
placeholder=
"请输入就读学校名称"
style=
"width:222px"
></el-input>
<el-input
v-model=
"param.readSchName"
placeholder=
"请输入就读学校名称"
style=
"width:222px"
></el-input>
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
fatherPhone
:
''
,
fatherPhone
:
''
,
motherPhone
:
''
,
motherPhone
:
''
,
otherPhone
:
''
,
otherPhone
:
''
,
schIds
:
''
,
schIds
:
[]
,
readSchName
:
''
readSchName
:
''
},
},
...
@@ -83,7 +83,8 @@ export default {
...
@@ -83,7 +83,8 @@ export default {
queryDetail
(
id
){
queryDetail
(
id
){
this
.
$service
.
student
.
queryStudentDetail
(
id
).
then
(
res
=>
{
this
.
$service
.
student
.
queryStudentDetail
(
id
).
then
(
res
=>
{
let
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
,
readSchName
}
=
res
let
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
,
readSchName
}
=
res
this
.
param
=
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
,
readSchName
}
let
schId
=
(
schIds
.
split
(
','
)).
map
(
v
=>
Number
(
v
))
this
.
param
=
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
:
schId
,
readSchName
}
})
})
},
},
onSubmit
(){
onSubmit
(){
...
@@ -94,6 +95,9 @@ export default {
...
@@ -94,6 +95,9 @@ export default {
this
.
$message
.
error
(
'至少输入一个手机号'
)
this
.
$message
.
error
(
'至少输入一个手机号'
)
return
return
}
}
if
(
that
.
param
.
schIds
&&
that
.
param
.
schIds
.
length
){
that
.
param
.
schIds
=
that
.
param
.
schIds
.
join
(
','
)
}
let
funName
=
this
.
param
.
id
?
'emitStudent'
:
'addStudent'
let
funName
=
this
.
param
.
id
?
'emitStudent'
:
'addStudent'
that
.
$service
.
student
[
funName
](
that
.
param
).
then
(
res
=>
{
that
.
$service
.
student
[
funName
](
that
.
param
).
then
(
res
=>
{
that
.
$notifySuccess
()
that
.
$notifySuccess
()
...
@@ -123,4 +127,7 @@ export default {
...
@@ -123,4 +127,7 @@ export default {
/
deep
/
.el-form-item__error
{
/
deep
/
.el-form-item__error
{
left
:
22px
!important
;
left
:
22px
!important
;
}
}
/
deep
/
.el-form-item
.el-form-item__content
{
height
:
auto
!important
;
}
</
style
>
</
style
>
\ No newline at end of file
pages/components/order-detail.vue
View file @
652b5f69
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-17 08:47:27
* @Date: 2022-06-17 08:47:27
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
0 09:28:33
* @LastEditTime: 2022-06-2
3 17:07:45
-->
-->
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<el-col
:span=
"8"
>
班主任:
{{
(
detail
.
pxEmployeeList
&&
detail
.
pxEmployeeList
.
length
&&
detail
.
pxEmployeeList
.
filter
(
v
=>
v
.
empPosition
==
'manger'
)).
map
(
e
=>
e
.
empName
).
join
(
','
)
}}
</el-col>
<el-col
:span=
"8"
>
班主任:
{{
(
detail
.
pxEmployeeList
&&
detail
.
pxEmployeeList
.
length
&&
detail
.
pxEmployeeList
.
filter
(
v
=>
v
.
empPosition
==
'manger'
)).
map
(
e
=>
e
.
empName
).
join
(
','
)
}}
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"8"
>
学生姓名:
{{
detail
.
bmStuName
}}
<div
class=
"ware-tab"
>
预警
</div></el-col>
<el-col
:span=
"8"
>
学生姓名:
{{
detail
.
bmStuName
}}
<div
class=
"ware-tab"
v-if=
"detail.warning == 1"
>
预警
</div></el-col>
<el-col
:span=
"8"
>
年龄:
{{
detail
.
age
}}
</el-col>
<el-col
:span=
"8"
>
年龄:
{{
detail
.
age
}}
</el-col>
<el-col
:span=
"8"
>
手机号码:
{{
detail
.
bmPhone
}}
</el-col>
<el-col
:span=
"8"
>
手机号码:
{{
detail
.
bmPhone
}}
</el-col>
</el-row>
</el-row>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<el-col
:span=
"8"
v-if=
"type == 2"
>
报名状态:
{{
orderState
[
detail
.
bmStatus
]
}}
</el-col>
<el-col
:span=
"8"
v-if=
"type == 2"
>
报名状态:
{{
orderState
[
detail
.
bmStatus
]
}}
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
{{
type
==
1
?
`
报名
时间:${detail.orderTime || ''
}
`
:
type
==
2
?
`报名时间:${detail.bmTime || ''
}
`
:
''
}}
{{
type
==
1
?
`
订单
时间:${detail.orderTime || ''
}
`
:
type
==
2
?
`报名时间:${detail.bmTime || ''
}
`
:
''
}}
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
:
gutter
=
"20"
>
<
el
-
row
:
gutter
=
"20"
>
...
...
pages/experienceOrder.vue
View file @
652b5f69
...
@@ -109,8 +109,8 @@ export default {
...
@@ -109,8 +109,8 @@ export default {
let
that
=
this
let
that
=
this
this
.
$showConfirm
(
`你确认
${
type
==
1
?
'同意'
:
'不同意'
}
退款吗?`
).
then
(()
=>
{
this
.
$showConfirm
(
`你确认
${
type
==
1
?
'同意'
:
'不同意'
}
退款吗?`
).
then
(()
=>
{
that
.
$service
.
course
.
updateOrderStatus
({
orderId
:
data
.
orderId
,
orderStatus
:
type
}).
then
(
res
=>
{
that
.
$service
.
course
.
updateOrderStatus
({
orderId
:
data
.
orderId
,
orderStatus
:
type
}).
then
(
res
=>
{
this
.
$notifySuccess
();
this
.
upDateList
()
this
.
upDateList
()
this
.
$notifySuccess
();
})
})
});
});
},
},
...
...
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