fix: 空格内容无法编辑,提示信息显示方向

This commit is contained in:
TsMask
2025-06-10 18:56:47 +08:00
parent a945e4dc5f
commit f14316256c

View File

@@ -195,9 +195,7 @@ function fnActiveConfigNode(key: string | number) {
}, 300); }, 300);
} else { } else {
message.warning({ message.warning({
content: `${param.paramDisplay} ${t( content: `${param.paramDisplay} ${t('views.ne.neConfig.noConfigData')}`,
'views.ne.neConfig.noConfigData'
)}`,
duration: 3, duration: 3,
}); });
} }
@@ -365,8 +363,7 @@ const {
}); });
onMounted(() => { onMounted(() => {
// 获取网元网元列表 neInfoStore.fnNelist().then(res => {
neInfoStore.fnNelist().then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
if (res.data.length > 0) { if (res.data.length > 0) {
// 过滤不可用的网元 // 过滤不可用的网元
@@ -427,7 +424,7 @@ onMounted(() => {
@change="fnGetNeConfig" @change="fnGetNeConfig"
/> />
</a-form-item> </a-form-item>
<a-form-item name="listeningPort"> <a-form-item name="treeStateData">
<a-tree <a-tree
:tree-data="treeState.data" :tree-data="treeState.data"
:selected-keys="[treeState.selectNode.paramName]" :selected-keys="[treeState.selectNode.paramName]"
@@ -466,7 +463,7 @@ onMounted(() => {
</template> </template>
<template #extra> <template #extra>
<a-space :size="8" align="center" v-show="!treeState.selectLoading"> <a-space :size="8" align="center" v-show="!treeState.selectLoading">
<a-tooltip> <a-tooltip placement="topRight">
<template #title>{{ t('common.reloadText') }}</template> <template #title>{{ t('common.reloadText') }}</template>
<a-button <a-button
type="default" type="default"
@@ -495,7 +492,7 @@ onMounted(() => {
> >
<template #bodyCell="{ column, text, record }"> <template #bodyCell="{ column, text, record }">
<template v-if="column.dataIndex === 'value'"> <template v-if="column.dataIndex === 'value'">
<a-tooltip placement="topLeft"> <a-tooltip placement="bottomLeft">
<template #title v-if="record.comment"> <template #title v-if="record.comment">
{{ record.comment }} {{ record.comment }}
</template> </template>
@@ -549,10 +546,9 @@ onMounted(() => {
<template #title> {{ t('common.ok') }} </template> <template #title> {{ t('common.ok') }} </template>
<a-popconfirm <a-popconfirm
:title=" :title="
t( t('views.ne.neConfig.editOkTip', {
'views.ne.neConfig.editOkTip', num: record['display'],
{ num: record['display'] } })
)
" "
placement="topRight" placement="topRight"
:disabled="listState.confirmLoading" :disabled="listState.confirmLoading"
@@ -610,7 +606,7 @@ onMounted(() => {
</a-table> </a-table>
<!-- array类型 --> <!-- array类型 -->
<template v-if="treeState.selectNode.paramType === 'array'"> <template v-else-if="treeState.selectNode.paramType === 'array'">
<a-table <a-table
class="table" class="table"
row-key="index" row-key="index"
@@ -675,7 +671,7 @@ onMounted(() => {
</a-space> </a-space>
</template> </template>
<template v-else-if="text"> <template v-else-if="text">
<a-tooltip placement="topLeft"> <a-tooltip placement="bottomLeft">
<template #title v-if="text.comment"> <template #title v-if="text.comment">
{{ text.comment }} {{ text.comment }}
</template> </template>
@@ -689,9 +685,7 @@ onMounted(() => {
" "
> >
<template #icon><BarsOutlined /></template> <template #icon><BarsOutlined /></template>
{{ {{ t('views.ne.neConfig.arrayMore') }}
t('views.ne.neConfig.arrayMore')
}}
</a-button> </a-button>
<!--特殊字段拓展显示--> <!--特殊字段拓展显示-->
<span <span
@@ -784,7 +778,7 @@ onMounted(() => {
</a-space> </a-space>
</template> </template>
<template v-else-if="text"> <template v-else-if="text">
<a-tooltip placement="topLeft"> <a-tooltip placement="bottomLeft">
<template #title v-if="text.comment"> <template #title v-if="text.comment">
{{ text.comment }} {{ text.comment }}
</template> </template>
@@ -792,11 +786,7 @@ onMounted(() => {
<template v-if="text.array"> <template v-if="text.array">
<a-button type="default" size="small"> <a-button type="default" size="small">
<template #icon><BarsOutlined /></template> <template #icon><BarsOutlined /></template>
{{ {{ t('views.ne.neConfig.arrayMore') }}
t(
'views.ne.neConfig.arrayMore'
)
}}
</a-button> </a-button>
</template> </template>
@@ -816,6 +806,10 @@ onMounted(() => {
</template> </template>
</a-table> </a-table>
</template> </template>
<template v-else>
<a-alert type="warning" show-icon message="No Data" />
</template>
</a-card> </a-card>
</a-col> </a-col>
</a-row> </a-row>