diff --git a/web/src/components/table/fieldRender/index.vue b/web/src/components/table/fieldRender/index.vue
index c71aba22..89883af2 100644
--- a/web/src/components/table/fieldRender/index.vue
+++ b/web/src/components/table/fieldRender/index.vue
@@ -114,9 +114,11 @@
/>
+
+
{{ btn.text }}
+
+
-
- {{ btn.text }}
-
- {{ btn.text }}
+
+
-
- {{ btn.text }}
-
-
+
+
-
- {{ btn.text }}
-
-
-
+
-
+
import { reactive, computed, inject } from 'vue'
-import { debounce, auth } from '/@/utils/common'
+import { debounce } from '/@/utils/common'
import type baTableClass from '/@/utils/baTable'
import ComSearch from '/@/components/table/comSearch/index.vue'
import { useI18n } from 'vue-i18n'
diff --git a/web/src/utils/baTable.ts b/web/src/utils/baTable.ts
index bebb3671..f83da674 100644
--- a/web/src/utils/baTable.ts
+++ b/web/src/utils/baTable.ts
@@ -1,5 +1,5 @@
import { reactive } from 'vue'
-import { getArrayKey } from '/@/utils/common'
+import { auth, getArrayKey } from '/@/utils/common'
import type { baTableApi } from '/@/api/common'
import Sortable from 'sortablejs'
import { findIndexRow } from '/@/components/table'
@@ -69,6 +69,15 @@ export default class baTable {
this.initComSearch(!isUndefined(route) ? route.query : {})
}
+ /**
+ * 表格内部鉴权方法
+ * 此方法在表头或表行组件内部自动调用,传递权限节点名,如:add、edit
+ * 若需自定义表格内部鉴权,重写此方法即可
+ */
+ auth(node: string) {
+ return auth(node)
+ }
+
/**
* 运行前置函数
* @param funName 函数名