diff --git a/src/api/notice/template.ts b/src/api/notice/template.ts index 0af148a2..45c90010 100644 --- a/src/api/notice/template.ts +++ b/src/api/notice/template.ts @@ -16,10 +16,10 @@ export default { debug: (data: any, configId: string, templateId: string) => post(`/notifier/${configId}/${templateId}/_send`, data), getHistory: (data: any, id: string) => post(`/notify/history/template/${id}/_query`, data), // 钉钉/微信, 根据配置获取部门和用户 - getDept: (type: string, id: string) => get(`/notifier/${type}/corp/${id}/departments`), - getUser: (type: string, id: string) => get(`/notifier/${type}/corp/${id}/users`), + getDept: (type: string, id: string) => get(`/notifier/${type}/corp/${id}/departments`), + getUser: (type: string, id: string) => get(`/notifier/${type}/corp/${id}/users`), // 微信获取标签推送 - getTags: (id: string) => get(`/notifier/wechat/corp/${id}/tags`), + getTags: (id: string) => get(`/notifier/wechat/corp/${id}/tags`), // 语音/短信获取阿里云模板 getAliTemplate: (id: any) => get(`/notifier/sms/aliyun/${id}/templates`), // 短信获取签名 diff --git a/src/views/notice/Template/Detail/components/ToOrg.vue b/src/views/notice/Template/Detail/components/ToOrg.vue new file mode 100644 index 00000000..103c40bf --- /dev/null +++ b/src/views/notice/Template/Detail/components/ToOrg.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/views/notice/Template/Detail/components/ToTag.vue b/src/views/notice/Template/Detail/components/ToTag.vue new file mode 100644 index 00000000..28f469b7 --- /dev/null +++ b/src/views/notice/Template/Detail/components/ToTag.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/views/notice/Template/Detail/components/ToUser.vue b/src/views/notice/Template/Detail/components/ToUser.vue new file mode 100644 index 00000000..21bd9aa2 --- /dev/null +++ b/src/views/notice/Template/Detail/components/ToUser.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/views/notice/Template/Detail/index.vue b/src/views/notice/Template/Detail/index.vue index e2b470f7..abf7e47a 100644 --- a/src/views/notice/Template/Detail/index.vue +++ b/src/views/notice/Template/Detail/index.vue @@ -180,58 +180,33 @@ - - - {{ item.label }} - - + :type="formData.type" + :config-id="formData.configId" + /> - - - {{ item.label }} - - + :type="formData.type" + :config-id="formData.configId" + /> - - - {{ item.label }} - - + @@ -496,6 +471,9 @@ import Doc from './doc/index'; import MonacoEditor from '@/components/MonacoEditor/index.vue'; import Attachments from './components/Attachments.vue'; import VariableDefinitions from './components/VariableDefinitions.vue'; +import ToUser from './components/ToUser.vue'; +import ToOrg from './components/ToOrg.vue'; +import ToTag from './components/ToTag.vue'; const router = useRouter(); const route = useRoute();