add 动态消息

This commit is contained in:
赵霄
2023-09-25 17:51:15 +08:00
parent 8ba6de40aa
commit bf9004585c
3 changed files with 140 additions and 0 deletions
@@ -36,5 +36,12 @@ module.exports = {
problemOccurrenceTime: 'Problem occurrence time',
respondent: 'Respondent',
problemDescription: 'Problem description'
},
// 动态消息
dynamicMessage: {
dynamicHeading: 'Dynamic heading',
dynamicCataloging: 'Dynamic cataloging',
releaseStatus: 'Release status',
releaseTime: 'Release time'
}
}
@@ -36,5 +36,12 @@ module.exports = {
problemOccurrenceTime: '问题发生时间',
respondent: '回答人',
problemDescription: '问题描述'
},
// 动态消息
dynamicMessage: {
dynamicHeading: '动态标题',
dynamicCataloging: '动态分类',
releaseStatus: '发布状态',
releaseTime: '发布时间'
}
}
@@ -0,0 +1,126 @@
<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="12">
<a-form-item :label="$t('title')">
<j-input :placeholder="$t('pleaseEnter') + $t('title')" v-model="queryParam.projectName"></j-input>
</a-form-item>
</a-col>
<a-col :md="6" :sm="8">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchReset" icon="reload" ghost>{{ $t('reset') }}</a-button>
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px">
{{ $t('query') }}
</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<div class="table-operator">
<!--新增-->
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'split:sarFileSplitItems:add'">{{ $t('newlyAdded') }}</a-button>
</div>
<div>
<j-table
:columns="columns"
:dataSource="dataSource"
:can-drag="true"
rowKey="id"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="ipagination"
:scroll="{x: 1000}"
:loading="loading"
:operation-list="operationList"
@change="handleTableChange"
@operationClick="operationClick">
</j-table>
</div>
</a-card>
</template>
<script>
import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
import JTable from '../../../components/jero/JTable.vue'
export default {
name: 'DynamicMessageList',
components: { JTable },
mixins: [JeroListMixin],
data () {
return {
operationList: [
// 编辑
{
text: this.$t('edit'),
clickEvent: 'handleEdit',
has: ''
},
// 分享
{
text: this.$t('share'),
clickEvent: 'handleShare',
has: ''
},
// 删除
{
text: this.$t('delete'),
clickEvent: 'handleDelete',
has: ''
}
],
columns: [
// 动态标题
{
dataIndex: 'dynamicHeading',
title: this.$t('standardRegulationLibrary.dynamicMessage.dynamicHeading'),
width: 200
},
// 动态分类
{
dataIndex: 'dynamicClassification_dictText',
title: this.$t('standardRegulationLibrary.dynamicMessage.dynamicCataloging'),
width: 150
},
// 编辑人
{
dataIndex: 'writer_dictText',
title: this.$t('docTool.split.editor'),
width: 150
},
// 发布状态
{
dataIndex: 'releaseStatus_dictText',
title: this.$t('standardRegulationLibrary.dynamicMessage.releaseStatus'),
width: 150
},
// 发布时间
{
dataIndex: 'releaseTime',
title: this.$t('standardRegulationLibrary.dynamicMessage.releaseTime'),
width: 150
},
// 操作
{
title: this.$t('operation'),
fixed: 'right',
width: 150,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: '/laws/standard/lawsNewsFeed/page',
delete: '/laws/standard/lawsNewsFeed/delete'
}
}
}
}
</script>
<style scoped lang="less">
</style>