@zgfe/modules-whole 1.0.10-zhongyuan.7 → 1.0.10-zhongyuan.9

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.
@@ -100,7 +100,7 @@ var WholeChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
100
100
  }
101
101
  }, [params, props.type]);
102
102
  var fetchResult = function fetchResult() {
103
- var _params$chartType2;
103
+ var _params$chartType2, _params$chartType3;
104
104
  setLoading(true);
105
105
  ajax(Apis.dataList, {
106
106
  method: 'post',
@@ -108,7 +108,7 @@ var WholeChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
108
108
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
109
109
  platform: (params === null || params === void 0 ? void 0 : params.platform) || 0
110
110
  }, params), {}, {
111
- chartType: (params === null || params === void 0 ? void 0 : (_params$chartType2 = params.chartType) === null || _params$chartType2 === void 0 ? void 0 : _params$chartType2.indexOf(',')) === -1 ? params === null || params === void 0 ? void 0 : params.chartType : 'grid'
111
+ chartType: (params === null || params === void 0 ? void 0 : (_params$chartType2 = params.chartType) === null || _params$chartType2 === void 0 ? void 0 : _params$chartType2.indexOf(',')) === -1 ? params === null || params === void 0 ? void 0 : params.chartType : params === null || params === void 0 ? void 0 : (_params$chartType3 = params.chartType) === null || _params$chartType3 === void 0 ? void 0 : _params$chartType3.split(',')[0]
112
112
  })
113
113
  }).then(function (res) {
114
114
  if ((res === null || res === void 0 ? void 0 : res.code) != '101000') {
@@ -46,7 +46,8 @@ var WholeContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
46
46
  first = _useContext.first,
47
47
  setFirst = _useContext.setFirst;
48
48
  var _useContext2 = useContext(BizTargetFromPanelContext),
49
- handleSearch = _useContext2.handleSearch;
49
+ handleSearch = _useContext2.handleSearch,
50
+ disabled = _useContext2.disabled;
50
51
  var _useState = useState(),
51
52
  _useState2 = _slicedToArray(_useState, 2),
52
53
  wholeData = _useState2[0],
@@ -75,6 +76,7 @@ var WholeContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
75
76
  };
76
77
  }, [searchData]);
77
78
  useEffect(function () {
79
+ if (disabled === true) return;
78
80
  handleSearch && handleSearch(loading);
79
81
  }, [loading]);
80
82
  var fetchRequest = function fetchRequest(flag) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-whole",
3
- "version": "1.0.10-zhongyuan.7",
3
+ "version": "1.0.10-zhongyuan.9",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "private": false,
@@ -56,7 +56,7 @@
56
56
  "react": "^16.12.0 || ^17.0.0",
57
57
  "yorkie": "^2.0.0"
58
58
  },
59
- "gitHead": "0d7802d49f7cac9f7fa128ff522eca72b9e97986",
59
+ "gitHead": "0137eeac707d3361ed5c475a390c737ef9619cdb",
60
60
  "gitHooks": {
61
61
  "pre-commit": "lint-staged"
62
62
  }