From 9b12285d730ba0a8397376b49078bb65a4c5f6ad Mon Sep 17 00:00:00 2001 From: wangpeng Date: Sat, 3 Feb 2024 09:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E6=B8=85=E5=8D=95=E6=A3=80?= =?UTF-8?q?=E6=9F=A5+=E6=A3=80=E6=9F=A5=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/tool.js | 2 +- pages.json | 38 + .../check-record/check_listmanager.vue | 2 +- .../custom/list-item-check-hidden-form.vue | 1126 +++++++++++++++ .../custom/list-item-check-imgs.vue | 377 +++++ .../custom/list-item-check-list.vue | 394 ++++++ .../custom/list-item-check-next.vue | 1208 +++++++++++++++++ .../custom/list-item.vue | 261 ++++ .../custom/list.vue | 441 ++++++ .../record/custom-list.vue | 540 ++++++++ .../record/record-info.vue | 439 ++++++ .../record/record-list.vue | 285 ++++ pages/application/home.vue | 53 +- .../cloudfunctions/unipush/index.js | 12 - .../cloudfunctions/unipush/package.json | 9 - .../database/opendb-device.schema.json | 142 -- .../database/opendb-tempdata.schema.json | 26 - .../database/uni-id-device.schema.json | 83 -- 18 files changed, 5154 insertions(+), 284 deletions(-) create mode 100644 pages/application/hidden-danger-check-standard/custom/list-item-check-hidden-form.vue create mode 100644 pages/application/hidden-danger-check-standard/custom/list-item-check-imgs.vue create mode 100644 pages/application/hidden-danger-check-standard/custom/list-item-check-list.vue create mode 100644 pages/application/hidden-danger-check-standard/custom/list-item-check-next.vue create mode 100644 pages/application/hidden-danger-check-standard/custom/list-item.vue create mode 100644 pages/application/hidden-danger-check-standard/custom/list.vue create mode 100644 pages/application/hidden-danger-check-standard/record/custom-list.vue create mode 100644 pages/application/hidden-danger-check-standard/record/record-info.vue create mode 100644 pages/application/hidden-danger-check-standard/record/record-list.vue delete mode 100644 uniCloud-aliyun/cloudfunctions/unipush/index.js delete mode 100644 uniCloud-aliyun/cloudfunctions/unipush/package.json delete mode 100644 uniCloud-aliyun/database/opendb-device.schema.json delete mode 100644 uniCloud-aliyun/database/opendb-tempdata.schema.json delete mode 100644 uniCloud-aliyun/database/uni-id-device.schema.json diff --git a/common/tool.js b/common/tool.js index 5bf74d7..915f9dd 100644 --- a/common/tool.js +++ b/common/tool.js @@ -1,4 +1,4 @@ -export var basePath = "http://192.168.0.42:8099/"; +export var basePath = "http://192.168.0.69:8091/"; // export var basePath = "https://gateway.qhdsafety.com/"; export const baseImgPath = "https://file.zcloudchina.com/YTHFile"; export const adminPath = "http://192.168.0.18:8085"; diff --git a/pages.json b/pages.json index 8d632bd..da0d574 100644 --- a/pages.json +++ b/pages.json @@ -272,6 +272,44 @@ "path": "pages/application/check-record/imgs_details", "style": {} }, + // 隐患排查清单 Begin + { + "path": "pages/application/hidden-danger-check-standard/custom/list", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/custom/list-item", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/custom/list-item-check-list", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/custom/list-item-check-hidden-form", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/custom/list-item-check-imgs", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/custom/list-item-check-next", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/record/custom-list", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/record/record-list", + "style": {} + }, + { + "path": "pages/application/hidden-danger-check-standard/record/record-info", + "style": {} + }, + // 隐患排查清单 End { "path": "pages/my/offduty/index", "style": {} diff --git a/pages/application/check-record/check_listmanager.vue b/pages/application/check-record/check_listmanager.vue index 7f94d07..0eff450 100644 --- a/pages/application/check-record/check_listmanager.vue +++ b/pages/application/check-record/check_listmanager.vue @@ -2,7 +2,7 @@ 返回 - 清单检查记录 + 风险检查记录 查询 diff --git a/pages/application/hidden-danger-check-standard/custom/list-item-check-hidden-form.vue b/pages/application/hidden-danger-check-standard/custom/list-item-check-hidden-form.vue new file mode 100644 index 0000000..cf902c2 --- /dev/null +++ b/pages/application/hidden-danger-check-standard/custom/list-item-check-hidden-form.vue @@ -0,0 +1,1126 @@ + + + + + diff --git a/pages/application/hidden-danger-check-standard/custom/list-item-check-imgs.vue b/pages/application/hidden-danger-check-standard/custom/list-item-check-imgs.vue new file mode 100644 index 0000000..232571d --- /dev/null +++ b/pages/application/hidden-danger-check-standard/custom/list-item-check-imgs.vue @@ -0,0 +1,377 @@ + + + + + diff --git a/pages/application/hidden-danger-check-standard/custom/list-item-check-list.vue b/pages/application/hidden-danger-check-standard/custom/list-item-check-list.vue new file mode 100644 index 0000000..71ba647 --- /dev/null +++ b/pages/application/hidden-danger-check-standard/custom/list-item-check-list.vue @@ -0,0 +1,394 @@ + + + + diff --git a/pages/application/hidden-danger-check-standard/custom/list-item-check-next.vue b/pages/application/hidden-danger-check-standard/custom/list-item-check-next.vue new file mode 100644 index 0000000..68925ef --- /dev/null +++ b/pages/application/hidden-danger-check-standard/custom/list-item-check-next.vue @@ -0,0 +1,1208 @@ + + + + + + + diff --git a/pages/application/hidden-danger-check-standard/custom/list-item.vue b/pages/application/hidden-danger-check-standard/custom/list-item.vue new file mode 100644 index 0000000..d00e454 --- /dev/null +++ b/pages/application/hidden-danger-check-standard/custom/list-item.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/pages/application/hidden-danger-check-standard/custom/list.vue b/pages/application/hidden-danger-check-standard/custom/list.vue new file mode 100644 index 0000000..b36f872 --- /dev/null +++ b/pages/application/hidden-danger-check-standard/custom/list.vue @@ -0,0 +1,441 @@ + + + + + diff --git a/pages/application/hidden-danger-check-standard/record/custom-list.vue b/pages/application/hidden-danger-check-standard/record/custom-list.vue new file mode 100644 index 0000000..b29e31c --- /dev/null +++ b/pages/application/hidden-danger-check-standard/record/custom-list.vue @@ -0,0 +1,540 @@ + + + + + diff --git a/pages/application/hidden-danger-check-standard/record/record-info.vue b/pages/application/hidden-danger-check-standard/record/record-info.vue new file mode 100644 index 0000000..934a64e --- /dev/null +++ b/pages/application/hidden-danger-check-standard/record/record-info.vue @@ -0,0 +1,439 @@ + + + + + diff --git a/pages/application/hidden-danger-check-standard/record/record-list.vue b/pages/application/hidden-danger-check-standard/record/record-list.vue new file mode 100644 index 0000000..1273d90 --- /dev/null +++ b/pages/application/hidden-danger-check-standard/record/record-list.vue @@ -0,0 +1,285 @@ + + + + + diff --git a/pages/application/home.vue b/pages/application/home.vue index fa14ad9..dc68ee6 100644 --- a/pages/application/home.vue +++ b/pages/application/home.vue @@ -4,29 +4,37 @@ + + + + 隐患快报 + + + + + + + 隐患快报 + + + - 隐患排查 + 风险排查 - 隐患排查 + 风险排查 - 隐患排查 - - - - - - 隐患快报 + 风险排查 @@ -35,7 +43,32 @@ 检查记录 - + + + + 隐患排查 + + + + + + + 隐患排查 + + + + + + 隐患排查 + + + + + + 检查记录 + + + diff --git a/uniCloud-aliyun/cloudfunctions/unipush/index.js b/uniCloud-aliyun/cloudfunctions/unipush/index.js deleted file mode 100644 index 62eed8c..0000000 --- a/uniCloud-aliyun/cloudfunctions/unipush/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -exports.main = async (event, context) => { - let body = event.body; - if (event.isBase64Encoded) {body = Buffer.from(body);} - if(!body) {return { message: 'no body'};} - - const param = JSON.parse(body); - - // 云函数是通用的,和项目没有直接的关系。通过传递 appId,可以为多个项目进行推送 - const uniPush = uniCloud.getPushManager({appId:"__UNI__C846DA5"}); - return await uniPush.sendMessage(param); -}; \ No newline at end of file diff --git a/uniCloud-aliyun/cloudfunctions/unipush/package.json b/uniCloud-aliyun/cloudfunctions/unipush/package.json deleted file mode 100644 index 0799df8..0000000 --- a/uniCloud-aliyun/cloudfunctions/unipush/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "unipush", - "version": "1.0.0", - "main": "index.js", - "description": "消息推送", - "extensions": { - "uni-cloud-push": {} - } -} \ No newline at end of file diff --git a/uniCloud-aliyun/database/opendb-device.schema.json b/uniCloud-aliyun/database/opendb-device.schema.json deleted file mode 100644 index 7c6cb44..0000000 --- a/uniCloud-aliyun/database/opendb-device.schema.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "bsonType": "object", - "required": [], - "permission": { - "read": false, - "create": false, - "update": false, - "delete": false - }, - "properties": { - "_id": { - "description": "ID,系统自动生成" - }, - "appid": { - "bsonType": "string", - "description": "DCloud appid" - }, - "device_id": { - "bsonType": "string", - "description": "设备唯一标识" - }, - "vendor": { - "bsonType": "string", - "description": "设备厂商" - }, - "push_clientid": { - "bsonType": "string", - "description": "推送设备客户端标识" - }, - "imei": { - "bsonType": "string", - "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)" - }, - "oaid": { - "bsonType": "string", - "description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)" - }, - "idfa": { - "bsonType": "string", - "description": "iOS平台配置应用使用广告标识(IDFA)" - }, - "imsi": { - "bsonType": "string", - "description": "国际移动用户识别码(International Mobile Subscriber Identification Number)" - }, - "model": { - "bsonType": "string", - "description": "设备型号" - }, - "platform": { - "bsonType": "string", - "description": "平台类型" - }, - "uni_platform": { - "bsonType": "string", - "description": "uni-app 运行平台,与条件编译平台相同。" - }, - "os_name": { - "bsonType": "string", - "description": "ios|android|windows|mac|linux " - }, - "os_version": { - "bsonType": "string", - "description": "操作系统版本号 " - }, - "os_language": { - "bsonType": "string", - "description": "操作系统语言 " - }, - "os_theme": { - "bsonType": "string", - "description": "操作系统主题 light|dark" - }, - "pixel_ratio": { - "bsonType": "string", - "description": "设备像素比 " - }, - "network_model": { - "bsonType": "string", - "description": "设备网络型号wifi/3G/4G/" - }, - "window_width": { - "bsonType": "string", - "description": "设备窗口宽度 " - }, - "window_height": { - "bsonType": "string", - "description": "设备窗口高度" - }, - "screen_width": { - "bsonType": "string", - "description": "设备屏幕宽度" - }, - "screen_height": { - "bsonType": "string", - "description": "设备屏幕高度" - }, - "rom_name": { - "bsonType": "string", - "description": "rom 名称" - }, - "rom_version": { - "bsonType": "string", - "description": "rom 版本" - }, - "location_latitude": { - "bsonType": "double", - "description": "纬度" - }, - "location_longitude": { - "bsonType": "double", - "description": "经度" - }, - "location_country": { - "bsonType": "string", - "description": "国家" - }, - "location_province": { - "bsonType": "string", - "description": "省份" - }, - "location_city": { - "bsonType": "string", - "description": "城市" - }, - "create_date": { - "bsonType": "timestamp", - "description": "创建时间", - "forceDefaultValue": { - "$env": "now" - } - }, - "last_update_date": { - "bsonType": "timestamp", - "description": "最后一次修改时间", - "forceDefaultValue": { - "$env": "now" - } - } - }, - "version": "0.0.1" -} \ No newline at end of file diff --git a/uniCloud-aliyun/database/opendb-tempdata.schema.json b/uniCloud-aliyun/database/opendb-tempdata.schema.json deleted file mode 100644 index 1b4f191..0000000 --- a/uniCloud-aliyun/database/opendb-tempdata.schema.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "bsonType": "object", - "required": [ - "value", - "expired" - ], - "permission": { - "read": false, - "create": false, - "update": false, - "delete": false - }, - "properties": { - "_id": { - "description": "ID,系统自动生成" - }, - "value": { - "description": "值" - }, - "expired": { - "description": "过期时间", - "bsonType": "timestamp" - } - }, - "version": "0.0.1" -} \ No newline at end of file diff --git a/uniCloud-aliyun/database/uni-id-device.schema.json b/uniCloud-aliyun/database/uni-id-device.schema.json deleted file mode 100644 index 4981d75..0000000 --- a/uniCloud-aliyun/database/uni-id-device.schema.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "bsonType": "object", - "required": [ - "user_id" - ], - "properties": { - "_id": { - "description": "ID,系统自动生成" - }, - "user_id": { - "bsonType": "string", - "description": "用户id,参考uni-id-users表" - }, - "ua": { - "bsonType": "string", - "description": "userAgent" - }, - "uuid": { - "bsonType": "string", - "description": "设备唯一标识(需要加密存储)" - }, - "os_name": { - "bsonType": "string", - "description": "ios|android|windows|mac|linux " - }, - "os_version": { - "bsonType": "string", - "description": "操作系统版本号 " - }, - "os_language": { - "bsonType": "string", - "description": "操作系统语言 " - }, - "os_theme": { - "bsonType": "string", - "description": "操作系统主题 light|dark" - }, - "vendor": { - "bsonType": "string", - "description": "设备厂商" - }, - "push_clientid": { - "bsonType": "string", - "description": "推送设备客户端标识" - }, - "imei": { - "bsonType": "string", - "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)" - }, - "oaid": { - "bsonType": "string", - "description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)" - }, - "idfa": { - "bsonType": "string", - "description": "iOS平台配置应用使用广告标识(IDFA)" - }, - "model": { - "bsonType": "string", - "description": "设备型号" - }, - "platform": { - "bsonType": "string", - "description": "平台类型" - }, - "create_date": { - "bsonType": "timestamp", - "description": "创建时间", - "forceDefaultValue": { - "$env": "now" - } - }, - "last_active_date": { - "bsonType": "timestamp", - "description": "最后登录时间" - }, - "last_active_ip": { - "bsonType": "string", - "description": "最后登录IP" - } - }, - "version": "0.0.1" -} \ No newline at end of file