diff --git a/pages.json b/pages.json
index 6efa31ef..d7dc5920 100644
--- a/pages.json
+++ b/pages.json
@@ -1004,8 +1004,18 @@
"enablePullDownRefresh": false
}
},
+ // {
+ // "path": "pages/alarmPage/index",
+ // "style": {
+ // "navigationBarTitleText": "报警提示",
+ // "enablePullDownRefresh": true,
+ // "onReachBottomDistance": 100,
+ // "navigationBarBackgroundColor": "#3A7BFF",
+ // "navigationBarTextStyle": "white"
+ // }
+ // },
{
- "path": "pages/alarmPage/index",
+ "path": "pages/alarmPage/indexTwo",
"style": {
"navigationBarTitleText": "报警提示",
"enablePullDownRefresh": true,
@@ -1509,6 +1519,22 @@
"enablePullDownRefresh": false
}
+ },
+ {
+ "path" : "pages/alarmPage/shutting/shutting",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "enablePullDownRefresh" : false
+ }
+ },
+ {
+ "path" : "pages/alarmPage/disposition/disposition",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "enablePullDownRefresh" : false
+ }
}
],
// "subPackages":[{
diff --git a/pages/alarmPage/disposition/disposition.vue b/pages/alarmPage/disposition/disposition.vue
new file mode 100644
index 00000000..0e63260d
--- /dev/null
+++ b/pages/alarmPage/disposition/disposition.vue
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+
+
+ 违章处置
+
+
+
+
+
+
+
+
+ *
+ 处置结果
+
+
+
+ 已处置
+ 误报忽略
+
+
+
+
+
+ 描述
+
+
+
+
+
+
+
+ *
+ 选择违章人员
+
+
+
+
+
+
+
+ 请选择违章人员
+
+
+ {{selectedItem.workerName}}
+
+
+
+
+
+
+
+
+ *
+ 扣
+
+
+
+
+
+ 分
+
+
+
+
+
+
+
+
+ 确认
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/alarmPage/indexTwo.vue b/pages/alarmPage/indexTwo.vue
index 43ed23ae..ae814f7e 100644
--- a/pages/alarmPage/indexTwo.vue
+++ b/pages/alarmPage/indexTwo.vue
@@ -1,28 +1,60 @@
-
-
-
-
- 返回
- 告警提示
-
+
+
+
+
+
+ 告警提示
-
-
-
-
- 报警类型: {{item.alarmType}}
- 报警设备: {{item.hardwareName}}
- 报警时间: {{item.createTime}}
- 报警地址: {{item.location}}
- 报警抓拍:
-
-
-
+
+
+
+
+
+
+
+ 抓拍时间: {{item.createTime}}
+ 来源: {{item.alarmDesc}}
+
+
+
+
+
+
+
+
+
+
+ 去处置
+
+
+ 已闭合
+
+
+
+
@@ -37,38 +69,15 @@
systemInfo: {
statusBarHeight: 0
},
- showType: [{
- id: 1,
- value: '安全帽报警',
- },
- {
- id: 2,
- vlaue: '明火报警'
- },
- {
- id: 3,
- value: '聚众报警'
- },
- {
- id: 4,
- value: '未戴安全帽报警'
- },
- {
- id: 5,
- value: '越界报警'
- },
- {
- id: 6,
- value: '闯入报警'
- },
- {
- id: 7,
- value: '反光衣报警'
- },
- {
- id: 8,
- value: '未穿反光衣'
- },
+ showType: [
+ { id: 1, value: '安全帽报警', },
+ { id: 2, vlaue: '明火报警' },
+ { id: 3, value: '聚众报警' },
+ { id: 4, value: '未戴安全帽报警' },
+ { id: 5, value: '越界报警' },
+ { id: 6, value: '闯入报警' },
+ { id: 7, value: '反光衣报警' },
+ { id: 8, value: '未穿反光衣' },
]
}
},
@@ -105,12 +114,13 @@
success: res => {
if (res.code == 200) {
console.log('res', res)
- res.result.records.forEach((item) => {
- const result = this.showType.find((item2) => {
- return item2.id == item.alarmType
- })
- item.alarmType = result.value
- })
+ // res.result.records.forEach((item) => {
+ // const result = this.showType.find((item2) => {
+ // return item2.id == item.alarmType
+ // })
+ // // item.alarmType = result.value
+ // item.alarmType = result.alarmType
+ // })
if (this.pageNo == 1) {
this.listData = []
}
@@ -128,42 +138,133 @@
});
},
// 点击跳转
- goHiidden(url) {
+ goDisposition(item) {
+ console.log("=================================================");
uni.navigateTo({
- url: "/pages/projectEnd/safeManage/addExamine"
+ url: "/pages/alarmPage/disposition/disposition?item="+ encodeURIComponent(JSON.stringify(item))
});
},
- saveImage(url) {
- uni.showLoading({
- title: "保存中..."
- })
- uni.downloadFile({
- url: url, //网络路径,下载下来
- success: (res) => {
- if (res.statusCode === 200) {
- uni.saveImageToPhotosAlbum({
- filePath: res.tempFilePath, //下载后的临时路径
- success: res => { //下载完成后在相册里压根找不到
- uni.hideLoading()
- uni.showToast({
- title: "保存成功!"
- })
- uni.navigateTo({
- url: "/pages/projectEnd/safeManage/addExamine"
- });
- }
- })
- }
- }
+ // 点击跳转
+ goShutting(item) {
+ console.log("=================================================");
+ uni.navigateTo({
+ // url: "/pages/alarmPage/disposition/disposition?item="+ encodeURIComponent(JSON.stringify(item))
+ url: "/pages/alarmPage/shutting/shutting?item="+ encodeURIComponent(JSON.stringify(item))
});
+ },
+ previewImg(imgUrl){
+ console.log(imgUrl)
+ //urls为数组,数据里有多少图片链接则显示多少张,若只想预览一张的话,直接传只有一个图片地址的数组即可
+ let imgurl=imgUrl
+ let imgArr=[]
+ imgArr[0] = imgurl
+ uni.previewImage({
+ current:0,
+ urls: imgArr
+ })
+ },
+ // saveImage(url) {
+ // uni.showLoading({
+ // title: "保存中..."
+ // })
+ // uni.downloadFile({
+ // url: url, //网络路径,下载下来
+ // success: (res) => {
+ // if (res.statusCode === 200) {
+ // uni.saveImageToPhotosAlbum({
+ // filePath: res.tempFilePath, //下载后的临时路径
+ // success: res => { //下载完成后在相册里压根找不到
+ // uni.hideLoading()
+ // uni.showToast({
+ // title: "保存成功!"
+ // })
+ // uni.navigateTo({
+ // url: "/pages/projectEnd/safeManage/addExamine"
+ // });
+ // }
+ // })
+ // }
+ // }
+ // });
- }
+ // }
}
}
+
\ No newline at end of file
diff --git a/pages/alarmPage/shutting/shutting.vue b/pages/alarmPage/shutting/shutting.vue
new file mode 100644
index 00000000..d07431ed
--- /dev/null
+++ b/pages/alarmPage/shutting/shutting.vue
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+ 违章处置
+
+
+
+
+
+
+
+
+ *
+ 处置结果
+
+
+
+
+ 已处置
+ 误报忽略
+
+
+
+
+
+ 描述
+
+
+
+
+
+
+
+ *
+ 违章人员
+
+
+
+ {{alarmItem.workerInfoStr}}
+
+
+
+
+
+
+ *
+ 扣
+
+
+
+
+ {{alarmItem.deductScore}}
+
+ 分
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/projectEnd/projectIndex/projectIndex.vue b/pages/projectEnd/projectIndex/projectIndex.vue
index 3b60b7b7..baa3e3a2 100644
--- a/pages/projectEnd/projectIndex/projectIndex.vue
+++ b/pages/projectEnd/projectIndex/projectIndex.vue
@@ -663,9 +663,14 @@
url: '../progressManagement/index'
})
break
+ // case 'dangerBroadcast':
+ // uni.navigateTo({
+ // url: '../../alarmPage/index'
+ // })
+ // break
case 'dangerBroadcast':
uni.navigateTo({
- url: '../../alarmPage/index'
+ url: '../../alarmPage/indexTwo'
})
break
case 'standardSchedule':
diff --git a/static/aiWarn/aiWarn.png b/static/aiWarn/aiWarn.png
new file mode 100644
index 00000000..ac947e75
Binary files /dev/null and b/static/aiWarn/aiWarn.png differ
diff --git a/static/aiWarn/aiWarn2.png b/static/aiWarn/aiWarn2.png
new file mode 100644
index 00000000..a4dd5001
Binary files /dev/null and b/static/aiWarn/aiWarn2.png differ
diff --git a/static/aiWarn/correct.png b/static/aiWarn/correct.png
new file mode 100644
index 00000000..a562cc53
Binary files /dev/null and b/static/aiWarn/correct.png differ