mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
feat: 增加许可证错误信息显示 (#4877)
This commit is contained in:
parent
539b600d6c
commit
4243ccb5c2
@ -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;
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user