diff --git a/aircraft/server/equipment/equipment.vue b/aircraft/server/equipment/equipment.vue index 11110a1..a080457 100644 --- a/aircraft/server/equipment/equipment.vue +++ b/aircraft/server/equipment/equipment.vue @@ -1,46 +1,217 @@ \ No newline at end of file + diff --git a/aircraft/server/equipment/equipmentDetail.vue b/aircraft/server/equipment/equipmentDetail.vue new file mode 100644 index 0000000..8003d9d --- /dev/null +++ b/aircraft/server/equipment/equipmentDetail.vue @@ -0,0 +1,693 @@ + + + + + diff --git a/aircraft/server/index/index.vue b/aircraft/server/index/index.vue index 1f45369..d7e4ed0 100644 --- a/aircraft/server/index/index.vue +++ b/aircraft/server/index/index.vue @@ -67,7 +67,8 @@ export default { { name: '设备', icon: 'equipment.png', - select: 'equipment-select.png' + select: 'equipment-select.png', + navTitle: '爱尚云' }, { name: '路线', diff --git a/common/http.api.js b/common/http.api.js index 52bc942..ddb8ec9 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -31,8 +31,16 @@ const install = (Vue, vm) => { vm.$api.deleteOrderTask = async (orderTaskId) => await vm.$u.delete(`/api/order/deleteOrderTask/${orderTaskId}`);// 删除飞行任务 vm.$api.editOrderStatus = async (orderTaskId,taskStatus) => await vm.$u.put(`/api/order/editOrderStatus/${orderTaskId}/${taskStatus}`);// 编辑订单飞行任务状态 + // 路线管理 + vm.$api.getRoutes = async (params = {}) => await vm.$u.get('/cpRoute',params);// 获取路线列表 + vm.$api.singleRoute = async (id) => await vm.$u.get(`/cpRoute/${id}`);// 查询单个路线 + // 设备管理 vm.$api.obtainDeviceList = async (params = {}) => await vm.$u.get('/api/dataDropdown/obtainDeviceList',params);// 获取设备下拉列表 + vm.$api.getDevices = async (params = {}) => await vm.$u.get('/aircraft/device/page',params);// 获取设备列表 +vm.$api.getDevicesDetail = async (id) => await vm.$u.get(`/aircraft/device/${id}`);// 获取设备详情 + vm.$api.getMaintenanceRecords = async (params = {}) => await vm.$u.get('/aircraft/maintenance/page',params);// 获取设备维保记录 + vm.$api.addMaintenanceRecord = async (params = {}) => await vm.$u.post('/aircraft/maintenance',params);// 新增设备维保记录 // 客户管理 vm.$api.allCustomers = async () => await vm.$u.get('/cnCustomer/all');// 获取全部客户 diff --git a/pages.json b/pages.json index fb231e5..7e56039 100644 --- a/pages.json +++ b/pages.json @@ -93,6 +93,13 @@ "navigationBarTitleText": "个人信息", "navigationStyle": "default" } + }, + { + "path" : "equipment/equipmentDetail", + "style" : + { + "navigationBarTitleText" : "设备详情" + } }] } ], diff --git a/static/devicebg.png b/static/devicebg.png new file mode 100644 index 0000000..b317c25 Binary files /dev/null and b/static/devicebg.png differ diff --git a/static/drone.png b/static/drone.png new file mode 100644 index 0000000..c1bd4de Binary files /dev/null and b/static/drone.png differ