diff --git a/src/api/system/notify/template.ts b/src/api/system/notify/template.ts
index ebf8a9e8..f5954156 100644
--- a/src/api/system/notify/template.ts
+++ b/src/api/system/notify/template.ts
@@ -34,3 +34,30 @@ export function listSimplePosts() {
export function exportNotifyTemplateExcel(params) {
return defHttp.download({ url: '/system/notify-template/export-excel', params }, '导出站内信模板.xls')
}
+
+export type SendNotifyParam = {
+ userId: number
+ templateCode: string
+ templateParams: {
+ [key: string]: string
+ }
+}
+
+export type NotifyTemplate = {
+ name: string
+ code: string
+ type: number
+ nickname: string
+ content: string
+ status: number
+ remark?: any
+ id: number
+ params: string[]
+ createTime: number
+ key: string
+}
+
+// 发送
+export function sendNotify(data: SendNotifyParam) {
+ return defHttp.post({ url: '/system/notify-template/send-notify', data })
+}
diff --git a/src/locales/lang/zh-CN/action.ts b/src/locales/lang/zh-CN/action.ts
index eaa422ef..270cf12a 100644
--- a/src/locales/lang/zh-CN/action.ts
+++ b/src/locales/lang/zh-CN/action.ts
@@ -9,5 +9,6 @@ export default {
export: '导出',
import: '导入',
sync: '同步',
- cancel: '取消'
+ cancel: '取消',
+ send: '发送'
}
diff --git a/src/views/infra/codegen/components/ImportTableModal.vue b/src/views/infra/codegen/components/ImportTableModal.vue
index 04520715..92ffcd2f 100644
--- a/src/views/infra/codegen/components/ImportTableModal.vue
+++ b/src/views/infra/codegen/components/ImportTableModal.vue
@@ -24,7 +24,8 @@ const [registerTable, { getSelectRowKeys, getForm }] = useTable({
useSearchForm: true,
pagination: false,
showTableSetting: false,
- showIndexColumn: false
+ showIndexColumn: false,
+ immediate: false
})
const [registerModal, { setModalProps, closeModal }] = useModalInner(async () => {
diff --git a/src/views/system/notify/template/SendNotifyModal.vue b/src/views/system/notify/template/SendNotifyModal.vue
new file mode 100644
index 00000000..fc86a15b
--- /dev/null
+++ b/src/views/system/notify/template/SendNotifyModal.vue
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/notify/template/index.vue b/src/views/system/notify/template/index.vue
index c4b76e19..d9a24dad 100644
--- a/src/views/system/notify/template/index.vue
+++ b/src/views/system/notify/template/index.vue
@@ -10,6 +10,12 @@
+