diff --git a/api/check.js b/api/check.js index 719e90d..e234954 100644 --- a/api/check.js +++ b/api/check.js @@ -8,9 +8,39 @@ const JobInfo = 'https://smartwell.gd.smartlog.work/job/info' const DeviceDetail = 'https://smartwell.gd.smartlog.work/overview/deviceDetail' const WellInfo = 'https://smartwell.gd.smartlog.work/well/info' +const Welldata = 'https://smartwell.gd.smartlog.work/welldata/list-page' +const Liquiddata = 'https://smartwell.gd.smartlog.work/liquiddata/list-page' +const Gasdata = 'https://smartwell.gd.smartlog.work/gasdata/list-page' /** + * 获取燃气数据 + * @param {*} + */ +export function getGasdata(params) { + useNetWork(); + return fetch.get(Gasdata,params).then(res => res); +} + +/** + * 获取液位数据 + * @param {*} + */ +export function getLiquiddata(params) { + useNetWork(); + return fetch.get(Liquiddata,params).then(res => res); +} + +/** + * 获取井盖数据 + * @param {*} + */ +export function getWelldata(params) { + useNetWork(); + return fetch.get(Welldata,params).then(res => res); +} + +/** * 获取井口详情 * @param {*} */ diff --git a/api/check.js b/api/check.js index 719e90d..e234954 100644 --- a/api/check.js +++ b/api/check.js @@ -8,9 +8,39 @@ const JobInfo = 'https://smartwell.gd.smartlog.work/job/info' const DeviceDetail = 'https://smartwell.gd.smartlog.work/overview/deviceDetail' const WellInfo = 'https://smartwell.gd.smartlog.work/well/info' +const Welldata = 'https://smartwell.gd.smartlog.work/welldata/list-page' +const Liquiddata = 'https://smartwell.gd.smartlog.work/liquiddata/list-page' +const Gasdata = 'https://smartwell.gd.smartlog.work/gasdata/list-page' /** + * 获取燃气数据 + * @param {*} + */ +export function getGasdata(params) { + useNetWork(); + return fetch.get(Gasdata,params).then(res => res); +} + +/** + * 获取液位数据 + * @param {*} + */ +export function getLiquiddata(params) { + useNetWork(); + return fetch.get(Liquiddata,params).then(res => res); +} + +/** + * 获取井盖数据 + * @param {*} + */ +export function getWelldata(params) { + useNetWork(); + return fetch.get(Welldata,params).then(res => res); +} + +/** * 获取井口详情 * @param {*} */ diff --git a/api/user.js b/api/user.js index 5172366..f7690f0 100644 --- a/api/user.js +++ b/api/user.js @@ -5,6 +5,7 @@ const UserType = BASE_URL + "/user/getUserType"; const UserRegister = BASE_URL + "/user/userRegister"; const UpdateUserImg = BASE_URL + "/user/updateUserImg"; +const UserJurisdiction = BASE_URL + "/user/getUserJurisdiction"; export function login(code) { useNetWork(); @@ -13,6 +14,15 @@ } /** + * 获取到用户权限 + * @param {*} + */ +export function getUserJurisdiction(data) { + useNetWork(); + return fetch.post(UserJurisdiction,data).then((res) => res); +} + +/** * 获取到用户类型 * @param {*} */ diff --git a/api/check.js b/api/check.js index 719e90d..e234954 100644 --- a/api/check.js +++ b/api/check.js @@ -8,9 +8,39 @@ const JobInfo = 'https://smartwell.gd.smartlog.work/job/info' const DeviceDetail = 'https://smartwell.gd.smartlog.work/overview/deviceDetail' const WellInfo = 'https://smartwell.gd.smartlog.work/well/info' +const Welldata = 'https://smartwell.gd.smartlog.work/welldata/list-page' +const Liquiddata = 'https://smartwell.gd.smartlog.work/liquiddata/list-page' +const Gasdata = 'https://smartwell.gd.smartlog.work/gasdata/list-page' /** + * 获取燃气数据 + * @param {*} + */ +export function getGasdata(params) { + useNetWork(); + return fetch.get(Gasdata,params).then(res => res); +} + +/** + * 获取液位数据 + * @param {*} + */ +export function getLiquiddata(params) { + useNetWork(); + return fetch.get(Liquiddata,params).then(res => res); +} + +/** + * 获取井盖数据 + * @param {*} + */ +export function getWelldata(params) { + useNetWork(); + return fetch.get(Welldata,params).then(res => res); +} + +/** * 获取井口详情 * @param {*} */ diff --git a/api/user.js b/api/user.js index 5172366..f7690f0 100644 --- a/api/user.js +++ b/api/user.js @@ -5,6 +5,7 @@ const UserType = BASE_URL + "/user/getUserType"; const UserRegister = BASE_URL + "/user/userRegister"; const UpdateUserImg = BASE_URL + "/user/updateUserImg"; +const UserJurisdiction = BASE_URL + "/user/getUserJurisdiction"; export function login(code) { useNetWork(); @@ -13,6 +14,15 @@ } /** + * 获取到用户权限 + * @param {*} + */ +export function getUserJurisdiction(data) { + useNetWork(); + return fetch.post(UserJurisdiction,data).then((res) => res); +} + +/** * 获取到用户类型 * @param {*} */ diff --git a/pages.json b/pages.json index ca9a023..e2b2d71 100644 --- a/pages.json +++ b/pages.json @@ -84,7 +84,7 @@ "style" : { "navigationBarTitleText": "", - "enablePullDownRefresh": false + "enablePullDownRefresh": true } }, { @@ -145,11 +145,5 @@ ] } ], - "preloadRule": { - "pagesA/checkInfo/checkInfo": { - "network": "all", - "packages": ["pagesA"] - } - }, "uniIdRouter": {} } diff --git a/api/check.js b/api/check.js index 719e90d..e234954 100644 --- a/api/check.js +++ b/api/check.js @@ -8,9 +8,39 @@ const JobInfo = 'https://smartwell.gd.smartlog.work/job/info' const DeviceDetail = 'https://smartwell.gd.smartlog.work/overview/deviceDetail' const WellInfo = 'https://smartwell.gd.smartlog.work/well/info' +const Welldata = 'https://smartwell.gd.smartlog.work/welldata/list-page' +const Liquiddata = 'https://smartwell.gd.smartlog.work/liquiddata/list-page' +const Gasdata = 'https://smartwell.gd.smartlog.work/gasdata/list-page' /** + * 获取燃气数据 + * @param {*} + */ +export function getGasdata(params) { + useNetWork(); + return fetch.get(Gasdata,params).then(res => res); +} + +/** + * 获取液位数据 + * @param {*} + */ +export function getLiquiddata(params) { + useNetWork(); + return fetch.get(Liquiddata,params).then(res => res); +} + +/** + * 获取井盖数据 + * @param {*} + */ +export function getWelldata(params) { + useNetWork(); + return fetch.get(Welldata,params).then(res => res); +} + +/** * 获取井口详情 * @param {*} */ diff --git a/api/user.js b/api/user.js index 5172366..f7690f0 100644 --- a/api/user.js +++ b/api/user.js @@ -5,6 +5,7 @@ const UserType = BASE_URL + "/user/getUserType"; const UserRegister = BASE_URL + "/user/userRegister"; const UpdateUserImg = BASE_URL + "/user/updateUserImg"; +const UserJurisdiction = BASE_URL + "/user/getUserJurisdiction"; export function login(code) { useNetWork(); @@ -13,6 +14,15 @@ } /** + * 获取到用户权限 + * @param {*} + */ +export function getUserJurisdiction(data) { + useNetWork(); + return fetch.post(UserJurisdiction,data).then((res) => res); +} + +/** * 获取到用户类型 * @param {*} */ diff --git a/pages.json b/pages.json index ca9a023..e2b2d71 100644 --- a/pages.json +++ b/pages.json @@ -84,7 +84,7 @@ "style" : { "navigationBarTitleText": "", - "enablePullDownRefresh": false + "enablePullDownRefresh": true } }, { @@ -145,11 +145,5 @@ ] } ], - "preloadRule": { - "pagesA/checkInfo/checkInfo": { - "network": "all", - "packages": ["pagesA"] - } - }, "uniIdRouter": {} } diff --git a/pages/checkTable/checkTable.vue b/pages/checkTable/checkTable.vue index 242bb23..0596f82 100644 --- a/pages/checkTable/checkTable.vue +++ b/pages/checkTable/checkTable.vue @@ -15,16 +15,16 @@ - {{item.name}} + {{item.deviceTypeName}} - {{item.longdu}} + {{item.strength}} - {{item.dianliang}} + {{item.cell}} - {{item.time}} + {{item.logtime}} @@ -38,13 +38,13 @@ - {{item.name}} + {{item.deviceTypeName}} - {{item.dianliang}} + {{item.descn}} - {{item.time}} + {{item.logtime}} @@ -58,16 +58,16 @@ - {{item.name}} + {{item.deviceTypeName}} - {{item.longdu}} + {{item.descn}} - {{item.dianliang}} + {{item.cell}} - {{item.time}} + {{item.logtime}} @@ -115,6 +115,7 @@