@zgfe/business-lib 1.2.34-lijingyu1538.4 → 1.2.34-lijingyu1538.7
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.
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
1
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -61,8 +65,14 @@ var BizOperateList = function BizOperateList(props) {
|
|
|
61
65
|
optionData = specialOperate;
|
|
62
66
|
} else {
|
|
63
67
|
optionData = stringOperate;
|
|
64
|
-
if (
|
|
65
|
-
optionData =
|
|
68
|
+
if (props === null || props === void 0 ? void 0 : props.supportNPlace) {
|
|
69
|
+
optionData = [].concat(_toConsumableArray(optionData), [{
|
|
70
|
+
name: '第N位是',
|
|
71
|
+
value: '{n}th place is'
|
|
72
|
+
}, {
|
|
73
|
+
name: '第N位不是',
|
|
74
|
+
value: '{n}th place not is'
|
|
75
|
+
}]);
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useContext
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
2
|
import { Space, Tooltip } from 'antd';
|
|
3
3
|
import { PlusOutlined } from '@ant-design/icons';
|
|
4
4
|
import './styles/conditionTypeList.less';
|
|
@@ -23,11 +23,6 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
23
23
|
_useContext2$authorit = _useContext2.authority,
|
|
24
24
|
authority = _useContext2$authorit === void 0 ? {} : _useContext2$authorit;
|
|
25
25
|
if (!show || textMode) return null;
|
|
26
|
-
useEffect(function () {
|
|
27
|
-
console.log('ConditionTypeList', (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' && (openBusinessDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2));
|
|
28
|
-
console.log('currentUser', currentUser);
|
|
29
|
-
console.log('currentApp', currentApp);
|
|
30
|
-
}, []);
|
|
31
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
32
27
|
className: "biz-user-condition-type-list"
|
|
33
28
|
}, label ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -190,7 +190,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
190
190
|
return request(Apis.queryMetaDatasetList, {
|
|
191
191
|
method: 'post',
|
|
192
192
|
data: {
|
|
193
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
193
|
+
appId: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) ? currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId : currentApp === null || currentApp === void 0 ? void 0 : currentApp.id
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
case 3:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.34-lijingyu1538.
|
|
3
|
+
"version": "1.2.34-lijingyu1538.7",
|
|
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": "2e0a20354dba23dfe9e5c7a950c74434f0069798",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|