@zgfe/business-lib 1.2.50-ljy.1 → 1.2.50-ljy.3
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/es/addToPanel/index.js +4 -2
- package/package.json +2 -2
package/es/addToPanel/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import _ from 'lodash';
|
|
|
27
27
|
import WholeChart from './components/wholeChart';
|
|
28
28
|
export var classPrefix = 'biz-addtopanel';
|
|
29
29
|
var BizAddToPanel = function BizAddToPanel(props) {
|
|
30
|
-
var _props$params2, _props$defaultValue2;
|
|
30
|
+
var _props$params2, _props$defaultValue2, _props$defaultValue3;
|
|
31
31
|
var refForm = useRef();
|
|
32
32
|
var _useState = useState(false),
|
|
33
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -93,6 +93,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
93
93
|
searchParam.appId = searchParam['app_id'];
|
|
94
94
|
}
|
|
95
95
|
searchParam.chartType = form.chartType || props.params.chartType;
|
|
96
|
+
if (searchParam.refresh !== undefined) searchParam.refresh = false;
|
|
97
|
+
delete searchParam.refreshMark;
|
|
96
98
|
form.extendTarget ? searchParam.extendTarget = form.extendTarget : null;
|
|
97
99
|
var resData = {
|
|
98
100
|
data: searchParam,
|
|
@@ -246,7 +248,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
246
248
|
onFinish: onSubmit,
|
|
247
249
|
initialValues: Object.assign(((_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.overall) ? {
|
|
248
250
|
showList: 'dynamic',
|
|
249
|
-
chartType: ((_props$defaultValue2 = props.defaultValue) === null || _props$defaultValue2 === void 0 ? void 0 : _props$defaultValue2.chartType)
|
|
251
|
+
chartType: ((_props$defaultValue2 = props.defaultValue) === null || _props$defaultValue2 === void 0 ? void 0 : _props$defaultValue2.chartType.indexOf('number')) != -1 ? 'number' : (_props$defaultValue3 = props.defaultValue) === null || _props$defaultValue3 === void 0 ? void 0 : _props$defaultValue3.chartType
|
|
250
252
|
} : {}, props.defaultValue),
|
|
251
253
|
requiredMark: false
|
|
252
254
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.50-ljy.
|
|
3
|
+
"version": "1.2.50-ljy.3",
|
|
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": "
|
|
58
|
+
"gitHead": "c4f0cc6980edd36c0400e193a662c4957b329f03",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|