pull/265/head
xiaojunnuo 2024-11-25 23:24:12 +08:00
parent 81a8123725
commit c6fff4950d
4 changed files with 27 additions and 16 deletions

View File

@ -17,4 +17,5 @@ ALIYUN_CLIENT_READ_TIMEOUT=10000 #读取数据超时,单位毫秒
* 申请证书 `AliyunDNSFullAccess` * 申请证书 `AliyunDNSFullAccess`
* 上传证书到阿里云: `AliyunYundunCertFullAccess` * 上传证书到阿里云: `AliyunYundunCertFullAccess`
* 部署证书到OSS: `AliyunYundunCertFullAccess`、`AliyunOSSFullAccess` * 部署证书到OSS: `AliyunYundunCertFullAccess`、`AliyunOSSFullAccess`
* 部署证书到CDN: `AliyunYundunCertFullAccess`、`AliyunCDNFullAccess` * 部署证书到CDN: `AliyunYundunCertFullAccess`、`AliyunCDNFullAccess`
* 部署证书到DCDN `AliyunYundunCertFullAccess`、`AliyunDCDNFullAccess`

View File

@ -55,7 +55,7 @@ export const certdResources = [
path: "/certd/notification", path: "/certd/notification",
component: "/certd/notification/index.vue", component: "/certd/notification/index.vue",
meta: { meta: {
icon: "ion:disc-outline", icon: "ion:megaphone-outline",
auth: true, auth: true,
cache: true cache: true
} }

View File

@ -62,20 +62,6 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
show: false show: false
} }
}, },
name: {
title: "通知名称",
search: {
show: true
},
type: ["text"],
form: {
rules: [{ required: true, message: "请填写名称" }],
helper: "随便填,当多个相同类型的通知时,便于区分"
},
column: {
width: 200
}
},
type: { type: {
title: "通知类型", title: "通知类型",
type: "dict-select", type: "dict-select",
@ -110,12 +96,18 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
if (value == null) { if (value == null) {
return; return;
} }
const lastTitle = currentDefine.value?.title;
const define = await api.GetProviderDefine(value); const define = await api.GetProviderDefine(value);
currentDefine.value = define; currentDefine.value = define;
console.log("define", define); console.log("define", define);
if (!immediate) { if (!immediate) {
form.body = {}; form.body = {};
} }
if (!form.name || form.name === lastTitle) {
form.name = define.title;
}
buildDefineFields(define, form, mode); buildDefineFields(define, form, mode);
} }
}, },
@ -128,9 +120,26 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
}) })
} }
} as ColumnCompositionProps, } as ColumnCompositionProps,
name: {
title: "通知名称",
search: {
show: true
},
type: ["text"],
form: {
rules: [{ required: true, message: "请填写名称" }],
helper: "随便填,当多个相同类型的通知时,便于区分"
},
column: {
width: 200
}
},
test: { test: {
title: "测试", title: "测试",
form: { form: {
show: compute(({ form }) => {
return !!form.type;
}),
component: { component: {
name: "api-test", name: "api-test",
type: "notification", type: "notification",

View File

@ -11,6 +11,7 @@ export class QywxNotification extends BaseNotification {
component: { component: {
placeholder: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxx', placeholder: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxx',
}, },
helper: '[企微群聊机器人配置说明](https://developer.work.weixin.qq.com/document/path/91770)',
required: true, required: true,
}) })
webhook = ''; webhook = '';