修改itic点击波形图

This commit is contained in:
guanj
2026-03-26 14:53:34 +08:00
parent 93ee7e4034
commit fafc5f82c4
28 changed files with 24966 additions and 24719 deletions

View File

@@ -40,7 +40,14 @@
></Table>
</div>
<div class="pd10" style="width: 400px" v-loading="loading">
<el-input v-model="filterText" placeholder="请输入内容" clearable maxlength="32" show-word-limit @input="change">
<el-input
v-model="filterText"
placeholder="请输入内容"
clearable
maxlength="32"
show-word-limit
@input="change"
>
<template #prefix>
<Icon name="el-icon-Search" style="font-size: 16px" />
</template>
@@ -139,7 +146,7 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="最大终端数:" prop="nodeDevNum" class="top" >
<el-form-item label="最大终端数:" prop="nodeDevNum" class="top">
<el-input
v-model.trim.number="formData.nodeDevNum"
onkeyup="value = value.replace(/[^0-9]/g,'')"
@@ -273,7 +280,7 @@ const tableStore = new TableStore({
method: 'POST',
column: [
{ title: '名称', field: 'name' },
{ title: 'IP', field: 'ip' ,width:'120px' },
{ title: 'IP', field: 'ip', width: '120px' },
{
title: '等级',
field: 'nodeGrade',
@@ -317,7 +324,8 @@ const tableStore = new TableStore({
{ title: '描述', field: 'remark' },
{
title: '操作',fixed: 'right',
title: '操作',
fixed: 'right',
align: 'center',
width: '180',
render: 'buttons',
@@ -376,8 +384,8 @@ const tableStore = new TableStore({
},
click: row => {
if (hasDevices.value) {
ElMessage.warning('此前置机绑定了设备,无法删除!');
return;
ElMessage.warning('此前置机绑定了设备,无法删除!')
return
}
delNode(row.id).then(res => {
@@ -386,7 +394,7 @@ const tableStore = new TableStore({
})
}
},
{
{
name: 'edit',
title: '分配终端',
type: 'primary',
@@ -399,10 +407,10 @@ const tableStore = new TableStore({
title: '确定分配终端吗?'
},
click: row => {
if (!hasDevices.value) {
ElMessage.warning('此前置机下无设备,无法分配终端!');
return;
}
// if (!hasDevices.value) {
// ElMessage.warning('此前置机下无设备,无法分配终端!')
// return
// }
allotTerminal({
nodeId: row.id
}).then(res => {
@@ -410,7 +418,7 @@ const tableStore = new TableStore({
tableStore.index()
})
}
},
}
]
}
],
@@ -448,26 +456,25 @@ const currentChangeEvent = () => {
// 检查返回的数据是否存在且不为空
if (res.data && res.data.processDeviceList) {
// 检查是否有设备绑定
const hasAnyDevices = res.data.processDeviceList.some(item =>
item.deviceInfoList && item.deviceInfoList.length > 0
);
hasDevices.value = hasAnyDevices;
const hasAnyDevices = res.data.processDeviceList.some(
item => item.deviceInfoList && item.deviceInfoList.length > 0
)
hasDevices.value = hasAnyDevices
dataSource.value = res.data.processDeviceList.filter(item => {
item.name = item.processNo + '';
return true; // 保持原有的过滤逻辑
});
item.name = item.processNo + ''
return true // 保持原有的过滤逻辑
})
} else {
dataSource.value = []
hasDevices.value = false;
hasDevices.value = false
}
loading.value = false
})
.catch(() => {
// 添加错误处理,确保 loading 状态也能关闭
dataSource.value = []
hasDevices.value = false;
hasDevices.value = false
loading.value = false
})
@@ -476,7 +483,7 @@ const currentChangeEvent = () => {
// 重启进程
const restart = (data: any) => {
// console.log('🚀 ~ restart ~ data:', data)
// console.log('🚀 ~ restart ~ data:', data)
askRestartProcess({
deviceRebootType: null,
nodeId: nodeId.value,
@@ -518,7 +525,7 @@ const filterNode = (value: string, data: any, node: any) => {
// 过滤父节点 / 子节点 (如果输入的参数是父节点且能匹配则返回该节点以及其下的所有子节点如果参数是子节点则返回该节点的父节点。name是中文字符enName是英文字符.
const chooseNode = (value: string, data: any, node: any) => {
if (data.name.indexOf(value) !== -1) {
if ((data.subName + data.name).indexOf(value) !== -1) {
return true
}
const level = node.level
@@ -629,7 +636,7 @@ const addMenu = () => {}
:deep(.default) {
display: flex;
.row--current {
// background-color: var(--el-color-primary-light-8) !important;
// background-color: var(--el-color-primary-light-8) !important;
}
}
.custom-tree-node {

View File

@@ -1740,8 +1740,8 @@ const optionarr = ref([
])
/**母线类型 */
const busBarType = ref([
{ name: '实际母线', value: 0 },
{ name: '虚拟母线', value: 1 }
{ name: '实际母线', value: 1 },
{ name: '虚拟母线', value: 0 }
])
const bigList: any = ref([])
const smallList: any = ref([])