Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
常超
founder_vue
Commits
b01963b6
Commit
b01963b6
authored
Jan 06, 2021
by
zhao_shaonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增查询全国航班、通讯录、全省客运信息界面
parent
7dc6a389
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
347 additions
and
6 deletions
+347
-6
src/components/naotuTable_components.vue
+8
-4
src/router/modules/index.js
+27
-0
src/utils/params.js
+197
-0
src/views/Home.vue
+4
-2
src/views/naoTu/cxqghbxx.vue
+37
-0
src/views/naoTu/cxqskyxx.vue
+37
-0
src/views/naoTu/cxtxlxx.vue
+37
-0
No files found.
src/components/naotuTable_components.vue
View file @
b01963b6
...
...
@@ -495,16 +495,16 @@
mounted
()
{
let
self
=
this
;
for
(
let
y
in
self
.
formData
){
if
(
y
==
'sjhm'
||
y
==
'reph'
||
y
==
'seph'
||
y
==
'aist'
||
y
==
'bist'
){
if
(
y
==
'sjhm'
||
y
==
'reph'
||
y
==
'seph'
||
y
==
'aist'
||
y
==
'bist'
||
y
==
'mobile'
){
self
.
formData
[
y
]
=
self
.
$route
.
query
.
sjhm
;
}
else
if
(
y
==
'zjhm'
||
y
==
'idCard'
){
self
.
formData
[
y
]
=
self
.
$route
.
query
.
zjhm
;
}
}
if
(
self
.
$route
.
path
==
'/cxqghcdpxxIndex'
){
//全国火车订票页面
没有分页
if
(
self
.
$route
.
path
==
'/cxqghcdpxxIndex'
&&
self
.
$route
.
path
==
'/cxqghbxxIndex'
){
//全国火车订票页面、全国航班
没有分页
self
.
pageShow
=
false
;
}
if
(
self
.
$route
.
path
!=
'/cxqghcdpxxIndex'
&&
self
.
$route
.
path
!=
'/cxqgkdxxIndex'
&&
self
.
$route
.
path
!=
'/cxqskdxxIndex'
){
//全国火车订票和全国快递信息、全省快递信息
没有查询时间
if
(
self
.
$route
.
path
!=
'/cxqghcdpxxIndex'
&&
self
.
$route
.
path
!=
'/cxqgkdxxIndex'
&&
self
.
$route
.
path
!=
'/cxqskdxxIndex'
&&
self
.
$route
.
path
!=
'/cxqghbxxIndex'
&&
self
.
$route
.
path
!=
'/cxtxlxxIndex'
){
//全国火车订票和全国快递信息、全省快递信息、全国航班、通讯录
没有查询时间
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
...
...
@@ -513,7 +513,11 @@
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
if
(
month
<
0
){
month
=
12
+
month
;
year
=
year
-
1
;
}
if
(
month
<
10
&&
month
>
0
)
{
month
=
"0"
+
month
;
}
let
hours
=
end
.
getHours
()
<
10
?
'0'
+
end
.
getHours
():
end
.
getHours
();
...
...
src/router/modules/index.js
View file @
b01963b6
...
...
@@ -157,4 +157,31 @@ export default[
},
component
:
()
=>
import
(
"@/views/naoTu/cxhdxx.vue"
)
},
{
path
:
"/cxqghbxxIndex"
,
name
:
"cxqghbxxIndex"
,
meta
:
{
title
:
'查询全国航班信息'
,
auth
:
5
},
component
:
()
=>
import
(
"@/views/naoTu/cxqghbxx.vue"
)
},
{
path
:
"/cxtxlxxIndex"
,
name
:
"cxtxlxxIndex"
,
meta
:
{
title
:
'查询通讯录信息'
,
auth
:
5
},
component
:
()
=>
import
(
"@/views/naoTu/cxtxlxx.vue"
)
},
{
path
:
"/cxqskyxxIndex"
,
name
:
"cxqskyxxIndex"
,
meta
:
{
title
:
'查询全省客运信息'
,
auth
:
5
},
component
:
()
=>
import
(
"@/views/naoTu/cxqskyxx.vue"
)
},
]
src/utils/params.js
View file @
b01963b6
...
...
@@ -5427,6 +5427,182 @@ let naotuHdDefaultFormThead = [
prop
:
"duti"
}
];
/*11、查询全国航班信息*/
let
naotuQghbHeader
=
"查询全国航班信息"
;
let
naotuQghbHeaderIcon
=
"icondengjixinxi"
;
let
naotuQghbURL
=
"/common/getQgHbDpXx"
;
let
naotuQghbQueryField
=
[];
let
naotuQghbFormData
=
{
zjhm
:
''
};
let
naotuQghbDefaultFormThead
=
[
{
label
:
"航班号"
,
prop
:
"hbh"
},
{
label
:
"出发地"
,
prop
:
"cfjc"
},
{
label
:
"出发时间"
,
prop
:
"cfrq"
},
{
label
:
"目的地"
,
prop
:
"ddjc"
},
{
label
:
"到达时间"
,
prop
:
"ddrq"
}
];
/*12、查询通讯录信息*/
let
naotuTxlHeader
=
"查询通讯录信息"
;
let
naotuTxlHeaderIcon
=
"icondengjixinxi"
;
let
naotuTxlURL
=
"/nmsj/getMyTxlFw"
;
let
naotuTxlQueryField
=
[];
let
naotuTxlFormData
=
{
mobile
:
''
,
page
:
1
,
limit
:
10
};
let
naotuTxlDefaultFormThead
=
[
{
label
:
"姓名"
,
prop
:
"nm"
},
{
label
:
"联系人电话"
,
prop
:
"cote"
},
];
/*13、查询全省客运信息*/
let
naotuQskyxxHeader
=
"查询全省客运信息"
;
let
naotuQskyxxHeaderIcon
=
"icondengjixinxi"
;
let
naotuQskyxxURL
=
"/nmcl/getMyKyGj"
;
let
naotuQskyxxQueryField
=
[
{
name
:
"查询时间"
,
id
:
"cxSj"
,
type
:
"datetimerange"
,
value
:
""
,
col
:
"6"
,
pickerOptions
:
{
shortcuts
:
[
{
text
:
"最近一个月"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
();
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
},
{
text
:
"最近三个月"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
()
-
2
;
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
},
{
text
:
"最近六个月"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
()
-
5
;
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
},
{
text
:
"最近一年"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
()
-
11
;
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
0
)
{
month
=
12
+
month
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
}
]
}
}
];
let
naotuQskyxxFormData
=
{
idCard
:
""
,
cxSj
:
""
,
page
:
1
,
limit
:
10
};
let
naotuQskyxxDefaultFormThead
=
[
{
label
:
"发车时间"
,
prop
:
"stti"
},
{
label
:
"到达时间"
,
prop
:
"entm"
},
{
label
:
"出发地"
,
prop
:
"orai"
},
{
label
:
"目的地"
,
prop
:
"deai"
},
{
label
:
"车牌号"
,
prop
:
"veco"
}
];
export
{
/*基础查询界面--数据*/
jccxFormData
,
...
...
@@ -5542,4 +5718,25 @@ export {
naotuHdQueryField
,
naotuHdFormData
,
naotuHdDefaultFormThead
,
/*11、查询全国航班信息*/
naotuQghbHeader
,
naotuQghbHeaderIcon
,
naotuQghbURL
,
naotuQghbQueryField
,
naotuQghbFormData
,
naotuQghbDefaultFormThead
,
/*12、查询通讯录信息*/
naotuTxlHeader
,
naotuTxlHeaderIcon
,
naotuTxlURL
,
naotuTxlQueryField
,
naotuTxlFormData
,
naotuTxlDefaultFormThead
,
/*13、查询全省客运信息*/
naotuQskyxxHeader
,
naotuQskyxxHeaderIcon
,
naotuQskyxxURL
,
naotuQskyxxQueryField
,
naotuQskyxxFormData
,
naotuQskyxxDefaultFormThead
,
};
src/views/Home.vue
View file @
b01963b6
...
...
@@ -39,7 +39,9 @@
<el-button
type=
"primary"
@
click=
"toxx('/cxqswbxxIndex')"
>
查询全省网吧信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxqskdxxIndex')"
>
查询全省快递信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxhdxxIndex')"
>
查询话单信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxqghbxxIndex')"
>
查询全国航班信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxtxlxxIndex')"
>
查询通讯录信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxqskyxxIndex')"
>
查询全省客运信息
</el-button>
</div>
</
template
>
...
...
@@ -119,7 +121,7 @@ export default {
},
toxx
(
path
){
let
routeData
;
if
(
path
!=
'/cxqgkdxxIndex'
&&
path
!=
'/cxqskdxxIndex'
&&
path
!=
'/cxhdxxIndex'
){
//全国快递信息、全省快递信息、话单
信息
if
(
path
!=
'/cxqgkdxxIndex'
&&
path
!=
'/cxqskdxxIndex'
&&
path
!=
'/cxhdxxIndex'
&&
path
!=
'/cxtxlxxIndex'
){
//全国快递信息、全省快递信息、话单信息、查询通讯录
信息
routeData
=
this
.
$router
.
resolve
({
path
:
path
,
query
:
{
zjhm
:
'450392199018910065'
}
...
...
src/views/naoTu/cxqghbxx.vue
0 → 100644
View file @
b01963b6
<
template
>
<div
id=
"cxqghbxx"
>
<naotu-table
:cxQueryField=
"cxQueryField"
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxFormData=
"cxFormData"
:cxUrl=
"cxUrl"
:header=
"header"
:headerIcon=
"headerIcon"
></naotu-table>
</div>
</
template
>
<!--查询全国航班信息-->
<
script
>
import
naotuTable
from
"@c/naotuTable_components.vue"
;
import
{
naotuQghbHeader
,
naotuQghbHeaderIcon
,
naotuQghbURL
,
naotuQghbQueryField
,
naotuQghbFormData
,
naotuQghbDefaultFormThead
,
}
from
"@/utils/params"
;
export
default
{
name
:
"cxqghbxx"
,
components
:{
naotuTable
,
},
data
(){
return
{
cxQueryField
:
naotuQghbQueryField
,
cxDefaultFormThead
:
naotuQghbDefaultFormThead
,
cxFormData
:
naotuQghbFormData
,
cxUrl
:
naotuQghbURL
,
header
:
naotuQghbHeader
,
headerIcon
:
naotuQghbHeaderIcon
,
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/naoTu/cxqskyxx.vue
0 → 100644
View file @
b01963b6
<
template
>
<div
id=
"cxqskyxx"
>
<naotu-table
:cxQueryField=
"cxQueryField"
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxFormData=
"cxFormData"
:cxUrl=
"cxUrl"
:header=
"header"
:headerIcon=
"headerIcon"
></naotu-table>
</div>
</
template
>
<!--查询全省客运信息-->
<
script
>
import
naotuTable
from
"@c/naotuTable_components.vue"
;
import
{
naotuQskyxxHeader
,
naotuQskyxxHeaderIcon
,
naotuQskyxxURL
,
naotuQskyxxQueryField
,
naotuQskyxxFormData
,
naotuQskyxxDefaultFormThead
,
}
from
"@/utils/params"
;
export
default
{
name
:
"cxqskyxx"
,
components
:{
naotuTable
,
},
data
(){
return
{
cxQueryField
:
naotuQskyxxQueryField
,
cxDefaultFormThead
:
naotuQskyxxDefaultFormThead
,
cxFormData
:
naotuQskyxxFormData
,
cxUrl
:
naotuQskyxxURL
,
header
:
naotuQskyxxHeader
,
headerIcon
:
naotuQskyxxHeaderIcon
,
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/naoTu/cxtxlxx.vue
0 → 100644
View file @
b01963b6
<
template
>
<div
id=
"cxtxlxx"
>
<naotu-table
:cxQueryField=
"cxQueryField"
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxFormData=
"cxFormData"
:cxUrl=
"cxUrl"
:header=
"header"
:headerIcon=
"headerIcon"
></naotu-table>
</div>
</
template
>
<!--查询通讯录信息-->
<
script
>
import
naotuTable
from
"@c/naotuTable_components.vue"
;
import
{
naotuTxlHeader
,
naotuTxlHeaderIcon
,
naotuTxlURL
,
naotuTxlQueryField
,
naotuTxlFormData
,
naotuTxlDefaultFormThead
,
}
from
"@/utils/params"
;
export
default
{
name
:
"cxtxlxx"
,
components
:{
naotuTable
,
},
data
(){
return
{
cxQueryField
:
naotuTxlQueryField
,
cxDefaultFormThead
:
naotuTxlDefaultFormThead
,
cxFormData
:
naotuTxlFormData
,
cxUrl
:
naotuTxlURL
,
header
:
naotuTxlHeader
,
headerIcon
:
naotuTxlHeaderIcon
,
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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