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
77428188
Commit
77428188
authored
Dec 12, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
867fa2df
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2060 additions
and
2751 deletions
+2060
-2751
DomesticTravelcontract.vue
src/components/DomesticTravelcontract.vue
+984
-1372
commonTripList.vue
src/components/commonPage/commonTripList.vue
+171
-146
TravelFeature.vue
...nts/newTravelmanager/TravelGroupControl/TravelFeature.vue
+0
-2
onedayTripContract.vue
src/components/onedayTripContract.vue
+905
-1231
No files found.
src/components/DomesticTravelcontract.vue
View file @
77428188
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/commonPage/commonTripList.vue
View file @
77428188
<
style
>
.leftDayList
{
display
:
inline-block
;
width
:
30px
;
height
:
100%
;
vertical-align
:
top
;
}
.dayNum
{
font-weight
:
bold
;
font-size
:
16px
;
margin-left
:
-42px
;
position
:
relative
;
z-index
:
2
;
margin-bottom
:
5px
;
display
:
block
;
}
.siteList
{
display
:
inline-block
;
position
:
relative
;
border-left
:
2px
solid
#ebebec
;
position
:
relative
;
padding
:
0
0
50px
50px
;
margin-left
:
10px
;
}
.Trip_Content
{
margin-left
:
100px
;
}
.Trip_Content
:first-child
{
margin-top
:
20px
;
}
.Trip_Content
:last-child
{
margin-bottom
:
20px
;
}
.TC_circles
{
width
:
18px
;
height
:
18px
;
background
:
#fff
;
border-radius
:
100%
;
border
:
2px
solid
#90b7ec
;
position
:
absolute
;
left
:
-11px
;
top
:
0
;
}
.TripControl
{
display
:
inline-block
;
vertical-align
:
middle
;
position
:
relative
;
top
:
-170px
;
margin-left
:
30px
;
}
.TripControl
i
{
display
:
inline-block
;
width
:
30px
;
height
:
30px
;
line-height
:
30px
;
cursor
:
pointer
;
border-radius
:
50%
;
text-align
:
center
;
}
.TripControl
i
:hover
{
background-color
:
#90b7ec
;
color
:
#fff
;
}
.addTrip
{
width
:
30px
;
height
:
30px
;
color
:
#fff
;
text-align
:
center
;
font-size
:
25px
;
line-height
:
28px
;
background-color
:
#f60
;
border-radius
:
100%
;
cursor
:
pointer
;
margin
:
-2px
0
20px
130px
;
}
.leftDayList
{
display
:
inline-block
;
width
:
30px
;
height
:
100%
;
vertical-align
:
top
;
}
.dayNum
{
font-weight
:
bold
;
font-size
:
16px
;
margin-left
:
-42px
;
position
:
relative
;
z-index
:
2
;
margin-bottom
:
5px
;
display
:
block
;
}
.siteList
{
display
:
inline-block
;
position
:
relative
;
border-left
:
2px
solid
#ebebec
;
position
:
relative
;
padding
:
0
0
50px
50px
;
margin-left
:
10px
;
}
.Trip_Content
{
margin-left
:
100px
;
}
.Trip_Content
:first-child
{
margin-top
:
20px
;
}
.Trip_Content
:last-child
{
margin-bottom
:
20px
;
}
.TC_circles
{
width
:
18px
;
height
:
18px
;
background
:
#fff
;
border-radius
:
100%
;
border
:
2px
solid
#90b7ec
;
position
:
absolute
;
left
:
-11px
;
top
:
0
;
}
.TripControl
{
display
:
inline-block
;
vertical-align
:
middle
;
position
:
relative
;
top
:
-170px
;
margin-left
:
30px
;
}
.TripControl
i
{
display
:
inline-block
;
width
:
30px
;
height
:
30px
;
line-height
:
30px
;
cursor
:
pointer
;
border-radius
:
50%
;
text-align
:
center
;
}
.TripControl
i
:hover
{
background-color
:
#90b7ec
;
color
:
#fff
;
}
.addTrip
{
width
:
30px
;
height
:
30px
;
color
:
#fff
;
text-align
:
center
;
font-size
:
25px
;
line-height
:
28px
;
background-color
:
#f60
;
border-radius
:
100%
;
cursor
:
pointer
;
margin
:
-2px
0
20px
130px
;
}
</
style
>
<
template
>
<div>
<div
class=
"Trip_Content"
v-for=
"(item,index) in TripListArr
"
>
<div
class=
"leftDayList"
>
<span
class=
"dayNum"
>
第
{{
index
+
1
}}
天
</span
>
</div>
<div
class=
"site
List"
>
<el-form-item
label=
"前往地"
label-width=
'100px'
style=
"display:inline-block;"
>
<el-input
type=
"text"
class=
"w150"
v-model=
"item.Go"
></el-input
>
</el-form-item
>
<el-form-item
label=
"前往省份/国家地区"
label-width=
'16
0px'
style=
"display:inline-block;"
>
<el-input
type=
"text"
class=
"w150"
v-model=
"item.GoProvice
"
></el-input>
</el-form-item>
<el-form-item
label=
"是否过境"
label-width=
'10
0px'
style=
"display:inline-block;"
>
<el-checkbox
v-model=
"item.IsOut"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
></el-checkbox
>
</el-form-item>
<quill-editor
v-model=
"item.TravelContent"
style=
"height:300px;"
></quill-editor
>
<!--
<el-input
type=
"textarea"
resize=
"none"
rows=
"16"
cols=
"40"
v-model=
"item.TravelContent"
></el-input>
--
>
<div
class=
"TC_circles"
></div
>
</div>
<div
class=
"TripControl"
>
<!--
<i
class=
"iconfont icon-baocun1"
@
click=
"saveTripList(item,index)"
></i>
--
>
<i
class=
"iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click=
"delTrip(index)"
></i
>
</div
>
</div>
<div
class=
"addTrip"
@
click=
"addTrip()"
>
+
</div>
<div>
<div
v-if=
"TripType==0
"
>
<quill-editor
v-model=
"TripListArr[0].TravelContent"
style=
"height:400px;"
></quill-editor
>
</div
>
<div
v-else
class=
"Trip_Content"
v-for=
"(item,index) in TripListArr"
:key=
"index"
>
<div
class=
"leftDay
List"
>
<span
class=
"dayNum"
>
第
{{
index
+
1
}}
天
</span
>
</div
>
<div
class=
"siteList"
>
<el-form-item
label=
"前往地"
label-width=
'10
0px'
style=
"display:inline-block;"
>
<el-input
type=
"text"
class=
"w150"
v-model=
"item.Go
"
></el-input>
</el-form-item>
<el-form-item
label=
"前往省份/国家地区"
label-width=
'16
0px'
style=
"display:inline-block;"
>
<el-input
type=
"text"
class=
"w150"
v-model=
"item.GoProvice"
></el-input
>
</el-form-item>
<el-form-item
label=
"是否过境"
label-width=
'100px'
style=
"display:inline-block;"
>
<el-checkbox
v-model=
"item.IsOut"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
></el-checkbox
>
</el-form-item
>
<quill-editor
v-model=
"item.TravelContent"
style=
"height:300px;"
></quill-editor>
<div
class=
"TC_circles"
></div
>
</div
>
<div
class=
"TripControl"
>
<i
class=
"iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click=
"delTrip(index)"
></i
>
</div>
<div
class=
"addTrip"
@
click=
"addTrip()"
>
+
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:[
"ContractTripList"
],
data
()
{
return
{
checked
:
false
,
TripListArr
:[],
//选中过境
CheckedVaule
:
1
,
//不过境
UnCheckedVaule
:
0
,
export
default
{
props
:
[
"ContractTripList"
,
"TripType"
],
data
()
{
return
{
checked
:
false
,
TripListArr
:
[],
//选中过境
CheckedVaule
:
1
,
//不过境
UnCheckedVaule
:
0
,
};
},
mounted
()
{
};
},
mounted
()
{
if
(
this
.
ContractTripList
&&
this
.
ContractTripList
.
length
>
0
){
this
.
TripListArr
=
this
.
ContractTripList
;
}
},
methods
:
{
//添加行程
addTrip
(){
let
obj
=
{
DayNum
:
''
,
//天数
Go
:
''
,
// 前往地
GoProvice
:
''
,
//前往国家地区
IsOut
:
0
,
// 是否过境(0-不过,1-过)
TravelContent
:
''
,
//行程内容
},
created
()
{
if
(
this
.
ContractTripList
)
{
if
(
this
.
ContractTripList
.
length
>
0
)
{
this
.
TripListArr
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ContractTripList
));
}
else
{
var
tripObj
=
{
DayNum
:
1
,
//天数
Go
:
''
,
// 前往地
GoProvice
:
''
,
//前往国家地区
IsOut
:
0
,
// 是否过境(0-不过,1-过)
TravelContent
:
''
,
//行程内容
}
this
.
TripListArr
.
push
(
tripObj
);
}
}
},
methods
:
{
//添加行程
addTrip
()
{
let
obj
=
{
DayNum
:
''
,
//天数
Go
:
''
,
// 前往地
GoProvice
:
''
,
//前往国家地区
IsOut
:
0
,
// 是否过境(0-不过,1-过)
TravelContent
:
''
,
//行程内容
}
this
.
TripListArr
.
push
(
obj
);
this
.
getSavedData
();
},
//删除行程
delTrip
(
index
)
{
this
.
TripListArr
.
splice
(
index
,
1
);
},
//删除行程
delTrip
(
index
)
{
this
.
TripListArr
.
splice
(
index
,
1
);
this
.
getSavedData
();
},
//保存行程
// saveTripList(item,index){
// item.DayNum=index+1;
// item.IsShow=1;
// this.getSavedData();
// },
//遍历已经保存数据
getSavedData
(){
let
sendArr
=
[];
this
.
TripListArr
.
forEach
((
x
,
index
)
=>
{
x
.
DayNum
=
index
+
1
;
sendArr
.
push
(
x
);
},
//遍历已经保存数据
getSavedData
()
{
this
.
TripListArr
.
forEach
((
x
,
index
)
=>
{
x
.
DayNum
=
index
+
1
;
})
this
.
$emit
(
'tripData'
,
sendArr
);
}
},
watch
:
{
//监听参数
TripListArr
:
{
handler
:
function
(
val
,
oldVal
)
{
this
.
$emit
(
'tripData'
,
this
.
TripListArr
);
},
deep
:
true
},
}
}
};
}
;
</
script
>
src/components/newTravelmanager/TravelGroupControl/TravelFeature.vue
View file @
77428188
...
...
@@ -67,8 +67,6 @@
<div
v-if=
"FeatureData.FeatureType==FeatureTypeState.userDefined"
>
<span
class=
"userDeSpan"
>
{{
$t
(
'sm.xiaoguoyldzxg'
)
}}
</span>
<div
class=
"userDefined"
>
<!--
<quill-editor
@
change=
"onEditorChange($event)"
v-model=
"FeatureData.FeatureContent"
>
</quill-editor>
-->
<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>
...
...
src/components/onedayTripContract.vue
View file @
77428188
This diff is collapsed.
Click to expand it.
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