mirror of
https://github.com/certd/certd.git
synced 2026-05-17 05:37:30 +08:00
chore: 插件编辑与运行测试beta
This commit is contained in:
@@ -37,7 +37,6 @@ const domain = computed(() => {
|
||||
});
|
||||
|
||||
function onUpdated(res: { uploadCert: any }) {
|
||||
debugger;
|
||||
emit("update:modelValue", res.uploadCert);
|
||||
const domains = getAllDomainsFromCrt(res.uploadCert.crt);
|
||||
emit("updated", { domains });
|
||||
@@ -45,7 +44,6 @@ function onUpdated(res: { uploadCert: any }) {
|
||||
|
||||
const pipeline: any = inject("pipeline");
|
||||
function onUploadClick() {
|
||||
debugger;
|
||||
openUpdateCertDialog({
|
||||
onSubmit: onUpdated,
|
||||
});
|
||||
|
||||
@@ -30,20 +30,20 @@ import { Modal, notification } from "ant-design-vue";
|
||||
import * as api from "./api";
|
||||
|
||||
defineOptions({
|
||||
name: "PipelineManager"
|
||||
name: "PipelineManager",
|
||||
});
|
||||
|
||||
const certdFormRef = ref();
|
||||
const groupDictRef = dict({
|
||||
url: "/pi/pipeline/group/all",
|
||||
value: "id",
|
||||
label: "name"
|
||||
label: "name",
|
||||
});
|
||||
const selectedRowKeys = ref([]);
|
||||
const context: any = {
|
||||
certdFormRef,
|
||||
groupDictRef,
|
||||
selectedRowKeys
|
||||
selectedRowKeys,
|
||||
};
|
||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context });
|
||||
|
||||
@@ -70,7 +70,7 @@ function batchDelete() {
|
||||
notification.success({ message: "删除成功" });
|
||||
await crudExpose.doRefresh();
|
||||
selectedRowKeys.value = [];
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user