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