mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-14 10:22:02 +08:00
【新增】部署类型七牛云oss、七牛云cdn、百度cdn、腾讯waf、腾讯edgeone、阿里云waf
【新增】解析类型godaddy 【新增】自定义CA授权管理 【调整】优化部署流程,减少代码冗余,提升类型添加效率
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
import { defineComponent } from 'vue'
|
||||
import { NButton } from 'naive-ui'
|
||||
import { PlusOutlined } from '@vicons/antd'
|
||||
import { $t } from '@locales/index'
|
||||
import { useCAManageController } from '../useController'
|
||||
import EmptyState from '@components/TableEmptyState'
|
||||
import BaseComponent from '@components/BaseLayout'
|
||||
|
||||
/**
|
||||
* CA授权管理模态框组件
|
||||
*/
|
||||
export default defineComponent({
|
||||
name: 'CAManageModal',
|
||||
setup() {
|
||||
const { CATable, CATablePage, handleOpenAddForm, total } = useCAManageController()
|
||||
|
||||
/**
|
||||
* 处理空状态添加按钮点击事件
|
||||
*/
|
||||
const handleEmptyAddClick = () => {
|
||||
handleOpenAddForm()
|
||||
}
|
||||
|
||||
return () => (
|
||||
<BaseComponent
|
||||
v-slots={{
|
||||
headerLeft: () => (
|
||||
<NButton type="primary" onClick={handleOpenAddForm}>
|
||||
<PlusOutlined class="text-[var(--text-color-3)] mr-1" />
|
||||
<span>{$t('t_4_1747903685371')}</span>
|
||||
</NButton>
|
||||
),
|
||||
content: () => (
|
||||
<div class="rounded-lg">
|
||||
<CATable
|
||||
size="medium"
|
||||
v-slots={{
|
||||
empty: () => <EmptyState addButtonText={$t('t_4_1747903685371')} onAddClick={handleEmptyAddClick} />,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
footerRight: () => (
|
||||
<div class="flex justify-end mt-4">
|
||||
<CATablePage
|
||||
v-slots={{
|
||||
prefix: () => (
|
||||
<span>
|
||||
{$t('t_15_1745227839354')} {total.value} {$t('t_16_1745227838930')}
|
||||
</span>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
)
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user