From c9d9c78028b980695a094ee04d15b2a8ed9771df Mon Sep 17 00:00:00 2001 From: zjl Date: Thu, 10 Apr 2025 16:38:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/message/columns.ts | 6 +++--- src/views/dashboard/message/edit.vue | 26 ++++++++++++++++++++------ src/views/dashboard/message/index.vue | 2 +- src/views/tool/generator/columns.ts | 14 +++++++------- src/views/tool/generator/index.vue | 8 +++++--- 5 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/views/dashboard/message/columns.ts b/src/views/dashboard/message/columns.ts index 0f6912f..ba62b09 100644 --- a/src/views/dashboard/message/columns.ts +++ b/src/views/dashboard/message/columns.ts @@ -14,12 +14,12 @@ export const columns = [ { label: '消息标题', prop: 'title', - width: 250, + minWidth: 250, }, { label: '消息状态', prop: 'status', - width: 100, + minWidth: 100, render(record) { return h('span', record.row.status === 1 ? '已读' : '未读'); }, @@ -27,7 +27,7 @@ export const columns = [ { label: '创建人', prop: 'createUser', - width: 100, + minWidth: 100, }, { label: '创建时间', diff --git a/src/views/dashboard/message/edit.vue b/src/views/dashboard/message/edit.vue index 831726c..61fd68e 100644 --- a/src/views/dashboard/message/edit.vue +++ b/src/views/dashboard/message/edit.vue @@ -6,10 +6,12 @@ :close-on-click-modal="false" :before-close="dialogClose" > - - {{ formData.title }} - {{ - getTyepText(formData.type) + + {{ + formData.title + }} + {{ + getTypeText(formData.type) }} {{ formData.bizType == 1 ? '订单' : '其他' @@ -17,7 +19,11 @@ {{ formData.status == 1 ? '已读' : '未读' }} - {{ formData.content }} + + + + {{ formData.content }} +