This commit is contained in:
wucongxing8150 2025-08-13 17:55:20 +08:00
parent c11a5bdbc5
commit 0abc0262d1
4 changed files with 31 additions and 4 deletions

View File

@ -27,7 +27,7 @@ const smartAxios = axios.create({
// 退出系统
function logout() {
useUserStore().logout();
location.href = '/';
location.href = '/admin/web';
}
// ================================= 请求拦截器 =================================

View File

@ -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', {

View File

@ -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', {

View File

@ -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', {