diff --git a/src/views/alarmManage/components/HandlePrompt.vue b/src/views/alarmManage/components/HandlePrompt.vue index 2990af1..d802514 100644 --- a/src/views/alarmManage/components/HandlePrompt.vue +++ b/src/views/alarmManage/components/HandlePrompt.vue @@ -47,6 +47,7 @@ jobStatus: '', // 工单状态 handleMessage: '' // 原因 }, + isBatch: false, // 是不是批量删除 dialogVisible: false, closeReasons: [{ value: '3', @@ -66,11 +67,13 @@ methods: { // 初始化对话框 initDialog: function(dialogFormVisible, jobId, isBatch, params) { + debugger this.dialogVisible = dialogFormVisible + this.isBatch = isBatch if (isBatch) { this.formData.keywords = params.keywords - this.formData.alarmType = params.alarmTpe - this.formData.alarmContent = params.alarmContent + this.formData.alarmType = params.alarmType + this.formData.alarmContent = params.alarmContentType this.formData.beginTime = params.beginTime this.formData.endTime = params.endTime } else { diff --git a/src/views/alarmManage/components/HandlePrompt.vue b/src/views/alarmManage/components/HandlePrompt.vue index 2990af1..d802514 100644 --- a/src/views/alarmManage/components/HandlePrompt.vue +++ b/src/views/alarmManage/components/HandlePrompt.vue @@ -47,6 +47,7 @@ jobStatus: '', // 工单状态 handleMessage: '' // 原因 }, + isBatch: false, // 是不是批量删除 dialogVisible: false, closeReasons: [{ value: '3', @@ -66,11 +67,13 @@ methods: { // 初始化对话框 initDialog: function(dialogFormVisible, jobId, isBatch, params) { + debugger this.dialogVisible = dialogFormVisible + this.isBatch = isBatch if (isBatch) { this.formData.keywords = params.keywords - this.formData.alarmType = params.alarmTpe - this.formData.alarmContent = params.alarmContent + this.formData.alarmType = params.alarmType + this.formData.alarmContent = params.alarmContentType this.formData.beginTime = params.beginTime this.formData.endTime = params.endTime } else { diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue index eb6e5bc..49713f4 100644 --- a/src/views/alarmManage/listAlarmNow.vue +++ b/src/views/alarmManage/listAlarmNow.vue @@ -82,7 +82,7 @@ @current-change="handleCurrentChange"/> - + @@ -195,6 +195,7 @@ } }, watch: { + // 当告警各类型变化时,刷新告警内容列表 alarmType(val) { this.listQuery.alarmContentType = '' if (val && val !== '') { @@ -203,6 +204,7 @@ this.alarmContentTypeList = [] } }, + // 当时间范围变化时,填充listQuery时间 timeRange(val) { if (val && val.length > 0) { this.listQuery.beginTime = val[0] @@ -232,12 +234,16 @@ // 取消报警 cancelAlarm(jobId) { this.cancelShow = true - this.$refs.handlePrompt.initDialog(this.cancelShow, jobId, false) + // setTimeout(function() { + this.$refs.handlePrompt.initDialog(true, jobId, false) + // }, 100) }, // 取消报警,调用结束工单接口 batchCancel() { this.cancelShow = true - this.$refs.handlePrompt.initDialog(this.cancelShow, '', true, this.listQuery) + // setTimeout(function() { + this.$refs.handlePrompt.initDialog(true, '', true, this.listQuery) + // }, 100) }, formatValue(cellValue) { if (cellValue === 1) { @@ -250,6 +256,7 @@ return '' } }, + // 计算行样式,不同等级显示不同颜色,暂时不用了 tableRowClassName({ row, rowIndex }) { // if (row.alarmLevel === 1) { // return 'red-row' diff --git a/src/views/alarmManage/components/HandlePrompt.vue b/src/views/alarmManage/components/HandlePrompt.vue index 2990af1..d802514 100644 --- a/src/views/alarmManage/components/HandlePrompt.vue +++ b/src/views/alarmManage/components/HandlePrompt.vue @@ -47,6 +47,7 @@ jobStatus: '', // 工单状态 handleMessage: '' // 原因 }, + isBatch: false, // 是不是批量删除 dialogVisible: false, closeReasons: [{ value: '3', @@ -66,11 +67,13 @@ methods: { // 初始化对话框 initDialog: function(dialogFormVisible, jobId, isBatch, params) { + debugger this.dialogVisible = dialogFormVisible + this.isBatch = isBatch if (isBatch) { this.formData.keywords = params.keywords - this.formData.alarmType = params.alarmTpe - this.formData.alarmContent = params.alarmContent + this.formData.alarmType = params.alarmType + this.formData.alarmContent = params.alarmContentType this.formData.beginTime = params.beginTime this.formData.endTime = params.endTime } else { diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue index eb6e5bc..49713f4 100644 --- a/src/views/alarmManage/listAlarmNow.vue +++ b/src/views/alarmManage/listAlarmNow.vue @@ -82,7 +82,7 @@ @current-change="handleCurrentChange"/> - + @@ -195,6 +195,7 @@ } }, watch: { + // 当告警各类型变化时,刷新告警内容列表 alarmType(val) { this.listQuery.alarmContentType = '' if (val && val !== '') { @@ -203,6 +204,7 @@ this.alarmContentTypeList = [] } }, + // 当时间范围变化时,填充listQuery时间 timeRange(val) { if (val && val.length > 0) { this.listQuery.beginTime = val[0] @@ -232,12 +234,16 @@ // 取消报警 cancelAlarm(jobId) { this.cancelShow = true - this.$refs.handlePrompt.initDialog(this.cancelShow, jobId, false) + // setTimeout(function() { + this.$refs.handlePrompt.initDialog(true, jobId, false) + // }, 100) }, // 取消报警,调用结束工单接口 batchCancel() { this.cancelShow = true - this.$refs.handlePrompt.initDialog(this.cancelShow, '', true, this.listQuery) + // setTimeout(function() { + this.$refs.handlePrompt.initDialog(true, '', true, this.listQuery) + // }, 100) }, formatValue(cellValue) { if (cellValue === 1) { @@ -250,6 +256,7 @@ return '' } }, + // 计算行样式,不同等级显示不同颜色,暂时不用了 tableRowClassName({ row, rowIndex }) { // if (row.alarmLevel === 1) { // return 'red-row' diff --git a/src/views/jobManage/detailJob.vue b/src/views/jobManage/detailJob.vue index aab6475..9614347 100644 --- a/src/views/jobManage/detailJob.vue +++ b/src/views/jobManage/detailJob.vue @@ -1,6 +1,6 @@