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

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,14 +34,14 @@ 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,
41
42
  elementId = _useContext2.elementId,
42
43
  buttonDisable = _useContext2.buttonDisable,
43
44
  searching = _useContext2.searching,
44
- enableAddScene = _useContext2.enableAddScene,
45
45
  afterEditTarget = _useContext2.afterEditTarget;
46
46
  useImperativeHandle(ref, function () {
47
47
  return {
@@ -90,8 +90,8 @@ var OptionGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
90
90
  };
91
91
  return /*#__PURE__*/React.createElement("div", {
92
92
  className: classPrefix
93
- }, !panelId && enableAddScene && /*#__PURE__*/React.createElement(Button, {
94
- disabled: buttonDisable || searching,
93
+ }, !panelId && /*#__PURE__*/React.createElement(Button, {
94
+ disabled: buttonDisable || searching || !authority[100061],
95
95
  icon: /*#__PURE__*/React.createElement(IconFont, {
96
96
  className: "".concat(classPrefix, "-icon"),
97
97
  type: "tianjia2"
@@ -101,7 +101,7 @@ var OptionGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
101
101
  setShowSceneDialog(true);
102
102
  }
103
103
  }, "\u6DFB\u52A0\u5230\u5E38\u7528\u573A\u666F"), !panelId && /*#__PURE__*/React.createElement(Button, {
104
- disabled: buttonDisable || searching,
104
+ disabled: buttonDisable || searching || !authority[100062],
105
105
  icon: /*#__PURE__*/React.createElement(IconFont, {
106
106
  className: "".concat(classPrefix, "-icon"),
107
107
  type: "tianjia2"
@@ -107,7 +107,6 @@ var AttributionHome = function AttributionHome(props) {
107
107
  setButtonDisable: setButtonDisable,
108
108
  panelDisabled: props.panelDisabled,
109
109
  includeToday: props.includeToday,
110
- enableAddScene: !props.defaultValue || props.defaultValue.source === 'attribution',
111
110
  changeLoading: changeLoading,
112
111
  afterEditTarget: props.afterEditTarget
113
112
  }
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.1",
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": "5b67aed3a555fed93591d5e0b020145e4685a000"
54
54
  }