fix : 年度计划权限按钮

This commit is contained in:
2024-07-06 22:37:51 +08:00
parent 7e07010f0d
commit e5777b55bc
3 changed files with 11 additions and 5 deletions

View File

@@ -146,6 +146,7 @@ const auths = {
edit: ['mosr:collect:resubmit'],
detail: ['mosr:collect:info'],
report: ['mosr:collect:reported'],
planAdd: ['annual:plan:add'],
}
const tableConfig = reactive({
columns: [
@@ -269,7 +270,7 @@ const tableConfig = reactive({
params: {},
btns: [
{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: ''},
]
})
@@ -298,7 +299,6 @@ const selectionChange = (data) => {
projectSelectList.value = data
}
const handleExport = () => {
console.log('projectSelectList.value', projectSelectList.value)
let projectIds = []
projectSelectList.value.map(item => {
projectIds.push(item.projectId)
@@ -309,7 +309,12 @@ const handleExport = () => {
}
addPlan(params).then(res => {
if (res.code === 1000) {
router.push({
name: 'Plan/detail',
query: {
id: res.data
}
})
}
})
}