From 7217872c885d0eb765d1e484bd6d6c2e6e429170 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Tue, 25 Feb 2025 16:46:59 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=B7=BB=E5=8A=A0=20=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=9F=A5=E7=9C=8B=E5=AF=BC=E8=88=AA=20=20=20=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8=20=20=E9=9A=90=E6=82=A3?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=20=E6=A3=80=E6=9F=A5=E6=9F=A5=E7=9C=8B=20=20?= =?UTF-8?q?=E9=A3=8E=E9=99=A9=E6=9F=A5=E7=9C=8B=20=20=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=202=E3=80=81=E6=8C=89=E9=92=AE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=20=E6=B7=BB=E5=8A=A0=E5=BD=A2=E5=8F=82=203=E3=80=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E6=B7=BB=E5=8A=A0=20=20=20=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E9=80=89=E6=8B=A9=E3=80=81=E6=A3=80=E6=9F=A5=E5=BA=93?= =?UTF-8?q?=E3=80=81=E9=9A=90=E6=82=A3=20=E6=90=9C=E7=B4=A2=204=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20request=20=20=E5=85=AC=E5=85=B1=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BF=A1=E6=81=AF=EF=BC=88=E5=8E=9F=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=83=BD=E5=86=99=E6=AD=BB=E4=BA=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 32 ++- pages/apply/qrcodeMake.vue | 384 +++++++++++++++++++++++++++++++++ pages/apply/viewCheck.vue | 350 ++++++++++++++++++++++++++++++ pages/apply/viewEvaluation.vue | 345 +++++++++++++++++++++++++++++ pages/apply/viewRisk.vue | 333 ++++++++++++++++++++++++++++ pages/apply/viewVideo.vue | 345 +++++++++++++++++++++++++++++ pages/index/index.vue | 13 +- services/apply.js | 26 +++ services/common.js | 29 +++ utils/request.js | 19 +- 10 files changed, 1857 insertions(+), 19 deletions(-) create mode 100644 pages/apply/qrcodeMake.vue create mode 100644 pages/apply/viewCheck.vue create mode 100644 pages/apply/viewEvaluation.vue create mode 100644 pages/apply/viewRisk.vue create mode 100644 pages/apply/viewVideo.vue create mode 100644 services/common.js 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) {