adtec-core-package 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/FrameworkUtils.ts +10 -0
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import elTableTool from '../components/Table/ElTableTool.ts'
|
|
2
2
|
import { ElMessage } from 'element-plus'
|
|
3
|
+
import { permissionStore } from '../stores/permissionStore.ts'
|
|
4
|
+
const permission = permissionStore()
|
|
3
5
|
/**
|
|
4
6
|
* Create by丁盼
|
|
5
7
|
* 说明: FrameworkUtils
|
|
@@ -55,4 +57,12 @@ export default {
|
|
|
55
57
|
ElMessage.error(err.message)
|
|
56
58
|
}
|
|
57
59
|
},
|
|
60
|
+
/**
|
|
61
|
+
* 判断是否有操作权限
|
|
62
|
+
* @param operCode
|
|
63
|
+
* @constructor
|
|
64
|
+
*/
|
|
65
|
+
IsOperationAuth(operCode:string): Boolean {
|
|
66
|
+
return permission.IsOperationAuth(operCode)
|
|
67
|
+
}
|
|
58
68
|
}
|