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
7462bb91
Commit
7462bb91
authored
Jun 16, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
4a824fa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
141 deletions
+30
-141
slider_dialog.vue
src/components/WebSet/plug-in/slider_dialog.vue
+30
-141
No files found.
src/components/WebSet/plug-in/slider_dialog.vue
View file @
7462bb91
...
@@ -30,138 +30,31 @@
...
@@ -30,138 +30,31 @@
<p
class=
"text-warning"
>
※ 無圖則不顯示
</p>
<p
class=
"text-warning"
>
※ 無圖則不顯示
</p>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<table>
<el-col
:span=
"12"
>
<tbody
v-for=
"(item,index) in plugData.Details"
:key=
"index"
>
<div
class=
"banner-cover"
>
<tr>
<img
src=
""
alt=
""
/>
<td>
</div>
<el-form-item
>
<div
class=
"form-group"
>
<div>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
<div
class=
"help-block"
>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
<div
class=
"webLogoDiv"
@
click=
"clickIndex=index"
>
</div>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
<div>
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
<img
v-if=
"item.LinkImg"
:src=
"item.LinkImg"
style=
"width:100px;height:80px"
alt=
""
/>
:show-file-list=
"false"
action=
""
>
<div
class=
"addIconDiv"
>
<el-button
type=
"primary"
size=
"small"
>
上傳
</el-button>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
</el-upload>
</div>
<el-button
type=
"danger"
size=
"small"
>
清除
</el-button>
</el-upload>
</div>
</div>
</el-col>
</el-form-item>
<el-col
:span=
"12"
>
</td>
<el-form-item
label=
"連結 1"
>
<td>
<el-input
type=
"text"
v-model=
"plugData.link1"
></el-input>
<el-form-item
:label=
"'連結'+(index+1)"
>
</el-form-item>
<el-input
type=
"text"
v-model=
"item.LinkUrl"
></el-input>
</el-col>
</el-form-item>
</el-row>
</td>
<el-row>
</tr>
<el-col
:span=
"12"
>
</tbody>
<div
class=
"banner-cover"
>
</table>
<img
src=
""
alt=
""
/>
</div>
<div
class=
"form-group"
>
<div
class=
"help-block"
>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
</div>
<div>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<el-button
type=
"primary"
size=
"small"
>
上傳
</el-button>
</el-upload>
<el-button
type=
"danger"
size=
"small"
>
清除
</el-button>
</div>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"連結 2"
>
<el-input
type=
"text"
v-model=
"plugData.link2"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<div
class=
"banner-cover"
>
<img
src=
""
alt=
""
/>
</div>
<div
class=
"form-group"
>
<div
class=
"help-block"
>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
</div>
<div>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<el-button
type=
"primary"
size=
"small"
>
上傳
</el-button>
</el-upload>
<el-button
type=
"danger"
size=
"small"
>
清除
</el-button>
</div>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"連結 3"
>
<el-input
type=
"text"
v-model=
"plugData.link3"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<div
class=
"banner-cover"
>
<img
src=
""
alt=
""
/>
</div>
<div
class=
"form-group"
>
<div
class=
"help-block"
>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
</div>
<div>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<el-button
type=
"primary"
size=
"small"
>
上傳
</el-button>
</el-upload>
<el-button
type=
"danger"
size=
"small"
>
清除
</el-button>
</div>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"連結 4"
>
<el-input
type=
"text"
v-model=
"plugData.link4"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<div
class=
"banner-cover"
>
<img
src=
""
alt=
""
/>
</div>
<div
class=
"form-group"
>
<div
class=
"help-block"
>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
</div>
<div>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<el-button
type=
"primary"
size=
"small"
>
上傳
</el-button>
</el-upload>
<el-button
type=
"danger"
size=
"small"
>
清除
</el-button>
</div>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"連結 5"
>
<el-input
type=
"text"
v-model=
"plugData.link5"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<div
class=
"banner-cover"
>
<img
src=
""
alt=
""
/>
</div>
<div
class=
"form-group"
>
<div
class=
"help-block"
>
圖片尺寸請上傳:1440x470,檔案請小於3M。前台顯示固定高度470px
</div>
</div>
<div>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<el-button
type=
"primary"
size=
"small"
>
上傳
</el-button>
</el-upload>
<el-button
type=
"danger"
size=
"small"
>
清除
</el-button>
</div>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"連結 6"
>
<el-input
type=
"text"
v-model=
"plugData.link6"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-form>
</div>
</div>
</
template
>
</
template
>
...
@@ -170,10 +63,12 @@
...
@@ -170,10 +63,12 @@
props
:
[
"plugData"
],
props
:
[
"plugData"
],
data
()
{
data
()
{
return
{
return
{
clickIndex
:
0
,
//点击图片索引
};
};
},
},
created
()
{},
created
()
{
console
.
log
(
"plugData"
,
this
.
plugData
);
},
methods
:
{
methods
:
{
//上传图片
//上传图片
UploadImage
(
file
)
{
UploadImage
(
file
)
{
...
@@ -184,13 +79,7 @@
...
@@ -184,13 +79,7 @@
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
var
str
=
x
.
data
.
FilePath
;
var
str
=
x
.
data
.
FilePath
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
str
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
str
;
// if (this.commonType == 1) {
this
.
plugData
.
Details
[
this
.
clickIndex
].
LinkImg
=
imgUrl
;
// } else if (this.commonType == 2) {
// } else {
// }
});
});
},
},
...
...
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