diff --git a/src/api/alarm.js b/src/api/alarm.js
index 6a8bc10..f9e6fc9 100644
--- a/src/api/alarm.js
+++ b/src/api/alarm.js
@@ -56,6 +56,7 @@
export function batchCancel(params) {
return request({
url: 'alarm/batchCancel',
- method: 'post'
+ method: 'post',
+ params
})
}
diff --git a/src/api/alarm.js b/src/api/alarm.js
index 6a8bc10..f9e6fc9 100644
--- a/src/api/alarm.js
+++ b/src/api/alarm.js
@@ -56,6 +56,7 @@
export function batchCancel(params) {
return request({
url: 'alarm/batchCancel',
- method: 'post'
+ method: 'post',
+ params
})
}
diff --git a/src/api/job.js b/src/api/job.js
index 141e2e6..ebd33d2 100644
--- a/src/api/job.js
+++ b/src/api/job.js
@@ -11,15 +11,16 @@
})
}
-export function overJob(id) {
+export function overJob(params) {
return request({
url: 'job/overJob',
method: 'post',
- params: {
- id: id,
- handleMessage: '',
- handlePhotos: ''
- }
+ params
+ // params: {
+ // id: id,
+ // handleMessage: '',
+ // handlePhotos: ''
+ // }
})
}
diff --git a/src/api/alarm.js b/src/api/alarm.js
index 6a8bc10..f9e6fc9 100644
--- a/src/api/alarm.js
+++ b/src/api/alarm.js
@@ -56,6 +56,7 @@
export function batchCancel(params) {
return request({
url: 'alarm/batchCancel',
- method: 'post'
+ method: 'post',
+ params
})
}
diff --git a/src/api/job.js b/src/api/job.js
index 141e2e6..ebd33d2 100644
--- a/src/api/job.js
+++ b/src/api/job.js
@@ -11,15 +11,16 @@
})
}
-export function overJob(id) {
+export function overJob(params) {
return request({
url: 'job/overJob',
method: 'post',
- params: {
- id: id,
- handleMessage: '',
- handlePhotos: ''
- }
+ params
+ // params: {
+ // id: id,
+ // handleMessage: '',
+ // handlePhotos: ''
+ // }
})
}
diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue
new file mode 100644
index 0000000..d5bc9a1
--- /dev/null
+++ b/src/views/alarmManage/component/HandlePrompt.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/alarm.js b/src/api/alarm.js
index 6a8bc10..f9e6fc9 100644
--- a/src/api/alarm.js
+++ b/src/api/alarm.js
@@ -56,6 +56,7 @@
export function batchCancel(params) {
return request({
url: 'alarm/batchCancel',
- method: 'post'
+ method: 'post',
+ params
})
}
diff --git a/src/api/job.js b/src/api/job.js
index 141e2e6..ebd33d2 100644
--- a/src/api/job.js
+++ b/src/api/job.js
@@ -11,15 +11,16 @@
})
}
-export function overJob(id) {
+export function overJob(params) {
return request({
url: 'job/overJob',
method: 'post',
- params: {
- id: id,
- handleMessage: '',
- handlePhotos: ''
- }
+ params
+ // params: {
+ // id: id,
+ // handleMessage: '',
+ // handlePhotos: ''
+ // }
})
}
diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue
new file mode 100644
index 0000000..d5bc9a1
--- /dev/null
+++ b/src/views/alarmManage/component/HandlePrompt.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue
index 7b0042d..37ee964 100644
--- a/src/views/alarmManage/listAlarmNow.vue
+++ b/src/views/alarmManage/listAlarmNow.vue
@@ -43,6 +43,7 @@
@current-change="handleCurrentChange"/>
+ <
@@ -50,10 +51,11 @@
import infoWell from '@/views/wellManage/infoWellBdOffline'
import { getAlarmList, batchExportAlarm, batchCancel } from '@/api/alarm'
import { overJob } from '@/api/job'
+import HandlePrompt from './component/HandlePrompt'
export default {
name: 'ListAlarmNow',
- components: { infoWell },
+ components: { HandlePrompt, infoWell },
data() {
return {
listQuery: {
@@ -130,7 +132,8 @@
listLoading: true, // 加载动画
fullscreenLoading: false, // 全屏加载动画
wellShow: false, // 是否显示闸井详情
- detailShow: false // 是否显示编辑框
+ detailShow: false, // 是否显示编辑框
+ cancelShow: true
}
},
created() {
@@ -209,37 +212,42 @@
},
// 取消报警,调用结束工单接口
cancelAlarm(jobId) {
- this.$confirm(
- '确定要强制取消报警吗?',
- '确认操作',
- {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- overJob(jobId).then(response => {
- this.$message.success('取消报警成功')
- this.fetchData()
- })
- })
+ this.cancelShow = true
+ // setTimeout(function() {
+ this.$refs.handlePrompt.initDialog(true, jobId, false)
+ // this.$confirm(
+ // '确定要强制取消报警吗?',
+ // '确认操作',
+ // {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }
+ // ).then(() => {
+ // overJob(jobId).then(response => {
+ // this.$message.success('取消报警成功')
+ // this.fetchData()
+ // })
+ // })
},
// 批量消警
batchCancel() {
- this.$confirm(
- '确定要强制取消全部报警吗?',
- '确认操作',
- {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- batchCancel().then(response => {
- this.$message.success('取消报警成功')
- this.fetchData()
- })
- })
+ this.cancelShow = true
+ this.$refs.handlePrompt.initDialog(true, '', true, this.listQuery)
+ // this.$confirm(
+ // '确定要强制取消全部报警吗?',
+ // '确认操作',
+ // {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }
+ // ).then(() => {
+ // batchCancel().then(response => {
+ // this.$message.success('取消报警成功')
+ // this.fetchData()
+ // })
+ // })
}
}
}
diff --git a/src/api/alarm.js b/src/api/alarm.js
index 6a8bc10..f9e6fc9 100644
--- a/src/api/alarm.js
+++ b/src/api/alarm.js
@@ -56,6 +56,7 @@
export function batchCancel(params) {
return request({
url: 'alarm/batchCancel',
- method: 'post'
+ method: 'post',
+ params
})
}
diff --git a/src/api/job.js b/src/api/job.js
index 141e2e6..ebd33d2 100644
--- a/src/api/job.js
+++ b/src/api/job.js
@@ -11,15 +11,16 @@
})
}
-export function overJob(id) {
+export function overJob(params) {
return request({
url: 'job/overJob',
method: 'post',
- params: {
- id: id,
- handleMessage: '',
- handlePhotos: ''
- }
+ params
+ // params: {
+ // id: id,
+ // handleMessage: '',
+ // handlePhotos: ''
+ // }
})
}
diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue
new file mode 100644
index 0000000..d5bc9a1
--- /dev/null
+++ b/src/views/alarmManage/component/HandlePrompt.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue
index 7b0042d..37ee964 100644
--- a/src/views/alarmManage/listAlarmNow.vue
+++ b/src/views/alarmManage/listAlarmNow.vue
@@ -43,6 +43,7 @@
@current-change="handleCurrentChange"/>
+ <
@@ -50,10 +51,11 @@
import infoWell from '@/views/wellManage/infoWellBdOffline'
import { getAlarmList, batchExportAlarm, batchCancel } from '@/api/alarm'
import { overJob } from '@/api/job'
+import HandlePrompt from './component/HandlePrompt'
export default {
name: 'ListAlarmNow',
- components: { infoWell },
+ components: { HandlePrompt, infoWell },
data() {
return {
listQuery: {
@@ -130,7 +132,8 @@
listLoading: true, // 加载动画
fullscreenLoading: false, // 全屏加载动画
wellShow: false, // 是否显示闸井详情
- detailShow: false // 是否显示编辑框
+ detailShow: false, // 是否显示编辑框
+ cancelShow: true
}
},
created() {
@@ -209,37 +212,42 @@
},
// 取消报警,调用结束工单接口
cancelAlarm(jobId) {
- this.$confirm(
- '确定要强制取消报警吗?',
- '确认操作',
- {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- overJob(jobId).then(response => {
- this.$message.success('取消报警成功')
- this.fetchData()
- })
- })
+ this.cancelShow = true
+ // setTimeout(function() {
+ this.$refs.handlePrompt.initDialog(true, jobId, false)
+ // this.$confirm(
+ // '确定要强制取消报警吗?',
+ // '确认操作',
+ // {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }
+ // ).then(() => {
+ // overJob(jobId).then(response => {
+ // this.$message.success('取消报警成功')
+ // this.fetchData()
+ // })
+ // })
},
// 批量消警
batchCancel() {
- this.$confirm(
- '确定要强制取消全部报警吗?',
- '确认操作',
- {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- batchCancel().then(response => {
- this.$message.success('取消报警成功')
- this.fetchData()
- })
- })
+ this.cancelShow = true
+ this.$refs.handlePrompt.initDialog(true, '', true, this.listQuery)
+ // this.$confirm(
+ // '确定要强制取消全部报警吗?',
+ // '确认操作',
+ // {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }
+ // ).then(() => {
+ // batchCancel().then(response => {
+ // this.$message.success('取消报警成功')
+ // this.fetchData()
+ // })
+ // })
}
}
}
diff --git a/src/views/alarmManage/listAlarmRecords.vue b/src/views/alarmManage/listAlarmRecords.vue
index 5ac4b20..e6846b8 100644
--- a/src/views/alarmManage/listAlarmRecords.vue
+++ b/src/views/alarmManage/listAlarmRecords.vue
@@ -54,6 +54,11 @@
{{ scope.row[column.value] }}
+
+
+ {{ scope.row.status=='1'?'正在报警':'已消警' }}
+
+
查看工单
diff --git a/src/api/alarm.js b/src/api/alarm.js
index 6a8bc10..f9e6fc9 100644
--- a/src/api/alarm.js
+++ b/src/api/alarm.js
@@ -56,6 +56,7 @@
export function batchCancel(params) {
return request({
url: 'alarm/batchCancel',
- method: 'post'
+ method: 'post',
+ params
})
}
diff --git a/src/api/job.js b/src/api/job.js
index 141e2e6..ebd33d2 100644
--- a/src/api/job.js
+++ b/src/api/job.js
@@ -11,15 +11,16 @@
})
}
-export function overJob(id) {
+export function overJob(params) {
return request({
url: 'job/overJob',
method: 'post',
- params: {
- id: id,
- handleMessage: '',
- handlePhotos: ''
- }
+ params
+ // params: {
+ // id: id,
+ // handleMessage: '',
+ // handlePhotos: ''
+ // }
})
}
diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue
new file mode 100644
index 0000000..d5bc9a1
--- /dev/null
+++ b/src/views/alarmManage/component/HandlePrompt.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue
index 7b0042d..37ee964 100644
--- a/src/views/alarmManage/listAlarmNow.vue
+++ b/src/views/alarmManage/listAlarmNow.vue
@@ -43,6 +43,7 @@
@current-change="handleCurrentChange"/>
+ <
@@ -50,10 +51,11 @@
import infoWell from '@/views/wellManage/infoWellBdOffline'
import { getAlarmList, batchExportAlarm, batchCancel } from '@/api/alarm'
import { overJob } from '@/api/job'
+import HandlePrompt from './component/HandlePrompt'
export default {
name: 'ListAlarmNow',
- components: { infoWell },
+ components: { HandlePrompt, infoWell },
data() {
return {
listQuery: {
@@ -130,7 +132,8 @@
listLoading: true, // 加载动画
fullscreenLoading: false, // 全屏加载动画
wellShow: false, // 是否显示闸井详情
- detailShow: false // 是否显示编辑框
+ detailShow: false, // 是否显示编辑框
+ cancelShow: true
}
},
created() {
@@ -209,37 +212,42 @@
},
// 取消报警,调用结束工单接口
cancelAlarm(jobId) {
- this.$confirm(
- '确定要强制取消报警吗?',
- '确认操作',
- {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- overJob(jobId).then(response => {
- this.$message.success('取消报警成功')
- this.fetchData()
- })
- })
+ this.cancelShow = true
+ // setTimeout(function() {
+ this.$refs.handlePrompt.initDialog(true, jobId, false)
+ // this.$confirm(
+ // '确定要强制取消报警吗?',
+ // '确认操作',
+ // {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }
+ // ).then(() => {
+ // overJob(jobId).then(response => {
+ // this.$message.success('取消报警成功')
+ // this.fetchData()
+ // })
+ // })
},
// 批量消警
batchCancel() {
- this.$confirm(
- '确定要强制取消全部报警吗?',
- '确认操作',
- {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- batchCancel().then(response => {
- this.$message.success('取消报警成功')
- this.fetchData()
- })
- })
+ this.cancelShow = true
+ this.$refs.handlePrompt.initDialog(true, '', true, this.listQuery)
+ // this.$confirm(
+ // '确定要强制取消全部报警吗?',
+ // '确认操作',
+ // {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }
+ // ).then(() => {
+ // batchCancel().then(response => {
+ // this.$message.success('取消报警成功')
+ // this.fetchData()
+ // })
+ // })
}
}
}
diff --git a/src/views/alarmManage/listAlarmRecords.vue b/src/views/alarmManage/listAlarmRecords.vue
index 5ac4b20..e6846b8 100644
--- a/src/views/alarmManage/listAlarmRecords.vue
+++ b/src/views/alarmManage/listAlarmRecords.vue
@@ -54,6 +54,11 @@
{{ scope.row[column.value] }}
+
+
+ {{ scope.row.status=='1'?'正在报警':'已消警' }}
+
+
查看工单
diff --git a/src/views/jobManage/detailJob.vue b/src/views/jobManage/detailJob.vue
index 5713aa4..e9d44bf 100644
--- a/src/views/jobManage/detailJob.vue
+++ b/src/views/jobManage/detailJob.vue
@@ -43,6 +43,11 @@
+
+
+
+
+