fix: 修改bug

This commit is contained in:
leiqiaochu 2023-07-15 17:50:16 +08:00
parent ae12ae34ec
commit ce0d23d07d
3 changed files with 18 additions and 2 deletions

View File

@ -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();
}
}

View File

@ -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) => ({

View File

@ -466,6 +466,7 @@ const getActions = (
data?.state?.value !== 'disabled'
? '请先禁用该告警,再删除'
: '删除',
placement:"topLeft"
},
popConfirm: {
title: '确认删除?',