91 lines
2.9 KiB
Vue
91 lines
2.9 KiB
Vue
<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">
|
|
<!-- 消息内容 -->
|
|
<a-form-item :label="$t('standardRegulationLibrary.documentDynamics.messageContent')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.documentDynamics.messageContent')"
|
|
v-model="queryParam.content"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
|
<a-button class="box-button" type="primary" icon="search" @click="searchQuery" v-has="'standardRegulationLibrary:documentDynamics:search'">{{ $t('query') }}</a-button>
|
|
<a-button class="box-button" icon="reload" style="margin-left: 8px" @click="searchReset">{{ $t('reset') }}</a-button>
|
|
</div>
|
|
</a-row>
|
|
</a-form>
|
|
</div>
|
|
|
|
<!-- 操作区域 -->
|
|
<div class="table-operator">
|
|
<!-- 批量删除 -->
|
|
<a-button icon="delete" type="primary" ghost @click="batchDel" v-has="'standardRegulationLibrary:documentDynamics:batchDelete'">
|
|
{{ $t('batchDelete') }}
|
|
</a-button>
|
|
</div>
|
|
|
|
<div>
|
|
<j-table
|
|
:can-drag="true"
|
|
:scroll="{x: '100%', y: yScrollHeight}"
|
|
ref="table"
|
|
rowKey="id"
|
|
:columns="columns"
|
|
:dataSource="dataSource"
|
|
:pagination="ipagination"
|
|
:loading="loading"
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
@change="handleTableChange">
|
|
|
|
</j-table>
|
|
</div>
|
|
</a-card>
|
|
</template>
|
|
|
|
<script>
|
|
import JTable from '@/components/jero/JTable'
|
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|
|
|
export default {
|
|
name: 'DocumentDynamicsList',
|
|
components: { JTable },
|
|
mixins: [JeroListMixin],
|
|
data () {
|
|
return {
|
|
labelCol: {
|
|
span: 4
|
|
},
|
|
wrapperCol: {
|
|
span: 14
|
|
},
|
|
columns: [
|
|
{ // 消息内容
|
|
title: this.$t('standardRegulationLibrary.documentDynamics.messageContent'),
|
|
align: 'center',
|
|
width: 300,
|
|
dataIndex: 'content',
|
|
scopedSlots: { customRender: 'text' }
|
|
},
|
|
{ // 通知时间
|
|
title: this.$t('standardRegulationLibrary.documentDynamics.notificationTime'),
|
|
align: 'center',
|
|
width: 150,
|
|
dataIndex: 'createTime',
|
|
scopedSlots: { customRender: 'text' }
|
|
}
|
|
],
|
|
url: {
|
|
list: '/laws/standard/updateRecord/list',
|
|
deleteBatch: '/laws/standard/updateRecord/deleteBatch'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
@import '~@assets/less/common.less';
|
|
</style>
|