525 lines
19 KiB
Vue
525 lines
19 KiB
Vue
<template>
|
|
<div>
|
|
<page-header-title :is-level-one="false" :level-two-title="pageTitle"></page-header-title>
|
|
<a-card :bordered="false">
|
|
<!-- 查询区域-->
|
|
<div class="table-page-search-wrapper">
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
<a-row>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="会议名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-input placeholder="请输入会议名称" v-model="queryParam.meetingName"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="10" :lg="12" :md="12" :sm="24">
|
|
<a-form-item label="会议时间">
|
|
<j-date
|
|
placeholder="请选择开始日期"
|
|
class="query-group-cust"
|
|
v-model="queryParam.meetingStartTime"
|
|
:disabled-date="disabledStartDate">
|
|
</j-date>
|
|
<span class="query-group-split-cust"></span>
|
|
<j-date
|
|
placeholder="请选择结束日期"
|
|
class="query-group-cust"
|
|
v-model="queryParam.meetingEndTime"
|
|
:disabled-date="disabledEndDate">
|
|
</j-date>
|
|
</a-form-item>
|
|
</a-col>
|
|
<!-- 标协会议类型 -->
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="$route.query.meetingType === '2' ">
|
|
<a-form-item label="会议类型">
|
|
<j-dict-select-tag style="width: 100%"
|
|
dict-code="standard_meeting_type"
|
|
v-model="queryParam.tbMeetingType"
|
|
placeholder="请选择会议类型"></j-dict-select-tag>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="年份" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<j-year-date style="width:100%" placeholder="请选择年份"
|
|
v-model="queryParam.particularYear"></j-year-date>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="10" :lg="12" :md="12" :sm="24">
|
|
<a-form-item label="创建时间">
|
|
<j-date
|
|
placeholder="请选择开始日期"
|
|
class="query-group-cust"
|
|
v-model="queryParam.createTime_begin"
|
|
:disabled-date="disabledStartCreateDate">
|
|
</j-date>
|
|
<span class="query-group-split-cust"></span>
|
|
<j-date
|
|
placeholder="请选择结束日期"
|
|
class="query-group-cust"
|
|
v-model="queryParam.createTime_end"
|
|
:disabled-date="disabledEndCreateDate">
|
|
</j-date>
|
|
</a-form-item>
|
|
</a-col>
|
|
<!-- 标协会议不显示-->
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="$route.query.meetingType === '5' ">
|
|
<a-form-item label="已提醒" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<j-dict-select-tag style="width: 100%"
|
|
dict-code="yn"
|
|
v-model="queryParam.remind"
|
|
placeholder="请选择提醒类型"></j-dict-select-tag>
|
|
</a-form-item>
|
|
</a-col>
|
|
<!--标协会议显示发布 -->
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="$route.query.meetingType === '2' ">
|
|
<a-form-item label="发布状态">
|
|
<j-dict-select-tag placeholder="请选择发布状态" dict-code="release" style="width: 100%"
|
|
v-model="queryParam.isRelease"></j-dict-select-tag>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<a-button type="primary" icon="search" @click="searchQuery"
|
|
v-has:[authorCode.search]="'committeeMeeting:search'">查询</a-button>
|
|
<a-button icon="reload" @click="searchReset" class="reset-button">重置</a-button>
|
|
</span>
|
|
</a-col>
|
|
</a-row>
|
|
</a-form>
|
|
</div>
|
|
<!-- /查询区域-->
|
|
|
|
<!-- 操作按钮区域-->
|
|
<div class="table-operator">
|
|
<a-button type="primary" icon="plus" @click="handleAdd" v-has:[authorCode.add]="'committeeMeeting:add'">新增
|
|
</a-button>
|
|
<a-button type="primary" icon="export" @click="handleExportXls('会议维护')"
|
|
v-has:[authorCode.export]="'committeeMeeting:export'">导出
|
|
</a-button>
|
|
<a-button type="danger" icon="delete" @click="batchDel"
|
|
v-has:[authorCode.batchDel]="'committeeMeeting:batchDel'">批量删除
|
|
</a-button>
|
|
<!--只有工作会议与分标委会议才有-->
|
|
<a-button type="primary" @click="publishRemind" v-if="meetingType === '5' " v-has="'committeeMeeting:publish'">
|
|
发布
|
|
</a-button>
|
|
<!-- 标协会议的发布 与分标委的发布不一样 -->
|
|
<a-button @click="releaseMeeing" type="primary" v-has="'standardsMeeting:release'" v-if="$route.query.meetingType === '2' ">发布</a-button>
|
|
</div>
|
|
<!-- /操作按钮区域-end-->
|
|
|
|
<!-- table表格区域-->
|
|
<div>
|
|
<a-table
|
|
ref="table"
|
|
size="middle"
|
|
bordered
|
|
rowKey="id"
|
|
:scroll="{x:true}"
|
|
:columns="newColumns"
|
|
:dataSource="dataSource"
|
|
:pagination="ipagination"
|
|
:loading="loading"
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
@change="handleTableChange"
|
|
class="j-table-force-nowrap">
|
|
|
|
<template slot="htmlSlot" slot-scope="text,record">
|
|
<j-ellipsis class="primary-color" @click="toAttendance(record)" v-if="text" :value="text"
|
|
:length="20"></j-ellipsis>
|
|
<span v-else></span>
|
|
</template>
|
|
|
|
<template slot="text" slot-scope="text">
|
|
<j-ellipsis v-if="text" :value="text" :length="20"></j-ellipsis>
|
|
<span v-else></span>
|
|
</template>
|
|
|
|
<span slot="action" class="action-span-cell" slot-scope="text, record">
|
|
|
|
<!-- <a @click="releaseMeeing(record)" v-has:[authorCode.releaseMeeing]="'committeeMeeting:upload'"-->
|
|
<!-- :disabled="record.isRelease === 1 " >发布</a>-->
|
|
<a @click="uploadFile(record,'1')" v-has:[authorCode.uploadCouncil]="'committeeMeeting:upload'">会议纪要</a>
|
|
<a @click="uploadFile(record,'2')" v-has:[authorCode.upload]="'committeeMeeting:upload'">上传文件</a>
|
|
<!-- <a @click="applyMsg">报名信息</a>-->
|
|
<a @click="handleEdit(record)" v-has:[authorCode.edit]="'committeeMeeting:edit'">编辑</a>
|
|
<a @click="handleDelete(record.id)" v-has:[authorCode.delete]="'committeeMeeting:delete'">删除</a>
|
|
<!-- 标协会议(标准宣贯、学习培训 且需要问题征集)的时候 有问题征集 功能-->
|
|
<a v-if="meetingType === '2'" v-show="(record.tbMeetingType === 1 || record.tbMeetingType === 2) && Number(record.isAddQuestion)" @click="problemCollectionDetail(record)" v-has="'standardsMeeting:problemCollection:button'">问题征集</a>
|
|
</span>
|
|
</a-table>
|
|
</div>
|
|
<publish-remind-modal ref="publishRemindModal" @ok="modalFormOk"></publish-remind-modal>
|
|
<upload-meet-file-modal ref="modalForm" @ok="modalFormOk"></upload-meet-file-modal>
|
|
</a-card>
|
|
<problem-collection-modal ref="problemCollectionModal"></problem-collection-modal>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import {JeroListMixin} from '@/mixins/JeroListMixin'
|
|
import {RangeDateMixin} from '@/mixins/RangeDateMixin'
|
|
import JYearDate from '@comp/jero/JYearDate'
|
|
import JDate from '@comp/tools/JDate'
|
|
import moment from 'moment'
|
|
import JDictSelectTag from '@comp/dict/JDictSelectTag'
|
|
import PublishRemindModal from '@views/projectManagement/modules/PublishRemindModal'
|
|
import UploadMeetFileModal from '@views/incomePayments/meetManage/modules/UploadMeetFileModal'
|
|
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
|
import '@/assets/less/TableExpand.less'
|
|
// 问题征集 组件
|
|
import ProblemCollectionModal from '../incomePayments/meetManage/modules/ProblemCollectionModal'
|
|
|
|
export default {
|
|
name: 'CommitteeMeeting',
|
|
components: {
|
|
JYearDate,
|
|
JDate,
|
|
JDictSelectTag,
|
|
PublishRemindModal,
|
|
UploadMeetFileModal,
|
|
PageHeaderTitle,
|
|
ProblemCollectionModal
|
|
},
|
|
mixins: [JeroListMixin, RangeDateMixin],
|
|
data() {
|
|
return {
|
|
disableMixinCreated: true,
|
|
list: [],
|
|
labelCol: {
|
|
xs: {span: 24},
|
|
sm: {span: 5}
|
|
},
|
|
wrapperCol: {
|
|
xs: {span: 24},
|
|
sm: {span: 10}
|
|
},
|
|
dateKeyObj: {
|
|
beginKey: 'meetingStartTime',
|
|
endKey: 'meetingEndtTime'
|
|
},
|
|
columns: [
|
|
{
|
|
title: '序号',
|
|
dataIndex: '',
|
|
key: 'rowIndex',
|
|
width: 60,
|
|
align: 'center',
|
|
customRender: function (t, r, index) {
|
|
return parseInt(index) + 1
|
|
}
|
|
},
|
|
{
|
|
title: '会议名称',
|
|
align: 'center',
|
|
dataIndex: 'meetingName',
|
|
scopedSlots: {customRender: 'htmlSlot'},
|
|
width: 220,
|
|
},
|
|
{
|
|
title: '会议类型',
|
|
align: 'center',
|
|
dataIndex: 'meetingType_dictText',
|
|
width: 120,
|
|
customRender: (text, record) => {
|
|
if(text !== '标协会议') {
|
|
return text
|
|
} else {
|
|
return record.tbMeetingType_dictText
|
|
}
|
|
}
|
|
// scopedSlots: {customRender: 'text'}
|
|
},
|
|
{
|
|
title: '负责人',
|
|
align: 'center',
|
|
dataIndex: 'directorName',
|
|
width: 160,
|
|
scopedSlots: {customRender: 'text'}
|
|
},
|
|
{
|
|
title: '召开时间',
|
|
align: 'center',
|
|
dataIndex: 'startTime',
|
|
width: 200,
|
|
customRender: (text, record) => (
|
|
<j-ellipsis value={record.startTime + '~' + record.endTime} length={20}></j-ellipsis>)
|
|
},
|
|
{
|
|
title: '召开地点',
|
|
align: 'center',
|
|
dataIndex: 'venue',
|
|
width: 260,
|
|
customRender: (text, record) => (<j-ellipsis value={text + '/' + record.address} length={20}></j-ellipsis>)
|
|
},
|
|
{
|
|
title: '年份',
|
|
align: 'center',
|
|
dataIndex: 'particularYear',
|
|
width: 120,
|
|
scopedSlots: {customRender: 'text'}
|
|
},
|
|
{
|
|
title: '发布状态',
|
|
align: 'center',
|
|
dataIndex: 'isRelease_dictText',
|
|
scopedSlots: {customRender: 'text'},
|
|
width: 100,
|
|
},
|
|
{
|
|
title: '已提醒',
|
|
align: 'center',
|
|
dataIndex: 'remind_dictText',
|
|
width: 100,
|
|
scopedSlots: {customRender: 'text'}
|
|
},
|
|
{
|
|
title: '创建时间',
|
|
align: 'center',
|
|
dataIndex: 'createTime',
|
|
scopedSlots: {customRender: 'text'}
|
|
},
|
|
{
|
|
title: '操作',
|
|
align: 'center',
|
|
fixed: 'right',
|
|
width: 180,
|
|
scopedSlots: {customRender: 'action'}
|
|
},
|
|
],
|
|
newColumns: [],
|
|
|
|
// 权限编码
|
|
authorCode: {},
|
|
// 分标委的权限编码
|
|
committeeMeetingAuthorCode: {
|
|
add: 'committeeMeeting:add',
|
|
search: 'committeeMeeting:search',
|
|
export: 'committeeMeeting:export',
|
|
batchDel: 'committeeMeeting:batchDel',
|
|
upload: 'committeeMeeting:upload',
|
|
edit: 'committeeMeeting:edit',
|
|
delete: 'committeeMeeting:delete',
|
|
uploadCouncil: 'committeeMeeting:uploadCouncil'
|
|
},
|
|
// 标协会议的权限编码
|
|
standardsMeetingAuthorCode: {
|
|
add: 'standardsMeeting:add',
|
|
search: 'standardsMeeting:search',
|
|
export: 'standardsMeeting:export',
|
|
batchDel: 'standardsMeeting:batchDel',
|
|
upload: 'standardsMeeting:upload',
|
|
edit: 'standardsMeeting:edit',
|
|
delete: 'standardsMeeting:delete',
|
|
uploadCouncil: 'standardsMeeting:uploadCouncil',
|
|
releaseMeeing: 'standardsMeeting:release', // 发布会议的按钮权限
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
this.filters.meetingType = this.meetingType
|
|
// 分标委会议需要加上分标委id
|
|
if (this.meetingType === '5') {
|
|
// 在这改变v-has 的值 用分标委的会议权限
|
|
this.authorCode = Object.assign({}, this.committeeMeetingAuthorCode)
|
|
this.filters.caseCommitteeId = this.caseCommitteeId
|
|
}
|
|
// 如果是标协会议 用标协会议权限
|
|
if (this.meetingType === '2') {
|
|
this.authorCode = Object.assign({}, this.standardsMeetingAuthorCode)
|
|
this.filters.standardsId = this.$route.query.id
|
|
}
|
|
// 不是分标委会议去掉提醒字段
|
|
if (this.meetingType !== '5') {
|
|
this.newColumns = [...this.columns]
|
|
// 找出提醒字段的索引
|
|
this.newColumns = this.newColumns.filter(item => item.dataIndex !== 'remind_dictText')
|
|
} else {
|
|
// 分标委会议 列表表头 去掉可发布列
|
|
this.newColumns = [...this.columns]
|
|
this.newColumns = this.newColumns.filter(item => item.dataIndex !== 'isRelease_dictText')
|
|
}
|
|
},
|
|
mounted() {
|
|
if (this.disableMixinCreated) {
|
|
this.loadData(1)
|
|
}
|
|
},
|
|
computed: {
|
|
pageTitle() {
|
|
return `${this.$route.query.title}`
|
|
},
|
|
// 会议类型
|
|
meetingType() {
|
|
return this.$route.query.meetingType + ''
|
|
},
|
|
// 分标委id
|
|
caseCommitteeId() {
|
|
return this.$route.query.id ? this.$route.query.id : undefined
|
|
},
|
|
// 标协项目id
|
|
standardsId(){
|
|
return this.$route.query.id ? this.$route.query.id : undefined
|
|
},
|
|
// eslint-disable-next-line
|
|
url() {
|
|
let meetingType = this.$route.query.meetingType + ''
|
|
// 标协会议
|
|
if (meetingType === '2') {
|
|
return {
|
|
list: '/meeting/standardsMeeting/page',
|
|
delete: '/meeting/standardsMeeting/delete',
|
|
deleteBatch: '/meeting/standardsMeeting/deleteBatch',
|
|
exportXlsUrl: '/meeting/standardsMeeting/exportXls',
|
|
releaseMeeingUrl: '/meeting/standardsMeeting/release', // 发布会议的接口
|
|
}
|
|
} else if (meetingType === '5') {
|
|
// 分标委会议
|
|
return {
|
|
list: '/meeting/committeeMeeting/page',
|
|
delete: '/meeting/committeeMeeting/delete',
|
|
deleteBatch: '/meeting/committeeMeeting/deleteBatch',
|
|
exportXlsUrl: '/meeting/committeeMeeting/exportXls',
|
|
}
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
/*
|
|
* 新增
|
|
* */
|
|
handleAdd() {
|
|
// 分标委的新增应该是需要分标委的id
|
|
if (this.meetingType === '5') {
|
|
this.$router.push({
|
|
path: '/incomePayments/meetManage/AddOrDetailMeet',
|
|
query: {
|
|
meetingType: this.meetingType,
|
|
caseCommitteeId: this.caseCommitteeId
|
|
}
|
|
})
|
|
}
|
|
// 标协会议新增
|
|
if (this.meetingType === '2') {
|
|
this.$router.push({
|
|
path: '/incomePayments/meetManage/AddOrDetailMeet',
|
|
query: {
|
|
meetingType: this.meetingType,
|
|
standardsId:this.standardsId
|
|
}
|
|
})
|
|
}
|
|
},
|
|
/*
|
|
* 编辑
|
|
* */
|
|
handleEdit(record) {
|
|
// 记录当前的工作组id
|
|
let currentId = this.$route.query.workingGroupProjectId
|
|
this.$router.push({
|
|
path: '/incomePayments/meetManage/AddOrDetailMeet',
|
|
query: {
|
|
workingGroupProjectId: currentId,
|
|
id: record.id,
|
|
}
|
|
})
|
|
},
|
|
/*
|
|
* 参会情况
|
|
* */
|
|
toAttendance(record) {
|
|
let path = ''
|
|
let meetingType = this.$route.query.meetingType + ''
|
|
// 分标委会议与标协会议的跳转
|
|
if (meetingType === '2') {
|
|
path = '/incomePayments/meetManage/AttendanceStandardsMeeting'
|
|
} else if (meetingType === '5') {
|
|
path = '/incomePayments/meetManage/AttendanceCommitteeMeeting'
|
|
}
|
|
this.$router.push({
|
|
path: path,
|
|
query: {
|
|
id: record.id,
|
|
meetingName: record.meetingName,
|
|
meetingType: meetingType
|
|
}
|
|
})
|
|
},
|
|
/*
|
|
* 发布
|
|
* */
|
|
publishRemind() {
|
|
if (this.selectionRows.length === 0) {
|
|
this.$message.warn('请选择一个会议')
|
|
return
|
|
} else {
|
|
// 传入选中的会议id
|
|
this.$refs.publishRemindModal.open(this.selectedRowKeys, true)
|
|
this.$refs.publishRemindModal.title = '发布'
|
|
}
|
|
|
|
},
|
|
/*
|
|
* 上传文件
|
|
* */
|
|
uploadFile(record, type) {
|
|
this.$refs.modalForm.edit(record, type)
|
|
},
|
|
/*
|
|
* 报名信息
|
|
* */
|
|
applyMsg() {
|
|
this.$router.push({
|
|
path: '/incomePayments/meetManage/SignUpInfoList'
|
|
})
|
|
},
|
|
/*
|
|
* 创建时间开始禁用
|
|
* */
|
|
disabledStartCreateDate(startValue) {
|
|
const endValue = this.queryParam.createTime_end && moment(this.queryParam.createTime_end, this.rangeDateFormat.end)
|
|
if (!startValue || !endValue) {
|
|
return false
|
|
}
|
|
return startValue.valueOf() > endValue.valueOf()
|
|
},
|
|
/*
|
|
* 创建时间结束禁用
|
|
* */
|
|
disabledEndCreateDate(endValue) {
|
|
const startValue = this.queryParam.createTime_begin && moment(this.queryParam.createTime_begin, this.rangeDateFormat.begin)
|
|
if (!endValue || !startValue) {
|
|
return false
|
|
}
|
|
return startValue.valueOf() > endValue.valueOf()
|
|
},
|
|
/*
|
|
* 修改查询条件
|
|
* */
|
|
searchQuery() {
|
|
// this.queryParam.meetingStartTime = this.queryParam.meetingStartTime ? this.queryParam.meetingStartTime + ' ' + '00:00:00' : undefined
|
|
// this.queryParam.meetingEndTime = this.queryParam.meetingEndTime ? this.queryParam.meetingEndTime + ' ' + '23:59:59' : undefined
|
|
// this.queryParam.createTime_begin = this.queryParam.createTime_begin ? this.queryParam.createTime_begin + ' ' + '00:00:00' : undefined
|
|
// this.queryParam.createTime_end = this.queryParam.createTime_end ? this.queryParam.createTime_end + ' ' + '23:59:59' : undefined
|
|
this.lastQueryParam = {...this.queryParam}
|
|
if(this.lastQueryParam.meetingStartTime) this.lastQueryParam.meetingStartTime = this.lastQueryParam.meetingStartTime + ' ' + '00:00:00'
|
|
if(this.lastQueryParam.meetingEndTime) this.lastQueryParam.meetingEndTime = this.lastQueryParam.meetingEndTime + ' ' + '23:59:59'
|
|
if(this.lastQueryParam.createTime_begin) this.lastQueryParam.createTime_begin = this.lastQueryParam.createTime_begin + ' ' + '00:00:00'
|
|
if(this.lastQueryParam.createTime_end) this.lastQueryParam.createTime_end = this.lastQueryParam.createTime_end + ' ' + '23:59:59'
|
|
this.loadData(1)
|
|
},
|
|
/*
|
|
* 问题征集按钮点击后的回调
|
|
* */
|
|
problemCollectionDetail(record) {
|
|
if(!Number(record.isAddQuestion) || !this.meetingType === '2') return
|
|
if(!(record.tbMeetingType === 1 || record.tbMeetingType === 2)) return
|
|
this.$refs.problemCollectionModal.show(record)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
@import '~@assets/less/common.less';
|
|
</style>
|