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
af36f9af
Commit
af36f9af
authored
Jan 08, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
1b51b4e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
42 deletions
+33
-42
ScenicTraffic.vue
...ponents/newTravelmanager/travelLineTrip/ScenicTraffic.vue
+33
-42
No files found.
src/components/newTravelmanager/travelLineTrip/ScenicTraffic.vue
View file @
af36f9af
...
...
@@ -20,7 +20,7 @@
text-align
:
center
;
line-height
:
25px
;
background-color
:
#fff
;
border
:
1px
solid
rgb
(
11
,
189
,
135
)
;
border
:
1px
solid
#E4E7ED
;
left
:
-33px
;
top
:
-2px
;
border-radius
:
50%
;
...
...
@@ -45,23 +45,29 @@
<div
class=
"St_mainDiv"
>
<div
v-if=
"!ishasScenic"
>
<div
v-if=
"CurrentDayNum!=1"
class=
"St_current"
style=
"margin-bottom:20px;"
>
<div
class=
"St_radioDiv Str1"
></div>
酒店出发1
<div
class=
"St_radioDiv Str1"
>
<i
class=
"iconfont icon-hotel"
></i>
</div>
酒店出发
</div>
<div
class=
"St_current"
style=
"margin-bottom:10px"
>
<template
v-if=
"trafficObj.trafficIntroduce.IntroduceTitle"
>
{{
trafficObj
.
trafficIntroduce
.
IntroduceTitle
}}
</
template
>
<
template
v-else
>
机场
</
template
>
<div
class=
"St_radioDiv Str1"
></div>
<div
class=
"St_radioDiv Str1"
>
<i
class=
"iconfont icon-Shape1"
></i>
</div>
</div>
<div>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"trafficObj.trafficIntroduce.TrafficType"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w120"
v-model=
"trafficObj.trafficIntroduce.TrafficType"
>
<el-option
v-for=
"item in ArrivalTypeArray"
:value=
"item.ID"
:key=
"item.ID"
:label=
"item.Name"
>
</el-option>
</el-select>
</div>
<div
v-if=
"CurrentDayNum!=totalDayNum"
class=
"St_current"
style=
"margin:10px 0"
>
<div
class=
"St_radioDiv"
></div>
<div
class=
"St_radioDiv"
>
<i
class=
"iconfont icon-hotel"
></i>
</div>
回酒店
</div>
</div>
...
...
@@ -80,7 +86,7 @@
{{item.CouponsName}}
</div>
<div>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w1
5
0"
v-model=
"item.TrafficType"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w1
2
0"
v-model=
"item.TrafficType"
>
<el-option
v-for=
"subItem in ArrivalTypeArray"
:value=
"subItem.ID"
:key=
"subItem.ID"
:label=
"subItem.Name"
>
</el-option>
...
...
@@ -91,9 +97,9 @@
:show-file-list=
"false"
action
>
<span>
上传
</span>
<span
@
click=
'getItem(index)'
>
上传
</span>
</el-upload>
<el-input
class=
"w180"
v-if=
"item.TrafficType==4"
placeholder=
"距离预计用时"
></el-input>
<el-input
class=
"w180"
v-if=
"item.TrafficType==4"
v-model=
"item.TrafficContent"
placeholder=
"距离预计用时"
></el-input>
</div>
</div>
<div
v-if=
"CurrentDayNum!=totalDayNum"
class=
"St_current"
style=
"margin:20px 0"
>
...
...
@@ -127,6 +133,7 @@
font
:
false
,
//字体
narrative
:
true
//叙述,
},
checkedIndex
:
''
,
//交通类型数组
ArrivalTypeArray
:
[{
ID
:
1
,
...
...
@@ -155,40 +162,24 @@
"my-edit"
:
MyEdit
},
methods
:
{
//上传图片
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
this
.
$t
(
"tips.wjdxbncgsz"
));
return
;
//获取index
getItem
(
index
)
{
this
.
checkedIndex
=
index
},
//上传图片
uploadFileBtn
(
file
)
{
let
that
=
this
let
newArr
=
[]
newArr
.
push
(
file
.
file
)
let
path
=
'/Upload/DMC'
this
.
$message
.
info
(
'上传中...'
)
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
ScenicArray
[
this
.
checkedIndex
].
TrafficImage
=
this
.
domainManager
()
.
ViittoFileUrl
+
x
.
data
.
FilePath
this
.
$message
.
success
(
x
.
data
.
Message
)
this
.
$forceUpdate
()
})
}
// 1 文档 2 数据 3 图片
let
typeArr
=
[{
stringArr
:
"GIF|JPG|JPEG|PNG|BMP"
,
type
:
3
}];
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
.
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
"-1"
)
{
fileTypeNumber
=
x
.
type
;
typeOk
=
true
;
}
});
if
(
!
typeOk
)
return
this
.
Error
(
this
.
$t
(
"tips.qsctpian"
));
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/activity/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
Success
(
this
.
$t
(
"tips.scchenggong"
));
});
},
},
mounted
()
{},
created
()
{},
...
...
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