Commit b01963b6 by zhao_shaonan

新增查询全国航班、通讯录、全省客运信息界面

parent 7dc6a389
...@@ -495,16 +495,16 @@ ...@@ -495,16 +495,16 @@
mounted() { mounted() {
let self = this; let self = this;
for(let y in self.formData){ 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; self.formData[y]=self.$route.query.sjhm;
}else if(y=='zjhm'||y=='idCard'){ }else if(y=='zjhm'||y=='idCard'){
self.formData[y]=self.$route.query.zjhm; self.formData[y]=self.$route.query.zjhm;
} }
} }
if(self.$route.path=='/cxqghcdpxxIndex'){//全国火车订票页面没有分页 if(self.$route.path=='/cxqghcdpxxIndex'&&self.$route.path=='/cxqghbxxIndex'){//全国火车订票页面、全国航班没有分页
self.pageShow=false; 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 end = new Date();
const start = new Date(); const start = new Date();
let year = start.getFullYear(); let year = start.getFullYear();
...@@ -513,7 +513,11 @@ ...@@ -513,7 +513,11 @@
month = 12; month = 12;
year = year - 1; year = year - 1;
} }
if (month < 10) { if(month<0){
month = 12+month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month; month = "0" + month;
} }
let hours=end.getHours()<10?'0'+end.getHours():end.getHours(); let hours=end.getHours()<10?'0'+end.getHours():end.getHours();
......
...@@ -157,4 +157,31 @@ export default[ ...@@ -157,4 +157,31 @@ export default[
}, },
component: () => import("@/views/naoTu/cxhdxx.vue") 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")
},
] ]
...@@ -5427,6 +5427,182 @@ let naotuHdDefaultFormThead = [ ...@@ -5427,6 +5427,182 @@ let naotuHdDefaultFormThead = [
prop: "duti" 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 { export {
/*基础查询界面--数据*/ /*基础查询界面--数据*/
jccxFormData, jccxFormData,
...@@ -5542,4 +5718,25 @@ export { ...@@ -5542,4 +5718,25 @@ export {
naotuHdQueryField, naotuHdQueryField,
naotuHdFormData, naotuHdFormData,
naotuHdDefaultFormThead, naotuHdDefaultFormThead,
/*11、查询全国航班信息*/
naotuQghbHeader,
naotuQghbHeaderIcon,
naotuQghbURL,
naotuQghbQueryField,
naotuQghbFormData,
naotuQghbDefaultFormThead,
/*12、查询通讯录信息*/
naotuTxlHeader,
naotuTxlHeaderIcon,
naotuTxlURL,
naotuTxlQueryField,
naotuTxlFormData,
naotuTxlDefaultFormThead,
/*13、查询全省客运信息*/
naotuQskyxxHeader,
naotuQskyxxHeaderIcon,
naotuQskyxxURL,
naotuQskyxxQueryField,
naotuQskyxxFormData,
naotuQskyxxDefaultFormThead,
}; };
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
<el-button type="primary" @click="toxx('/cxqswbxxIndex')">查询全省网吧信息</el-button> <el-button type="primary" @click="toxx('/cxqswbxxIndex')">查询全省网吧信息</el-button>
<el-button type="primary" @click="toxx('/cxqskdxxIndex')">查询全省快递信息</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('/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> </div>
</template> </template>
...@@ -119,7 +121,7 @@ export default { ...@@ -119,7 +121,7 @@ export default {
}, },
toxx(path){ toxx(path){
let routeData; let routeData;
if(path!='/cxqgkdxxIndex'&&path!='/cxqskdxxIndex'&&path!='/cxhdxxIndex'){//全国快递信息、全省快递信息、话单信息 if(path!='/cxqgkdxxIndex'&&path!='/cxqskdxxIndex'&&path!='/cxhdxxIndex'&&path!='/cxtxlxxIndex'){//全国快递信息、全省快递信息、话单信息、查询通讯录信息
routeData = this.$router.resolve({ routeData = this.$router.resolve({
path: path, path: path,
query: {zjhm: '450392199018910065'} query: {zjhm: '450392199018910065'}
......
<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>
<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>
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment