From 0abc0262d14ea3c747e37ea7875565f0225147ec Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 13 Aug 2025 17:55:20 +0800 Subject: [PATCH] 12234444 --- src/lib/axios.js | 2 +- .../user-comment-clinical-article-list.vue | 11 ++++++++++- .../user-comment-clinical-video-list.vue | 11 ++++++++++- .../user-comment-exchange-list.vue | 11 ++++++++++- 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/lib/axios.js b/src/lib/axios.js index 84da1c4..531ae55 100644 --- a/src/lib/axios.js +++ b/src/lib/axios.js @@ -27,7 +27,7 @@ const smartAxios = axios.create({ // 退出系统 function logout() { useUserStore().logout(); - location.href = '/'; + location.href = '/admin/web'; } // ================================= 请求拦截器 ================================= diff --git a/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue b/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue index 313f051..a3113c5 100644 --- a/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue +++ b/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue @@ -65,7 +65,7 @@ :data-source="tableData" :loading="tableLoading" :pagination="false" - :scroll="{ x: 1500 }" + :scroll="{ x: 1700 }" size="small" bordered :row-selection="{ selectedRowKeys: selectedRowKeyList, onChange: onSelectChange }" @@ -134,6 +134,15 @@ const columns = ref([ { title: '用户名称', dataIndex: 'userName', ellipsis: true, width: 120 }, + { title: '医院名称', dataIndex: 'hospitalName', width: 200, customRender: ({ text }) => text || '-', + customCell: () => ({ + style: { + whiteSpace: 'pre-wrap', + wordBreak: 'break-word', + maxWidth: '200px' + } + }) + }, { title: '类型', dataIndex: 'commentType', ellipsis: true, width: 80 }, { title: '文章标题', dataIndex: 'articleTitle', ellipsis: false, width: 200, customRender: ({ text }) => h('div', { style: { 'white-space': 'pre-wrap', 'word-break': 'break-all', 'line-height': '1.4' } }, text || '-') }, { title: '评论状态', dataIndex: 'status', ellipsis: true, width: 80, customRender: ({ text }) => h('a-tag', { diff --git a/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue b/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue index b3d2665..abfcbd8 100644 --- a/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue +++ b/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue @@ -65,7 +65,7 @@ :data-source="tableData" :loading="tableLoading" :pagination="false" - :scroll="{ x: 1500 }" + :scroll="{ x: 1700 }" size="small" bordered :row-selection="{ selectedRowKeys: selectedRowKeyList, onChange: onSelectChange }" @@ -134,6 +134,15 @@ const columns = ref([ { title: '用户名称', dataIndex: 'userName', ellipsis: true, width: 120 }, + { title: '医院名称', dataIndex: 'hospitalName', width: 200, customRender: ({ text }) => text || '-', + customCell: () => ({ + style: { + whiteSpace: 'pre-wrap', + wordBreak: 'break-word', + maxWidth: '200px' + } + }) + }, { title: '类型', dataIndex: 'commentType', ellipsis: true, width: 80 }, { title: '视频标题', dataIndex: 'videoTitle', ellipsis: false, width: 200, customRender: ({ text }) => h('div', { style: { 'white-space': 'pre-wrap', 'word-break': 'break-all', 'line-height': '1.4' } }, text || '-') }, { title: '评论状态', dataIndex: 'status', ellipsis: true, width: 80, customRender: ({ text }) => h('a-tag', { diff --git a/src/views/business/user-comment-exchange/user-comment-exchange-list.vue b/src/views/business/user-comment-exchange/user-comment-exchange-list.vue index b014ee7..1f2b23b 100644 --- a/src/views/business/user-comment-exchange/user-comment-exchange-list.vue +++ b/src/views/business/user-comment-exchange/user-comment-exchange-list.vue @@ -65,7 +65,7 @@ :data-source="tableData" :loading="tableLoading" :pagination="false" - :scroll="{ x: 1500 }" + :scroll="{ x: 1700 }" size="small" bordered :row-selection="{ selectedRowKeys: selectedRowKeyList, onChange: onSelectChange }" @@ -134,6 +134,15 @@ const columns = ref([ { title: '用户名称', dataIndex: 'userName', ellipsis: true, width: 120 }, + { title: '医院名称', dataIndex: 'hospitalName', width: 200, customRender: ({ text }) => text || '-', + customCell: () => ({ + style: { + whiteSpace: 'pre-wrap', + wordBreak: 'break-word', + maxWidth: '200px' + } + }) + }, { title: '类型', dataIndex: 'commentType', ellipsis: true, width: 80 }, { title: '交流标题', dataIndex: 'exchangeTitle', ellipsis: false, width: 200, customRender: ({ text }) => h('div', { style: { 'white-space': 'pre-wrap', 'word-break': 'break-all', 'line-height': '1.4' } }, text || '-') }, { title: '评论状态', dataIndex: 'status', ellipsis: true, width: 80, customRender: ({ text }) => h('a-tag', {