@zgfe/business-lib 1.2.70-hxd.27 → 1.2.70-hxd.28

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.
@@ -15,7 +15,6 @@ import BizGlobalDataContext from '../../context';
15
15
  import BizSelect from '../../select';
16
16
  import request from '../../utils/ajax';
17
17
  import { OperateTypes } from '../types';
18
- import { util } from '../../utils';
19
18
  import _ from 'lodash';
20
19
  var StringList = function StringList(props) {
21
20
  var _props$attr;
@@ -116,20 +115,16 @@ var StringList = function StringList(props) {
116
115
  });
117
116
  } else {
118
117
  var requestData = {
119
- app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
118
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
120
119
  platform: 0,
121
120
  limit: 20,
122
121
  attr: (attrData === null || attrData === void 0 ? void 0 : attrData.id) || 0,
123
- dimension_sub: attrData === null || attrData === void 0 ? void 0 : attrData.dimensionSub,
122
+ dimensionsub: attrData === null || attrData === void 0 ? void 0 : attrData.dimensionSub,
124
123
  v: searchValue || ''
125
124
  };
126
- var formData = util.transformRequest(requestData);
127
125
  request(Apis.esQuery, {
128
126
  method: 'post',
129
- data: formData,
130
- headers: {
131
- 'Content-Type': 'application/x-www-form-urlencoded'
132
- }
127
+ data: requestData
133
128
  }).then(function (result) {
134
129
  setOptions(function () {
135
130
  return result && result.sources ? result.sources.map(function (item) {
@@ -1,7 +1,7 @@
1
1
  var Apis = {
2
2
  querySceneGroup: '/zg/web/v2/scene/queryScenesOfGroup',
3
3
  addScene: '/zg/web/v2/scene/addScene',
4
- esQuery: '/data/queryEsData.jsp',
4
+ esQuery: '/zg/web/v2/data/queryEsData',
5
5
  addPanel: '/zg/web/v2/apppanel/addPanelElement',
6
6
  updatePanelTarget: '/zg/web/v2/apppanel/updateElement',
7
7
  queryPanelGroup: '/zg/web/v2/apppanel/panels',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.70-hxd.27",
3
+ "version": "1.2.70-hxd.28",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "6649b376cde1660df03f7d5b4d46403654d78e4b",
58
+ "gitHead": "4ac6adfc0ba6c68d2c02791ebb8b1d7e22d651e0",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }