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
d4203f25
Commit
d4203f25
authored
Mar 22, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a331e3de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
vipcourse.vue
src/components/school/student/transfer-order/vipcourse.vue
+26
-17
No files found.
src/components/school/student/transfer-order/vipcourse.vue
View file @
d4203f25
...
...
@@ -3,14 +3,13 @@
<div>
<div
style=
"row items-center"
>
<div
class=
"col row wrap"
>
<q-input
filled
stack-label
ref=
"CourseName"
:dense=
"false"
:rules=
"[val => !!val || '请输入课程名称']"
<q-input
filled
stack-label
ref=
"CourseName"
maxlength=
"50"
:dense=
"false"
:rules=
"[val => !!val || '请输入课程名称']"
v-model=
"CourseMsg.CourseName"
label=
"课程名称"
class=
"col-6 q-pr-lg q-pb-lg"
/>
<div
class=
"col-6 row"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"CourseMsg.HourType"
:options=
"HourTypeList"
label=
"课时类型"
class=
"col-5"
emit-value
map-options
/>
<q-input
filled
stack-label
:dense=
"false"
style=
"margin-left:28px;"
ref=
"TotalHour"
v-model=
"CourseMsg.TotalHour"
@
keyup
.
native=
"checkPrice(CourseMsg,'TotalHour')"
class=
"col-6"
label=
"课时"
/>
<q-input
filled
stack-label
:dense=
"false"
style=
"margin-left:28px;"
ref=
"TotalHour"
v-model=
"CourseMsg.TotalHour"
@
keyup
.
native=
"checkPrice(CourseMsg,'TotalHour')"
class=
"col-6"
label=
"课时"
/>
</div>
</div>
<div
class=
"col row wrap"
>
...
...
@@ -47,7 +46,7 @@
CourseMsg
:
{
Id
:
0
,
CourseName
:
""
,
//课程名称
HourType
:
1
,
//课时类型 1课时2小时
HourType
:
1
,
//课时类型 1课时2小时
TotalHour
:
''
,
//课时
CoursePrice
:
''
,
//价格
CourseTimeId
:
1
,
//上课时段
...
...
@@ -55,12 +54,12 @@
StuId
:
1
},
CourseTimeList
:
[],
HourTypeList
:[{
Id
:
1
,
Name
:
'课时'
},{
Id
:
2
,
Name
:
'小时'
HourTypeList
:
[{
Id
:
1
,
Name
:
'课时'
},
{
Id
:
2
,
Name
:
'小时'
}]
};
},
...
...
@@ -68,8 +67,18 @@
mounted
()
{
console
.
log
(
this
.
stuData
,
'studata'
);
this
.
getCourseTimeList
();
this
.
ceshi
();
},
methods
:
{
ceshi
()
{
var
p
=
new
Promise
(
function
(
resolve
,
reject
)
{
setTimeout
(
function
()
{
console
.
log
(
'我执行了'
);
resolve
(
'绥滨啥数据'
);
},
2000
)
})
return
p
},
//关联上课时间段
getCourseTimeList
()
{
getScrollCourseTimeList
({}).
then
(
res
=>
{
...
...
@@ -80,9 +89,9 @@
},
//保存
saveVipCourse
()
{
let
StuArr
=
[];
if
(
this
.
stuData
&&
this
.
stuData
.
StuList
.
length
>
0
)
{
this
.
stuData
.
StuList
.
forEach
(
x
=>
{
let
StuArr
=
[];
if
(
this
.
stuData
&&
this
.
stuData
.
StuList
.
length
>
0
)
{
this
.
stuData
.
StuList
.
forEach
(
x
=>
{
StuArr
.
push
(
x
.
StuId
);
})
}
...
...
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