diff --git a/pages.json b/pages.json index 2a4711d..dbdd31d 100644 --- a/pages.json +++ b/pages.json @@ -37,6 +37,36 @@ "navigationBarTitleText": "当班工作人员" } }, + { + "path": "pages/apply/qrcodeMake", + "style": { + "navigationBarTitleText": "二维码生成器" + } + }, + { + "path": "pages/apply/viewRisk", + "style": { + "navigationBarTitleText": "隐患查看" + } + }, + { + "path": "pages/apply/viewCheck", + "style": { + "navigationBarTitleText": "检查查看" + } + }, + { + "path": "pages/apply/viewEvaluation", + "style": { + "navigationBarTitleText": "风险查看" + } + }, + { + "path": "pages/apply/viewVideo", + "style": { + "navigationBarTitleText": "视频查看" + } + }, { "path": "pages/apply/complete", "style": { @@ -58,7 +88,7 @@ "navigationBarBackgroundColor": "#fff" } } - + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/apply/qrcodeMake.vue b/pages/apply/qrcodeMake.vue new file mode 100644 index 0000000..37cd736 --- /dev/null +++ b/pages/apply/qrcodeMake.vue @@ -0,0 +1,384 @@ + + + + + \ No newline at end of file diff --git a/pages/apply/viewCheck.vue b/pages/apply/viewCheck.vue new file mode 100644 index 0000000..db2b2c1 --- /dev/null +++ b/pages/apply/viewCheck.vue @@ -0,0 +1,350 @@ + + + + + \ No newline at end of file diff --git a/pages/apply/viewEvaluation.vue b/pages/apply/viewEvaluation.vue new file mode 100644 index 0000000..e2cd49f --- /dev/null +++ b/pages/apply/viewEvaluation.vue @@ -0,0 +1,345 @@ + + + + + \ No newline at end of file diff --git a/pages/apply/viewRisk.vue b/pages/apply/viewRisk.vue new file mode 100644 index 0000000..431f48a --- /dev/null +++ b/pages/apply/viewRisk.vue @@ -0,0 +1,333 @@ + + + + + \ No newline at end of file diff --git a/pages/apply/viewVideo.vue b/pages/apply/viewVideo.vue new file mode 100644 index 0000000..facdccb --- /dev/null +++ b/pages/apply/viewVideo.vue @@ -0,0 +1,345 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 9e13bfb..31216b4 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -26,13 +26,10 @@ export default { data() { return { - - DEPARTMENT_ID: 'B18F95F4-572A-E521-1412-FA8CE50DC98A', + DEPARTMENT_ID: '',//'B18F95F4-572A-E521-1412-FA8CE50DC98A', + RISK_AREA_ID: '',//8EB0A653-E785-46D9-B65E-17F49E77121E', OrgId: '', - - baseList: [ - - { + baseList: [{ name: "新增用户", iconName: "man-add" }, @@ -48,8 +45,6 @@ // name: "区域隐患数量", // iconName: "info-circle" // }, - - ], company: '' } @@ -85,7 +80,7 @@ menuClick(menuInfo) { uni.navigateTo({ - url: menuInfo.url +'?DEPARTMENT_ID='+this.DEPARTMENT_ID+'&OrgId='+menuInfo.ORG_ID + url: menuInfo.url + '?DEPARTMENT_ID=' + this.DEPARTMENT_ID + '&OrgId=' + menuInfo.ORG_ID+'&RISK_AREA_ID='+this.RISK_AREA_ID }) }, goCamera() { diff --git a/services/apply.js b/services/apply.js index a12c98d..e87fcfa 100644 --- a/services/apply.js +++ b/services/apply.js @@ -36,3 +36,29 @@ export const WorkerScheduling = (params) => { } +//获取区域 +export const OrderPagedRiskArea = (params) => { + return request.send({ + url: '/BI/H5Controller/OrderPagedRiskArea', + method: 'post', + data: params, + }) +} + +//隐患查看 +export const PagedRisk = (params) => { + return request.send({ + url: '/BI/H5Controller/PagedRisk', + method: 'post', + data: params, + }) +} + +//隐患查看 +export const PagedCheckMain = (params) => { + return request.send({ + url: '/BI/H5Controller/PagedCheckMain', + method: 'post', + data: params, + }) +} diff --git a/services/common.js b/services/common.js new file mode 100644 index 0000000..44c1476 --- /dev/null +++ b/services/common.js @@ -0,0 +1,29 @@ +import request from '../utils/request.js' + +//部门信息 +export const DepartmentOrderPaged = (params) => { + params.isAll=true + return request.send({ + url: '/BI/H5Controller/DepartmentOrderPaged', + method: 'post', + data: params, + }) +} +//岗位 +export const UserPostOrderPaged = (params) => { + params.isAll=true + return request.send({ + url: '/BI/H5Controller/UserPostOrderPaged', + method: 'post', + data: params, + }) +} +//组织岗位 +export const DepartmentPostEntities = (params) => { + params.isAll=true + return request.send({ + url: '/BI/H5Controller/DepartmentPostEntities', + method: 'post', + data: params, + }) +} \ No newline at end of file diff --git a/utils/request.js b/utils/request.js index faab449..9d59552 100644 --- a/utils/request.js +++ b/utils/request.js @@ -24,20 +24,18 @@ export default { let url = params.url; let method = params.method || "get"; let data = params.data || {}; + let isAll = false + if (params.isAll) + isAll = params.isAll let header = { // 'Blade-Auth': uni.getStorageSync('token') || '', - 'Content-Type': 'application/json;charset=UTF-8', + // 'Content-Type': type === 'post' ? 'application/json' : 'application/x-www-form-urlencoded',// 'Content-Type': 'application/json;charset=UTF-8', + // 'Content-Type': 'application/json;charset=UTF-8', + 'Content-Type': params.method === 'post' ? 'application/json' : 'application/json;charset=UTF-8', // 'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0', 'Tenant': tenantId, // avue配置相关 ...params.header } - // if (method == "post") { - // header = { - // 'Content-Type': 'application/x-www-form-urlencoded', - // 'Tenant': tenantId, - // ...params.header - // }; - // } return new Promise((resolve, reject) => { uni.request({ url: config.serviceHost(url), @@ -51,7 +49,10 @@ export default { //获取成功 // console.log(res.statusCode); if (res.statusCode == 200) { - resolve(res.data); + if (isAll) + resolve(res); + else + resolve(res.data); } else { uni.clearStorageSync() switch (res.statusCode) {