工作组会议的发布提醒与上传文件

This commit is contained in:
fengachen
2021-09-13 16:51:02 +08:00
parent 3ad8ebc039
commit 33012457c3
4 changed files with 71 additions and 42 deletions
@@ -59,6 +59,7 @@
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<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>
@@ -86,18 +87,18 @@
<!-- table表格区域-->
<div>
<a-table
ref="table"
size="middle"
bordered
rowKey="id"
:scroll="{x:true}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"
class="j-table-force-nowrap">
ref="table"
size="middle"
bordered
rowKey="id"
:scroll="{x:true}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"
class="j-table-force-nowrap">
<!-- 工作组名称-->
<template slot="projectName" slot-scope="text, record">
@@ -109,44 +110,52 @@
</template>
<span slot="action" class="action-span-cell" slot-scope="text, record">
<a @click="uploadFile">上传文件</a>
<a @click="uploadFile(record)">上传文件</a>
<a @click="applyMsg">报名信息</a>
<a @click="handleEdit(record)">编辑</a>
<a @click="handleDelete(record.id)">删除</a>
</span>
</a-table>
</div>
<publish-remind-modal ref="publishRemindModal" @ok="loadData"></publish-remind-modal>
<publish-remind-modal ref="publishRemindModal" @ok="modalFormOk"></publish-remind-modal>
<upload-meet-file-modal ref="modalForm" @ok="modalFormOk"></upload-meet-file-modal>
</a-card>
</template>
<script>
import { JeroListMixin } from '@/mixins/JeroListMixin'
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 '@/assets/less/TableExpand.less'
export default {
name: 'ConferenceMaintenance',
components: { JYearDate,JDate,JDictSelectTag,PublishRemindModal },
mixins: [JeroListMixin,RangeDateMixin],
components: {
JYearDate,
JDate,
JDictSelectTag,
PublishRemindModal,
UploadMeetFileModal
},
mixins: [JeroListMixin, RangeDateMixin],
data() {
return {
workingGroupProject: '',
workingGroupProjectId: '',
disableMixinCreated:true,
disableMixinCreated: true,
list: [],
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
xs: {span: 24},
sm: {span: 5}
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 10 }
xs: {span: 24},
sm: {span: 10}
},
dateKeyObj: {
beginKey: 'meetingStartTime',
@@ -209,7 +218,7 @@ export default {
{
title: '已提醒',
align: 'center',
dataIndex: '',
dataIndex: 'remind_dictText',
width: 100,
},
{
@@ -236,7 +245,7 @@ export default {
created() {
this.workingGroupProject = this.$route.query.workingGroupProject
this.workingGroupProjectId = this.$route.query.workingGroupProjectId
this.filters.workingGroupId = this.workingGroupProjectId
this.filters.workingGroupId = this.workingGroupProjectId
this.loadData(1)
},
methods: {
@@ -251,26 +260,26 @@ export default {
/*
* 新增
* */
handleAdd(){
handleAdd() {
// 记录当前的工作组id
let currentId = this.$route.query.workingGroupProjectId
this.$router.push({
path: '/incomePayments/meetManage/AddOrDetailMeet',
query:{
workingGroupProjectId:currentId
query: {
workingGroupProjectId: currentId
}
})
},
/*
* 编辑
* */
handleEdit(record){
handleEdit(record) {
// 记录当前的工作组id
let currentId = this.$route.query.workingGroupProjectId
this.$router.push({
path: '/incomePayments/meetManage/AddOrDetailMeet',
query:{
workingGroupProjectId:currentId,
query: {
workingGroupProjectId: currentId,
id: record.id,
}
})
@@ -279,24 +288,31 @@ export default {
* 发布提醒
* */
publishRemind() {
this.$refs.publishRemindModal.open()
this.$refs.publishRemindModal.title = '发布-提醒'
if (this.selectionRows.length === 0) {
this.$message.warn('请选择一个会议')
return
} else {
// 传入选中的会议id
this.$refs.publishRemindModal.open(this.selectedRowKeys)
this.$refs.publishRemindModal.title = '发布-提醒'
}
},
/*
* 上传文件
* */
uploadFile() {
uploadFile(record) {
this.$refs.modalForm.edit(record)
},
/*
* 报名信息
* */
applyMsg() {},
applyMsg() {
},
/*
* 创建时间开始禁用
* */
disabledStartCreateDate(startValue){
disabledStartCreateDate(startValue) {
const endValue = this.queryParam.createTime_end && moment(this.queryParam.createTime_end, this.rangeDateFormat.end)
if (!startValue || !endValue) {
return false