Merge pull request 'fix : 年度计划权限按钮' (#491) from dd into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/491
This commit is contained in:
@@ -181,7 +181,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="oper-page-btn" v-if="data.state==='5'">
|
<div class="oper-page-btn" v-perm="['annual:plan:approve']" v-if="data.state==='5'">
|
||||||
<el-button type="danger" @click="handleRejectPlan">驳回年度计划</el-button>
|
<el-button type="danger" @click="handleRejectPlan">驳回年度计划</el-button>
|
||||||
<el-button color="#DED0B2" @click="handleAgreePlan">通过年度计划</el-button>
|
<el-button color="#DED0B2" @click="handleAgreePlan">通过年度计划</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<baseTitle title="年度计划"></baseTitle>
|
||||||
<!-- <fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>-->
|
<!-- <fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>-->
|
||||||
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick"></fvTable>
|
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick" ></fvTable>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ const auths = {
|
|||||||
edit: ['mosr:collect:resubmit'],
|
edit: ['mosr:collect:resubmit'],
|
||||||
detail: ['mosr:collect:info'],
|
detail: ['mosr:collect:info'],
|
||||||
report: ['mosr:collect:reported'],
|
report: ['mosr:collect:reported'],
|
||||||
|
planAdd: ['annual:plan:add'],
|
||||||
}
|
}
|
||||||
const tableConfig = reactive({
|
const tableConfig = reactive({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -269,7 +270,7 @@ const tableConfig = reactive({
|
|||||||
params: {},
|
params: {},
|
||||||
btns: [
|
btns: [
|
||||||
{name: '新增上报', key: 'add', color: '#DED0B2', auth: auths.report},
|
{name: '新增上报', key: 'add', color: '#DED0B2', auth: auths.report},
|
||||||
{name: '创建年度计划', key: 'export', color: '#DED0B2', auth: ''},
|
{name: '创建年度计划', key: 'export', color: '#DED0B2', auth: auths.planAdd},
|
||||||
// {name: '经费预算生成', key: 'preMonty', auth: ''},
|
// {name: '经费预算生成', key: 'preMonty', auth: ''},
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
@@ -298,7 +299,6 @@ const selectionChange = (data) => {
|
|||||||
projectSelectList.value = data
|
projectSelectList.value = data
|
||||||
}
|
}
|
||||||
const handleExport = () => {
|
const handleExport = () => {
|
||||||
console.log('projectSelectList.value', projectSelectList.value)
|
|
||||||
let projectIds = []
|
let projectIds = []
|
||||||
projectSelectList.value.map(item => {
|
projectSelectList.value.map(item => {
|
||||||
projectIds.push(item.projectId)
|
projectIds.push(item.projectId)
|
||||||
@@ -309,7 +309,12 @@ const handleExport = () => {
|
|||||||
}
|
}
|
||||||
addPlan(params).then(res => {
|
addPlan(params).then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
|
router.push({
|
||||||
|
name: 'Plan/detail',
|
||||||
|
query: {
|
||||||
|
id: res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user