去掉文档动态

This commit is contained in:
zer0Black
2023-09-29 16:22:03 +08:00
parent a8f138d476
commit 9929908564
5 changed files with 2 additions and 135 deletions
-5
View File
@@ -465,11 +465,6 @@ module.exports = {
},
// 消息中心
message: {
// 文档动态
docDynamics: {
messageContent: 'Message Content',
notificationTime: 'Notification Time'
},
// 我的消息
my: {
messageContent: 'Message Content',
-5
View File
@@ -466,11 +466,6 @@ module.exports = {
},
// 消息中心
message: {
// 文档动态
docDynamics: {
messageContent: '消息内容',
notificationTime: '通知时间'
},
// 我的消息
my: {
messageContent: '消息内容',
@@ -1,123 +0,0 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :md="6" :sm="8" style="line-height: 48px">
<a-form-item :label="$t('message.docDynamics.messageContent')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-input :placeholder="$t('pleaseEnter')+$t('message.docDynamics.messageContent')"
v-model="queryParam.msgContent">
</j-input>
</a-form-item>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24">
<a-button class="box-button" @click="searchReset">{{$t('reset')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<div class="table-operator">
<div @click="msgContentClick" class="operator-text">
<a-icon type="delete"/>
{{$t('batchDelete')}}
</div>
</div>
<j-table
:can-drag="true"
ref="table"
rowKey="id"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns"
:dataSource="dataSource"
:scroll="{x: '100%'}"
:pagination="ipagination"
:loading="loading"
@change="handleTableChange">
<template v-slot:msgContent="{text, scope}">
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}" :title="text" @click="msgContentClick(scope)">
{{text}}
</a>
</template>
</j-table>
</a-card>
</template>
<script>
import JTable from '@/components/jero/JTable'
import { getAction } from '@/api/manage'
import { JeroListMixin } from '@/mixins/JeroListMixin'
export default {
name: 'DocumentDynamics',
components: { JTable },
mixins: [JeroListMixin],
data () {
return {
queryParam: {},
selectedRowKeys: [],
columns: [
{
title: this.$t('message.docDynamics.messageContent'),
align: 'left',
dataIndex: 'msgContent',
ellipsis: true,
width: 700,
scopedSlots: { customRender: 'msgContent' }
},
{
title: this.$t('message.docDynamics.notificationTime'),
align: 'left',
width: 200,
dataIndex: 'createTime'
}
],
url: {
list: '/home/homeDocumentDynamicEO/page',
deleteUrl: '/home/homeDocumentDynamicEO/deleteBatch'
},
loading: false
}
},
methods: {
onSelectChange (value) {
this.selectedRowKeys = value
},
msgContentClick (row) {
row.isCustomContentList = true
this.$router.push({
path: '/modules/message/detail',
query: row
})
},
handleDel () {
if (this.selectedRowKeys.length > 0) {
this.$confirm({
content: this.$t('confirmBatchDeletion'),
onOk: () => {
getAction(this.url.deleteUrl, { ids: this.selectedRowKeys.join(',') }).then((res) => {
if (res.success) {
this.selectedRowKeys = []
this.$message.success(this.$t('operationSuccessful'))
this.loadData()
} else {
this.$message.warning(this.$t('operationFailed'))
}
})
}
})
} else {
this.$message.warning(this.$t('pleaseSelectData'))
}
}
}
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
</style>
+1 -1
View File
@@ -6,7 +6,7 @@
{{this.$route.query.msgContent}}
</span>
<span class="box-header-right-text">
{{$t('message.docDynamics.notificationTime')}}: {{this.$route.query.sendTime || this.$route.query.createTime}}
{{$t('message.my.notificationTime')}}: {{this.$route.query.sendTime || this.$route.query.createTime}}
</span>
</div>
<div class="box-content" v-html="this.$route.query.msgContentInfo">