feat: 添加软件包文件未发现提示信息

This commit is contained in:
TsMask
2025-03-05 11:11:58 +08:00
parent 2cbd2e0aa7
commit f0e34726ec
3 changed files with 23 additions and 2 deletions

View File

@@ -607,6 +607,7 @@ export default {
upgradeDone: 'Update complete, service being reloaded',
upgradeFail: 'The update fails, please check whether the software file exists and whether the service terminal environment is available!',
upgradeModal: 'Network Element Version Updates',
noPath: 'Package File Not Found',
},
neLicense: {
status: "License Status",

View File

@@ -607,6 +607,7 @@ export default {
upgradeDone: '更新完成,服务正在重载',
upgradeFail: '更新失败,请检查软件文件是否存在且服务终端环境是否可用!',
upgradeModal: '网元版本更新',
noPath: '软件包文件未发现',
},
neLicense: {
status: "许可证状态",

View File

@@ -120,6 +120,7 @@ let tableColumns = ref<TableColumnsType>([
{
title: t('views.ne.neVersion.preVersion'),
dataIndex: 'preVersion',
key: 'preVersion',
align: 'left',
width: 150,
resizable: true,
@@ -304,6 +305,10 @@ function fnRecordVersion(
message.warning(t('views.ne.neVersion.rollbackTipEmpty'), 3);
return;
}
if (row.prePath === '' || row.prePath === '-') {
message.warning(t('views.ne.neVersion.noPath'), 3);
return;
}
if (row.preVersion === row.version) {
contentTip = t('views.ne.neVersion.rollbackTipEqual');
}
@@ -522,8 +527,7 @@ onMounted(() => {
type="primary"
:disabled="tableState.selectedRowKeys.length > 1"
@click.prevent="
() =>
(modalState.openByMoreFile = !modalState.openByMoreFile)
() => (modalState.openByMoreFile = !modalState.openByMoreFile)
"
>
<template #icon><UploadOutlined /></template>
@@ -615,6 +619,21 @@ onMounted(() => {
<template v-if="column.key === 'status'">
<DictTag :options="dictStatus" :value="record.status" />
</template>
<template v-if="column.key === 'preVersion'">
{{ record.preVersion }}
<a-tooltip
placement="topRight"
v-if="
record.preVersion &&
(record.prePath === '' || record.prePath === '-')
"
>
<template #title>
{{ t('views.ne.neVersion.noPath') }}
</template>
<InfoCircleOutlined />
</a-tooltip>
</template>
<template v-if="column.key === 'id'">
<a-space :size="8" align="center">
<a-tooltip placement="topRight">