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
a9c0e924
Commit
a9c0e924
authored
Aug 09, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图文
parent
5191ca5c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
145 additions
and
79 deletions
+145
-79
allAddSC.vue
src/components/enterprise/material/allAddSC.vue
+136
-28
imgmaterial.vue
src/components/enterprise/material/imgmaterial.vue
+1
-1
imgtextmaterial.vue
src/components/enterprise/material/imgtextmaterial.vue
+8
-50
No files found.
src/components/enterprise/material/allAddSC.vue
View file @
a9c0e924
This diff is collapsed.
Click to expand it.
src/components/enterprise/material/imgmaterial.vue
View file @
a9c0e924
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
<q-img
:src=
"x.ImageModel && x.ImageModel.ImagePath?x.ImageModel.ImagePath:''"
class=
"imgstyle"
>
<q-img
:src=
"x.ImageModel && x.ImageModel.ImagePath?x.ImageModel.ImagePath:''"
class=
"imgstyle"
>
<div
class=
"absolute-bottom text-subtitle1 text-center onetext"
<div
class=
"absolute-bottom text-subtitle1 text-center onetext"
style=
"padding: 0;padding: 0 5px;font-size: 12px;"
v-if=
'x.ImageModel'
>
style=
"padding: 0;padding: 0 5px;font-size: 12px;"
>
{{
x
.
ImageModel
.
ImageName
}}
{{
x
.
ImageModel
.
ImageName
}}
</div>
</div>
</q-img>
</q-img>
...
...
src/components/enterprise/material/imgtextmaterial.vue
View file @
a9c0e924
...
@@ -18,68 +18,28 @@
...
@@ -18,68 +18,28 @@
<i
class=
"el-icon-edit-outline"
style=
"font-size: 20px;color: #1890ff;"
<i
class=
"el-icon-edit-outline"
style=
"font-size: 20px;color: #1890ff;"
@
click
.
stop=
"goedit(x)"
></i>
@
click
.
stop=
"goedit(x)"
></i>
</div>
</div>
<q-img
:src=
"x.
Content
"
class=
"imgstyle"
>
<q-img
:src=
"x.
ImgTextModel && x.ImgTextModel.ImgPath?x.ImgTextModel.ImgPath:''
"
class=
"imgstyle"
>
<div
class=
"absolute-bottom text-subtitle1 text-center onetext"
<div
class=
"absolute-bottom text-subtitle1 text-center onetext"
style=
"padding: 0;padding: 0 5px;font-size: 12px;"
>
style=
"padding: 0;padding: 0 5px;font-size: 12px;"
>
{{
x
.
t
itle
}}
{{
x
.
ImgTextModel
.
T
itle
}}
</div>
</div>
</q-img>
</q-img>
<div
class=
"onetext"
style=
"margin-top: 5px;"
>
上传者:
{{
x
.
Creator
Name
}}
</div>
<div
class=
"onetext"
style=
"margin-top: 5px;"
>
上传者:
{{
x
.
UpdateBy
Name
}}
</div>
<div
class=
"onetext"
style=
"margin-top: 5px;"
>
来源:
{{
x
.
sourc
e
}}
</div>
<div
class=
"onetext"
style=
"margin-top: 5px;"
>
分钟:
{{
x
.
MediumGroupNam
e
}}
</div>
</q-card-section>
</q-card-section>
</q-card>
</q-card>
<div
style=
"width: 100%;height: 50px;line-height: 50px;text-align: center;"
v-if=
"dataList.length==0"
>
暂无数据
</div>
<div
style=
"width: 100%;height: 50px;line-height: 50px;text-align: center;"
v-if=
"dataList.length==0"
>
暂无数据
</div>
</div>
</div>
</div>
</div>
<q-dialog
v-model=
"Isadd"
persistent
>
<div
v-if=
"Isadd==true"
>
<q-card
style=
"width: 520px; max-width: 80vw;"
>
<alladdsc
:allclassifyList=
"allclassifyList"
type=
'3'
@
editsuccess=
"getchildren"
:editobj=
'editobj'
@
getcancel=
'Isadd=false'
></alladdsc>
<q-card-section>
</div>
<div
class=
"text-h6"
>
新建图文
</div>
</q-card-section>
<q-separator
/>
<q-card-section
class=
"q-pt-none"
style=
"margin-top: 15px;padding: 20px;"
>
<q-select
filled
stack-label
option-value=
"ID"
option-label=
"Name"
v-model=
"addMsg.classifyId"
ref=
"ID"
:options=
"classifyList"
label=
"分组"
:dense=
"false"
emit-value
map-options
/>
<div
style=
"margin-top: 15px;"
>
<div
style=
"width:70px"
>
上传图片:
</div>
<div
style=
"margin-top: 15px;"
>
<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.img==''"
></i>
<q-img
v-else
:src=
"addMsg.img"
style=
"width: 110px;height: 110px;border-radius: 6px;display: flex;"
>
</q-img>
</el-upload>
<div
style=
"margin-top: 20px;"
>
图片大小不超过2M,图片名不能重复,支持JPG,JPEG及PNG格式
</div>
<q-input
clearable
standout=
"bg-primary text-white"
v-model=
"addMsg.title"
label=
"添加标题"
style=
"margin-top: 20px;"
/>
<q-input
clearable
standout=
"bg-primary text-white"
v-model=
"addMsg.content"
type=
"textarea"
label=
"添加描述"
style=
"margin-top: 20px;"
/>
<q-input
clearable
standout=
"bg-primary text-white"
v-model=
"addMsg.link"
label=
"请输入跳转链接,且必须以http://或https://开头"
style=
"margin-top: 20px;"
/>
</div>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"Isadd = false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"添加"
@
click=
"submit()"
/>
</q-card-actions>
</q-card>
</q-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
UploadSelfFile
}
from
"../../../api/common/common"
;
//上传图片
import
alladdsc
from
'./allAddSC'
import
alladdsc
from
'./allAddSC'
export
default
{
export
default
{
name
:
"imgtextmaterial"
,
name
:
"imgtextmaterial"
,
...
@@ -104,7 +64,6 @@
...
@@ -104,7 +64,6 @@
}
}
},
},
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
...
@@ -118,9 +77,8 @@
...
@@ -118,9 +77,8 @@
this
.
editobj
.
Id
=
row
.
Id
;
this
.
editobj
.
Id
=
row
.
Id
;
this
.
editobj
.
MediaGroupId
=
row
.
MediaGroupId
;
this
.
editobj
.
MediaGroupId
=
row
.
MediaGroupId
;
this
.
editobj
.
Type
=
row
.
Type
;
this
.
editobj
.
Type
=
row
.
Type
;
this
.
editobj
.
Im
ageModel
=
JSON
.
parse
(
JSON
.
stringify
(
row
.
Image
Model
))
;
this
.
editobj
.
Im
gTextModel
=
JSON
.
parse
(
JSON
.
stringify
(
row
.
ImgText
Model
))
;
this
.
Isadd
=
true
this
.
Isadd
=
true
console
.
log
(
row
)
},
},
getchildren
(){
getchildren
(){
this
.
$emit
(
'editsuccess'
)
this
.
$emit
(
'editsuccess'
)
...
...
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