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`
* 上传证书到阿里云: `AliyunYundunCertFullAccess`
* 部署证书到OSS: `AliyunYundunCertFullAccess`、`AliyunOSSFullAccess`
* 部署证书到CDN: `AliyunYundunCertFullAccess`、`AliyunCDNFullAccess`
* 部署证书到CDN: `AliyunYundunCertFullAccess`、`AliyunCDNFullAccess`
* 部署证书到DCDN `AliyunYundunCertFullAccess`、`AliyunDCDNFullAccess`

View File

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

View File

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

View File

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