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
b69b167d
Commit
b69b167d
authored
Oct 13, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b2ea2388
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
10 deletions
+25
-10
educationEdit.vue
src/components/education/educationEdit.vue
+25
-10
No files found.
src/components/education/educationEdit.vue
View file @
b69b167d
...
...
@@ -198,6 +198,12 @@
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</el-form-item>
<el-form-item
label=
"已售数量"
>
<el-input
v-model=
"addMsg.SalesNum"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
件
</el-button>
</el-input>
</el-form-item>
<el-form-item
label=
"关联讲师"
>
<
template
v-if=
"addMsg.TeacherList.length>0"
>
<el-tag
v-for=
"(item,index) in addMsg.TeacherList"
closable
size=
"small"
...
...
@@ -213,7 +219,7 @@
<el-card
style=
"margin-top:20px"
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
style=
"display:flex;justify-content:space-between;align-items:center;"
>
<span>
课程信息
</span>
<el-button
@
click=
"courseDialog=true,is
Replace=0
"
size=
"small"
>
添加课程
</el-button>
<el-button
@
click=
"courseDialog=true,is
ShowEditBtn=true
"
size=
"small"
>
添加课程
</el-button>
</div>
<el-row>
<el-col
:span=
"24"
>
...
...
@@ -263,7 +269,7 @@
</div>
</div>
<div>
<img
@
click=
"updateCourse(subItem,index)"
style=
"width:32px;height:32px"
<img
@
click=
"updateCourse(subItem,index)
,isReplace=index,isShowEditBtn=false
"
style=
"width:32px;height:32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
>
<img
@
click=
"deleteCourse(index)"
style=
"width:32px;height:32px;margin:0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
>
...
...
@@ -655,7 +661,10 @@
</el-switch>
</el-form-item>
<el-form-item
label=
"试看"
>
<el-input
v-model=
"courseMsg.Number"
@
keyup
.
native=
"checkInteger(courseMsg,'Number')"
size=
"small"
></el-input>
<el-input
v-model=
"courseMsg.Number"
@
keyup
.
native=
"checkInteger(courseMsg,'Number')"
size=
"small"
>
<
template
slot=
"append"
>
秒
</
template
>
</el-input>
<div
style=
"color:red;"
>
设置为0表示不限制试看
</div>
</el-form-item>
<el-form-item
label=
"缓存"
>
<el-switch
v-model=
"courseMsg.IsCache"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
...
...
@@ -678,7 +687,7 @@
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"courseDialog = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"getCourseList"
v-if=
"is
Replace==0
"
type=
"primary"
>
确 定
</el-button>
<el-button
size=
"small"
@
click=
"getCourseList"
v-if=
"is
ShowEditBtn
"
type=
"primary"
>
确 定
</el-button>
<el-button
size=
"small"
@
click=
"resetCourse"
v-else
type=
"primary"
>
确 定
</el-button>
</span>
</el-dialog>
...
...
@@ -779,6 +788,7 @@
MemberPriceTreeList
:
[],
TeacherList
:
[],
//教师
CourseList
:
[],
//课程
SalesNum
:
0
//已售数量
},
predefineColors
:
[
'#000000'
,
...
...
@@ -906,9 +916,9 @@
SortName
:
''
,
//章节排序名称
Name
:
''
,
//名称
Type
:
1
,
//类型
IsTrySee
:
1
,
//试看 1可以 2不可以
IsTrySee
:
2
,
//试看 1可以 2不可以
Number
:
1
,
//试看 视频秒/word pdf页
IsCache
:
1
,
//缓存 1可以 2不可以
IsCache
:
2
,
//缓存 1可以 2不可以
FilePath
:
''
,
//附件路径
PathType
:
1
,
//文件存储类型 1腾讯云 2阿里云
VideoImage
:
''
,
//视频图片地址
...
...
@@ -920,6 +930,7 @@
isReplace
:
0
,
//是否替换
videoDivState
:
false
,
//视频预览
thisVideoAddress
:
""
,
isShowEditBtn
:
true
,
};
},
created
()
{
...
...
@@ -1219,7 +1230,7 @@
}
}
if
(
this
.
courseMsg
.
Type
==
4
)
{
if
(
type
!=
'ppt'
)
{
if
(
type
!=
'ppt'
&&
type
!=
'pptx'
)
{
this
.
Error
(
'请选择ppt文件'
);
}
else
{
this
.
courseMsg
.
FilePath
=
msg
.
url
...
...
@@ -1402,9 +1413,13 @@
ico
:
""
}
}
else
{
let
MarketingLogo
=
JSON
.
parse
(
this
.
addMsg
.
MarketingLogo
)
let
obj
=
MarketingLogo
this
.
addMsg
.
MarketingLogo
=
obj
// var tempObj = this.addMsg.MarketingLogo.substring(1, this.addMsg.MarketingLogo.length-1);
// var reg=/\\|\//g;
// var cc = "'"+tempObj.replace(reg,"")+"'";
// var bb = eval("("+cc+")");
// var kk = JSON.parse(bb);
// this.addMsg.MarketingLogo=kk;
this
.
addMsg
.
MarketingLogo
=
JSON
.
parse
(
this
.
addMsg
.
MarketingLogo
);
}
this
.
getSuggestPrice
();
this
.
getFXDGradeList2
();
...
...
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