Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
62f26b70
Commit
62f26b70
authored
Sep 29, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
15ad4224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
addCourseCard.vue
src/components/education/addCourseCard.vue
+22
-9
No files found.
src/components/education/addCourseCard.vue
View file @
62f26b70
...
...
@@ -83,7 +83,7 @@
<el-input
v-model=
"msg.IndateDay"
class=
"el-input--small"
step=
"1"
min=
"0"
onkeyup=
"this.value= this.value.match(/\d+(\d
{0,2})?/) ? this.value.match(/\d+(\d{0,2})?/)[0] : ''"/>
</el-form-item>
<el-form-item
label=
"有效期范围"
prop=
"value"
class=
"is-required"
v-if=
"msg.IndateType==2"
>
<el-form-item
label=
"有效期范围"
class=
"is-required"
v-if=
"msg.IndateType==2"
>
<el-date-picker
@
input=
"daterangeChange"
style=
"padding: 3px 10px;width: 450px;height: 32px"
...
...
@@ -603,10 +603,17 @@
},
daterangeChange
(
e
){
let
_this
=
this
_this
.
$nextTick
(()
=>
{
_this
.
$set
(
_this
.
msg
,
"value"
,
[
e
[
0
],
e
[
1
]]);
_this
.
$forceUpdate
();
});
if
(
e
==
null
){
_this
.
msg
.
value
=
[]
}
else
{
_this
.
$nextTick
(()
=>
{
_this
.
$set
(
_this
.
msg
,
"value"
,
[
e
[
0
],
e
[
1
]]);
});
}
_this
.
$forceUpdate
();
},
getUseType2
(){
this
.
checkedkeys
=
[]
...
...
@@ -629,11 +636,16 @@
preserve
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
if
(
this
.
msg
.
IndateType
==
2
){
this
.
msg
.
StartDate
=
this
.
msg
.
value
[
0
];
this
.
msg
.
EndDate
=
this
.
msg
.
value
[
1
];
this
.
msg
.
IndateDay
=
0
if
(
this
.
msg
.
value
.
length
>
0
){
this
.
msg
.
StartDate
=
this
.
msg
.
value
[
0
];
this
.
msg
.
EndDate
=
this
.
msg
.
value
[
1
];
this
.
msg
.
IndateDay
=
0
}
else
{
this
.
Error
(
'课程卡有效期不能为空'
)
return
false
}
}
if
(
this
.
msg
.
UseType
==
2
){
let
ProductList
=
[]
...
...
@@ -648,6 +660,7 @@
}
this
.
msg
.
ProductList
=
ProductList
}
this
.
loading
=
true
this
.
apipost
(
"/api/Education/AddOrUpdateDiscountCoupon"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
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