diff --git a/main.js b/main.js
index 4fd4782..423320d 100644
--- a/main.js
+++ b/main.js
@@ -31,5 +31,8 @@ Vue.prototype.util = util;
import gcoord from "@/utils/gcoord.js";
Vue.prototype.gcoord = gcoord;
+import moment from "moment"
+Vue.prototype.$moment = moment;
+
import {VueJsonp} from 'vue-jsonp' //中间有忘记大括号出现install undefind问题
Vue.use(VueJsonp)
diff --git a/package.json b/package.json
index 960f981..f68dc21 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,6 @@
{
"dependencies": {
+ "moment": "^2.29.4",
"uview-ui": "^1.8.4",
"vue-jsonp": "^2.0.0"
}
diff --git a/pages.json b/pages.json
index 739b1b7..d1f0fab 100644
--- a/pages.json
+++ b/pages.json
@@ -1,179 +1,191 @@
-{
- "easycom": {
- "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
- },
- "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-
- {
- "path": "pages/login/login",
- "style": {
- "navigationBarTitleText": "巡查登录",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
-
- },
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "巡查养护",
- "app-plus": { //uni-app项目对应节点名称为"app-plus"
- "titleNView": {
- "autoBackButton":false,
- "buttons": [
- {
- "float": "left",
- "type": "home"
- }
- ]
- }
- }
- }
- }, {
- "path": "pages/mine/mine",
- "style": {
- "navigationBarTitleText": "我的",
- "enablePullDownRefresh": false
- }
-
- }
- ,{
- "path" : "road/road/road",
- "style" :
- {
- "navigationBarTitleText": "选择道路",
- "enablePullDownRefresh": false
- }
-
- }
-
- ],
- "subPackages": [{
- "root": "packageA/pages",
- "pages": [{
- "path": "generalPatrol/generalPatrol",
- "style": {
- "navigationBarTitleText": "通用巡查",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "generalList/generalList",
- "style": {
- "navigationBarTitleText": "通用巡查",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "generalPatrol/viewPatrol",
- "style": {
- "navigationBarTitleText": "通用巡查",
- "enablePullDownRefresh": false
-
- }
-
- }]
- }, {
- "root": "packageB/pages",
- "pages": [{
- "path": "dailyInspection/dailyInspection",
- "style": {
- "navigationBarTitleText": "日常监管巡查",
- "enablePullDownRefresh": false
- }
-
- },{
- "path": "dailyList/dailyList",
- "style": {
- "navigationBarTitleText": "日常监管巡查",
- "enablePullDownRefresh": true
- }
- },{
- "path": "dailyInfo/dailyInfo",
- "style": {
- "navigationBarTitleText": "日常监管巡查",
- "enablePullDownRefresh": false
-
- }
- }]
- },{
- "root": "rainmaintain",
- "pages": [{
- "path": "rainmaintain/rainmaintain",
- "style": {
- "navigationBarTitleText": "雨管养护",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "rainmaintainlist/rainmaintainList",
- "style": {
- "navigationBarTitleText": "雨管养护",
- "enablePullDownRefresh": true
- // "disableScroll": true
- }
- }, {
- "path": "rainmaintaininfo/rainmaintainInfo",
- "style": {
- "navigationBarTitleText": "雨管养护",
- "enablePullDownRefresh": false
- // "disableScroll": true
+{
+ "easycom": {
+ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
+ },
+ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- }
- }]
- },{
- "root": "raininspection",
- "pages": [{
- "path": "raininspection/raininspection",
- "style": {
- "navigationBarTitleText": "雨管巡查",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "raininspectionlist/raininspectionList",
- "style": {
- "navigationBarTitleText": "雨管巡查",
- "enablePullDownRefresh": true
- // "disableScroll": true
- }
- }, {
- "path": "raininspectioninfo/raininspectionInfo",
- "style": {
- "navigationBarTitleText": "雨管巡查",
- "enablePullDownRefresh": false
- // "disableScroll": true
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": "巡查登录",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "巡查养护",
+ "app-plus": { //uni-app项目对应节点名称为"app-plus"
+ "titleNView": {
+ "autoBackButton": false,
+ "buttons": [{
+ "float": "left",
+ "type": "home"
+ }]
+ }
}
- }]
- }, {
- "root": "order/order",
- "pages": [{
- "path": "order/order",
- "style": {
- "navigationBarTitleText": "我的工单",
- "enablePullDownRefresh": false
- }
-
- },{
- "path": "orderList/orderList",
- "style": {
- "navigationBarTitleText": "我的工单",
+ }
+ }, {
+ "path": "pages/mine/mine",
+ "style": {
+ "navigationBarTitleText": "我的",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "road/road/road",
+ "style": {
+ "navigationBarTitleText": "选择道路",
+ "enablePullDownRefresh": false
+ }
+
+ }
+
+ ],
+ "subPackages": [{
+ "root": "packageA/pages",
+ "pages": [{
+ "path": "generalPatrol/generalPatrol",
+ "style": {
+ "navigationBarTitleText": "通用巡查",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "generalList/generalList",
+ "style": {
+ "navigationBarTitleText": "通用巡查",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "generalPatrol/viewPatrol",
+ "style": {
+ "navigationBarTitleText": "通用巡查",
+ "enablePullDownRefresh": false
+
+ }
+
+ }]
+ }, {
+ "root": "packageB/pages",
+ "pages": [{
+ "path": "dailyInspection/dailyInspection",
+ "style": {
+ "navigationBarTitleText": "日常监管巡查",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "dailyList/dailyList",
+ "style": {
+ "navigationBarTitleText": "日常监管巡查",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "dailyInfo/dailyInfo",
+ "style": {
+ "navigationBarTitleText": "日常监管巡查",
+ "enablePullDownRefresh": false
+
+ }
+ }]
+ }, {
+ "root": "rainmaintain",
+ "pages": [{
+ "path": "rainmaintain/rainmaintain",
+ "style": {
+ "navigationBarTitleText": "雨管养护",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "rainmaintainlist/rainmaintainList",
+ "style": {
+ "navigationBarTitleText": "雨管养护",
+ "enablePullDownRefresh": true
+ // "disableScroll": true
+ }
+ }, {
+ "path": "rainmaintaininfo/rainmaintainInfo",
+ "style": {
+ "navigationBarTitleText": "雨管养护",
+ "enablePullDownRefresh": false
+ // "disableScroll": true
+
+ }
+ }, {
+ "path": "plan/plan",
+ "style": {
+ "navigationBarTitleText": "雨管养护",
+ "enablePullDownRefresh": false
+ // "disableScroll": true
+
+ }
+ }]
+ }, {
+ "root": "raininspection",
+ "pages": [{
+ "path": "raininspection/raininspection",
+ "style": {
+ "navigationBarTitleText": "雨管巡查",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "raininspectionlist/raininspectionList",
+ "style": {
+ "navigationBarTitleText": "雨管巡查",
"enablePullDownRefresh": true
- // "disableScroll": true
- }
- },{
- "path": "orderInfo/orderInfo",
- "style": {
- "navigationBarTitleText": "我的工单",
- "enablePullDownRefresh": false
- // "disableScroll": true
-
- }
- }]
- }],
- "globalStyle": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "巡查养护",
- "navigationBarBackgroundColor": "#0385e5",
- "backgroundColor": "#F8F8F8"
- }
+ // "disableScroll": true
+ }
+ }, {
+ "path": "raininspectioninfo/raininspectionInfo",
+ "style": {
+ "navigationBarTitleText": "雨管巡查",
+ "enablePullDownRefresh": false
+ // "disableScroll": true
+
+ }
+ }, {
+ "path": "plan/plan",
+ "style": {
+ "navigationBarTitleText": "雨管巡查",
+ "enablePullDownRefresh": false
+ // "disableScroll": true
+
+ }
+ }]
+ }, {
+ "root": "order/order",
+ "pages": [{
+ "path": "order/order",
+ "style": {
+ "navigationBarTitleText": "我的工单",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "orderList/orderList",
+ "style": {
+ "navigationBarTitleText": "我的工单",
+ "enablePullDownRefresh": true
+ // "disableScroll": true
+ }
+ }, {
+ "path": "orderInfo/orderInfo",
+ "style": {
+ "navigationBarTitleText": "我的工单",
+ "enablePullDownRefresh": false
+ // "disableScroll": true
+
+ }
+ }]
+ }],
+ "globalStyle": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "巡查养护",
+ "navigationBarBackgroundColor": "#0385e5",
+ "backgroundColor": "#F8F8F8"
+ }
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 5ade41f..4a94084 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -8,12 +8,26 @@
+
+
+
+ 巡查计划
+
+
雨管巡查
+
+
+
+
+
+ 养护计划
+
+
@@ -123,6 +137,18 @@
}
});
},
+
+ toviewplan(type) {
+ var url = '/raininspection/plan/plan';
+ if (type == 2) {
+ url = "/rainmaintain/plan/plan"
+ }
+ uni.navigateTo({
+ url: url
+ })
+
+
+ },
toview(type) {
let url = "/packageA/pages/generalPatrol/generalPatrol";
// let url = "/road/road/road?type=general"
diff --git a/raininspection/plan/plan.vue b/raininspection/plan/plan.vue
new file mode 100644
index 0000000..40068c4
--- /dev/null
+++ b/raininspection/plan/plan.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ 巡查频率:
+
+
+ 每{{item.day}}一个循环
+
+
+ 所属片区:
+
+
+ {{item.area_info?item.area_info.name:''}}
+
+
+
+ 开始日期:
+
+
+ {{item.start_date}}
+
+
+ 结束日期:
+
+
+ {{item.end_date}}
+
+
+
+
+ 描述:
+
+
+ {{item.remark}}
+
+
+ 所属道路
+
+
+
+ {{mod.road.name}}
+
+
+ 去巡查
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/rainmaintain/plan/plan.vue b/rainmaintain/plan/plan.vue
new file mode 100644
index 0000000..9339d09
--- /dev/null
+++ b/rainmaintain/plan/plan.vue
@@ -0,0 +1,320 @@
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+ 所属片区:
+
+
+ {{item.area_info?item.area_info.name:''}}
+
+
+
+ 开始日期:
+
+
+ {{item.start_date}}
+
+
+ 结束日期:
+
+
+ {{item.end_date}}
+
+
+
+ 养护类型:
+
+
+ {{toReturnType(item.item_type)}}
+
+
+
+
+
+ 窨井(座):
+
+
+ {{item.inspection_well}}
+
+
+ 边井(座):
+
+
+ {{item.side_well}}
+
+
+ 主管数:
+
+
+ {{item.master_pipe}}
+
+
+ 支管数:
+
+
+ {{item.branch_pipe}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/road/road/road.vue b/road/road/road.vue
index 7183bde..01034d6 100644
--- a/road/road/road.vue
+++ b/road/road/road.vue
@@ -1,6 +1,5 @@
-