feat: 表单编辑按钮权限
This commit is contained in:
@ -1018,11 +1018,16 @@ ${hasTemplatePrint ? ' reactive ' : ''}
|
||||
router.push({
|
||||
path: '/form/${lowerClassName}/' + record.id + '/viewForm',
|
||||
query: {
|
||||
formPath: '${model.outputConfig.outputValue}/${lowerClassName}'
|
||||
formPath: '${model.outputConfig.outputValue}/${lowerClassName}',
|
||||
canEdit: canEdit()
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
// 判断是否显示编辑按钮编辑
|
||||
function canEdit() {
|
||||
return filterButtonAuth([{"code":"view"}]).length
|
||||
}
|
||||
|
||||
function buttonClick(code) {
|
||||
${
|
||||
@ -1347,7 +1352,8 @@ ${hasTemplatePrint ? ' reactive ' : ''}
|
||||
router.push({
|
||||
path: '/form/${lowerClassName}/' + record.id + '/viewForm',
|
||||
query: {
|
||||
formPath: '${model.outputConfig.outputValue}/${lowerClassName}'
|
||||
formPath: '${model.outputConfig.outputValue}/${lowerClassName}',
|
||||
canEdit: canEdit()
|
||||
}
|
||||
});`
|
||||
: `
|
||||
|
||||
Reference in New Issue
Block a user