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
d60836fa
Commit
d60836fa
authored
Jun 28, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a54d1836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
29 deletions
+22
-29
picture_dialog.vue
src/components/WebSet/plug-in/picture_dialog.vue
+22
-29
No files found.
src/components/WebSet/plug-in/picture_dialog.vue
View file @
d60836fa
...
...
@@ -88,26 +88,26 @@
<el-row
v-if=
"plugData.Type==1||plugData.Type==2||plugData.Type==3"
>
<el-col
:span=
"24"
>
<el-form-item
:label=
"'行程名稱'+' '+(index+1)"
>
<el-input
type=
"text"
v-model=
"item.TripTitle
2
"
></el-input>
<el-input
type=
"text"
v-model=
"item.TripTitle"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
v-if=
"plugData.Type==1||plugData.Type==2"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"價格"
>
<el-input
type=
"text"
v-model=
"item.Price
2"
@
keyup
.
native=
"checkPrice(item,'Price2
')"
></el-input>
<el-input
type=
"text"
v-model=
"item.Price
"
@
keyup
.
native=
"checkPrice(item,'Price
')"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"天數"
>
<el-input
type=
"text"
v-model=
"item.DayNum
2"
@
keyup
.
native=
"checkInteger(item,'DayNum2
')"
></el-input>
<el-input
type=
"text"
v-model=
"item.DayNum
"
@
keyup
.
native=
"checkInteger(item,'DayNum
')"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"連結網址"
>
<el-input
type=
"text"
v-model=
"item.LinkUrl
2
"
maxlength=
"200"
></el-input>
<el-input
type=
"text"
v-model=
"item.LinkUrl"
maxlength=
"200"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -152,7 +152,7 @@
<el-row
v-for=
"(item,index) in plugData.Details"
:key=
"index"
style=
"margin-bottom:20px;"
>
<el-col
:span=
"10"
>
<div
class=
"webSliderDiv"
>
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
class=
"web_imgUrl"
alt=
""
/>
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
class=
"web_imgUrl"
alt=
""
/>
</div>
<div
style=
"margin-top:5px;"
>
圖片尺寸請上傳:800x530,檔案請小於3M
</div>
</el-col>
...
...
@@ -191,15 +191,9 @@
<el-row
v-for=
"(item,index) in plugData.Details"
:key=
"index"
style=
"margin-bottom:20px;"
>
<el-col
:span=
"8"
>
<div
class=
"webSliderDiv webImg_radius"
>
<!--
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
-->
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
style=
"width:auto;"
class=
"web_imgUrl"
alt=
""
/>
<!--
<div
class=
"addIconDiv"
>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click
.
stop=
"item.ImageUrl=''"
></i>
</div>
</el-upload>
-->
<img
v-if=
"item.ImageUrl"
:src=
"item.ImageUrl"
style=
"width:auto;"
class=
"web_imgUrl"
alt=
""
/>
</div>
</el-col>
<el-col
:span=
"16"
>
...
...
@@ -255,17 +249,6 @@
},
created
()
{},
methods
:
{
UploadImage
(
file
)
{
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
fileName
=
file
.
file
.
name
;
var
path
=
"/Upload/WebSite/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
var
str
=
x
.
data
.
FilePath
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
str
;
this
.
plugData
.
Details
[
this
.
clickIndex
].
ImageUrl
=
imgUrl
;
});
},
//获取选择行程数据
getChooseTripData
()
{
...
...
@@ -286,10 +269,20 @@
DayNum
:
item
.
DayNum
,
Price
:
item
.
B2BPrice
,
};
this
.
plugData
.
Details
[
this
.
checkIndex
].
ImageUrl
=
obj
.
imgUrl
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
Price2
=
obj
.
Price
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
TripTitle2
=
obj
.
Title
;
console
.
log
(
"plugData.Type"
,
this
.
plugData
.
Type
);
console
.
log
(
"obj"
,
obj
);
console
.
log
(
"this.plugData.Details[this.checkIndex]"
,
this
.
plugData
.
Details
[
this
.
checkIndex
]);
if
(
this
.
plugData
.
Type
==
1
||
this
.
plugData
.
Type
==
2
||
this
.
plugData
.
Type
==
3
)
{
this
.
plugData
.
Details
[
this
.
checkIndex
].
ImageUrl
=
obj
.
imgUrl
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
Price
=
obj
.
Price
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
TripTitle
=
obj
.
Title
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
DayNum
=
obj
.
DayNum
;
}
else
{
this
.
plugData
.
Details
[
this
.
checkIndex
].
ImageUrl
=
obj
.
imgUrl
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
Price2
=
obj
.
Price
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
TripTitle2
=
obj
.
Title
;
this
.
plugData
.
Details
[
this
.
checkIndex
].
DayNum2
=
obj
.
DayNum
;
}
this
.
$refs
.
chooseTrip
.
clearData
();
});
}
...
...
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