修改 电网一张图bug 技术监督新增 重新发起页面绘制

This commit is contained in:
GGJ
2024-06-02 17:55:37 +08:00
parent 91fa1f60e3
commit c7025c615f
16 changed files with 668 additions and 463 deletions

View File

@@ -44,10 +44,11 @@ import { getLoadTypeUserList } from '@/api/process-boot/interference'
import { useDictData } from '@/stores/dictData'
import addForm from './components/addForm.vue'
import effectProblem from './components/effectProblem/index.vue'
import { planDetailsAudit ,sendAlarm} from '@/api/supervision-boot/plan/index'
import { planDetailsAudit, sendAlarm } from '@/api/supervision-boot/plan/index'
import { ElMessage } from 'element-plus'
defineOptions({
name: 'supervise/plan'
name: 'plan'
})
// const layout = mainHeight(120) as any
const dictData = useDictData()
@@ -174,6 +175,23 @@ const tableStore = new TableStore({
return !row.processInstanceId
}
},
// {
// name: 'edit',
// title: '重新发起',
// type: 'warning',
// icon: 'el-icon-Open',
// render: 'basicButton',
// disabled: row => {
// return row.status == 1 || row.status == 2
// },
// click: row => {
// addForms.value.open({
// title: '重新发起',
// row: row
// })
// }
// },
{
name: 'productSetting',
title: '实施问题',
@@ -197,6 +215,20 @@ const tableStore = new TableStore({
handleAudit(row)
}
},
// {
// name: 'cancel',
// title: '取消',
// type: 'danger',
// icon: 'el-icon-Open',
// render: 'basicButton',
// disabled: row => {
// return row.status == 3 || row.status == 2 || row.status == 4
// },
// click: row => {
// // cancelLeave(row)
// }
// },
{
name: 'productSetting',
title: '发起告警单',
@@ -240,7 +272,9 @@ provide('tableStore', tableStore)
const addForms = ref()
const addFormModel = () => {
setTimeout(() => {
addForms.value.open()
addForms.value.open({
title: '技术监督计划'
})
}, 0)
}
const exportEvent = () => {
@@ -279,7 +313,7 @@ const handleAudit = (row: any) => {
})
}
//发起告警单
const handleAlarmForm=(row:any)=>{
const handleAlarmForm = (row: any) => {
sendAlarm({ id: row.planId }).then(res => {
ElMessage.success('发起告警单成功!')
tableStore.index()