|
|
|
|
@ -44,27 +44,31 @@ |
|
|
|
|
width="60" |
|
|
|
|
type="index" |
|
|
|
|
></el-table-column> |
|
|
|
|
<el-table-column label="预警时间" align="center" key="occurTime" prop="occurTime" /> |
|
|
|
|
<el-table-column label="预警时间" align="center" key="occurTime" prop="occurTime" :show-overflow-tooltip="true" /> |
|
|
|
|
<el-table-column label="预警等级" align="center" key="level" prop="level" :show-overflow-tooltip="true" /> |
|
|
|
|
<el-table-column label="预警信息" align="center" key="message" prop="message" width="200" /> |
|
|
|
|
<el-table-column label="预警信息" align="center" key="message" prop="message" width="200" :show-overflow-tooltip="true"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span @click="showContentDialog('预警信息', scope.row.message)" class="clickable-cell">{{ scope.row.message || '--' }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="预警状态" align="center" key="status"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<dict-tag :options="dict.type.alert_message_status" :value="scope.row.status"/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="处理人" align="center" key="handler" prop="handler" width="120" > |
|
|
|
|
<el-table-column label="处理人" align="center" key="handler" prop="handler" width="120" :show-overflow-tooltip="true" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ scope.row.handler || '--' }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="处理时间" align="center" prop="handleTime" width="160"> |
|
|
|
|
<el-table-column label="处理时间" align="center" prop="handleTime" width="160" :show-overflow-tooltip="true"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ parseTime(scope.row.handleTime) || '--' }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="解决方案" align="center" key="solution" prop="solution" :show-overflow-tooltip="true" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ scope.row.solution || '--'}}</span> |
|
|
|
|
<span @click="showContentDialog('解决方案', scope.row.solution)" class="clickable-cell">{{ scope.row.solution || '--'}}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
@ -98,12 +102,21 @@ |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<!-- 内容查看弹窗 --> |
|
|
|
|
<el-dialog :title="contentDialogTitle" :visible.sync="contentDialogVisible" width="600px" append-to-body :close-on-click-modal="false"> |
|
|
|
|
<div class="content-display"> |
|
|
|
|
<p v-bind:style="contentStyles">{{ contentDialogContent }}</p> |
|
|
|
|
</div> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="contentDialogVisible = false">关 闭</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
@ -148,6 +161,17 @@ export default { |
|
|
|
|
deptName: undefined, |
|
|
|
|
// 默认密码 |
|
|
|
|
initPassword: undefined, |
|
|
|
|
// 内容查看弹窗相关 |
|
|
|
|
contentDialogVisible: false, |
|
|
|
|
contentDialogTitle: '', |
|
|
|
|
contentDialogContent: '', |
|
|
|
|
// 内容显示样式 |
|
|
|
|
contentStyles: { |
|
|
|
|
wordBreak: 'break-all', |
|
|
|
|
whiteSpace: 'pre-wrap', |
|
|
|
|
fontSize: '14px', |
|
|
|
|
lineHeight: '1.8' |
|
|
|
|
}, |
|
|
|
|
// 日期范围 |
|
|
|
|
dateRange: [], |
|
|
|
|
// 岗位选项 |
|
|
|
|
@ -180,7 +204,8 @@ export default { |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
|
name: undefined, |
|
|
|
|
status: undefined |
|
|
|
|
status: undefined, |
|
|
|
|
level: undefined |
|
|
|
|
}, |
|
|
|
|
// 表单校验 |
|
|
|
|
rules: { |
|
|
|
|
@ -200,6 +225,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
// 检查路由参数是否有level |
|
|
|
|
const level = this.$route.query.level; |
|
|
|
|
if (level) { |
|
|
|
|
this.queryParams.level = level; |
|
|
|
|
} |
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
@ -325,7 +355,32 @@ export default { |
|
|
|
|
// 提交上传文件 |
|
|
|
|
submitFileForm() { |
|
|
|
|
this.$refs.upload.submit() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** 显示内容弹窗 */ |
|
|
|
|
showContentDialog(title, content) { |
|
|
|
|
// 只有当内容存在时才显示弹窗 |
|
|
|
|
if (content && content.trim() !== '') { |
|
|
|
|
this.contentDialogTitle = title; |
|
|
|
|
this.contentDialogContent = content; |
|
|
|
|
this.contentDialogVisible = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
.clickable-cell { |
|
|
|
|
cursor: pointer; |
|
|
|
|
color: #409EFF; |
|
|
|
|
text-decoration: underline; |
|
|
|
|
} |
|
|
|
|
.clickable-cell:hover { |
|
|
|
|
color: #66b1ff; |
|
|
|
|
} |
|
|
|
|
.content-display { |
|
|
|
|
max-height: 400px; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
} |
|
|
|
|
</style> |