【修改】其他会议 国际研讨会 标协会议 会议发布调整为页面级按钮
This commit is contained in:
@@ -362,17 +362,27 @@ export const JeroListMixin = {
|
||||
* @Date 2021-12-29
|
||||
* @author fac
|
||||
* */
|
||||
releaseMeeing(record){
|
||||
releaseMeeing(){
|
||||
if(this.selectedRowKeys.length === 0){
|
||||
this.$message.warn('请至少选中一个会议')
|
||||
return
|
||||
}
|
||||
// 判断选中的会议是否已经发布
|
||||
let flag = this.selectionRows.some(item => {
|
||||
return item.isRelease === 1
|
||||
})
|
||||
if(flag){
|
||||
this.$message.warn('请选择未发布的会议')
|
||||
return
|
||||
}
|
||||
const that = this
|
||||
if(this.url.releaseMeeingUrl){
|
||||
// 为什么是meetingIds 做的时候后端跟 分标委会议发布那样做了 就这样传参了
|
||||
const param = {
|
||||
meetingIds:[record.id]
|
||||
meetingIds:this.selectedRowKeys
|
||||
}
|
||||
|
||||
this.$confirm({
|
||||
title: '确认发布',
|
||||
content: '确定要发布此会议吗?',
|
||||
content: '确定要发布选中的会议吗?',
|
||||
onOk: function () {
|
||||
postAction(that.url.releaseMeeingUrl,param).then(res => {
|
||||
if(res.success){
|
||||
|
||||
@@ -102,6 +102,8 @@
|
||||
<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-->
|
||||
|
||||
@@ -133,8 +135,9 @@
|
||||
</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 " v-if="$route.query.meetingType === '2' ">发布</a>
|
||||
|
||||
<!-- <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>-->
|
||||
@@ -295,7 +298,7 @@ export default {
|
||||
edit: 'standardsMeeting:edit',
|
||||
delete: 'standardsMeeting:delete',
|
||||
uploadCouncil: 'standardsMeeting:uploadCouncil',
|
||||
releaseMeeing:'standardsMeeting:release', // 发布会议的按钮权限
|
||||
releaseMeeing: 'standardsMeeting:release', // 发布会议的按钮权限
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -318,9 +321,8 @@ export default {
|
||||
this.newColumns = this.newColumns.filter(item => item.dataIndex !== 'remind_dictText')
|
||||
} else {
|
||||
// 分标委会议 列表表头 去掉可发布列
|
||||
|
||||
this.newColumns = [...this.columns]
|
||||
this.newColumns = this.newColumns.filter(item => item.dataIndex !== 'release_dictText')
|
||||
this.newColumns = this.newColumns.filter(item => item.dataIndex !== 'isRelease_dictText')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -350,7 +352,7 @@ export default {
|
||||
delete: '/meeting/standardsMeeting/delete',
|
||||
deleteBatch: '/meeting/standardsMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/standardsMeeting/exportXls',
|
||||
releaseMeeingUrl:'/meeting/standardsMeeting/release', // 发布会议的接口
|
||||
releaseMeeingUrl: '/meeting/standardsMeeting/release', // 发布会议的接口
|
||||
}
|
||||
} else if (meetingType === '5') {
|
||||
// 分标委会议
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'internalMeeting:add'">新增</a-button>
|
||||
<a-button type="primary" icon="download" @click="handleExportXls('国际研讨会')" v-has="'internalMeeting:export'">导出</a-button>
|
||||
<a-button type="danger" icon="delete" @click="batchDel" v-has="'internalMeeting:batchDel'">批量删除</a-button>
|
||||
<a-button @click="releaseMeeing" type="primary" v-has="'internalMeeting:release'">发布</a-button>
|
||||
</div>
|
||||
|
||||
<!-- table区域-begin -->
|
||||
@@ -102,7 +103,7 @@
|
||||
|
||||
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
||||
<!--会议需要发布才能让企业人员看见 已发布状态禁用按钮 -->
|
||||
<a @click="releaseMeeing(record)" v-has=" 'internalMeeting:release' " :disabled="record.isRelease === 1 ">发布</a>
|
||||
<!-- <a @click="releaseMeeing(record)" v-has=" 'internalMeeting:release' " :disabled="record.isRelease === 1 ">发布</a>-->
|
||||
<a @click="handleUploadFile(record,'1')" v-has=" 'internalMeeting:uploadCouncil' ">会议纪要</a>
|
||||
<a @click="handleUploadFile(record,'2')" v-has="'internalMeeting:upload'">上传文件</a>
|
||||
<!-- <a @click="handleSignup(record)">报名信息</a>-->
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||
<a-form-item label="发布状态">
|
||||
<j-dict-select-tag placeholder="请选择发布状态" dict-code="release" v-model="queryParam.isRelease"></j-dict-select-tag>
|
||||
<j-dict-select-tag placeholder="请选择发布状态" dict-code="release"
|
||||
v-model="queryParam.isRelease"></j-dict-select-tag>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="10" :lg="11" :md="12" :sm="24">
|
||||
@@ -70,8 +71,10 @@
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator">
|
||||
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'otherMeeting:add'">新增</a-button>
|
||||
<a-button type="primary" icon="download" @click="handleExportXls('其他会议')" v-has="'otherMeeting:export'">导出</a-button>
|
||||
<a-button type="primary" icon="download" @click="handleExportXls('其他会议')" v-has="'otherMeeting:export'">导出
|
||||
</a-button>
|
||||
<a-button type="danger" icon="delete" @click="batchDel" v-has="'otherMeeting:batchDel'">批量删除</a-button>
|
||||
<a-button @click="releaseMeeing" type="primary" v-has="'otherMeeting:release'">发布</a-button>
|
||||
</div>
|
||||
|
||||
<!-- table区域-begin -->
|
||||
@@ -92,7 +95,8 @@
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="htmlSlot" slot-scope="text,record">
|
||||
<j-ellipsis v-if="text" class="primary-color" @click="toAttendance(record)" :value="text" :length="20"></j-ellipsis>
|
||||
<j-ellipsis v-if="text" class="primary-color" @click="toAttendance(record)" :value="text"
|
||||
:length="20"></j-ellipsis>
|
||||
<span v-else></span>
|
||||
</template>
|
||||
|
||||
@@ -102,10 +106,11 @@
|
||||
</template>
|
||||
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
||||
<!--会议需要发布才能让企业人员看见 已发布状态禁用按钮 -->
|
||||
<a @click="releaseMeeing(record)" v-has=" 'otherMeeting:release' " :disabled="record.isRelease === 1 ">发布</a>
|
||||
<!--调整为页面级按钮-->
|
||||
<!-- <a @click="releaseMeeing(record)" v-has=" '' " :disabled="record.isRelease === 1 ">发布</a>-->
|
||||
<a @click="handleUploadFile(record,'1')" v-has="'otherMeeting:uploadCouncil'">会议纪要</a>
|
||||
<a @click="handleUploadFile(record,'2')" v-has="'otherMeeting:upload'">上传文件</a>
|
||||
<!-- <a @click="handleSignup(record)">报名信息</a>-->
|
||||
<!-- <a @click="handleSignup(record)">报名信息</a>-->
|
||||
<a @click="handleEdit(record)" v-has="'otherMeeting:edit'">编辑</a>
|
||||
<a @click="handleDelete(record.id)" v-has="'otherMeeting:delete'">删除</a>
|
||||
</span>
|
||||
@@ -129,8 +134,9 @@ import '@/assets/less/TableExpand.less'
|
||||
import JDate from '@comp/tools/JDate'
|
||||
import JDictSelectTag from '@comp/dict/JDictSelectTag'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
name: 'OtherMeeting',
|
||||
name: 'OtherMeeting',
|
||||
mixins: [JeroListMixin, mixinDevice, RangeDateMixin],
|
||||
components: {
|
||||
JYearDate,
|
||||
@@ -180,7 +186,8 @@ name: 'OtherMeeting',
|
||||
align: 'center',
|
||||
dataIndex: 'startTime',
|
||||
width: 220,
|
||||
customRender: (text, record) => (<j-ellipsis value={record.startTime + '~' + record.endTime} length={20}></j-ellipsis>)
|
||||
customRender: (text, record) => (
|
||||
<j-ellipsis value={record.startTime + '~' + record.endTime} length={20}></j-ellipsis>)
|
||||
},
|
||||
{
|
||||
title: '召开地点',
|
||||
@@ -227,9 +234,9 @@ name: 'OtherMeeting',
|
||||
deleteBatch: '/meeting/otherMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/otherMeeting/exportXls',
|
||||
importExcelUrl: '/meeting/otherMeeting/importExcel',
|
||||
releaseMeeingUrl:'/meeting/otherMeeting/release'// 发布会议的接口
|
||||
releaseMeeingUrl: '/meeting/otherMeeting/release'// 发布会议的接口
|
||||
},
|
||||
disableMixinCreated:true
|
||||
disableMixinCreated: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -245,8 +252,8 @@ name: 'OtherMeeting',
|
||||
/*
|
||||
* 上传会议文件
|
||||
* */
|
||||
handleUploadFile(record,type) {
|
||||
this.$refs.modalForm.edit(record,type)
|
||||
handleUploadFile(record, type) {
|
||||
this.$refs.modalForm.edit(record, type)
|
||||
},
|
||||
/*
|
||||
* 报名信息
|
||||
@@ -285,8 +292,8 @@ name: 'OtherMeeting',
|
||||
handleAdd() {
|
||||
this.$router.push({
|
||||
path: '/incomePayments/meetManage/AddOrDetailMeet',
|
||||
query:{
|
||||
meetingType:'4'
|
||||
query: {
|
||||
meetingType: '4'
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -299,7 +306,7 @@ name: 'OtherMeeting',
|
||||
query: {
|
||||
id: record.id,
|
||||
meetingName: record.meetingName,
|
||||
meetingType:'4'
|
||||
meetingType: '4'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user