diff --git a/pages.json b/pages.json index 0d24beb..dc0d926 100644 --- a/pages.json +++ b/pages.json @@ -127,6 +127,32 @@ "navigationBarTitleText": "水运运输情况报送" } }, + { + "path": "pages/airport/airport-runData/list", + "style": { + "navigationBarTitleText": "机场运行数据", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/airport/airport-runData/form", + "style": { + "navigationBarTitleText": "机场运行数据报送" + } + }, + { + "path": "pages/airport/airport-runStatus/list", + "style": { + "navigationBarTitleText": "机场运行情况", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/airport/airport-runStatus/form", + "style": { + "navigationBarTitleText": "机场运行情况报送" + } + }, { "path": "pages/roadTransport/transportData/list", "style": { diff --git a/pages/airport/airport-runData/form.vue b/pages/airport/airport-runData/form.vue new file mode 100644 index 0000000..09cc40b --- /dev/null +++ b/pages/airport/airport-runData/form.vue @@ -0,0 +1,887 @@ + + + + diff --git a/pages/airport/airport-runData/list.vue b/pages/airport/airport-runData/list.vue new file mode 100644 index 0000000..2dd00e6 --- /dev/null +++ b/pages/airport/airport-runData/list.vue @@ -0,0 +1,445 @@ + + + + \ No newline at end of file diff --git a/pages/airport/airport-runStatus/form.vue b/pages/airport/airport-runStatus/form.vue new file mode 100644 index 0000000..a516f74 --- /dev/null +++ b/pages/airport/airport-runStatus/form.vue @@ -0,0 +1,502 @@ + + + + diff --git a/pages/airport/airport-runStatus/list.vue b/pages/airport/airport-runStatus/list.vue new file mode 100644 index 0000000..5e4e228 --- /dev/null +++ b/pages/airport/airport-runStatus/list.vue @@ -0,0 +1,445 @@ + + + + \ No newline at end of file diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue index d2abe6b..707e130 100644 --- a/pages/highWay/runData/form.vue +++ b/pages/highWay/runData/form.vue @@ -8,8 +8,13 @@ 基本信息 管理单位名称: - - {{form.organizationName}} + + + {{form.organizationName?form.organizationName:'请选择'}} + + + {{form.organizationName}} @@ -249,13 +254,17 @@ userInfo: {}, yoyMom: {}, //同比环比 showStaion: false, //展开收起 - pageType: '', + pageType: '', + deptNameList: [],//当前登录人所在单位 } }, onLoad(options) { - this.userInfo = uni.getStorageSync('userInfo'); + this.userInfo = uni.getStorageSync('userInfo'); + let arr = uni.getStorageSync('deptName'); + this.deptNameList = checkNotEmpty(arr) ? arr : []; if (options.type == 'add') { - this.form.organizationName = this.userInfo.organizationName ? this.userInfo.organizationName : ''; + this.form.organizationName = this.deptNameList.length > 0 ? this.deptNameList[0] : ''; + this.form.organizationNameIndex = this.deptNameList.length > 0 ? 0 : ''; this.pageType = 'add'; let now = new Date(); this.form.statDate = getDateStr(now, -1); //默认前一天 @@ -274,7 +283,11 @@ 'GET').then(res => { this.form = res.data; this.queryTime(); - this.queryStation(); + this.queryStation(); + if(checkNotEmpty(this.deptNameList)) { + let idx = this.deptNameList.findIndex(item => item = this.form.organizationName); + this.form.organizationNameIndex = idx > -1 ? idx : ''; + } }) }, //同比环比查询 diff --git a/pages/home/index.vue b/pages/home/index.vue index e4cf01d..4ab8fca 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,5 +1,9 @@