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
ed94b25b
Commit
ed94b25b
authored
Jul 28, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c0a6e71b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
WebSiteEdit.vue
src/components/WebSet/WebSiteEdit.vue
+29
-1
picture_dialog.vue
src/components/WebSet/plug-in/picture_dialog.vue
+2
-2
No files found.
src/components/WebSet/WebSiteEdit.vue
View file @
ed94b25b
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
</
template
>
</
template
>
<el-button
type=
"danger"
size=
"small"
@
click=
"deletePlug(index)"
>
刪除
</el-button>
<el-button
type=
"danger"
size=
"small"
@
click=
"deletePlug(index)"
>
刪除
</el-button>
<span
class=
"Movie_sj"
>
上架
</span>
<span
class=
"Movie_sj"
>
上架
</span>
<el-switch
v-model=
"item.isShelves"
:active-value=
"1"
:inactive-value=
"0"
active-color=
"#13ce66"
<el-switch
v-model=
"item.isShelves"
@
change=
"getSearchCount(item)"
:active-value=
"1"
:inactive-value=
"0"
active-color=
"#13ce66"
inactive-color=
"#dcdfe6"
></el-switch>
inactive-color=
"#dcdfe6"
></el-switch>
</div>
</div>
</div>
</div>
...
@@ -454,6 +454,34 @@
...
@@ -454,6 +454,34 @@
//数据改变
//数据改变
initData
(
tempData
)
{
initData
(
tempData
)
{
this
.
dataList
=
tempData
;
this
.
dataList
=
tempData
;
},
//遍历搜寻框只能上架一个
getSearchCount
(
item
){
var
isCount
=
0
,
isCount2
=
0
;
this
.
dataList
.
forEach
(
x
=>
{
if
(
x
.
Id
==
'search_s'
&&
x
.
isShelves
==
1
){
isCount
++
;
}
if
(
x
.
Id
==
'search_s'
&&
x
.
isShelves
==
0
){
isCount
--
;
}
if
(
x
.
Id
==
'search_sf'
&&
x
.
isShelves
==
1
){
isCount2
++
;
}
if
(
x
.
Id
==
'search_sf'
&&
x
.
isShelves
==
0
){
isCount2
--
;
}
})
if
(
item
.
Id
==
'search_s'
&&
isCount
>
0
){
this
.
Error
(
'搜尋輪播橫已经存在了'
);
item
.
isShelves
=
0
}
if
(
item
.
Id
==
'search_sf'
&&
isCount2
>
0
){
this
.
Error
(
'搜尋輪播淡出已经存在了'
);
item
.
isShelves
=
0
}
this
.
$forceUpdate
();
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/components/WebSet/plug-in/picture_dialog.vue
View file @
ed94b25b
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
<div
class=
"webSliderDiv myWebDiv"
@
click=
"clickIndex=index"
>
<div
class=
"webSliderDiv myWebDiv"
@
click=
"clickIndex=index"
>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
:show-file-list=
"false"
action=
""
>
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
style=
"width:auto;"
class=
"web_imgUrl"
alt=
""
/>
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
class=
"web_imgUrl"
alt=
""
/>
<div
class=
"addIconDiv"
>
<div
class=
"addIconDiv"
>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
<div
class=
"webSliderDiv webImg_radius"
@
click=
"clickIndex=index"
>
<div
class=
"webSliderDiv webImg_radius"
@
click=
"clickIndex=index"
>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
:show-file-list=
"false"
action=
""
>
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
style=
"width:auto;"
class=
"web_imgUrl"
alt=
""
/>
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
class=
"web_imgUrl"
alt=
""
/>
<div
class=
"addIconDiv"
>
<div
class=
"addIconDiv"
>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
...
...
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