From ca4bdb4639eccc7b1b01fc6c44cc42659bc01047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=B1=E5=93=A5=E4=B8=B6?= <385454831@qq.com> Date: Sat, 25 Mar 2023 11:33:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84VUE3=E3=80=90=E7=AB=99?= =?UTF-8?q?=E5=86=85=E4=BF=A1=E6=B6=88=E6=81=AF=E8=AE=B0=E5=BD=95=E3=80=91?= =?UTF-8?q?=EF=BC=9A1=E3=80=81=E8=A1=A8=E6=A0=BC=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94=E9=AB=98=E5=BA=A6=EF=BC=88=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E5=AE=9E=E7=8E=B0=EF=BC=892=E3=80=81=E6=88=91?= =?UTF-8?q?=E7=9A=84=E7=AB=99=E5=86=85=E4=BF=A1=E6=AF=8F=E6=9D=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=86=E4=B8=BA=E6=9F=A5=E9=98=85=EF=BC=88=E6=9C=AA?= =?UTF-8?q?=E8=AF=BB=E7=8A=B6=E6=80=81=EF=BC=89=E5=92=8C=E8=AF=A6=E6=83=85?= =?UTF-8?q?=EF=BC=88=E5=B7=B2=E8=AF=BB=E7=8A=B6=E6=80=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/notify/message/detail.vue | 64 +++++ src/views/system/notify/message/index.vue | 258 +++++++++++++---- .../system/notify/message/message.data.ts | 101 ------- src/views/system/notify/my/detail.vue | 46 ++++ src/views/system/notify/my/index.vue | 260 +++++++++++++++--- src/views/system/notify/my/my.data.ts | 58 ---- 6 files changed, 540 insertions(+), 247 deletions(-) create mode 100644 src/views/system/notify/message/detail.vue delete mode 100644 src/views/system/notify/message/message.data.ts create mode 100644 src/views/system/notify/my/detail.vue delete mode 100644 src/views/system/notify/my/my.data.ts diff --git a/src/views/system/notify/message/detail.vue b/src/views/system/notify/message/detail.vue new file mode 100644 index 00000000..0b146113 --- /dev/null +++ b/src/views/system/notify/message/detail.vue @@ -0,0 +1,64 @@ + + diff --git a/src/views/system/notify/message/index.vue b/src/views/system/notify/message/index.vue index 93a8ed68..06f98c62 100644 --- a/src/views/system/notify/message/index.vue +++ b/src/views/system/notify/message/index.vue @@ -1,67 +1,217 @@ diff --git a/src/views/system/notify/message/message.data.ts b/src/views/system/notify/message/message.data.ts deleted file mode 100644 index 665311d2..00000000 --- a/src/views/system/notify/message/message.data.ts +++ /dev/null @@ -1,101 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', // 默认的主键ID - primaryTitle: '编号', // 默认显示的值 - primaryType: 'id', // 默认为seq,序号模式 - action: true, - actionWidth: '200', // 3个按钮默认200,如有删减对应增减即可 - columns: [ - { - title: '用户编号', - field: 'userId', - isSearch: true - }, - { - title: '用户类型', - field: 'userType', - dictType: DICT_TYPE.USER_TYPE, - dictClass: 'string', - isSearch: true, - table: { - width: 80 - } - }, - { - title: '模版编号', - field: 'templateId' - }, - { - title: '模板编码', - field: 'templateCode', - isSearch: true, - table: { - width: 80 - } - }, - { - title: '发送人名称', - field: 'templateNickname', - table: { - width: 120 - } - }, - { - title: '模版内容', - field: 'templateContent', - table: { - width: 200 - } - }, - { - title: '模版类型', - field: 'templateType', - dictType: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE, - dictClass: 'number', - isSearch: true, - table: { - width: 80 - } - }, - { - title: '模版参数', - field: 'templateParams', - isTable: false - }, - { - title: '是否已读', - field: 'readStatus', - dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, - dictClass: 'boolean', - table: { - width: 80 - } - }, - { - title: '阅读时间', - field: 'readTime', - formatter: 'formatDate', - table: { - width: 180 - } - }, - { - title: '创建时间', - field: 'createTime', - isForm: false, - formatter: 'formatDate', - search: { - show: true, - itemRender: { - name: 'XDataTimePicker' - } - }, - table: { - width: 180 - } - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/src/views/system/notify/my/detail.vue b/src/views/system/notify/my/detail.vue new file mode 100644 index 00000000..ea9ae961 --- /dev/null +++ b/src/views/system/notify/my/detail.vue @@ -0,0 +1,46 @@ + + diff --git a/src/views/system/notify/my/index.vue b/src/views/system/notify/my/index.vue index 9f3e9b10..d889e184 100644 --- a/src/views/system/notify/my/index.vue +++ b/src/views/system/notify/my/index.vue @@ -1,58 +1,250 @@ + diff --git a/src/views/system/notify/my/my.data.ts b/src/views/system/notify/my/my.data.ts deleted file mode 100644 index 103ed8ef..00000000 --- a/src/views/system/notify/my/my.data.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', - primaryTitle: ' ', - primaryType: 'checkbox', - action: true, - actionWidth: '200', // 3个按钮默认200,如有删减对应增减即可 - columns: [ - { - title: '发送人名称', - field: 'templateNickname', - table: { - width: 120 - } - }, - { - title: '发送时间', - field: 'createTime', - isForm: false, - formatter: 'formatDate', - search: { - show: true, - itemRender: { - name: 'XDataTimePicker' - } - }, - table: { - width: 180 - } - }, - { - title: '类型', - field: 'templateType', - dictType: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE, - dictClass: 'number', - table: { - width: 80 - } - }, - { - title: '内容', - field: 'templateContent' - }, - { - title: '是否已读', - field: 'readStatus', - dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, - dictClass: 'boolean', - table: { - width: 80 - }, - isSearch: true - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas)