联调 常态化干扰源用户管理 保存功能

This commit is contained in:
GGJ
2024-06-27 14:45:58 +08:00
parent 531ed72641
commit fac38dd9cc
8 changed files with 228 additions and 52 deletions

View File

@@ -28,7 +28,7 @@
inactive-text="无数据"
/>
</el-form-item>
<el-form-item label="预警阈值">
<el-form-item label="预警阈值" >
<!-- <el-input v-model="tableStore.table.params.alertThreshold" placeholder="请输入预警阈值" clearable></el-input> -->
<el-input-number
v-model="tableStore.table.params.alertThreshold"
@@ -38,7 +38,7 @@
@change="changeAlert"
/>
</el-form-item>
<el-form-item label="告警阈值">
<el-form-item label="告警阈值" >
<el-input-number
v-model="tableStore.table.params.alarmThreshold"
:min="0"
@@ -89,6 +89,7 @@ const tableRef = ref()
const industry = dictData.getBasicData('Business_Type')
const TableHeaderRef = ref()
const alarmListRef = ref()
const flagTime = ref(false)
const detailRef = ref()
const list: any = ref({
deptId: '',
@@ -98,7 +99,7 @@ const list: any = ref({
alarmThreshold: ''
})
const level: any = ref(dictData.state.area[0]?.level)
const flag = ref('')
const flag:any = ref('')
const tableStore = new TableStore({
url: '/supervision-boot/onlineMonitor/list',
publicHeight: 65,
@@ -136,6 +137,7 @@ const tableStore = new TableStore({
return exceeded.find((item: any) => item.id == row.cellValue)?.name || '/'
}
},
{
field: 'overLimitDay',
title: '累计超标天数',
@@ -143,7 +145,11 @@ const tableStore = new TableStore({
return row.cellValue != null ? row.cellValue : '/'
}
},
{
field: 'updateTime',
visible:flagTime,
title: '最新数据时间'
},
{
title: '操作',
width: '180',
@@ -157,7 +163,9 @@ const tableStore = new TableStore({
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.targetType == 0
},
click: row => {
detailRef.value.open({
text: '详情',
@@ -272,6 +280,8 @@ const tableStore = new TableStore({
list.value.alertThreshold = tableStore.table.params.alertThreshold
list.value.alarmThreshold = tableStore.table.params.alarmThreshold
flag.value = level.value
flagTime.value=tableStore.table.params.dataType==0?true:false
},
loadCallback: () => {
// tableStore.table.data = [