feat: 表单编辑按钮修改为传入menuid查询是否有权限
This commit is contained in:
@ -841,6 +841,7 @@ ${hasTemplatePrint ? ' reactive ' : ''}
|
||||
formIdComputedRef.value = currentRoute.value.meta.formId
|
||||
const schemaIdComputedRef = ref();
|
||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
||||
const menuId = currentRoute.value.meta.menuId;
|
||||
|
||||
${
|
||||
hasStartWorkButton
|
||||
@ -1019,15 +1020,11 @@ ${hasTemplatePrint ? ' reactive ' : ''}
|
||||
path: '/form/${lowerClassName}/' + record.id + '/viewForm',
|
||||
query: {
|
||||
formPath: '${model.outputConfig.outputValue}/${lowerClassName}',
|
||||
canEdit: canEdit()
|
||||
menuId: menuId
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
// 判断是否显示编辑按钮编辑
|
||||
function canEdit() {
|
||||
return filterButtonAuth([{"code":"view"}]).length
|
||||
}
|
||||
|
||||
function buttonClick(code) {
|
||||
${
|
||||
@ -1353,7 +1350,7 @@ ${hasTemplatePrint ? ' reactive ' : ''}
|
||||
path: '/form/${lowerClassName}/' + record.id + '/viewForm',
|
||||
query: {
|
||||
formPath: '${model.outputConfig.outputValue}/${lowerClassName}',
|
||||
canEdit: canEdit()
|
||||
menuId: menuId
|
||||
}
|
||||
});`
|
||||
: `
|
||||
|
||||
Reference in New Issue
Block a user