mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 升级界面增加软件的网站跳转 (#3266)
Refs https://github.com/1Panel-dev/1Panel/issues/3259
This commit is contained in:
parent
998c870566
commit
a2c16e6a54
@ -33,6 +33,30 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
<el-col :span="22" :offset="1">
|
||||
<div class="descriptions">
|
||||
<el-descriptions direction="vertical">
|
||||
<el-descriptions-item>
|
||||
<el-link @click="toLink(app.website)">
|
||||
<el-icon><OfficeBuilding /></el-icon>
|
||||
<span>{{ $t('app.appOfficeWebsite') }}</span>
|
||||
</el-link>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<el-link @click="toLink(app.document)">
|
||||
<el-icon><Document /></el-icon>
|
||||
<span>{{ $t('app.document') }}</span>
|
||||
</el-link>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<el-link @click="toLink(app.github)">
|
||||
<el-icon><Link /></el-icon>
|
||||
<span>{{ $t('app.github') }}</span>
|
||||
</el-link>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
@ -69,17 +93,22 @@ const resourceName = ref('');
|
||||
const rules = ref<any>({
|
||||
detailId: [Rules.requiredSelect],
|
||||
});
|
||||
|
||||
const app = ref();
|
||||
const em = defineEmits(['close']);
|
||||
const handleClose = () => {
|
||||
open.value = false;
|
||||
em('close', open);
|
||||
};
|
||||
|
||||
const acceptParams = (id: number, name: string, op: string) => {
|
||||
const toLink = (link: string) => {
|
||||
window.open(link, '_blank');
|
||||
};
|
||||
|
||||
const acceptParams = (id: number, name: string, op: string, appDetail: App.AppDetail) => {
|
||||
operateReq.installId = id;
|
||||
operateReq.operate = op;
|
||||
resourceName.value = name;
|
||||
app.value = appDetail;
|
||||
GetAppUpdateVersions(id).then((res) => {
|
||||
versions.value = res.data;
|
||||
if (res.data != null && res.data.length > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user