干扰源常态化管理页面

This commit is contained in:
cdf
2024-05-22 09:19:52 +08:00
parent 0fa6991010
commit 55a07d18c5

View File

@@ -1,24 +1,23 @@
<!---试运行列表--> <!---试运行列表-->
<template> <template>
<div>555</div> <div>
<!-- <TableHeader area datePicker ref="TableHeaderRef"> <TableHeader area datePicker ref="TableHeaderRef">
<template #operation> <template #operation>
&lt;!&ndash; <el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button> &ndash;&gt; <el-button icon="el-icon-Plus" type="primary" @click="startRunTest">试运行</el-button>
&lt;!&ndash; <el-button icon="el-icon-Download" @click="exportEvent" type="primary">导出</el-button> &ndash;&gt;
</template> </template>
</TableHeader>--> </TableHeader>
<!-- <Table ref="tableRef" />--> <Table ref="tableRef" />
</div>
</template> </template>
<!--<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue' import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue' import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue' import TableHeader from '@/components/table/header/index.vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useDictData } from '@/stores/dictData' import { useDictData } from '@/stores/dictData'
import { ElMessage } from 'element-plus'
const dictData = useDictData() const dictData = useDictData()
@@ -31,8 +30,32 @@ const tableStore = new TableStore({
url: '/supervision-boot/tempLinedebug/pageHasDebug', url: '/supervision-boot/tempLinedebug/pageHasDebug',
method: 'POST', method: 'POST',
column: [ column: [
{ title: '序号', type: 'seq', width: 80 }, { title: '', type: 'checkbox', width: 80 },
{ field: 'lineName', title: '监测点名称', minWidth: 170 }, { field: 'lineName', title: '监测点名称', minWidth: 170 },
{ field: 'connectedBus', title: '接入母线', minWidth: 170 },
{ field: 'monitoringTerminalCode', title: '终端编号', minWidth: 170 },
{ field: 'monitoringTerminalName', title: '终端名称', minWidth: 170 },
{ field: 'powerSubstationName', title: '变电站', minWidth: 170 },
{ field: 'reason', title: '调试原因', minWidth: 170 },
{
field: 'testRunState',
title: '试运行状态',
minWidth: 100,
render: 'tag',
custom: {
0: 'primary',
2: 'success',
3: 'danger',
1: 'warning'
},
replaceValue: {
0: '待试运行',
1: '试运行中',
2: '试运行成功',
3: '试运行失败',
null:'待试运行'
}
},
{ {
field: 'status', field: 'status',
title: '审核状态', title: '审核状态',
@@ -52,14 +75,14 @@ const tableStore = new TableStore({
null:'/' null:'/'
} }
}, },
{ field: 'reason', title: '调试原因', minWidth: 170 },
{ {
title: '操作', title: '操作',
minWidth: 150, minWidth: 200,
fixed: 'right', fixed: 'right',
render: 'buttons', render: 'buttons',
buttons: [ buttons: [
{ {
name: 'productSetting', name: 'productSetting',
title: '流程详情', title: '流程详情',
type: 'primary', type: 'primary',
@@ -72,19 +95,7 @@ const tableStore = new TableStore({
return !row.processInstanceId; return !row.processInstanceId;
} }
}, },
{
name: 'productSetting',
title: '申请联调',
type: 'success',
icon: 'el-icon-add',
render: 'basicButton',
click: row => {
handleDebug(row)
},
disabled: row => {
return row.reason;
}
}
] ]
} }
], ],
@@ -114,16 +125,25 @@ const handleAudit = (instanceId: any) => {
} }
}) })
} }
//申请联调 //试运行
const debugForms = ref() const startRunTest = () => {
const debugId = ref('') let monitorIds: any = []
const handleDebug = (row: any) => { tableStore.table.selection.forEach(item => {
debugId.value = row.id if(item.testRunState != 0){
console.log(debugId.value) return ElMessage({
debugForms.value.open() message: '请选择未试运行的监测点进行试运行',
type: 'warning'
})
return false;
}
if (item.testRunState == 0) {
monitorIds.push(item.id)
}
})
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
</style>--> </style>