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 }} +