@zgfe/modules-attribution 1.1.3 → 1.1.4-heyh.0

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.
@@ -34,7 +34,8 @@ var OptionGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
34
34
  panelType = _useState8[0],
35
35
  setPanelType = _useState8[1];
36
36
  var _useContext = useContext(BizGlobalDataContext),
37
- currentApp = _useContext.currentApp;
37
+ currentApp = _useContext.currentApp,
38
+ authority = _useContext.authority;
38
39
  var _useContext2 = useContext(AttributableContext),
39
40
  panelId = _useContext2.panelId,
40
41
  panelName = _useContext2.panelName,
@@ -91,7 +92,7 @@ var OptionGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
91
92
  return /*#__PURE__*/React.createElement("div", {
92
93
  className: classPrefix
93
94
  }, !panelId && enableAddScene && /*#__PURE__*/React.createElement(Button, {
94
- disabled: buttonDisable || searching,
95
+ disabled: buttonDisable || searching || !authority[100061],
95
96
  icon: /*#__PURE__*/React.createElement(IconFont, {
96
97
  className: "".concat(classPrefix, "-icon"),
97
98
  type: "tianjia2"
@@ -101,7 +102,7 @@ var OptionGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
101
102
  setShowSceneDialog(true);
102
103
  }
103
104
  }, "\u6DFB\u52A0\u5230\u5E38\u7528\u573A\u666F"), !panelId && /*#__PURE__*/React.createElement(Button, {
104
- disabled: buttonDisable || searching,
105
+ disabled: buttonDisable || searching || !authority[100062],
105
106
  icon: /*#__PURE__*/React.createElement(IconFont, {
106
107
  className: "".concat(classPrefix, "-icon"),
107
108
  type: "tianjia2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-attribution",
3
- "version": "1.1.3",
3
+ "version": "1.1.4-heyh.0",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "@types/lodash": "^4.14.191",
38
38
  "@umijs/fabric": "^2.8.1",
39
39
  "@umijs/test": "^3.0.5",
40
- "@zgfe/business-lib": "1.1.82-panel.6",
40
+ "@zgfe/business-lib": "1.1.87-auth.7",
41
41
  "antd": "^4.22.6",
42
42
  "dumi": "^1.1.0",
43
43
  "echarts": "^5.3.2",
@@ -50,5 +50,5 @@
50
50
  "react": "^16.12.0 || ^17.0.0",
51
51
  "yorkie": "^2.0.0"
52
52
  },
53
- "gitHead": "ec557b8688b036670f9ba04cc87c9f0d909ad16a"
53
+ "gitHead": "89c851219cd4f9e874c3294161e961c7beda6c94"
54
54
  }