【变更】会议发布的联调
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* data中url定义 list为查询列表 delete为删除单条记录 deleteBatch为批量删除
|
||||
*/
|
||||
import {filterObj} from '@/utils/util'
|
||||
import {getAction, downloadFile, getFileAccessHttpUrl} from '@/api/manage'
|
||||
import {getAction, downloadFile, getFileAccessHttpUrl, postAction} from '@/api/manage'
|
||||
import Vue from 'vue'
|
||||
import {ACCESS_TOKEN, TENANT_ID} from '@/store/mutation-types'
|
||||
import store from '@/store'
|
||||
@@ -363,18 +363,29 @@ export const JeroListMixin = {
|
||||
* @author fac
|
||||
* */
|
||||
releaseMeeing(record){
|
||||
const that = this
|
||||
if(this.url.releaseMeeingUrl){
|
||||
// 为什么是meetingIds 做的时候后端跟 分标委会议发布那样做了 就这样传参了
|
||||
const param = {
|
||||
id:record.id
|
||||
meetingIds:[record.id]
|
||||
}
|
||||
getAction(this.url.releaseMeeingUrl,param).then(res => {
|
||||
if(res.success){
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
}else {
|
||||
this.$message.warn(res.message)
|
||||
|
||||
this.$confirm({
|
||||
title: '确认发布',
|
||||
content: '确定要发布此会议吗?',
|
||||
onOk: function () {
|
||||
postAction(that.url.releaseMeeingUrl,param).then(res => {
|
||||
if(res.success){
|
||||
that.$message.success('发布成功')
|
||||
that.loadData()
|
||||
}else {
|
||||
that.$message.warn(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}else {
|
||||
this.$message.warn('请设置url.releaseMeeingUrl')
|
||||
}
|
||||
|
||||
@@ -133,8 +133,8 @@
|
||||
</template>
|
||||
|
||||
<span slot="action" class="action-span-cell" slot-scope="text, record">
|
||||
<!--会议需要发布才能让企业人员看见 已发布状态禁用按钮 标协会议显示 -->
|
||||
<a @click="releaseMeeing(record)" :disabled="record.release === 1 " v-if="$route.query.meetingType === '2' ">发布</a>
|
||||
<!--会议需要发布才能让企业人员看见 已发布状态禁用按钮 标协会议显示 -->
|
||||
<a @click="releaseMeeing(record)" v-has:[authorCode.releaseMeeing]="'committeeMeeting:upload'" :disabled="record.isRelease === 1 " v-if="$route.query.meetingType === '2' ">发布</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>-->
|
||||
@@ -245,7 +245,7 @@ export default {
|
||||
{
|
||||
title: '发布状态',
|
||||
align: 'center',
|
||||
dataIndex: 'release_dictText',
|
||||
dataIndex: 'isRelease_dictText',
|
||||
scopedSlots: {customRender: 'text'},
|
||||
width: 100,
|
||||
},
|
||||
@@ -295,7 +295,7 @@ export default {
|
||||
edit: 'standardsMeeting:edit',
|
||||
delete: 'standardsMeeting:delete',
|
||||
uploadCouncil: 'standardsMeeting:uploadCouncil',
|
||||
releaseMeeing:'', // 发布会议的按钮权限
|
||||
releaseMeeing:'standardsMeeting:release', // 发布会议的按钮权限
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -350,7 +350,7 @@ export default {
|
||||
delete: '/meeting/standardsMeeting/delete',
|
||||
deleteBatch: '/meeting/standardsMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/standardsMeeting/exportXls',
|
||||
releaseMeeingUrl:'', // 发布会议的接口
|
||||
releaseMeeingUrl:'/meeting/standardsMeeting/release', // 发布会议的接口
|
||||
}
|
||||
} else if (meetingType === '5') {
|
||||
// 分标委会议
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</a-col>
|
||||
<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.release"></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">
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
||||
<!--会议需要发布才能让企业人员看见 已发布状态禁用按钮 -->
|
||||
<a @click="releaseMeeing(record)" :disabled="record.release === 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>-->
|
||||
@@ -200,7 +200,7 @@ export default {
|
||||
{
|
||||
title: '发布状态',
|
||||
align: 'center',
|
||||
dataIndex: 'release_dictText',
|
||||
dataIndex: 'isRelease_dictText',
|
||||
scopedSlots: {customRender: 'text'},
|
||||
width: 120,
|
||||
},
|
||||
@@ -228,7 +228,7 @@ export default {
|
||||
deleteBatch: '/meeting/internalMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/internalMeeting/exportXls',
|
||||
importExcelUrl: '/meeting/internalMeeting/importExcel',
|
||||
releaseMeeingUrl:'', // 发布会议的接口
|
||||
releaseMeeingUrl:'/meeting/internalMeeting/release', // 发布会议的接口
|
||||
},
|
||||
disableMixinCreated:true
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
</template>
|
||||
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
||||
<!--会议需要发布才能让企业人员看见 已发布状态禁用按钮 -->
|
||||
<a @click="releaseMeeing(record)" :disabled="record.release === 1 ">发布</a>
|
||||
<a @click="releaseMeeing(record)" v-has=" 'otherMeeting:release' " :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>-->
|
||||
@@ -199,7 +199,7 @@ name: 'OtherMeeting',
|
||||
{
|
||||
title: '发布状态',
|
||||
align: 'center',
|
||||
dataIndex: 'release_dictText',
|
||||
dataIndex: 'isRelease_dictText',
|
||||
scopedSlots: {customRender: 'text'},
|
||||
width: 120,
|
||||
},
|
||||
@@ -227,7 +227,7 @@ name: 'OtherMeeting',
|
||||
deleteBatch: '/meeting/otherMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/otherMeeting/exportXls',
|
||||
importExcelUrl: '/meeting/otherMeeting/importExcel',
|
||||
releaseMeeingUrl:''// 发布会议的接口
|
||||
releaseMeeingUrl:'/meeting/otherMeeting/release'// 发布会议的接口
|
||||
},
|
||||
disableMixinCreated:true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user