Browse Source

fix: 客户费用设置删除判断

lyc 8 hours ago
parent
commit
9b7b9f0e67
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/composables/customerfeeset/useCustomerFeeSet.ts

+ 6 - 1
src/composables/customerfeeset/useCustomerFeeSet.ts

@@ -266,7 +266,12 @@ export default function userCustomerFeeSet(getCustomerFeeSetList, clearCheckboxR
                 break;
             // 费用设置-删除
             case BaseFeesetAction.DELETE:
-                deleteBtn(row.id)
+                const isDelete = userstore.getPermissions.includes('sys:customerfeeset:delete')
+                if (isDelete) {
+                    deleteBtn(row.id)
+                } else {
+                    createMessage.warning('暂无权限操作!')
+                }
                 break;
             // 新版本
             case BaseFeesetAction.VERSION: