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
b64529d9
Commit
b64529d9
authored
Oct 11, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d1731ca4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
addCourseCard.vue
src/components/education/addCourseCard.vue
+9
-0
informationManage.vue
src/components/education/informationManage.vue
+13
-2
No files found.
src/components/education/addCourseCard.vue
View file @
b64529d9
...
...
@@ -72,6 +72,12 @@
</div>
</div>
</el-form-item>
<el-form-item
label=
"抵扣金额"
prop=
"MaxDiscountsPrice"
class=
"is-required"
>
<el-input
v-model=
"msg.MaxDiscountsPrice"
step=
"1"
min=
"0"
onkeyup=
"this.value= this.value.match(/\d+(\.\d
{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
<template
slot=
"append"
>
元
</
template
>
</el-input>
</el-form-item>
<el-form-item
label=
"卡券有效期"
class=
"is-required"
>
<el-radio-group
v-model=
"msg.IndateType"
>
<el-radio
:label=
"1"
>
领取后N天内有效
</el-radio>
...
...
@@ -303,6 +309,9 @@
IndateDay
:[
{
required
:
true
,
message
:
"课程卡有效天数不能为空"
,
trigger
:
"blur"
}
],
MaxDiscountsPrice
:[
{
required
:
true
,
message
:
"抵扣金额不能为空"
,
trigger
:
"blur"
}
],
TotalNum
:[
{
required
:
true
,
message
:
"发放总数不能为空"
,
trigger
:
"blur"
}
],
...
...
src/components/education/informationManage.vue
View file @
b64529d9
...
...
@@ -151,7 +151,7 @@
</el-switch>
</el-form-item>
<el-form-item
label=
"资讯内容"
>
<
el-input
type=
"textarea"
class=
"w300"
:rows=
"4"
v-model=
"addMsg.Describe"
></el-input
>
<
UE
style=
"width:750px;"
:defaultMsg=
"defaultMsg"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE
>
</el-form-item>
</el-form>
</div>
...
...
@@ -166,11 +166,12 @@
</template>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
UE
from
"@/components/global/UE.vue"
;
export
default
{
components
:
{
ChooseImg
,
UE
},
data
()
{
return
{
...
...
@@ -221,6 +222,11 @@
inputValue
:
''
,
changeState
:
false
,
imgType
:
0
,
defaultMsg
:
""
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
350
},
};
},
created
()
{
...
...
@@ -271,6 +277,9 @@
if
(
myData
.
LableNameList
!=
null
&&
myData
.
LableNameList
.
length
>
0
){
this
.
addMsg
.
LableNameList
=
myData
.
LableNameList
;
}
if
(
this
.
addMsg
.
Describe
&&
this
.
addMsg
.
Describe
!=
""
)
{
this
.
defaultMsg
=
this
.
addMsg
.
Describe
;
}
this
.
addMsg
.
TeacherId
=
myData
.
TeacherId
;
this
.
addMsg
.
ArticlePic
=
myData
.
ArticlePic
;
}
else
{
...
...
@@ -310,6 +319,8 @@
this
.
Error
(
'请上传图片'
)
return
false
}
let
content
=
this
.
$refs
.
ue
.
getUEContent
();
this
.
addMsg
.
Describe
=
content
;
this
.
apipost
(
"/api/Education/AddOrUpdateArticle"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
informationShowAdd
=
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