diff --git a/api/patrol/patrol.js b/api/patrol/patrol.js new file mode 100644 index 0000000..f13dd73 --- /dev/null +++ b/api/patrol/patrol.js @@ -0,0 +1,35 @@ +import request from "@/utils/request"; + +//查询待巡检条数 +export function getPatrolCount() { + return request({ + url: "/patrol/task/patrolCount", + method: "get" + }); +} + +//查询待巡检列表 +export function listPatrol(query) { + return request({ + url: "/patrol/task/list", + method: "get", + params: query, + }); +} + +//查询待巡检详情 +export function getPatrolDetailsById(id) { + return request({ + url: "/patrol/task/" + id, + method: "get", + }); +} + +// 新增巡检任务报告 +export function addTaskReport(data) { + return request({ + url: "/patrol/task/report", + method: "post", + data: data, + }); +} diff --git a/manifest.json b/manifest.json index 2619602..b836afb 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "ipc_app", "appid" : "__UNI__B298C37", "description" : "", - "versionName" : "1.1.3", - "versionCode" : 103, + "versionName" : "1.1.4", + "versionCode" : 104, "transformPx" : false, "app-plus" : { "usingComponents" : true, @@ -15,7 +15,9 @@ "delay" : 0 }, "modules" : { - "Push" : {} + "Push" : {}, + "Camera" : {}, + "Record" : {} }, "distribute" : { "android" : { diff --git a/pages.json b/pages.json index c101fc7..2290746 100644 --- a/pages.json +++ b/pages.json @@ -143,6 +143,20 @@ { "navigationBarTitleText" : "报废详情" } + }, + { + "path" : "pages/work/patrol/listPatrol", + "style" : + { + "navigationBarTitleText" : "巡检任务" + } + }, + { + "path" : "pages/work/patrol/detailsPatrol", + "style" : + { + "navigationBarTitleText" : "巡检详情" + } }], "tabBar": { "color": "#000000", diff --git a/pages/index.vue b/pages/index.vue index d7b2586..4d97705 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,5 +1,27 @@