@zgfe/modules-dm 1.0.35 → 1.0.37-sessopm.0
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/components/demo.js
CHANGED
|
@@ -23,6 +23,7 @@ import EventFilter from './eventFilter';
|
|
|
23
23
|
import SelectAttributes from './selectAttributes';
|
|
24
24
|
import _ from 'lodash';
|
|
25
25
|
var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
26
|
+
var _formSubmitData$event;
|
|
26
27
|
var classPrefix = 'create-virtual-drawer';
|
|
27
28
|
var createVirtualShow = props.createVirtualShow,
|
|
28
29
|
setCreateVirtualShow = props.setCreateVirtualShow,
|
|
@@ -267,7 +268,7 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
267
268
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
268
269
|
type: "primary",
|
|
269
270
|
htmlType: "submit",
|
|
270
|
-
disabled: !formSubmit
|
|
271
|
+
disabled: !formSubmit || virtualDrawerType === 'edit' && (editVirtualEventData === null || editVirtualEventData === void 0 ? void 0 : editVirtualEventData.isStop) === 1 && (formSubmitData === undefined || formSubmitData && ((_formSubmitData$event = formSubmitData.eventJson) === null || _formSubmitData$event === void 0 ? void 0 : _formSubmitData$event.length) <= 0)
|
|
271
272
|
}, "\u4FDD\u5B58"))), /*#__PURE__*/React.createElement(SelectAttributes, {
|
|
272
273
|
selectAttributesShow: selectAttributesShow,
|
|
273
274
|
setSelectAttributesShow: setSelectAttributesShow,
|
|
File without changes
|
|
@@ -13,6 +13,7 @@ import { getAppID } from '../../utils';
|
|
|
13
13
|
import EventList from './collectionEventList';
|
|
14
14
|
import CollectionAttributeList from './collectionAttributeList';
|
|
15
15
|
import VirtualEventList from './virtualEventList';
|
|
16
|
+
import { SessionManage } from '@zgfe/modules-session';
|
|
16
17
|
var DataCollection = function DataCollection(props) {
|
|
17
18
|
var _props$extraTabs, _props$extraTabs2;
|
|
18
19
|
var classPrefix = 'data-collection';
|
|
@@ -76,7 +77,9 @@ var DataCollection = function DataCollection(props) {
|
|
|
76
77
|
value: 3
|
|
77
78
|
}, "\u865A\u62DF\u4E8B\u4EF6"), authority[100021] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
78
79
|
value: 2
|
|
79
|
-
}, "\u7528\u6237\u5C5E\u6027\u7BA1\u7406"),
|
|
80
|
+
}, "\u7528\u6237\u5C5E\u6027\u7BA1\u7406"), authority[1701310624] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
81
|
+
value: "session"
|
|
82
|
+
}, "Session\u7BA1\u7406"), (_props$extraTabs = props.extraTabs) === null || _props$extraTabs === void 0 ? void 0 : _props$extraTabs.map(function (item) {
|
|
80
83
|
return /*#__PURE__*/React.createElement(Radio.Button, {
|
|
81
84
|
key: item.key,
|
|
82
85
|
value: item.key,
|
|
@@ -89,7 +92,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
89
92
|
isOpen: isOpen,
|
|
90
93
|
queryPlanData: queryPlanData,
|
|
91
94
|
source: "user"
|
|
92
|
-
}), (_props$extraTabs2 = props.extraTabs) === null || _props$extraTabs2 === void 0 ? void 0 : _props$extraTabs2.map(function (item) {
|
|
95
|
+
}), listTab == 'session' && authority[1701310624] && /*#__PURE__*/React.createElement(SessionManage, null), (_props$extraTabs2 = props.extraTabs) === null || _props$extraTabs2 === void 0 ? void 0 : _props$extraTabs2.map(function (item) {
|
|
93
96
|
return listTab === item.key ? /*#__PURE__*/React.createElement("div", {
|
|
94
97
|
key: item.key
|
|
95
98
|
}, item.children) : null;
|
package/es/utils/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* 虚拟事件编辑 判断内容是否有改动;有改动返回true
|
|
3
3
|
*/
|
|
4
4
|
export var getVirtualContentChange = function getVirtualContentChange(oldData, newData) {
|
|
5
|
+
if (oldData.isStop === 1) return false;
|
|
5
6
|
var eventJson = function eventJson(_old, _new) {
|
|
6
7
|
var flag = 0;
|
|
7
8
|
if (_old.length !== _new.length) {
|
|
@@ -70,7 +71,7 @@ export var getSubmitHandleData = function getSubmitHandleData(selectAttributes,
|
|
|
70
71
|
if (eventAttr.hasOwnProperty(item.eventId)) {
|
|
71
72
|
item.attrs = eventAttr[item.eventId];
|
|
72
73
|
} else {
|
|
73
|
-
item.attrs = [
|
|
74
|
+
item.attrs = [''];
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
return submitData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37-sessopm.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -40,18 +40,19 @@
|
|
|
40
40
|
"@umijs/fabric": "^2.8.1",
|
|
41
41
|
"@umijs/test": "^3.0.5",
|
|
42
42
|
"@zgfe/business-lib": "1.2.3-heyh.1",
|
|
43
|
+
"@zgfe/modules-session": "1.0.1-alpha.1",
|
|
43
44
|
"antd": "4.24.10",
|
|
44
45
|
"dumi": "^1.1.0",
|
|
45
46
|
"father-build": "^1.17.2",
|
|
46
47
|
"gh-pages": "^3.0.0",
|
|
47
|
-
"lerna": "^
|
|
48
|
+
"lerna": "^4.0.0",
|
|
48
49
|
"lint-staged": "^10.0.7",
|
|
49
50
|
"lodash": "^4.17.21",
|
|
50
51
|
"prettier": "^2.2.1",
|
|
51
52
|
"umi-request": "^1.4.0",
|
|
52
53
|
"yorkie": "^2.0.0"
|
|
53
54
|
},
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "a549a9990b4acee97db13a3661109a46ad6f83ef",
|
|
55
56
|
"gitHooks": {
|
|
56
57
|
"pre-commit": "lint-staged"
|
|
57
58
|
}
|