This commit is contained in:
xiaojunnuo
2024-09-20 15:15:24 +08:00
parent 7549b9443f
commit 9c773aaa05
19 changed files with 425 additions and 5 deletions
@@ -0,0 +1,8 @@
<template>
<div class="cd-page-account">
<iframe >
</iframe>
</div>
</template>
@@ -2,10 +2,11 @@ import { compute, CreateCrudOptionsRet, dict } from "@fast-crud/fast-crud";
import { PluginGroup } from "@certd/pipeline";
import { useReference } from "/@/use/use-refrence";
import _ from "lodash-es";
import { useUserStore } from "/@/store/modules/user";
export default function (certPluginGroup: PluginGroup, formWrapperRef: any): CreateCrudOptionsRet {
const inputs: any = {};
const userStore = useUserStore();
for (const plugin of certPluginGroup.plugins) {
for (const inputKey in plugin.input) {
if (inputs[inputKey]) {
@@ -100,9 +101,12 @@ export default function (certPluginGroup: PluginGroup, formWrapperRef: any): Cre
order: 101,
helper: {
render: () => {
if (userStore.isPlus) {
return "";
}
return (
<div>
<router-link to={{ path: "/certd/settings/email" }}></router-link>
<router-link to={{ path: "/certd/settings/email" }}></router-link>()
</div>
);
}
@@ -1,7 +1,14 @@
<template>
<a-drawer v-model:open="notificationDrawerVisible" placement="right" :closable="true" width="600px" class="pi-notification-form" @after-open-change="notificationDrawerOnAfterVisibleChange">
<a-drawer
v-model:open="notificationDrawerVisible"
placement="right"
:closable="true"
width="600px"
class="pi-notification-form"
@after-open-change="notificationDrawerOnAfterVisibleChange"
>
<template #title>
编辑触发器
编辑通知
<a-button v-if="mode === 'edit'" @click="notificationDelete()">
<template #icon><DeleteOutlined /></template>
</a-button>
@@ -14,13 +14,14 @@
}"
/>
<a-alert class="m-1" type="info">
<a-alert v-if="!userStore.isPlus" class="m-1" type="info">
<template #message> 还没有配置邮件服务器<router-link :to="{ path: '/certd/settings/email' }">现在就去</router-link> </template>
</a-alert>
</div>
</template>
<script lang="ts" setup>
import { Ref, ref, watch } from "vue";
import { useUserStore } from "/@/store/modules/user";
const props = defineProps({
options: {
@@ -29,6 +30,8 @@ const props = defineProps({
}
});
const userStore = useUserStore();
const optionsFormState: Ref<any> = ref({});
watch(
@@ -19,6 +19,10 @@
<a-form-item label="管理其他用户流水线" name="managerOtherUserPipeline">
<a-switch v-model:checked="formState.managerOtherUserPipeline" />
</a-form-item>
<!-- <a-form-item label="启动后触发流水线" name="triggerOnStartup">-->
<!-- <a-switch v-model:checked="formState.triggerOnStartup" />-->
<!-- <div class="helper">启动后自动触发一次所有已启用的流水线</div>-->
<!-- </a-form-item>-->
<a-form-item :wrapper-col="{ offset: 8, span: 16 }">
<a-button type="primary" html-type="submit">保存</a-button>
</a-form-item>