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
130d1fa0
Commit
130d1fa0
authored
Aug 21, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
5f45180f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
54 deletions
+72
-54
TravelFeature.vue
...nts/newTravelmanager/TravelGroupControl/TravelFeature.vue
+72
-54
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelFeature.vue
View file @
130d1fa0
...
...
@@ -81,19 +81,19 @@
<div
v-if=
"FeatureData.FeatureType==FeatureTypeState.userDefined"
>
<span
class=
"userDeSpan"
>
上传自定义行程特色和行程详情
</span>
<div
class=
"userDefined"
>
<!-- <my-edit v-on:edit-value="FeatureData.FeatureContent = arguments[0]"
v-bind:editValue="FeatureData.FeatureContent" v-bind:toolbarShow="toolbar"
v-bind:referenceList="DefaultList" v-bind:placeholder="placeholder"></my-edit> -->
<el-row>
<el-col>
<div
class=
"sliderContent clearfix"
style=
"width:1000px;"
>
<el-upload
class=
"upload-demo"
:http-request=
"reUpload"
:multiple=
"true"
accept=
"image/jpeg, image/gif, image/png, image/bmp"
:show-file-list=
"false"
action
>
<el-button
size=
"small"
type=
"primary"
@
click=
"updateTFimg(1)"
>
上传行程特色
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
style=
"color:red;"
>
横版1754*1240,竖版:1240X1754
</div>
</el-upload>
<div
class=
"TFSelfimgList"
v-for=
"(item,index) in FeatureData.TripImageListNew"
:key=
"item.subCode"
>
<img
:key=
"index+10000"
v-if=
"!item"
src=
"../../../assets/img/bg_c3@3x.png"
>
<img
:key=
"index+20000"
v-else
:src=
"item"
>
<div
:key=
"index+30000"
class=
"TFIMGzhe"
>
<div
class=
"TFSelfimgList"
style=
"margin-top:5px;"
v-for=
"(item,index) in FeatureData.TripImageListNew"
:key=
"item.subCode"
>
<img
:key=
"`t_f_`+index+10000"
v-if=
"!item"
src=
"../../../assets/img/bg_c3@3x.png"
>
<img
:key=
"`t_f_`+index+20000"
v-else
:src=
"item"
>
<div
:key=
"`t_f_`+index+30000"
class=
"TFIMGzhe"
>
<div
class=
"TFremove"
@
click=
"removeImg(1,index)"
>
<i
class=
"iconfont icon-xingzhuang"
></i>
</div>
...
...
@@ -110,17 +110,32 @@
</div>
</div>
</div>
<br
/>
</el-col>
</el-row>
<el-row>
<el-col>
<div
class=
"sliderContent clearfix"
style=
"width:1000px;"
>
<el-form
label-width=
"80px"
>
<el-form-item
label=
"行程详情"
>
<el-radio
v-model=
"FeatureData.IsUploadDetails"
:label=
"0"
>
系统生成
</el-radio>
<el-radio
v-model=
"FeatureData.IsUploadDetails"
:label=
"1"
>
自定义上传
</el-radio>
</el-form-item>
</el-form>
<
template
v-if=
"FeatureData.IsUploadDetails==1"
>
<el-upload
class=
"upload-demo"
:http-request=
"reUpload"
:multiple=
"true"
accept=
"image/jpeg, image/gif, image/png, image/bmp"
:show-file-list=
"false"
action
>
<el-button
size=
"small"
type=
"primary"
@
click=
"updateTFimg(2)"
>
上传行程详情
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
style=
"color:red;"
>
横版1754*1240,竖版:1240X1754
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
style=
"color:red;"
>
<font
style=
"font-weight:bold;font-size:14px;"
>
如果上传了自定义行程图片,系统将使用上传的文件作为行程详情;如果不上传,系统将根据开团行程自动生成行程详情。
</font>
<br
/>
横版1754*1240,竖版:1240X1754
</div>
</el-upload>
<div
class=
"TFSelfimgList"
v-for=
"(item,index) in FeatureData.DetailsImageListNew"
:key=
"item.subCode"
>
<img
:key=
"index+1000"
v-if=
"!item"
src=
"../../../assets/img/bg_c3@3x.png"
>
<img
:key=
"index+2000"
v-else
:src=
"item"
style=
"width:220px;height:180px;"
>
<div
:key=
"index+3000"
class=
"TFIMGzhe"
>
<div
class=
"TFSelfimgList"
style=
"margin-top:5px;"
v-for=
"(item,index) in FeatureData.DetailsImageListNew"
:key=
"item.subCode"
>
<img
:key=
"`t_f_d_`+index+1000"
v-if=
"!item"
src=
"../../../assets/img/bg_c3@3x.png"
>
<img
:key=
"`t_f_d_`+index+2000"
v-else
:src=
"item"
style=
"width:220px;height:180px;"
>
<div
:key=
"`t_f_d_`+index+3000"
class=
"TFIMGzhe"
>
<div
class=
"TFremove"
@
click=
"removeImg(2,index)"
>
<i
class=
"iconfont icon-xingzhuang"
></i>
</div>
...
...
@@ -136,7 +151,10 @@
</div>
</div>
</div>
</
template
>
</div>
</el-col>
</el-row>
</div>
</div>
<div
class=
"TFright"
v-if=
"FeatureData.FeatureType!=FeatureTypeState.userDefined"
>
...
...
@@ -392,7 +410,7 @@
let
srcArr
=
src
.
split
(
'?'
)
src
=
srcArr
[
0
]
let
isExsit
=
false
this
.
images
=
[];
this
.
images
=
[];
this
.
images
.
forEach
(
x
=>
{
if
(
x
===
src
)
isExsit
=
true
...
...
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