+
+
+
+
diff --git a/deliver-front/vue/src/store/index.ts b/deliver-front/vue/src/store/index.ts
index eca97856db1d087a815fd9c296c8ac16c8d9448e..0ae09efc6d39d2d34ee45a90589a8a9a44cbac72 100644
--- a/deliver-front/vue/src/store/index.ts
+++ b/deliver-front/vue/src/store/index.ts
@@ -8,6 +8,9 @@ export const useStore = defineStore('store', {
},
getters: {},
actions: {
+ getCollapse() {
+ return this.collapse
+ },
changeCollapse() {
this.collapse = !this.collapse
}
diff --git a/deliver-front/vue/src/utils/date.ts b/deliver-front/vue/src/utils/date.ts
index 4032e7d3b34df99a0174da2d34a4c90761847ee4..0e6a01eaf845ecca8577f6f56d2fe945ab7ab34e 100644
--- a/deliver-front/vue/src/utils/date.ts
+++ b/deliver-front/vue/src/utils/date.ts
@@ -1,3 +1,5 @@
+import type { messageTemplate, updateTemp } from '@/views/Message/type'
+
export const getDate = (d): string => {
const date = new Date(d)
const year = date.getFullYear()
@@ -16,3 +18,39 @@ export const getPushWays = (channelType: string | undefined, messageType: string
}
return JSON.stringify(obj)
}
+
+export const getPushRange = (s: string): number => {
+ const pusharr = ['不限', '企业内部', '企业外部']
+ return pusharr.indexOf(s)
+}
+
+export const getChannelType = (s: string): number => {
+ const ChannelType = ['电话', '短信', '邮件', '钉钉', '企业微信', '飞书']
+ return ChannelType.indexOf(s) + 1
+}
+
+export const getUsersType = (s: string): number => {
+ const usersarr = ['企业账号', '电话', '邮箱', '平台 UserId']
+ return usersarr.indexOf(s)
+}
+
+export const getAllMessage = (mod: updateTemp, record: messageTemplate): void => {
+ mod.templateId = record.templateId
+ mod.templateName = record.templateName
+ mod.pushRange = getPushRange(record.pushRange as string)
+ mod.usersType = getUsersType(record.usersType as string)
+ mod.appId = record.appName
+ mod.templateStatus = record.templateStatus as number
+ mod.channelType = record.channelType
+ mod.messageType = record.messageType
+}
+
+// templateId: undefined,
+// templateName: '',
+// pushRange: undefined,
+// usersType: undefined,
+// pushWays: '',
+// templateStatus: 0,
+// appId: undefined,
+// channelType: undefined,
+// messageType: ''
diff --git a/deliver-front/vue/src/views/Channel/components/addTemplate.vue b/deliver-front/vue/src/views/Channel/components/addTemplate.vue
new file mode 100644
index 0000000000000000000000000000000000000000..6e83255f4f694dc5aab6b4fe4dec44db4484d64f
--- /dev/null
+++ b/deliver-front/vue/src/views/Channel/components/addTemplate.vue
@@ -0,0 +1,304 @@
+
+
+
+