fix: 修改bug
This commit is contained in:
parent
ae12ae34ec
commit
ce0d23d07d
|
@ -291,7 +291,7 @@ const getProvidersList = async () => {
|
|||
arr.includes(item.alias),
|
||||
);
|
||||
providersList.value = providers;
|
||||
if (arr.includes('OPC_UA')) {
|
||||
if (arr.includes('opc-ua')) {
|
||||
getOptionsList();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
</template>
|
||||
<template #shareCluster="slotProps">
|
||||
{{
|
||||
slotProps.shareCluster === 'true'
|
||||
slotProps.shareCluster === true
|
||||
? '共享配置'
|
||||
: '独立配置'
|
||||
}}
|
||||
|
@ -378,9 +378,24 @@ const getDetails = (slotProps: Partial<Record<string, any>>) => {
|
|||
} else {
|
||||
!!cluster[0].configuration.publicHos && (head = '公网:');
|
||||
}
|
||||
if( !shareCluster && cluster.length > 1){
|
||||
const contentItem2 = (cluster[0].configuration.publicHost ||
|
||||
cluster[0].configuration.remoteHost) +
|
||||
':' +
|
||||
(cluster[0].configuration.publicPort ||
|
||||
cluster[0].configuration.remotePort)
|
||||
let headItme2 ='远程'
|
||||
!!cluster[0].configuration.publicHos && (headItme2 = '公网:');
|
||||
if(cluster.length > 2){
|
||||
return head + headers + content + " " + headItme2 + headers + contentItem2 + '。。。'
|
||||
}
|
||||
return head + headers + content + " " + headItme2 + headers + contentItem2
|
||||
}
|
||||
return head + headers + content;
|
||||
};
|
||||
|
||||
|
||||
|
||||
const getSupports = async () => {
|
||||
const res: any = await supports();
|
||||
options.value = res.result.map((item: any) => ({
|
||||
|
|
|
@ -466,6 +466,7 @@ const getActions = (
|
|||
data?.state?.value !== 'disabled'
|
||||
? '请先禁用该告警,再删除'
|
||||
: '删除',
|
||||
placement:"topLeft"
|
||||
},
|
||||
popConfirm: {
|
||||
title: '确认删除?',
|
||||
|
|
Loading…
Reference in New Issue