Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
0d827096
Commit
0d827096
authored
Jun 16, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
52bd5f1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
22 deletions
+15
-22
WebSiteEdit.vue
src/components/WebSet/WebSiteEdit.vue
+5
-3
video.vue
src/components/WebSet/plug-in/video.vue
+10
-19
No files found.
src/components/WebSet/WebSiteEdit.vue
View file @
0d827096
...
...
@@ -91,7 +91,7 @@
<div
class=
"WebSite_right"
>
<div
class=
"WebSite_right_preview"
>
<div
v-for=
"(item,index) in dataList"
:key=
"index"
>
<plugvideo
v-if=
"item.Id=='white_label_video'"
:plugData=
"item.plugData"
></plugvideo>
<plugvideo
v-if=
"item.Id=='white_label_video'"
:plugData=
"item.plugData"
:currentIndex=
"index"
></plugvideo>
<plugpicture
v-if=
"item.Id=='white_label_slider'"
:plugData=
"item.plugData"
></plugpicture>
</div>
</div>
...
...
@@ -121,15 +121,17 @@
plugpicture
},
methods
:
{
//获取数据
getsubplugdata
(
index
,
obj
)
{
this
.
dataList
[
index
].
plugData
=
obj
;
},
//添加数据到组件列表
AddData
(
item
)
{
var
obj
=
{
Id
:
item
.
TemplateKey
,
plugData
:
item
.
TemplateData
};
console
.
log
(
item
);
this
.
dataList
.
push
(
obj
);
console
.
log
(
this
.
dataList
,
'datalist'
);
},
//获取下拉框
getTemplate
()
{
...
...
src/components/WebSet/plug-in/video.vue
View file @
0d827096
...
...
@@ -98,11 +98,11 @@
<
script
>
import
plugvideodialog
from
"../plug-in/video_dialog.vue"
export
default
{
props
:
[
"plugData"
],
props
:
[
"plugData"
,
"currentIndex"
],
data
()
{
return
{
isShowDialog
:
false
,
dialogData
:{}
isShowDialog
:
false
,
dialogData
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
plugData
)),
};
},
created
()
{},
...
...
@@ -110,21 +110,12 @@
plugvideodialog
},
methods
:
{
//向父组件传值 并调用排序
// resetSord(IsUp) {
// this.$emit('getSord', this.index, IsUp);
// },
// //点击触发父组件删除
// delPlugin() {
// this.$emit('comDelPlugin', this.index);
// },
setVideoInfo
(){
this
.
plugData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dialogData
));
this
.
isShowDialog
=
false
;
setVideoInfo
()
{
this
.
$parent
.
getsubplugdata
(
this
.
currentIndex
,
this
.
dialogData
);
this
.
isShowDialog
=
false
;
},
},
mounted
()
{
this
.
dialogData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
plugData
));
}
mounted
()
{}
};
</
script
>
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