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
be5bae00
Commit
be5bae00
authored
Oct 25, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b7510301
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
alladdsc.vue
src/pages/teacher/components/alladdsc.vue
+6
-3
No files found.
src/pages/teacher/components/alladdsc.vue
View file @
be5bae00
...
@@ -15,15 +15,17 @@
...
@@ -15,15 +15,17 @@
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
class=
"q-mt-lg"
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
class=
"q-mt-lg"
v-model=
"addMsg.PlatformType"
@
input=
"$forceUpdate()"
ref=
"Id"
:options=
"platTypeList"
label=
"平台类型"
v-model=
"addMsg.PlatformType"
@
input=
"$forceUpdate()"
ref=
"Id"
:options=
"platTypeList"
label=
"平台类型"
:dense=
"false"
emit-value
map-options
/>
: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.MediaName"
placeholder=
"请输入图片名称"
class=
"q-mt-lg"
maxlength=
"20"
/>
--
>
<div
style=
"margin-top: 15px;"
>
<div
style=
"margin-top: 15px;"
>
<div
style=
"width:70px"
>
上传图片:
</div>
<div
style=
"width:70px"
>
上传图片:
</div>
<div
style=
"margin-top: 15px;"
>
<div
style=
"margin-top: 15px;"
>
<el-upload
class=
"avatar-uploader
materialupload
"
ref=
"upload"
:action=
"importFileUrl2"
<el-upload
class=
"avatar-uploader"
ref=
"upload"
:action=
"importFileUrl2"
:multiple=
"false"
:on-success=
"successUpload"
:show-file-list=
"false"
:multiple=
"false"
:on-success=
"successUpload"
:show-file-list=
"false"
accept=
"image/gif,image/jpeg,image/png,image/jpg,image/bmp"
>
accept=
"image/gif,image/jpeg,image/png,image/jpg,image/bmp"
>
<i
class=
"el-icon-plus avatar-uploader-icon"
style=
"font-size: 30px;"
v-if=
"imgPath==''"
></i>
<div
v-if=
"imgPath==''"
class=
"materialupload"
>
<i
class=
"el-icon-plus avatar-uploader-icon"
style=
"font-size: 30px;"
></i>
</div>
<q-img
v-else
:src=
"imgPath"
style=
"width: 110px;height: 110px;border-radius: 6px;display: flex;"
>
<q-img
v-else
:src=
"imgPath"
style=
"width: 110px;height: 110px;border-radius: 6px;display: flex;"
>
</q-img>
</q-img>
</el-upload>
</el-upload>
...
@@ -264,6 +266,7 @@
...
@@ -264,6 +266,7 @@
if
(
file
.
Code
==
1
)
{
if
(
file
.
Code
==
1
)
{
this
.
imgPath
=
this
.
domainManager
().
DomainUrl
+
file
.
Data
.
HttpPath
;
this
.
imgPath
=
this
.
domainManager
().
DomainUrl
+
file
.
Data
.
HttpPath
;
this
.
addMsg
.
Path
=
file
.
Data
.
Path
;
this
.
addMsg
.
Path
=
file
.
Data
.
Path
;
this
.
addMsg
.
MediaName
=
file
.
Data
.
Name
;
}
}
},
},
uploadFile
(
files
)
{
//图片上传
uploadFile
(
files
)
{
//图片上传
...
...
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