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
Hide 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 @@
...
@@ -91,7 +91,7 @@
<div
class=
"WebSite_right"
>
<div
class=
"WebSite_right"
>
<div
class=
"WebSite_right_preview"
>
<div
class=
"WebSite_right_preview"
>
<div
v-for=
"(item,index) in dataList"
:key=
"index"
>
<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>
<plugpicture
v-if=
"item.Id=='white_label_slider'"
:plugData=
"item.plugData"
></plugpicture>
</div>
</div>
</div>
</div>
...
@@ -121,15 +121,17 @@
...
@@ -121,15 +121,17 @@
plugpicture
plugpicture
},
},
methods
:
{
methods
:
{
//获取数据
getsubplugdata
(
index
,
obj
)
{
this
.
dataList
[
index
].
plugData
=
obj
;
},
//添加数据到组件列表
//添加数据到组件列表
AddData
(
item
)
{
AddData
(
item
)
{
var
obj
=
{
var
obj
=
{
Id
:
item
.
TemplateKey
,
Id
:
item
.
TemplateKey
,
plugData
:
item
.
TemplateData
plugData
:
item
.
TemplateData
};
};
console
.
log
(
item
);
this
.
dataList
.
push
(
obj
);
this
.
dataList
.
push
(
obj
);
console
.
log
(
this
.
dataList
,
'datalist'
);
},
},
//获取下拉框
//获取下拉框
getTemplate
()
{
getTemplate
()
{
...
...
src/components/WebSet/plug-in/video.vue
View file @
0d827096
...
@@ -98,11 +98,11 @@
...
@@ -98,11 +98,11 @@
<
script
>
<
script
>
import
plugvideodialog
from
"../plug-in/video_dialog.vue"
import
plugvideodialog
from
"../plug-in/video_dialog.vue"
export
default
{
export
default
{
props
:
[
"plugData"
],
props
:
[
"plugData"
,
"currentIndex"
],
data
()
{
data
()
{
return
{
return
{
isShowDialog
:
false
,
isShowDialog
:
false
,
dialogData
:{}
dialogData
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
plugData
)),
};
};
},
},
created
()
{},
created
()
{},
...
@@ -110,21 +110,12 @@
...
@@ -110,21 +110,12 @@
plugvideodialog
plugvideodialog
},
},
methods
:
{
methods
:
{
//向父组件传值 并调用排序
setVideoInfo
()
{
// resetSord(IsUp) {
this
.
$parent
.
getsubplugdata
(
this
.
currentIndex
,
this
.
dialogData
);
// this.$emit('getSord', this.index, IsUp);
this
.
isShowDialog
=
false
;
// },
},
// //点击触发父组件删除
// delPlugin() {
// this.$emit('comDelPlugin', this.index);
// },
setVideoInfo
(){
this
.
plugData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dialogData
));
this
.
isShowDialog
=
false
;
},
},
},
mounted
()
{
mounted
()
{}
this
.
dialogData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
plugData
));
}
};
};
</
script
>
\ No newline at end of file
</
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