Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zhongtai-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
chenweiping
zhongtai-ui
Commits
8b69896f
提交
8b69896f
authored
9月 29, 2021
作者:
谢廷雅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改图片显示效果
上级
fc3bb84d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
41 行增加
和
13 行删除
+41
-13
details.vue
src/views/backstage/highlights/details.vue
+20
-6
details.vue
src/views/backstage/problems/details.vue
+21
-7
没有找到文件。
src/views/backstage/highlights/details.vue
浏览文件 @
8b69896f
...
@@ -20,12 +20,20 @@
...
@@ -20,12 +20,20 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"图片或者视频"
>
<el-table-column
label=
"图片或者视频"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"bottom"
trigger=
"click"
v-if=
"scope.row.mediaType == 1"
>
<!--trigger属性值:hover、click、focus 和 manual-->
<!--
<el-popover
placement=
"bottom"
trigger=
"click"
v-if=
"scope.row.mediaType == 1"
>
<
!
–
trigger属性值:hover、click、focus 和 manual
–>
-->
<div>
<!--
<div>
-->
<img
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
style=
"width: 320px;height: 200px"
>
<!--
<img
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
style=
"width: 320px;height: 200px"
>
-->
</div>
<!--
</div>
-->
<img
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '180px',height: '100px'}" />
<!--
<img
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '180px',height: '100px'}" />-->
</el-popover>
<!--
</el-popover>
-->
<el-image
v-if=
"scope.row.mediaType == 1"
style=
"width: 100px; height: 100px"
:src=
"scope.row.url"
:preview-src-list=
"srcList"
@
click=
"vbs(scope.row.url)"
>
</el-image>
<div
style=
"display: flex"
v-if=
"scope.row.mediaType == 2"
>
<div
style=
"display: flex"
v-if=
"scope.row.mediaType == 2"
>
<video
@
click=
"videoshow(scope.row.url)"
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '38%',height: '100px'}" />
<video
@
click=
"videoshow(scope.row.url)"
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '38%',height: '100px'}" />
...
@@ -94,6 +102,7 @@
...
@@ -94,6 +102,7 @@
name
:
"Highlights"
,
name
:
"Highlights"
,
data
()
{
data
()
{
return
{
return
{
srcList
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 非单个禁用
// 非单个禁用
...
@@ -138,6 +147,11 @@
...
@@ -138,6 +147,11 @@
closevideo
(){
closevideo
(){
this
.
isplayvideo
=
false
this
.
isplayvideo
=
false
},
},
vbs
(
val
)
{
this
.
srcList
=
[]
this
.
srcList
.
push
(
val
)
console
.
info
(
this
.
srcList
)
},
}
}
};
};
</
script
>
</
script
>
src/views/backstage/problems/details.vue
浏览文件 @
8b69896f
...
@@ -19,13 +19,21 @@
...
@@ -19,13 +19,21 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"图片或者视频"
>
<el-table-column
label=
"图片或者视频"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
width=
"90"
>
<el-popover
placement=
"bottom"
trigger=
"click"
v-if=
"scope.row.mediaType == 1"
>
<!--trigger属性值:hover、click、focus 和 manual-->
<!--
<el-popover
placement=
"bottom"
trigger=
"click"
v-if=
"scope.row.mediaType == 1"
>
<
!
–
trigger属性值:hover、click、focus 和 manual
–>
-->
<div>
<!--
<div>
-->
<img
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
style=
"width: 320px;height: 200px"
>
<!--
<img
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
style=
"width: 320px;height: 200px"
>
-->
</div>
<!--
</div>
-->
<img
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '180px',height: '100px'}" />
<!--
<img
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '180px',height: '100px'}" />-->
</el-popover>
<el-image
v-if=
"scope.row.mediaType == 1"
style=
"width: 100px; height: 100px"
:src=
"scope.row.url"
:preview-src-list=
"srcList"
@
click=
"vbs(scope.row.url)"
>
</el-image>
<!--
</el-popover>
-->
<div
style=
"display: flex"
v-if=
"scope.row.mediaType == 2"
>
<div
style=
"display: flex"
v-if=
"scope.row.mediaType == 2"
>
<video
@
click=
"videoshow(scope.row.url)"
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '38%',height: '100px'}" />
<video
@
click=
"videoshow(scope.row.url)"
slot=
"reference"
v-show=
"scope.row.url != undefined"
:src=
"scope.row.url"
:style=
"
{width: '38%',height: '100px'}" />
...
@@ -94,6 +102,7 @@
...
@@ -94,6 +102,7 @@
name
:
"Problems"
,
name
:
"Problems"
,
data
()
{
data
()
{
return
{
return
{
srcList
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 非单个禁用
// 非单个禁用
...
@@ -138,6 +147,11 @@
...
@@ -138,6 +147,11 @@
closevideo
(){
closevideo
(){
this
.
isplayvideo
=
false
this
.
isplayvideo
=
false
},
},
vbs
(
val
)
{
this
.
srcList
=
[]
this
.
srcList
.
push
(
val
)
console
.
info
(
this
.
srcList
)
},
}
}
};
};
</
script
>
</
script
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论