会议维护的权限
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</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="'meeting:search'">查询</a-button>
|
||||
<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>
|
||||
@@ -73,11 +73,11 @@
|
||||
|
||||
<!-- 操作按钮区域-->
|
||||
<div class="table-operator">
|
||||
<a-button type="primary" icon="plus" @click="handleAdd" v-has="'meeting:add'">新增</a-button>
|
||||
<a-button type="primary" icon="export" @click="handleExportXls('工作组会议维护')" v-has="'meeting:export'">导出</a-button>
|
||||
<a-button type="danger" icon="delete" @click="batchDel" v-has="'committeeMeeting:batchDel'">批量删除</a-button>
|
||||
<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.search]="'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="'meeting:publish'">发布</a-button>
|
||||
<a-button type="primary" @click="publishRemind" v-if="meetingType === '5' " v-has="'committeeMeeting:publish'">发布</a-button>
|
||||
</div>
|
||||
<!-- /操作按钮区域-end-->
|
||||
|
||||
@@ -108,10 +108,10 @@
|
||||
</template>
|
||||
|
||||
<span slot="action" class="action-span-cell" slot-scope="text, record">
|
||||
<a @click="uploadFile(record)" v-has="'meeting:upload'">上传文件</a>
|
||||
<a @click="uploadFile(record)" v-has:[authorCode.upload]="'committeeMeeting:upload'">上传文件</a>
|
||||
<!-- <a @click="applyMsg">报名信息</a>-->
|
||||
<a @click="handleEdit(record)" v-has="'meeting:edit'">编辑</a>
|
||||
<a @click="handleDelete(record.id)" v-has="'meeting:delete'">删除</a>
|
||||
<a @click="handleEdit(record)" v-has:[authorCode.edit]="'committeeMeeting:edit'">编辑</a>
|
||||
<a @click="handleDelete(record.id)" v-has:[authorCode.delete]="'committeeMeeting:delete'">删除</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
@@ -234,21 +234,44 @@ export default {
|
||||
scopedSlots: {customRender: 'action'}
|
||||
},
|
||||
],
|
||||
url: {
|
||||
list: '/meeting/payMeeting/page',
|
||||
delete: '/meeting/payMeeting/delete',
|
||||
deleteBatch: '/meeting/payMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/payMeeting/exportXls',
|
||||
},
|
||||
// 权限编码
|
||||
authorCode:{
|
||||
|
||||
},
|
||||
// 分标委的权限编码
|
||||
committeeMeetingAuthorCode:{
|
||||
add:'committeeMeeting:add',
|
||||
search:'committeeMeeting:search',
|
||||
export:'committeeMeeting:export',
|
||||
batchDel:'committeeMeeting:batchDel',
|
||||
upload:'committeeMeeting:upload',
|
||||
edit:'committeeMeeting:edit',
|
||||
delete:'committeeMeeting:delete'
|
||||
},
|
||||
// 标协会议的权限编码
|
||||
standardsMeetingAuthorCode:{
|
||||
add:' standardsMeeting:add',
|
||||
search:' standardsMeeting:search',
|
||||
export:' standardsMeeting:export',
|
||||
batchDel:' standardsMeeting:batchDel',
|
||||
upload:' standardsMeeting:upload',
|
||||
edit:' standardsMeeting:edit',
|
||||
delete:' standardsMeeting:delete'
|
||||
}
|
||||
}
|
||||
},
|
||||
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.loadData(1)
|
||||
// 不是分标委会议去掉提醒字段
|
||||
if (this.meetingType !== 5) {
|
||||
@@ -269,6 +292,26 @@ export default {
|
||||
// 分标委id
|
||||
caseCommitteeId(){
|
||||
return this.$route.query.id ? this.$route.query.id : undefined
|
||||
},
|
||||
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',
|
||||
}
|
||||
}else if(meetingType === '5') {
|
||||
// 分标委会议
|
||||
return {
|
||||
list: '/meeting/committeeMeeting/page',
|
||||
delete: '/meeting/committeeMeeting/delete',
|
||||
deleteBatch: '/meeting/committeeMeeting/deleteBatch',
|
||||
exportXlsUrl: '/meeting/committeeMeeting/exportXls',
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user