From 6a2066609717d9730f6154d4cfc1a3c946219e06 Mon Sep 17 00:00:00 2001 From: xzt <1113240624@qq.com> Date: Fri, 14 Mar 2025 17:16:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=9A=90=E6=82=A3=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jwtech-admin-page/package.json | 2 +- jwtech-h5-page/api/system/hazardRecord.js | 53 +++ jwtech-h5-page/pages.json | 15 + jwtech-h5-page/pages/danger/edit.vue | 490 ++++++++++++++++++++++ jwtech-h5-page/pages/danger/index.vue | 231 ++++++++++ jwtech-h5-page/pages/danger/list.vue | 376 +++++++++++++++++ jwtech-h5-page/pages/index.vue | 9 + 7 files changed, 1175 insertions(+), 1 deletion(-) create mode 100644 jwtech-h5-page/api/system/hazardRecord.js create mode 100644 jwtech-h5-page/pages/danger/edit.vue create mode 100644 jwtech-h5-page/pages/danger/index.vue create mode 100644 jwtech-h5-page/pages/danger/list.vue diff --git a/jwtech-admin-page/package.json b/jwtech-admin-page/package.json index c6280702..782e4b22 100644 --- a/jwtech-admin-page/package.json +++ b/jwtech-admin-page/package.json @@ -6,7 +6,7 @@ "license": "MIT", "scripts": { "dev": "vue-cli-service serve", - "build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vue-cli-service build", + "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", diff --git a/jwtech-h5-page/api/system/hazardRecord.js b/jwtech-h5-page/api/system/hazardRecord.js new file mode 100644 index 00000000..3f4f3b98 --- /dev/null +++ b/jwtech-h5-page/api/system/hazardRecord.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询隐患记录登记信息列表 +export function listRecord(query) { + return request({ + url: '/build/hazardRecord/list', + method: 'post', + data: query + }) +} + +// 查询隐患记录登记信息详细 +export function getRecord(id) { + return request({ + url: '/build/hazardRecord/' + id, + method: 'get' + }) +} + +// 新增隐患记录登记信息 +export function addRecord(data) { + return request({ + url: '/build/hazardRecord', + method: 'post', + data: data + }) +} + +// 修改隐患记录登记信息 +export function updateRecord(data) { + return request({ + url: '/build/hazardRecord', + method: 'put', + data: data + }) +} + +// 删除隐患记录登记信息 +export function delRecord(id) { + return request({ + url: '/build/hazardRecord/' + id, + method: 'delete' + }) +} + +// 导出隐患记录登记信息 +export function exportRecord(query) { + return request({ + url: '/build/hazardRecord/export', + method: 'get', + params: query + }) +} diff --git a/jwtech-h5-page/pages.json b/jwtech-h5-page/pages.json index ebab619a..f6d31590 100644 --- a/jwtech-h5-page/pages.json +++ b/jwtech-h5-page/pages.json @@ -161,6 +161,21 @@ "style": { "navigationBarTitleText": "浏览文本" } + }, { + "path": "pages/danger/index", + "style": { + "navigationBarTitleText": "隐患排查" + } + }, { + "path": "pages/danger/list", + "style": { + "navigationBarTitleText": "隐患排查" + } + }, { + "path": "pages/danger/edit", + "style": { + "navigationBarTitleText": "隐患排查" + } }], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/jwtech-h5-page/pages/danger/edit.vue b/jwtech-h5-page/pages/danger/edit.vue new file mode 100644 index 00000000..f45603ed --- /dev/null +++ b/jwtech-h5-page/pages/danger/edit.vue @@ -0,0 +1,490 @@ + + + + + diff --git a/jwtech-h5-page/pages/danger/index.vue b/jwtech-h5-page/pages/danger/index.vue new file mode 100644 index 00000000..3987596e --- /dev/null +++ b/jwtech-h5-page/pages/danger/index.vue @@ -0,0 +1,231 @@ + + + + + \ No newline at end of file diff --git a/jwtech-h5-page/pages/danger/list.vue b/jwtech-h5-page/pages/danger/list.vue new file mode 100644 index 00000000..c6aa0a27 --- /dev/null +++ b/jwtech-h5-page/pages/danger/list.vue @@ -0,0 +1,376 @@ + + + + + \ No newline at end of file diff --git a/jwtech-h5-page/pages/index.vue b/jwtech-h5-page/pages/index.vue index c806c3dc..e7e354af 100644 --- a/jwtech-h5-page/pages/index.vue +++ b/jwtech-h5-page/pages/index.vue @@ -64,6 +64,11 @@ text: '项目统计', icon: '/static/images/icon/home-total.png', url: '/pages/statistics/index' + }, + { + text: '隐患排查', + icon: '/static/images/icon/home-total.png', + url: '/pages/danger/index' } ] } @@ -140,11 +145,15 @@ flex-wrap: wrap; justify-content: space-between; .home-content-list-item { + width: 25%; display: flex; flex-direction: column; align-items: center; // width: 25%; font-size: 14px; + &:nth-child(-n + 4) { + padding-bottom: 15px; + } image { width: 48px; height: 48px;