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
972792a8
Commit
972792a8
authored
6 months ago
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
8cdc69b2
99cf9139
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
67 deletions
+84
-67
trainManagement.vue
src/components/Ticketing/trainManagement.vue
+36
-35
stationManagement.vue
src/components/systemManagement/stationManagement.vue
+48
-32
No files found.
src/components/Ticketing/trainManagement.vue
View file @
972792a8
...
@@ -127,7 +127,15 @@
...
@@ -127,7 +127,15 @@
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<ul>
<ul>
<li>
<li>
<label>
火车编号
</label>
<label>
交通类型
</label>
<el-select
v-model=
"msg.TrafficType"
filterable
:placeholder=
"$t('system.ph_buxian')"
class=
"w210"
>
<el-option
label=
"火车"
:value=
'2'
></el-option>
<el-option
label=
"轮船"
:value=
'3'
></el-option>
<el-option
label=
"巴士"
:value=
'4'
></el-option>
</el-select>
</li>
<li>
<label>
班次号
</label>
<el-input
v-model=
"msg.Flight_number"
placeholder=
""
@
keyup
.
native
.
enter=
"getList"
class=
"w210"
></el-input>
<el-input
v-model=
"msg.Flight_number"
placeholder=
""
@
keyup
.
native
.
enter=
"getList"
class=
"w210"
></el-input>
</li>
</li>
<li>
<li>
...
@@ -167,26 +175,29 @@
...
@@ -167,26 +175,29 @@
</div>
</div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<tr>
<th
width=
""
>
动车号
</th>
<th>
交通类型
</th>
<th
width=
""
>
班次号
</th>
<th
width=
""
>
出发城市
</th>
<th
width=
""
>
出发城市
</th>
<th
width=
""
>
出发站点
</th>
<th
width=
""
>
出发站点
</th>
<th>
出发时间
</th>
<th>
出发时间
</th>
<th>
到达城市
</th>
<th>
到达城市
</th>
<th>
达到站点
</th>
<th>
达到站点
</th>
<th>
到达时间
</th>
<th>
到达时间
</th>
<th>
用时
</th>
<th>
{{
$t
(
"admin.admin_czPerson"
)
}}
</th>
<th>
{{
$t
(
"admin.admin_czPerson"
)
}}
</th>
<th>
{{
$t
(
"hotel.table_operattime"
)
}}
</th>
<th>
{{
$t
(
"hotel.table_operattime"
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
"admin.admin_operate"
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
"admin.admin_operate"
)
}}
</th>
</tr>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
>
<td>
{{
item
.
Flight_number
}}
<td>
{{
item
.
TrafficType
==
2
?
'火车'
:
item
.
TrafficType
==
3
?
'轮船'
:
'巴士'
}}
</td>
</td>
<
td>
{{
item
.
Flight_number
}}
<
/td>
<td>
{{
item
.
DepartureCityName
}}
</td>
<td>
{{
item
.
DepartureCityName
}}
</td>
<td>
{{
item
.
DName
}}
</td>
<td>
{{
item
.
DName
}}
</td>
<td>
{{
item
.
Departure_time
}}
</td>
<td>
{{
item
.
Departure_time
}}
</td>
<td>
{{
item
.
ArrivalCityName
}}
</td>
<td>
{{
item
.
ArrivalCityName
}}
</td>
<td>
{{
item
.
AName
}}
</td>
<td>
{{
item
.
AName
}}
</td>
<td>
{{
item
.
Arrival_time
}}
</td>
<td>
{{
item
.
Arrival_time
}}
</td>
<td>
{{
item
.
FlyTime
}}
</td>
<td>
{{
item
.
emName
}}
</td>
<td>
{{
item
.
emName
}}
</td>
<td>
{{
item
.
UpdateDate
}}
</td>
<td>
{{
item
.
UpdateDate
}}
</td>
<td
style=
"position: relative;"
>
<td
style=
"position: relative;"
>
...
@@ -216,8 +227,15 @@
...
@@ -216,8 +227,15 @@
<el-dialog
custom-class=
'addCompany'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
<el-dialog
custom-class=
'addCompany'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<el-form-item
label=
"动车号"
prop=
"Flight_number"
class=
"other_input"
>
<el-form-item
label=
"交通类型"
>
<el-input
v-model=
"addMsg.Flight_number"
placeholder=
"请填写动车号"
></el-input>
<el-select
v-model=
"addMsg.TrafficType"
filterable
:placeholder=
"$t('system.ph_buxian')"
class=
"w210"
>
<el-option
label=
"火车"
:value=
'2'
></el-option>
<el-option
label=
"轮船"
:value=
'3'
></el-option>
<el-option
label=
"巴士"
:value=
'4'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"班次号"
prop=
"Flight_number"
class=
"other_input"
>
<el-input
v-model=
"addMsg.Flight_number"
placeholder=
"请填写班次号"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"出发城市"
prop=
"Departure_city"
>
<el-form-item
label=
"出发城市"
prop=
"Departure_city"
>
<el-select
v-model=
"addMsg.Departure_city"
filterable
placeholder=
"请选择出发城市"
<el-select
v-model=
"addMsg.Departure_city"
filterable
placeholder=
"请选择出发城市"
...
@@ -253,6 +271,10 @@
...
@@ -253,6 +271,10 @@
<el-input
type=
"text"
v-model=
"addMsg.Arrival_time"
@
keyup
.
native=
"checkTime(addMsg,'Arrival_time')"
<el-input
type=
"text"
v-model=
"addMsg.Arrival_time"
@
keyup
.
native=
"checkTime(addMsg,'Arrival_time')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"用时"
>
<el-input
type=
"text"
v-model=
"addMsg.FlyTime"
@
keyup
.
native=
"checkTime(addMsg,'FlyTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
...
@@ -296,7 +318,7 @@
...
@@ -296,7 +318,7 @@
Arrival_city
:
"0"
,
Arrival_city
:
"0"
,
Arrival_airport
:
"0"
,
Arrival_airport
:
"0"
,
Status
:
"0"
,
Status
:
"0"
,
TrafficType
:
2
,
TrafficType
:
2
,
//交通类型(1-飞机,2-火车,3-轮船,4-巴士)
},
},
addMsg
:
{
addMsg
:
{
ID
:
0
,
ID
:
0
,
...
@@ -318,7 +340,8 @@
...
@@ -318,7 +340,8 @@
synchronization
:
0
,
synchronization
:
0
,
StartDate
:
""
,
StartDate
:
""
,
EndDate
:
""
,
EndDate
:
""
,
TrafficType
:
2
TrafficType
:
2
,
//交通类型(1-飞机,2-火车,3-轮船,4-巴士)
FlyTime
:
""
,
//用时
},
},
SeasonTypeList
:
[],
SeasonTypeList
:
[],
DataList
:
[],
DataList
:
[],
...
@@ -441,7 +464,7 @@
...
@@ -441,7 +464,7 @@
//根据城市获取起飞机场
//根据城市获取起飞机场
let
msg
=
{
let
msg
=
{
City_id
:
ID
,
City_id
:
ID
,
TrafficType
:
2
,
TrafficType
:
this
.
addMsg
.
TrafficType
,
};
};
this
.
apipost
(
this
.
apipost
(
"airport_post_GetList"
,
"airport_post_GetList"
,
...
@@ -481,35 +504,16 @@
...
@@ -481,35 +504,16 @@
StartDate
:
""
,
StartDate
:
""
,
EndDate
:
""
,
EndDate
:
""
,
TrafficType
:
2
,
TrafficType
:
2
,
FlyTime
:
""
,
};
};
this
.
addMsg
=
newMsg
;
this
.
addMsg
=
newMsg
;
},
},
//根据城市获取经停机场
getaStopAirport
(
ID
,
blo
)
{
this
.
apipost
(
"airport_post_GetList"
,
{
City_id
:
ID
,
TrafficType
:
2
,
},
res
=>
{
if
(
this
.
outerVisible
)
{
if
(
!
blo
)
{
this
.
addMsg
.
Stopover_airport
=
""
;
}
this
.
layer_Stopover_airport
=
res
.
data
.
data
;
}
else
{
this
.
msg
.
Stopover_airport
=
"0"
;
this
.
Stopover_airport
=
res
.
data
.
data
;
}
},
err
=>
{}
);
},
getaArrivalAirport
(
ID
,
blo
)
{
getaArrivalAirport
(
ID
,
blo
)
{
//根据城市获取到达车站
//根据城市获取到达车站
let
msg
=
{
let
msg
=
{
City_id
:
ID
,
City_id
:
ID
,
TrafficType
:
2
,
TrafficType
:
this
.
addMsg
.
TrafficType
,
};
};
this
.
apipost
(
this
.
apipost
(
"airport_post_GetList"
,
"airport_post_GetList"
,
...
@@ -656,12 +660,9 @@
...
@@ -656,12 +660,9 @@
msg
,
msg
,
res
=>
{
res
=>
{
var
newMsg
=
res
.
data
.
data
;
var
newMsg
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
this
.
getaAirport
(
newMsg
.
Departure_city
,
true
);
this
.
getaAirport
(
newMsg
.
Departure_city
,
true
);
if
(
newMsg
.
Stopover_city
)
{
this
.
getaStopAirport
(
newMsg
.
Stopover_city
,
true
);
}
this
.
getaArrivalAirport
(
newMsg
.
Arrival_city
,
true
);
this
.
getaArrivalAirport
(
newMsg
.
Arrival_city
,
true
);
this
.
addMsg
=
res
.
data
.
data
;
},
},
err
=>
{}
err
=>
{}
);
);
...
...
This diff is collapsed.
Click to expand it.
src/components/systemManagement/stationManagement.vue
View file @
972792a8
...
@@ -43,6 +43,14 @@
...
@@ -43,6 +43,14 @@
</el-option>
</el-option>
</el-select>
</el-select>
</li>
</li>
<li>
<label>
交通类型
</label>
<el-select
v-model=
"msg.TrafficType"
filterable
:placeholder=
"$t('system.ph_buxian')"
class=
"w210"
>
<el-option
label=
"火车"
:value=
'2'
></el-option>
<el-option
label=
"轮船"
:value=
'3'
></el-option>
<el-option
label=
"巴士"
:value=
'4'
></el-option>
</el-select>
</li>
<li>
<li>
<label
class=
"margin_left_30"
>
{{
$t
(
'system.query_airName'
)
}}
</label>
<label
class=
"margin_left_30"
>
{{
$t
(
'system.query_airName'
)
}}
</label>
<el-input
v-model=
"msg.Name"
:placeholder=
"$t('system.ph_in')"
@
keyup
.
native
.
enter=
"getList"
class=
"w210"
>
<el-input
v-model=
"msg.Name"
:placeholder=
"$t('system.ph_in')"
@
keyup
.
native
.
enter=
"getList"
class=
"w210"
>
...
@@ -55,20 +63,24 @@
...
@@ -55,20 +63,24 @@
<el-option
key=
"1"
label=
"删除"
value=
"1"
></el-option>
<el-option
key=
"1"
label=
"删除"
value=
"1"
></el-option>
</el-select>
</el-select>
</li>
</li>
<li><input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<li><input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
<input
type=
"button"
class=
"normalBtn"
value=
"添加"
@
click=
"initAddMsg(),outerVisible=true,dialogTitle='新增车站'"
/></li>
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"添加"
@
click=
"initAddMsg(),outerVisible=true,dialogTitle='新增车站'"
/></li>
</ul>
</ul>
</div>
</div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th>
交通类型
</th>
<th>
{{
$t
(
'system.query_airName'
)
}}
</th>
<th>
{{
$t
(
'system.query_airName'
)
}}
</th>
<th>
{{
$t
(
'system.table_city'
)
}}
</th>
<th>
{{
$t
(
'system.table_city'
)
}}
</th>
<th>
{{
$t
(
'hotel.table_operater'
)
}}
</th>
<th>
{{
$t
(
'hotel.table_operater'
)
}}
</th>
<th>
{{
$t
(
'hotel.table_operattime'
)
}}
</th>
<th>
{{
$t
(
'hotel.table_operattime'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
</tr>
<tr
v-for=
"(item,index) in DataList"
>
<tbody
v-loading=
"loading"
>
<tr
v-for=
"(item,index) in DataList"
:key=
"`d_`+index"
>
<td>
{{
item
.
TrafficType
==
2
?
'火车'
:
item
.
TrafficType
==
3
?
'轮船'
:
'巴士'
}}
</td>
<td>
{{
item
.
Name
}}
</td>
<td>
{{
item
.
Name
}}
</td>
<td>
{{
item
.
CityName
}}
</td>
<td>
{{
item
.
CityName
}}
</td>
<td>
{{
item
.
EmName
}}
</td>
<td>
{{
item
.
EmName
}}
</td>
...
@@ -88,6 +100,7 @@
...
@@ -88,6 +100,7 @@
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
</tbody>
</table>
</table>
<div
class=
"noData"
v-show=
"noData"
>
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_noData'
)
}}
{{
$t
(
'system.content_noData'
)
}}
...
@@ -98,6 +111,13 @@
...
@@ -98,6 +111,13 @@
<el-dialog
custom-class=
'addCompany'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
<el-dialog
custom-class=
'addCompany'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form-item
label=
"交通类型"
>
<el-select
v-model=
"addMsg.TrafficType"
filterable
:placeholder=
"$t('system.ph_buxian')"
class=
"w210"
>
<el-option
label=
"火车"
:value=
'2'
></el-option>
<el-option
label=
"轮船"
:value=
'3'
></el-option>
<el-option
label=
"巴士"
:value=
'4'
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('system.table_country')"
prop=
"Country_id"
>
<el-form-item
:label=
"$t('system.table_country')"
prop=
"Country_id"
>
<el-select
v-model=
"addMsg.Country_id"
filterable
:placeholder=
"$t('system.ph_buxian')"
<el-select
v-model=
"addMsg.Country_id"
filterable
:placeholder=
"$t('system.ph_buxian')"
@
change=
"getProvinceListLayer(addMsg.Country_id,1)"
class=
"w210"
>
@
change=
"getProvinceListLayer(addMsg.Country_id,1)"
class=
"w210"
>
...
@@ -157,7 +177,7 @@
...
@@ -157,7 +177,7 @@
Name
:
''
,
Name
:
''
,
IATA
:
''
,
IATA
:
''
,
ICAO
:
''
,
ICAO
:
''
,
TrafficType
:
2
,
//
车站
TrafficType
:
2
,
//
交通类型(1-飞机,2-火车,3-轮船,4-巴士)
},
},
addMsg
:
{
addMsg
:
{
ID
:
''
,
ID
:
''
,
...
@@ -170,15 +190,11 @@
...
@@ -170,15 +190,11 @@
IATA
:
''
,
IATA
:
''
,
ICAO
:
''
,
ICAO
:
''
,
RankNum
:
''
,
RankNum
:
''
,
//经
Lng
:
''
,
//经
Lng
:
''
,
Lat
:
''
,
//纬
//纬
TrafficType
:
2
,
//交通类型(1-飞机,2-火车,3-轮船,4-巴士)
Lat
:
''
,
TrafficType
:
2
,
//车站
},
},
DataList
:
[],
DataList
:
[],
BranchGetList
:
[],
lineList
:
[],
countryList
:
''
,
countryList
:
''
,
provinceList
:
''
,
provinceList
:
''
,
cityList
:
''
,
cityList
:
''
,
...
...
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