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 @@
+
+
+
+
+ {{ pageTitle }}
+
+
+ 隐患名称
+
+
+
+
+
+
+ 项目名称
+
+
+
+
+
+
+ 排查计划
+
+
+
+
+
+
+ 检查单位
+
+
+
+
+
+
+ 检查责任人
+
+
+
+
+
+
+ 检查周期
+
+
+
+
+
+
+ 检查人列表信息
+
+
+
+
+
+
+ 隐患描述
+
+
+
+
+
+
+ 隐患所在区域
+
+
+
+
+
+
+ 隐患类型
+
+
+
+
+
+
+ 隐患等级
+
+
+
+
+
+
+ 整改期限
+
+
+
+
+
+
+ 整改责任单位
+
+
+
+
+
+
+
+
+ 图片
+ 支持png、jpg等格式,不大于5M
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+ {{ project.projectName }}
+
+ 项目编号
+ {{ project.proCode }}
+
+
+ 行政区划
+ {{ project.adcdName }}
+
+
+ 项目类型
+ {{ project.projectTypeName }}
+
+
+
+ 隐患等级
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+ {{ project.hazardName }}
+
+ 项目名称
+ {{ project.entryName }}
+
+
+ 检查计划
+ {{ project.investigationPlan }}
+
+
+ 检查单位
+ {{ project.inspectionUnit }}
+
+
+ 检查责任人
+ {{ project.personCgeInspection }}
+
+
+ 检查周期
+ {{ project.inspectionCycle }}
+
+
+ 隐患描述
+ {{ project.hazardDescription }}
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+ 新增隐患
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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;