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
27189704
Commit
27189704
authored
Oct 29, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
素材修改
parent
966e0069
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
alladdsc.vue
src/pages/teacher/components/alladdsc.vue
+8
-4
No files found.
src/pages/teacher/components/alladdsc.vue
View file @
27189704
...
...
@@ -20,7 +20,7 @@
<div
style=
"margin-top: 15px;"
>
<div
style=
"width:70px"
>
上传图片:
</div>
<div
style=
"margin-top: 15px;"
>
<el-upload
class=
"avatar-uploader"
ref=
"upload"
:action=
"importFileUrl2"
<el-upload
class=
"avatar-uploader"
ref=
"upload"
:action=
"importFileUrl2"
v-if=
"ismodify==false"
:multiple=
"false"
:on-success=
"successUpload"
:show-file-list=
"false"
accept=
"image/gif,image/jpeg,image/png,image/jpg,image/bmp"
>
<div
v-if=
"imgPath==''"
class=
"materialupload"
>
...
...
@@ -29,6 +29,7 @@
<q-img
v-else
:src=
"imgPath"
style=
"width: 110px;height: 110px;border-radius: 6px;display: flex;"
>
</q-img>
</el-upload>
<q-img
v-else
:src=
"imgPath"
style=
"width: 110px;height: 110px;border-radius: 6px;display: flex;"
v-if=
"ismodify"
></q-img>
<!--
<el-upload
class=
"avatar-uploader materialupload"
action=
""
:before-upload=
"uploadFile"
accept=
"image/gif,image/jpeg,image/png,image/jpg,image/bmp"
:show-file-list=
"false"
>
<i
class=
"el-icon-plus avatar-uploader-icon"
style=
"font-size: 30px;"
v-if=
"addMsg.Path==''"
></i>
...
...
@@ -78,7 +79,7 @@
</span>
</q-circular-progress>
<div
style=
"margin-top: 15px;"
>
<el-upload
class=
"avatar-uploader "
action=
""
:before-upload=
"uploadFile"
:show-file-list=
"false"
>
<el-upload
class=
"avatar-uploader "
action=
""
:before-upload=
"uploadFile"
:show-file-list=
"false"
v-if=
"ismodify==false"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"cloud_upload"
label=
"上传"
@
click=
'stopPlayVoice()'
>
</q-btn>
...
...
@@ -113,6 +114,7 @@
v-model=
"addMsg.PlatformType"
@
input=
"$forceUpdate()"
ref=
"Id"
:options=
"platTypeList"
label=
"平台类型"
:dense=
"false"
emit-value
map-options
/>
-->
<q-input
clearable
filled
v-model=
"addMsg.MediaName"
placeholder=
"请输入视频名称"
class=
"q-mt-lg"
maxlength=
"20"
/>
<q-input
clearable
filled
v-model=
"addMsg.Description"
placeholder=
"请输入视频介绍"
class=
"q-mt-lg"
type=
"textarea"
maxlength=
"300"
counter
/>
<div
style=
"margin-top: 15px;"
>
<div
style=
"width:80px"
>
视频封面图:
</div>
<div
style=
"margin-top: 15px;"
>
...
...
@@ -140,7 +142,7 @@
<source
:src=
"addMsg.Path"
type=
"video/mp4"
/>
</video>
<div
style=
"margin-top: 15px;"
>
<el-upload
class=
"avatar-uploader "
action=
""
:before-upload=
"uploadFile"
:show-file-list=
"false"
>
<el-upload
class=
"avatar-uploader "
action=
""
:before-upload=
"uploadFile"
:show-file-list=
"false"
v-if=
"ismodify==false"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"cloud_upload"
label=
"上传"
>
</q-btn>
</el-upload>
...
...
@@ -219,12 +221,14 @@
playRec
:
null
,
imgPath
:
''
,
importFileUrl2
:
this
.
domainManager
().
UploadFileUrl2
,
getImgChoice
:
false
getImgChoice
:
false
,
ismodify
:
false
,
//是否修改
}
},
created
()
{
if
(
this
.
editobj
!=
null
)
{
this
.
addMsg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
editobj
))
this
.
ismodify
=
true
if
(
this
.
type
==
1
){
this
.
imgPath
=
this
.
addMsg
.
ImageUrl
;
}
...
...
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