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
c53a983e
Commit
c53a983e
authored
Nov 15, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直客组件
parent
d352d0b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
WebSiteEdit.vue
src/components/WebSet/WebSiteEdit.vue
+1
-0
indexNav.vue
src/components/WebSet/home/indexNav.vue
+49
-1
No files found.
src/components/WebSet/WebSiteEdit.vue
View file @
c53a983e
...
@@ -459,6 +459,7 @@
...
@@ -459,6 +459,7 @@
this
.
currentEditItem
=
item
;
this
.
currentEditItem
=
item
;
this
.
commonTitle
=
item
.
plugData
.
Title
;
this
.
commonTitle
=
item
.
plugData
.
Title
;
this
.
currentEditItemData
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
plugData
));
this
.
currentEditItemData
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
plugData
));
if
(
!
this
.
currentEditItemData
.
BottomList
)
this
.
$set
(
this
.
currentEditItemData
,
'BottomList'
,[])
},
},
//获取数据
//获取数据
setSubPlugData
()
{
setSubPlugData
()
{
...
...
src/components/WebSet/home/indexNav.vue
View file @
c53a983e
...
@@ -99,6 +99,47 @@
...
@@ -99,6 +99,47 @@
<el-color-picker
style=
'vertical-align: middle;'
v-model=
"plugData.BgColor"
></el-color-picker>
<el-color-picker
style=
'vertical-align: middle;'
v-model=
"plugData.BgColor"
></el-color-picker>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<tbody>
<tr>
<td
class=
"caidantext"
>
{{
$t
(
'objFill.v101.activity.lianjie'
)
}}
</td>
<td></td>
<td
class=
"rowEnd"
>
<div>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"'+ '+$t('objFill.v101.activity.lianjie')"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
circle
@
click=
"addMenu(3)"
></el-button>
</el-tooltip>
</div>
</td>
</tr>
<tr
v-for=
"(item,index) in plugData.BottomList"
:key=
"index"
>
<td>
<el-form-item
:label=
"$t('objFill.v101.activity.lianjie')+$t('objFill.biaoti')+(index+1)"
style=
"margin-bottom: 0;"
>
<el-input
type=
"text"
v-model=
"item.LinkTitle"
></el-input>
</el-form-item>
</td>
<td>
<el-form-item
:label=
"$t('objFill.v101.activity.lianjie')+$t('objFill.v101.lianjie')+(index+1)"
style=
"margin-bottom: 0;"
>
<el-input
type=
"text"
v-model=
"item.LinkUrl"
></el-input>
</el-form-item>
</td>
<td>
<el-tooltip
v-show=
"plugData.BottomList.length>1"
class=
"item"
effect=
"dark"
:content=
"'- '+$t('objFill.v101.activity.lianjie')"
placement=
"top"
>
<el-button
type=
"danger"
icon=
"el-icon-minus"
size=
"mini"
circle
@
click=
"delMenu(3,index)"
></el-button>
</el-tooltip>
</td>
</tr>
</tbody>
<!--
<el-form-item
:label=
"$t('objFill.biaoti')+(index+1)"
style=
"margin-bottom: 0;"
>
<el-input
type=
"text"
v-model=
"item.LinkUrl"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('objFill.v101.lianjie')+(index+1)"
style=
"margin-bottom: 0;"
>
<el-input
type=
"text"
v-model=
"item.LinkUrl"
></el-input>
</el-form-item>
-->
<table>
<table>
<tbody
v-for=
"(item,index) in plugData.MenuList"
:key=
"index"
>
<tbody
v-for=
"(item,index) in plugData.MenuList"
:key=
"index"
>
<tr>
<tr>
...
@@ -119,7 +160,6 @@
...
@@ -119,7 +160,6 @@
</tr>
</tr>
<tr>
<tr>
<td
class=
"w350"
>
<td
class=
"w350"
>
<el-form-item
:label=
"$t('objFill.v101.fengmian')"
style=
"margin-bottom: 0;"
>
<el-form-item
:label=
"$t('objFill.v101.fengmian')"
style=
"margin-bottom: 0;"
>
<div
class=
"webSliderDiv"
@
click=
"clickIndex=index"
>
<div
class=
"webSliderDiv"
@
click=
"clickIndex=index"
>
<el-upload
v-if=
"item.FileType==1"
:http-request=
"UploadAttachment"
:multiple=
"true"
<el-upload
v-if=
"item.FileType==1"
:http-request=
"UploadAttachment"
:multiple=
"true"
...
@@ -270,6 +310,10 @@
...
@@ -270,6 +310,10 @@
MenuName
:
''
,
MenuName
:
''
,
MenuSubName
:
''
,
MenuSubName
:
''
,
SubMenuList
:
null
,
SubMenuList
:
null
,
},
BottomList
:
{
LinkTitle
:
''
,
LinkUrl
:
''
,
}
}
};
};
},
},
...
@@ -283,6 +327,8 @@
...
@@ -283,6 +327,8 @@
this
.
plugData
.
MenuList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
MenuList
)))
this
.
plugData
.
MenuList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
MenuList
)))
}
else
if
(
type
==
2
){
}
else
if
(
type
==
2
){
this
.
plugData
.
MenuList
[
index
].
SubMenuList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
SubMenuList
)))
this
.
plugData
.
MenuList
[
index
].
SubMenuList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
SubMenuList
)))
}
else
if
(
type
==
3
){
this
.
plugData
.
BottomList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
BottomList
)))
}
}
},
},
delMenu
(
type
,
index
,
i
){
delMenu
(
type
,
index
,
i
){
...
@@ -291,6 +337,8 @@
...
@@ -291,6 +337,8 @@
this
.
plugData
.
MenuList
.
splice
(
index
,
1
)
this
.
plugData
.
MenuList
.
splice
(
index
,
1
)
}
else
if
(
type
==
2
){
}
else
if
(
type
==
2
){
this
.
plugData
.
MenuList
[
index
].
SubMenuList
.
splice
(
i
,
1
)
this
.
plugData
.
MenuList
[
index
].
SubMenuList
.
splice
(
i
,
1
)
}
else
if
(
type
==
3
){
this
.
plugData
.
BottomList
.
splice
(
i
,
1
)
}
}
},
},
//上传图片
//上传图片
...
...
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