修改禅道已知bug
This commit is contained in:
@@ -15,7 +15,10 @@
|
||||
<a-list-item :key="index" v-for="(record, index) in announcement1" v-if="index <= 4">
|
||||
<div style="margin-left: 5%;width: 80%;">
|
||||
<p style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;color:#00B3BE">
|
||||
<a :title="record.msgContent" @click="showAnnouncement(record)">{{ record.msgContent }}</a>
|
||||
<a :title="language == 'zh-cn'?record.msgContentCn:record.msgContent"
|
||||
@click="showAnnouncement(record)">
|
||||
{{ language == 'zh-cn'?record.msgContentCn:record.msgContent }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</a-list-item>
|
||||
@@ -50,6 +53,7 @@
|
||||
data() {
|
||||
return {
|
||||
loadding: false,
|
||||
language: '',
|
||||
url: {
|
||||
listCementByUser: '/sys/sysAnnouncementSend/getMessageUnreadList',
|
||||
editCementSend: '/sys/sysAnnouncementSend/editByAnntIdAndUserId',
|
||||
@@ -91,6 +95,7 @@
|
||||
},
|
||||
created() {
|
||||
this.loadData()
|
||||
this.language = localStorage.getItem('language') || ''
|
||||
// this.initWebSocket()
|
||||
if (store.getters.userInfo) {
|
||||
this.$socketPublic.dispatch('webSocketInit')//初始化ws
|
||||
@@ -139,7 +144,11 @@
|
||||
showAnnouncement(record) {
|
||||
getAction(this.url.readAllMsg, { ids: record.id }).then((res) => {
|
||||
})
|
||||
localStorage.setItem('msgContent', record.msgContent)
|
||||
if (this.language == 'zh-cn') {
|
||||
localStorage.setItem('msgContent', record.msgContentCn)
|
||||
} else {
|
||||
localStorage.setItem('msgContent', record.msgContent)
|
||||
}
|
||||
this.$router.push({
|
||||
path: '/isps/userAnnouncement',
|
||||
query: {
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<div class="myNews-box-content-box" v-for="(item,index) in dataSource" :key="index" @click="magClick(item)">
|
||||
<img src="../../../assets/wdxx.png" alt="">
|
||||
<div class="content-box">
|
||||
<div class="top" :title="item.msgContent">
|
||||
{{item.msgContent}}
|
||||
<div class="top" :title="language == 'zh-cn'?item.msgContentCn:item.msgContent">
|
||||
{{language == 'zh-cn'?item.msgContentCn:item.msgContent}}
|
||||
</div>
|
||||
<div class="botton">
|
||||
{{item.sendTime}}
|
||||
@@ -44,11 +44,13 @@
|
||||
loading: false,
|
||||
pageNo: 1,
|
||||
pageSize: 4,
|
||||
dataSource: []
|
||||
dataSource: [],
|
||||
language: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList()
|
||||
this.language = localStorage.getItem('language') || ''
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
@@ -69,7 +71,11 @@
|
||||
magClick(row) {
|
||||
getAction(this.url.readAllMsg, { ids: row.id }).then((res) => {
|
||||
})
|
||||
localStorage.setItem('msgContent', row.msgContent)
|
||||
if (this.language == 'zh-cn'){
|
||||
localStorage.setItem('msgContent', row.msgContentCn)
|
||||
}else{
|
||||
localStorage.setItem('msgContent', row.msgContent)
|
||||
}
|
||||
this.$router.push({
|
||||
path: '/isps/userAnnouncement',
|
||||
query: {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user