mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore: 1
This commit is contained in:
@@ -18,6 +18,7 @@ export default {
|
|||||||
aliyunSubscriptionPipeline: "Aliyun Subscription Pipeline",
|
aliyunSubscriptionPipeline: "Aliyun Subscription Pipeline",
|
||||||
legoCertPipeline: "Lego Certificate Pipeline",
|
legoCertPipeline: "Lego Certificate Pipeline",
|
||||||
customPipeline: "Custom Pipeline",
|
customPipeline: "Custom Pipeline",
|
||||||
|
batchAddPipeline: "Add Pipeline Use Template",
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
confirmTitle: "Order Confirmation",
|
confirmTitle: "Order Confirmation",
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export default {
|
|||||||
aliyunSubscriptionPipeline: "阿里云订阅流水线",
|
aliyunSubscriptionPipeline: "阿里云订阅流水线",
|
||||||
legoCertPipeline: "Lego证书流水线",
|
legoCertPipeline: "Lego证书流水线",
|
||||||
customPipeline: "自定义流水线",
|
customPipeline: "自定义流水线",
|
||||||
|
batchAddPipeline: "模版批量创建流水线",
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
confirmTitle: "订单确认",
|
confirmTitle: "订单确认",
|
||||||
|
|||||||
@@ -93,10 +93,16 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
},
|
},
|
||||||
actionbar: {
|
actionbar: {
|
||||||
buttons: {
|
buttons: {
|
||||||
|
add: {
|
||||||
|
icon: "ion:add-circle-outline",
|
||||||
|
},
|
||||||
import: {
|
import: {
|
||||||
title: "从域名提供商导入域名",
|
title: "从域名提供商导入域名",
|
||||||
type: "primary",
|
type: "primary",
|
||||||
text: "从域名提供商导入",
|
text: "从域名提供商导入",
|
||||||
|
needPlus: true,
|
||||||
|
color: "gold",
|
||||||
|
icon: "mingcute:vip-1-line",
|
||||||
click: () => {
|
click: () => {
|
||||||
openDomainImportDialog({
|
openDomainImportDialog({
|
||||||
afterSubmit: () => {
|
afterSubmit: () => {
|
||||||
@@ -110,6 +116,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
syncExpirationDate: {
|
syncExpirationDate: {
|
||||||
title: "同步域名过期时间",
|
title: "同步域名过期时间",
|
||||||
type: "primary",
|
type: "primary",
|
||||||
|
icon: "ion:refresh-outline",
|
||||||
text: "同步域名过期时间",
|
text: "同步域名过期时间",
|
||||||
click: async () => {
|
click: async () => {
|
||||||
await api.SyncDomainsExpiration();
|
await api.SyncDomainsExpiration();
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ import ChangeNotification from "/@/views/certd/pipeline/components/change-notifi
|
|||||||
import { useSettingStore } from "/@/store/settings";
|
import { useSettingStore } from "/@/store/settings";
|
||||||
import { groupDictRef } from "./group/dicts";
|
import { groupDictRef } from "./group/dicts";
|
||||||
import { useCertPipelineCreator } from "./certd-form/use";
|
import { useCertPipelineCreator } from "./certd-form/use";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "PipelineManager",
|
name: "PipelineManager",
|
||||||
@@ -73,23 +74,29 @@ const selectedRowKeys = ref([]);
|
|||||||
const context: any = {
|
const context: any = {
|
||||||
selectedRowKeys,
|
selectedRowKeys,
|
||||||
};
|
};
|
||||||
|
const router = useRouter();
|
||||||
const { openAddCertdPipelineDialog } = useCertPipelineCreator();
|
const { openAddCertdPipelineDialog } = useCertPipelineCreator();
|
||||||
|
function onActionbarMoreItemClick(req: { key: string; item: any }) {
|
||||||
|
openCertApplyDialog({ key: req.key, title: req.item?.title });
|
||||||
|
}
|
||||||
|
|
||||||
const addMorePipelineBtns = computed(() => {
|
const addMorePipelineBtns = computed(() => {
|
||||||
return [
|
return [
|
||||||
{ key: "CertApplyGetFormAliyun", title: t("certd.pipelinePage.aliyunSubscriptionPipeline"), icon: "svg:icon-aliyun" },
|
{ key: "CertApplyGetFormAliyun", title: t("certd.pipelinePage.aliyunSubscriptionPipeline"), icon: "svg:icon-aliyun" },
|
||||||
{ key: "CertApplyLego", title: t("certd.pipelinePage.legoCertPipeline"), icon: "cbi:lego" },
|
{ key: "CertApplyLego", title: t("certd.pipelinePage.legoCertPipeline"), icon: "cbi:lego" },
|
||||||
{ key: "AddPipeline", title: t("certd.pipelinePage.customPipeline"), icon: "ion:add-circle-outline" },
|
{ key: "AddPipeline", title: t("certd.pipelinePage.customPipeline"), icon: "ion:add-circle-outline" },
|
||||||
|
{ key: "BatchAddPipeline", title: t("certd.pipelinePage.batchAddPipeline"), icon: "ion:duplicate" },
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
function onActionbarMoreItemClick(req: { key: string; item: any }) {
|
|
||||||
openCertApplyDialog({ key: req.key, title: req.item?.title });
|
|
||||||
}
|
|
||||||
function openCertApplyDialog(req: { key: string; title: string }) {
|
function openCertApplyDialog(req: { key: string; title: string }) {
|
||||||
if (req.key === "AddPipeline") {
|
if (req.key === "AddPipeline") {
|
||||||
crudExpose.openAdd({});
|
crudExpose.openAdd({});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (req.key === "BatchAddPipeline") {
|
||||||
|
router.push({ path: "/certd/pipeline/template" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const searchForm = crudExpose.getSearchValidatedFormData();
|
const searchForm = crudExpose.getSearchValidatedFormData();
|
||||||
const defaultGroupId = searchForm.groupId;
|
const defaultGroupId = searchForm.groupId;
|
||||||
|
|||||||
Reference in New Issue
Block a user