修改禅道已知bug

This commit is contained in:
sunFlower
2022-10-28 11:54:29 +08:00
parent 19b4df8634
commit 91a7cae62a
3 changed files with 47 additions and 20 deletions
@@ -71,8 +71,9 @@
@change="handleTableChange">
<span slot="msgTitile" slot-scope="text,scope">
<!-- @click="msgContentClick(scope)"-->
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}" :title="text">
{{text}}
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}"
:title="language == 'zh-cn' ? scope.msgContentCn : scope.msgContent">
{{language == 'zh-cn' ? scope.msgContentCn : scope.msgContent}}
</a>
</span>
<span slot="msgCategory" slot-scope="text,scope">
@@ -82,7 +83,7 @@
</span>
</span>
<p slot="expandedRowRender" slot-scope="record" style="margin: 0;padding-left: 58px;">
<span v-html="record.msgContentInfo">
<span v-html="language == 'zh-cn' ? record.msgContentInfoCn : record.msgContentInfo">
</span>
</p>
</a-table>
@@ -163,10 +164,10 @@
dataIndex: 'sendTime'
},
{
title:'',
title: '',
align: 'left',
ellipsis: true,
width: 50,
width: 50
}
],
url: {
@@ -177,7 +178,8 @@
},
loading: false,
openPath: '',
formData: ''
formData: '',
language: ''
}
},
watch: {
@@ -186,16 +188,25 @@
this.loadData()
}
},
mounted() {
this.language = localStorage.getItem('language') || ''
},
methods: {
expandIcon(props) {
if (props.expanded) {
return <a-icon type='down' onClick={e => {
props.onExpand(props.record, e);
}}/>;
return <a-icon type = 'down'onClick = { e=>
{
props.onExpand(props.record, e)
}
}
/>;
} else {
return <a-icon type='right' onClick={e => {
props.onExpand(props.record, e);
}}/>;
return <a-icon type = 'right' onClick = { e =>
{
props.onExpand(props.record, e)
}
}
/>;
}
},
getQueryParams() {
@@ -359,8 +370,9 @@
height: 38px;
/*margin-top: 2px;*/
}
::v-deep .ant-table .ant-table-row-indent + .ant-table-row-expand-icon{
margin-right: 0;
::v-deep .ant-table .ant-table-row-indent + .ant-table-row-expand-icon {
margin-right: 0;
}
</style>
<style>