style: 开站网元信息函数命名

This commit is contained in:
TsMask
2024-04-30 20:03:55 +08:00
parent 607660124a
commit fc6dfe9894
2 changed files with 8 additions and 8 deletions

View File

@@ -125,9 +125,9 @@ function fnTabCreate() {
}
/**
* 对话框弹出测试连接
* 测试主机连接
*/
function fnModalTest(row: Record<string, any>) {
function fnHostTest(row: Record<string, any>) {
if (tabState.confirmLoading || !row.addr) return;
tabState.confirmLoading = true;
const hide = message.loading(t('common.loading'), 0);
@@ -151,8 +151,8 @@ function fnModalTest(row: Record<string, any>) {
});
}
/**SSH连接-免密直连 */
function fnSSHLink(row: Record<string, any>) {
/**测试主机连接-免密直连 */
function fnHostAuthorized(row: Record<string, any>) {
if (tabState.confirmLoading) return;
Modal.confirm({
@@ -280,7 +280,7 @@ function fnStepNext(stepName: 'NeInfoConfigPara5G') {
if (stepName === 'NeInfoConfigPara5G') {
Modal.confirm({
title: t('common.tipTitle'),
content: '确认要下一步进行网元公共参数的设置?',
content: '确认要下一步进行网元公共参数的设置?',
onOk() {
fnToStepName('NeInfoConfigPara5G');
},
@@ -690,7 +690,7 @@ onMounted(() => {
<a-button
type="primary"
shape="round"
@click="fnModalTest(host)"
@click="fnHostTest(host)"
:loading="tabState.confirmLoading"
>
<template #icon><LinkOutlined /></template>
@@ -698,7 +698,7 @@ onMounted(() => {
<a-button
type="link"
@click="fnSSHLink(host)"
@click="fnHostAuthorized(host)"
:loading="tabState.confirmLoading"
v-if="host.hostType === 'ssh' && host.authMode !== '2'"
>

View File

@@ -205,7 +205,7 @@ function fnStepNext(stepName: 'NeInfoSoftwareLicense') {
if (stepName === 'NeInfoSoftwareLicense') {
Modal.confirm({
title: t('common.tipTitle'),
content: '确认要下一步进行网元授权吗?',
content: '确认要下一步进行网元授权吗?',
onOk() {
fnToStepName('NeInfoSoftwareLicense');
},