feat: add qyweixin message

This commit is contained in:
engigu
2024-01-14 20:39:55 +08:00
parent c6cd067451
commit 6de589207f
8 changed files with 183 additions and 1 deletions
+16 -1
View File
@@ -29,7 +29,6 @@ const CONSTANT = {
taskInsInputs: [
{ value: '', col: 'to_account', desc: "目的邮箱账号(发给谁)" },
// { value: '', col: 'title', desc: "邮箱标题" },
],
},
{
@@ -50,6 +49,22 @@ const CONSTANT = {
taskInsInputs: [
],
},
{
type: 'QyWeiXin',
label: '企业微信',
inputs: [
{ subLabel: 'token', value: '', col: 'access_token', desc: "企业微信webhook中的token" },
{ subLabel: '渠道名', value: '', col: 'name', desc: "想要设置的渠道名字" },
],
tips: {
},
taskInsRadios: [
{ subLabel: 'text', content: 'text' },
{ subLabel: 'markdown', content: 'markdown' },
],
taskInsInputs: [
],
},
{
type: 'Custom',
label: '自定义',
@@ -205,6 +205,7 @@ export default defineComponent({
const getFinalData = () => {
let postData = {
id: uuidv4(),
enable: 1,
task_id: state.currTaskInput.taskId,
way_id: state.currWayTmp.id,
way_type: state.currWayTmp.type,