新增:css样式支持
This commit is contained in:
@@ -28,9 +28,16 @@
|
||||
<template v-if="column.key === 'domain'">
|
||||
<a-button
|
||||
type="link"
|
||||
@click="openUrl(`${record.prefix}${record.domain}`)"
|
||||
>{{ record.domain }}</a-button
|
||||
@click="
|
||||
openSpmUrl(
|
||||
`https://${record.websiteCode}.wsdns.cn`,
|
||||
record,
|
||||
record.websiteId
|
||||
)
|
||||
"
|
||||
>
|
||||
{{ record.websiteCode }}.wsdns.cn
|
||||
</a-button>
|
||||
</template>
|
||||
<template v-if="column.key === 'type'">
|
||||
<a-tag v-if="record.type === 1" color="green">是</a-tag>
|
||||
@@ -42,9 +49,9 @@
|
||||
>
|
||||
</template>
|
||||
<template v-if="column.key === 'version'">
|
||||
<a-tag v-if="record.version === 10">免费版</a-tag>
|
||||
<a-tag v-if="record.version === 20">授权版</a-tag>
|
||||
<a-tag v-if="record.version === 30">永久授权</a-tag>
|
||||
<text v-if="record.version === 10">免费版</text>
|
||||
<text v-if="record.version === 20">授权版</text>
|
||||
<text v-if="record.version === 30">永久授权</text>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="red">未开通</a-tag>
|
||||
@@ -88,7 +95,7 @@
|
||||
updateWebsite
|
||||
} from '@/api/cms/website';
|
||||
import type { Website, WebsiteParam } from '@/api/cms/website/model';
|
||||
import { openPreview, openUrl } from '@/utils/common';
|
||||
import { openPreview, openSpmUrl, openUrl } from '@/utils/common';
|
||||
import { getSiteDomain } from '@/utils/domain';
|
||||
|
||||
// 表格实例
|
||||
|
||||
Reference in New Issue
Block a user