Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
ecca0e33
提交
ecca0e33
authored
9月 20, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改布展单元显示的树为el-tree
上级
3061c73a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
66 行增加
和
26 行删除
+66
-26
index.vue
src/components/MenuList/index.vue
+2
-5
ExhibitionUnit.vue
src/views/display/components/ExhibitionUnit.vue
+10
-8
InfoEditDialog.vue
src/views/display/components/InfoEditDialog.vue
+4
-2
BlueStyle.vue
src/views/display/components/templates/BlueStyle.vue
+50
-11
没有找到文件。
src/components/MenuList/index.vue
浏览文件 @
ecca0e33
...
@@ -47,14 +47,11 @@ export default {
...
@@ -47,14 +47,11 @@ export default {
watch
:
{
watch
:
{
items
:
{
items
:
{
handler
:
function
(
value
)
{
handler
:
function
(
value
)
{
// debugger;
var
that
=
this
;
// console.log(111, value);
traveItems
(
value
);
traveItems
(
value
);
console
.
log
(
333
,
this
.
defaultOpends
);
let
that
=
this
;
function
traveItems
(
value
)
{
function
traveItems
(
value
)
{
// console.log(999,that);
if
(
value
&&
value
.
length
>
0
)
{
if
(
value
&&
value
.
length
>
0
)
{
debuggertff
value
.
map
((
item
)
=>
{
value
.
map
((
item
)
=>
{
if
(
item
.
euId
&&
that
.
defaultOpends
.
indexOf
(
item
.
euId
)
==
-
1
)
{
if
(
item
.
euId
&&
that
.
defaultOpends
.
indexOf
(
item
.
euId
)
==
-
1
)
{
that
.
defaultOpends
.
push
(
item
.
euId
);
that
.
defaultOpends
.
push
(
item
.
euId
);
...
...
src/views/display/components/ExhibitionUnit.vue
浏览文件 @
ecca0e33
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<el-row
:gutter=
"50"
>
<el-row
:gutter=
"50"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<div>
单元图片:
</div>
<div>
单元图片:
</div>
<Manual
Image
Uploader
<ManualUploader
v-model=
"currentData.imagesVo"
v-model=
"currentData.imagesVo"
:files=
"currentData.imagesVo"
:files=
"currentData.imagesVo"
:fileLimit=
"7"
:fileLimit=
"7"
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
<
script
>
<
script
>
let
euId
=
1000
;
let
euId
=
1000
;
import
Manual
Image
Uploader
from
"@/components/Uploader/ManualUploader.vue"
;
import
ManualUploader
from
"@/components/Uploader/ManualUploader.vue"
;
import
{
getCulturalRelicList
}
from
"@/api/culturalRelic"
;
import
{
getCulturalRelicList
}
from
"@/api/culturalRelic"
;
import
"quill/dist/quill.core.css"
;
import
"quill/dist/quill.core.css"
;
...
@@ -158,7 +158,7 @@ import { quillEditor } from "vue-quill-editor";
...
@@ -158,7 +158,7 @@ import { quillEditor } from "vue-quill-editor";
export
default
{
export
default
{
components
:
{
components
:
{
Manual
Image
Uploader
,
ManualUploader
,
quillEditor
,
quillEditor
,
},
},
props
:
{
props
:
{
...
@@ -172,9 +172,7 @@ export default {
...
@@ -172,9 +172,7 @@ export default {
handler
:
function
(
value
)
{
handler
:
function
(
value
)
{
if
(
value
)
{
if
(
value
)
{
let
that
=
this
;
let
that
=
this
;
// debugger
that
.
treeData
=
JSON
.
parse
(
JSON
.
stringify
(
value
));
that
.
treeData
=
JSON
.
parse
(
JSON
.
stringify
(
value
));
// console.log('currentData',this.treeData);
if
(
value
.
length
>
0
)
{
if
(
value
.
length
>
0
)
{
that
.
currentData
=
that
.
treeData
[
0
];
that
.
currentData
=
that
.
treeData
[
0
];
loopData
(
that
.
treeData
);
loopData
(
that
.
treeData
);
...
@@ -222,7 +220,7 @@ export default {
...
@@ -222,7 +220,7 @@ export default {
[{
font
:
[]
}],
// 字体种类-----[{ font: [] }]
[{
font
:
[]
}],
// 字体种类-----[{ font: [] }]
[{
align
:
[]
}],
// 对齐方式-----[{ align: [] }]
[{
align
:
[]
}],
// 对齐方式-----[{ align: [] }]
[
"clean"
],
// 清除文本格式-----['clean']
[
"clean"
],
// 清除文本格式-----['clean']
[
"image"
,
"video"
],
// 链接、图片、视频-----['link', 'image', 'video']
//
["image", "video"], // 链接、图片、视频-----['link', 'image', 'video']
];
];
return
{
return
{
...
@@ -280,6 +278,7 @@ export default {
...
@@ -280,6 +278,7 @@ export default {
handleClickNode
(
node
,
data
)
{
handleClickNode
(
node
,
data
)
{
this
.
currentData
=
data
;
this
.
currentData
=
data
;
// debugger
},
},
editNode
(
node
,
data
)
{
editNode
(
node
,
data
)
{
this
.
$set
(
data
,
"isEditing"
,
true
);
this
.
$set
(
data
,
"isEditing"
,
true
);
...
@@ -298,6 +297,7 @@ export default {
...
@@ -298,6 +297,7 @@ export default {
intro
:
""
,
intro
:
""
,
showMediaUploader
:
false
,
showMediaUploader
:
false
,
images
:
""
,
images
:
""
,
imagesVo
:[],
crIds
:
[],
crIds
:
[],
videos
:
""
,
videos
:
""
,
children
:
[],
children
:
[],
...
@@ -311,7 +311,6 @@ export default {
...
@@ -311,7 +311,6 @@ export default {
data
.
children
.
push
(
newChild
);
data
.
children
.
push
(
newChild
);
},
},
appendPeerNode
(
node
,
data
)
{
appendPeerNode
(
node
,
data
)
{
debugger
;
const
parent
=
node
.
parent
.
data
;
const
parent
=
node
.
parent
.
data
;
const
newChild
=
{
const
newChild
=
{
euId
:
euId
++
,
euId
:
euId
++
,
...
@@ -321,6 +320,7 @@ export default {
...
@@ -321,6 +320,7 @@ export default {
crIds
:
[],
crIds
:
[],
showMediaUploader
:
false
,
showMediaUploader
:
false
,
images
:
""
,
images
:
""
,
imagesVo
:[],
videos
:
""
,
videos
:
""
,
children
:
[],
children
:
[],
};
};
...
@@ -342,7 +342,9 @@ export default {
...
@@ -342,7 +342,9 @@ export default {
const
index
=
children
.
findIndex
((
d
)
=>
d
.
euId
===
data
.
euId
);
const
index
=
children
.
findIndex
((
d
)
=>
d
.
euId
===
data
.
euId
);
children
.
splice
(
index
,
1
);
children
.
splice
(
index
,
1
);
},
},
changeFileList
(
fileList
){
this
.
currentData
.
imagesVo
=
fileList
},
handleAddUnit
(
type
)
{
handleAddUnit
(
type
)
{
switch
(
type
)
{
switch
(
type
)
{
case
"manual"
:
case
"manual"
:
...
...
src/views/display/components/InfoEditDialog.vue
浏览文件 @
ecca0e33
...
@@ -365,7 +365,7 @@ export default {
...
@@ -365,7 +365,7 @@ export default {
[{
font
:
[]
}],
// 字体种类-----[{ font: [] }]
[{
font
:
[]
}],
// 字体种类-----[{ font: [] }]
[{
align
:
[]
}],
// 对齐方式-----[{ align: [] }]
[{
align
:
[]
}],
// 对齐方式-----[{ align: [] }]
[
"clean"
],
// 清除文本格式-----['clean']
[
"clean"
],
// 清除文本格式-----['clean']
[
"image"
,
"video"
],
// 链接、图片、视频-----['link', 'image', 'video']
//
["image", "video"], // 链接、图片、视频-----['link', 'image', 'video']
];
];
return
{
return
{
...
@@ -525,8 +525,9 @@ export default {
...
@@ -525,8 +525,9 @@ export default {
// return
// return
let
unitIds
=
[];
let
unitIds
=
[];
let
unitData
=
[...
this
.
$refs
[
"exhibitionUnits"
].
getUnitData
()];
let
unitData
=
[...
this
.
$refs
[
"exhibitionUnits"
].
getUnitData
()];
// debugger
// debugger
;
// return
// return
addUnitIds
(
unitData
);
//添加unit的id作为上传文件的key
addUnitIds
(
unitData
);
//添加unit的id作为上传文件的key
function
addUnitIds
(
arr
)
{
function
addUnitIds
(
arr
)
{
if
(
arr
.
length
>
0
)
{
if
(
arr
.
length
>
0
)
{
...
@@ -546,6 +547,7 @@ export default {
...
@@ -546,6 +547,7 @@ export default {
imageFiles
=
[
imageFiles
=
[
...
exhibitionUnitsDom
.
$refs
[
`unit-images-
${
euId
}
`
].
getFiles
(),
...
exhibitionUnitsDom
.
$refs
[
`unit-images-
${
euId
}
`
].
getFiles
(),
];
];
// debugger
}
}
if
(
exhibitionUnitsDom
.
$refs
[
`unit-videos-
${
euId
}
`
])
{
if
(
exhibitionUnitsDom
.
$refs
[
`unit-videos-
${
euId
}
`
])
{
...
...
src/views/display/components/templates/BlueStyle.vue
浏览文件 @
ecca0e33
...
@@ -43,7 +43,11 @@
...
@@ -43,7 +43,11 @@
class=
"img-container"
class=
"img-container"
@
click=
"handelPreviewImages(displayDetail.imagesVo)"
@
click=
"handelPreviewImages(displayDetail.imagesVo)"
>
>
<img
:src=
"$getFullUrl(item.pressUrl)"
alt=
"点击查看大图"
srcset=
""
/>
<img
:src=
"$getFullUrl(item.pressUrl)"
alt=
"点击查看大图"
srcset=
""
/>
</div>
</div>
<div
<div
class=
"enlarge"
class=
"enlarge"
...
@@ -212,12 +216,26 @@
...
@@ -212,12 +216,26 @@
"
"
>
>
<!-- 只能单开 unique-opened -->
<!-- 只能单开 unique-opened -->
<menu-list
<
!--
<
menu-list
:items=
"displayDetail.exhibitionUnits"
:items=
"displayDetail.exhibitionUnits"
:isCollapse=
"false"
:isCollapse=
"false"
@
open=
"handleOpenUnit"
@
open=
"handleOpenUnit"
style=
"height: 100%"
style=
"height: 100%"
></menu-list>
></menu-list>
-->
<el-tree
:data=
"displayDetail.exhibitionUnits"
node-key=
"euId"
default-expand-all
>
<div
class=
"exhibition-units-tree-node"
slot-scope=
"
{ node, data }"
>
<div
class=
"title"
@
click=
"handleOpenUnit(data)"
>
{{
data
.
title
}}
</div>
</div>
</el-tree>
</div>
</div>
<div
<div
class=
"unit-content wow animate__animated animate__fadeInRight"
class=
"unit-content wow animate__animated animate__fadeInRight"
...
@@ -318,10 +336,7 @@
...
@@ -318,10 +336,7 @@
class=
"img-container wow animate__animated animate__fadeInUp"
class=
"img-container wow animate__animated animate__fadeInUp"
@
click=
"handleToCr(item)"
@
click=
"handleToCr(item)"
>
>
<img
<img
:src=
"$getFullUrl(item.faceImagePressUrl)"
alt=
""
/>
:src=
"$getFullUrl(item.faceImagePressUrl)"
alt=
""
/>
<div
class=
"cr-name-intro"
v-if=
"index == 0"
>
<div
class=
"cr-name-intro"
v-if=
"index == 0"
>
<div
class=
"cr-name"
>
{{
item
.
name
}}
</div>
<div
class=
"cr-name"
>
{{
item
.
name
}}
</div>
<div
class=
"cr-intro"
>
{{
item
.
intro
}}
</div>
<div
class=
"cr-intro"
>
{{
item
.
intro
}}
</div>
...
@@ -514,7 +529,6 @@ export default {
...
@@ -514,7 +529,6 @@ export default {
}
}
},
},
// 点击音频
// 点击音频
handleClickAudio
()
{
handleClickAudio
()
{
this
.
audioPlaying
=
!
this
.
audioPlaying
;
this
.
audioPlaying
=
!
this
.
audioPlaying
;
...
@@ -568,7 +582,7 @@ export default {
...
@@ -568,7 +582,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
// 中国风主题样式
// 中国风主题样式
/**公共样式开始 */
/**公共样式开始 */
$blue
:
#2069c4
;
.custom-title
{
.custom-title
{
width
:
50px
;
width
:
50px
;
background-color
:
#d72f3f
;
background-color
:
#d72f3f
;
...
@@ -605,13 +619,13 @@ export default {
...
@@ -605,13 +619,13 @@ export default {
align-items
:
center
;
align-items
:
center
;
.svg-icon
{
.svg-icon
{
font-size
:
50px
;
font-size
:
50px
;
color
:
#2068c3
;
color
:
$blue
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.title
{
.title
{
font-size
:
26px
;
font-size
:
26px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#2069c4
;
color
:
$blue
;
line-height
:
101px
;
line-height
:
101px
;
}
}
}
}
...
@@ -869,6 +883,8 @@ export default {
...
@@ -869,6 +883,8 @@ export default {
.unit-content-menu
{
.unit-content-menu
{
width
:
360px
;
width
:
360px
;
margin-right
:
40px
;
margin-right
:
40px
;
background-image
:
url("~@/assets/imgs/display/normal/bg.png")
;
background-size
:
1%
;
}
}
.unit-content
{
.unit-content
{
flex
:
1
;
flex
:
1
;
...
@@ -1005,6 +1021,29 @@ export default {
...
@@ -1005,6 +1021,29 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
::v-deep
.el-tree
{
background
:
transparent
;
.el-tree-node__content
{
height
:
50px
;
:hover
{
background
:
#fff
;
color
:
$blue
;
}
}
.el-tree-node__expand-icon
{
// visibility: hidden;
}
// .el-tree-node {
// &:hover {
// .el-tree-node__content {
// background: #fff;
// color: $blue;
// }
// }
// }
}
@keyframes
filmMoveLeft
{
@keyframes
filmMoveLeft
{
0
%
{
0
%
{
transform
:
translateX
(
0
);
transform
:
translateX
(
0
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论