Browse Source

feat: 增加许可证错误信息显示 (#4877)

pull/4894/head
ssongliu 7 months ago committed by GitHub
parent
commit
4243ccb5c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      frontend/src/api/interface/setting.ts
  2. 12
      frontend/src/views/setting/license/index.vue

1
frontend/src/api/interface/setting.ts

@ -152,6 +152,7 @@ export namespace Setting {
productPro: string; productPro: string;
trial: boolean; trial: boolean;
status: string; status: string;
message: string;
} }
export interface LicenseStatus { export interface LicenseStatus {
productPro: string; productPro: string;

12
frontend/src/views/setting/license/index.vue

@ -48,6 +48,9 @@
</div> </div>
<span v-else>-</span> <span v-else>-</span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
{{ license.message }}
</el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
@ -126,6 +129,7 @@ const license = reactive({
productName: '', productName: '',
status: '', status: '',
message: '',
}); });
const toHalo = () => { const toHalo = () => {
@ -197,6 +201,7 @@ const search = async () => {
globalStore.productProExpires = Number(res.data.productPro); globalStore.productProExpires = Number(res.data.productPro);
} }
license.licenseName = res.data.licenseName; license.licenseName = res.data.licenseName;
license.message = res.data.message;
license.assigneeName = res.data.assigneeName; license.assigneeName = res.data.assigneeName;
license.trial = res.data.trial; license.trial = res.data.trial;
if (res.data.productPro) { if (res.data.productPro) {
@ -234,4 +239,11 @@ onMounted(() => {
background-color: rgba(0, 94, 235, 0.03); background-color: rgba(0, 94, 235, 0.03);
} }
} }
:deep(.el-descriptions__content) {
max-width: 300px;
}
.descriptions {
word-break: break-all;
word-wrap: break-word;
}
</style> </style>

Loading…
Cancel
Save