From 2da5e720d33514d8289a618e368810f8c2f72fd4 Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Sun, 4 Feb 2024 16:18:49 +0800 Subject: [PATCH] init --- package-lock.json | 27 ++ package.json | 1 + src/assets/css/common.scss | 6 + .../identifying_parts/hidden_danger_view.vue | 216 +++++++++++++++ src/mobile/identifying_parts/index.vue | 117 +++++++++ .../identifying_parts/inspection_record.vue | 133 ++++++++++ src/mobile/information/index.vue | 246 ++++++++++++++++++ src/mobile/risk_point/checklist.vue | 53 ++++ src/mobile/risk_point/hidden_danger_view.vue | 9 + src/mobile/risk_point/index.vue | 74 ++++++ src/mobile/risk_point/inspection_record.vue | 9 + src/request/mobile.js | 19 ++ src/router/index.js | 57 +++- .../information/components/qr_code.vue | 10 +- .../identifying_parts/components/qr_code.vue | 12 +- .../risk_point/components/qr_code.vue | 10 +- 16 files changed, 992 insertions(+), 7 deletions(-) create mode 100644 src/mobile/identifying_parts/hidden_danger_view.vue create mode 100644 src/mobile/identifying_parts/index.vue create mode 100644 src/mobile/identifying_parts/inspection_record.vue create mode 100644 src/mobile/information/index.vue create mode 100644 src/mobile/risk_point/checklist.vue create mode 100644 src/mobile/risk_point/hidden_danger_view.vue create mode 100644 src/mobile/risk_point/index.vue create mode 100644 src/mobile/risk_point/inspection_record.vue create mode 100644 src/request/mobile.js diff --git a/package-lock.json b/package-lock.json index 487fd27..271a460 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "relation-graph": "^2.1.24", "throttle-debounce": "^5.0.0", "v-viewer": "^3.0.11", + "vant": "^4.8.4", "vue": "^3.4.3", "vue-countup-v3": "^1.4.1", "vue-draggable-plus": "^0.3.4", @@ -1421,6 +1422,19 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/@vant/popperjs": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/@vant/popperjs/-/popperjs-1.3.0.tgz", + "integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==" + }, + "node_modules/@vant/use": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/@vant/use/-/use-1.6.0.tgz", + "integrity": "sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA==", + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/@vitejs/plugin-basic-ssl": { "version": "1.1.0", "resolved": "https://registry.npmmirror.com/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.1.0.tgz", @@ -5695,6 +5709,19 @@ "vue": "^3.0.0" } }, + "node_modules/vant": { + "version": "4.8.4", + "resolved": "https://registry.npmmirror.com/vant/-/vant-4.8.4.tgz", + "integrity": "sha512-2ompmogS76pFWUDrQGYNXAENWxisJXqv0+eIqt7mGo1TJJXcUikQ5sfRjX8W3HTkTe1FxV7lzuI3QrW01i043g==", + "dependencies": { + "@vant/popperjs": "^1.3.0", + "@vant/use": "^1.6.0", + "@vue/shared": "^3.0.0" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/viewerjs": { "version": "1.11.6", "resolved": "https://registry.npmmirror.com/viewerjs/-/viewerjs-1.11.6.tgz", diff --git a/package.json b/package.json index 7405f6e..422b29d 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "relation-graph": "^2.1.24", "throttle-debounce": "^5.0.0", "v-viewer": "^3.0.11", + "vant": "^4.8.4", "vue": "^3.4.3", "vue-countup-v3": "^1.4.1", "vue-draggable-plus": "^0.3.4", diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss index 0e9f5aa..32c94e5 100644 --- a/src/assets/css/common.scss +++ b/src/assets/css/common.scss @@ -316,3 +316,9 @@ div::-webkit-scrollbar-track { display: none; } } + +.mobile { + padding: 10px; + background-color: #fafafa; + min-height: 100vh; +} diff --git a/src/mobile/identifying_parts/hidden_danger_view.vue b/src/mobile/identifying_parts/hidden_danger_view.vue new file mode 100644 index 0000000..3048dd3 --- /dev/null +++ b/src/mobile/identifying_parts/hidden_danger_view.vue @@ -0,0 +1,216 @@ + + + + + diff --git a/src/mobile/identifying_parts/index.vue b/src/mobile/identifying_parts/index.vue new file mode 100644 index 0000000..6e57aca --- /dev/null +++ b/src/mobile/identifying_parts/index.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/src/mobile/identifying_parts/inspection_record.vue b/src/mobile/identifying_parts/inspection_record.vue new file mode 100644 index 0000000..11cbe0c --- /dev/null +++ b/src/mobile/identifying_parts/inspection_record.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/src/mobile/information/index.vue b/src/mobile/information/index.vue new file mode 100644 index 0000000..1d92678 --- /dev/null +++ b/src/mobile/information/index.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/mobile/risk_point/checklist.vue b/src/mobile/risk_point/checklist.vue new file mode 100644 index 0000000..4fda425 --- /dev/null +++ b/src/mobile/risk_point/checklist.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/mobile/risk_point/hidden_danger_view.vue b/src/mobile/risk_point/hidden_danger_view.vue new file mode 100644 index 0000000..53601f2 --- /dev/null +++ b/src/mobile/risk_point/hidden_danger_view.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/mobile/risk_point/index.vue b/src/mobile/risk_point/index.vue new file mode 100644 index 0000000..0bf8d3c --- /dev/null +++ b/src/mobile/risk_point/index.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/mobile/risk_point/inspection_record.vue b/src/mobile/risk_point/inspection_record.vue new file mode 100644 index 0000000..c1ae205 --- /dev/null +++ b/src/mobile/risk_point/inspection_record.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/request/mobile.js b/src/request/mobile.js new file mode 100644 index 0000000..1cb0d28 --- /dev/null +++ b/src/request/mobile.js @@ -0,0 +1,19 @@ +import { post } from "@/request/axios.js"; + +export const getInformationView = (params) => + post("/app/corpinfo/goEdit", params); // 企业信息 +export const getIdentifyingPartsInfo = (params) => + post("/app/identificationparts/goEdit", params); // 辨识部位详情 +export const getIdentifyingPartsInspectionRecordList = (params) => + post("/app/checkrecord/recordByIde", params); // 辨识部位检查记录列表 +export const getIdentifyingPartsInfoList = (params) => + post("/app/riskpoint/getForIdentification", params); // 辨识部位存在风险、主要管控措施列表 +export const getInspectionRecordInfo = (params) => + post("/app/checkrecord/goEditWeui", params); // 检查记录详情 +export const getInspectionRecordMapInfo = (params) => + post("/app/checkrecord/goMapWeui", params); // 检查记录地图 +export const geHiddenDangerView = (params) => + post("/app/hidden/goEditWeui", params); // 隐患详情 +export const getRiskPointList = (params) => post("/app/riskpoint/list", params); // 风险点单元列表 +export const getRiskPointCheckList = (params) => + post("/app/checkrecord/recordByIde", params); // 风险点单元检查清单列表 diff --git a/src/router/index.js b/src/router/index.js index e6ba9cb..85167e2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,6 @@ import { createRouter, createWebHashHistory } from "vue-router"; import layout from "../layout/index.vue"; -// import children from "../components/children/index.vue"; +import children from "../components/children/index.vue"; const routes = [ { @@ -35,6 +35,61 @@ const routes = [ meta: { title: "BI", isBreadcrumb: false, isMenu: false }, component: () => import("@/views/BI/index"), }, + { + path: "/mobile", + meta: { isBreadcrumb: false, isMenu: false, isLogin: false }, + component: children, + children: [ + { + path: "information", + component: () => import("@/mobile/information/index"), + }, + { + path: "identifying_parts", + component: children, + children: [ + { + path: "index", + component: () => import("@/mobile/identifying_parts/index.vue"), + }, + { + path: "inspection_record", + component: () => + import("@/mobile/identifying_parts/inspection_record.vue"), + }, + { + path: "hidden_danger_view", + component: () => + import("@/mobile/identifying_parts/hidden_danger_view.vue"), + }, + ], + }, + { + path: "risk_point", + component: children, + children: [ + { + path: "index", + component: () => import("@/mobile/risk_point/index.vue"), + }, + { + path: "checklist", + component: () => import("@/mobile/risk_point/checklist.vue"), + }, + { + path: "inspection_record", + component: () => + import("@/mobile/risk_point/inspection_record.vue"), + }, + { + path: "hidden_danger_view", + component: () => + import("@/mobile/risk_point/hidden_danger_view.vue"), + }, + ], + }, + ], + }, { path: "/404", name: "/404", diff --git a/src/views/enterprise_management/information/components/qr_code.vue b/src/views/enterprise_management/information/components/qr_code.vue index 4e09852..bde028b 100644 --- a/src/views/enterprise_management/information/components/qr_code.vue +++ b/src/views/enterprise_management/information/components/qr_code.vue @@ -4,8 +4,13 @@

{{ info.CORP_NAME }}

- - +