@zgfe/modules-dm 1.0.2-dm.5 → 1.0.2-dm.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.
@@ -329,6 +329,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
329
329
  }).catch(function (err) {
330
330
  message.error('上传失败');
331
331
  });
332
+ return false;
332
333
  }
333
334
  }; // 清空属性值别名excel数据
334
335
 
@@ -8,6 +8,7 @@ interface queryPlanType {
8
8
  interface PropsType {
9
9
  isOpen: number;
10
10
  queryPlanData: queryPlanType;
11
+ updateEventMetas: Function;
11
12
  }
12
13
  declare const CollectionEventList: React.FC<PropsType>;
13
14
  export default CollectionEventList;
@@ -26,6 +26,8 @@ var CollectionEventList = function CollectionEventList(props) {
26
26
  currentApp = _useContext.currentApp,
27
27
  isDemo = _useContext.isDemo;
28
28
 
29
+ var updateEventMetas = props.updateEventMetas;
30
+
29
31
  var _useState = useState(0),
30
32
  _useState2 = _slicedToArray(_useState, 2),
31
33
  total = _useState2[0],
@@ -304,7 +306,8 @@ var CollectionEventList = function CollectionEventList(props) {
304
306
  markTypeFilter: markTypeFilter,
305
307
  isOpen: props.isOpen,
306
308
  queryPlanData: props.queryPlanData,
307
- eventAttrDataHandle: eventAttrDataHandle
309
+ eventAttrDataHandle: eventAttrDataHandle,
310
+ updateEventMetas: updateEventMetas
308
311
  })), eventAttrListShow && /*#__PURE__*/React.createElement(CollectionAttributeList, {
309
312
  isOpen: props.isOpen,
310
313
  queryPlanData: props.queryPlanData,
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- declare const DataCollection: React.FC;
2
+ interface DataCollectionProps {
3
+ updateEventMetas: Function;
4
+ }
5
+ declare const DataCollection: React.FC<DataCollectionProps>;
3
6
  export default DataCollection;
@@ -25,6 +25,8 @@ var DataCollection = function DataCollection(props) {
25
25
  currentApp = _useContext.currentApp,
26
26
  isDemo = _useContext.isDemo;
27
27
 
28
+ var updateEventMetas = props.updateEventMetas;
29
+
28
30
  var _useState = useState(1),
29
31
  _useState2 = _slicedToArray(_useState, 2),
30
32
  listTab = _useState2[0],
@@ -86,7 +88,8 @@ var DataCollection = function DataCollection(props) {
86
88
  key: "2"
87
89
  })), listTab == 1 && /*#__PURE__*/React.createElement(EventList, {
88
90
  isOpen: isOpen,
89
- queryPlanData: queryPlanData
91
+ queryPlanData: queryPlanData,
92
+ updateEventMetas: updateEventMetas
90
93
  }), listTab == 2 && /*#__PURE__*/React.createElement(UserAttributeList, {
91
94
  isOpen: isOpen,
92
95
  queryPlanData: queryPlanData,
@@ -99,6 +99,16 @@
99
99
  }
100
100
  .group-row {
101
101
  border-top: 12px solid #f5f5f5;
102
+ .ant-table-cell-fix-left {
103
+ left: 0px;
104
+ display: block;
105
+ width: 500px;
106
+ background: #fff;
107
+ }
108
+ .ant-table-cell-fix-left-first::after,
109
+ .ant-table-cell-fix-left-last::after {
110
+ box-shadow: none;
111
+ }
102
112
  td {
103
113
  padding: 6px 16px;
104
114
  }
@@ -111,7 +121,7 @@
111
121
  }
112
122
  .group-box {
113
123
  display: flex;
114
- width: 500px;
124
+ width: 800px;
115
125
  line-height: 30px;
116
126
  .ant-input {
117
127
  width: 150px;
@@ -121,13 +131,13 @@
121
131
  margin-right: 4px;
122
132
  font-size: 18px !important;
123
133
  }
124
- .group-text {
125
- display: -webkit-box;
126
- width: 120px;
127
- overflow: hidden;
128
- -webkit-box-orient: vertical;
129
- -webkit-line-clamp: 1;
130
- }
134
+ // .group-text {
135
+ // display: -webkit-box;
136
+ // width: 120px;
137
+ // overflow: hidden;
138
+ // -webkit-box-orient: vertical;
139
+ // -webkit-line-clamp: 1;
140
+ // }
131
141
  .group-handle {
132
142
  margin-left: 30px;
133
143
  cursor: pointer;
@@ -22,6 +22,7 @@ interface queryPlanType {
22
22
  }
23
23
  interface TablePlusType {
24
24
  tableHandleData: DataType[];
25
+ updateEventMetas: Function;
25
26
  Refresh: Function;
26
27
  eventActiveFilter: Function;
27
28
  markTypeFilter: Function;
@@ -29,7 +29,8 @@ var TablePlus = function TablePlus(props) {
29
29
  var classPrefix = 'table-plus';
30
30
  var tableHandleData = props.tableHandleData,
31
31
  queryPlanData = props.queryPlanData,
32
- isOpen = props.isOpen;
32
+ isOpen = props.isOpen,
33
+ updateEventMetas = props.updateEventMetas;
33
34
 
34
35
  var _useContext = useContext(BizGlobalDataContext),
35
36
  currentApp = _useContext.currentApp,
@@ -60,6 +61,8 @@ var TablePlus = function TablePlus(props) {
60
61
  if (res) {
61
62
  message.success('修改成功');
62
63
  props.Refresh();
64
+ console.log(updateEventMetas);
65
+ updateEventMetas != undefined ? updateEventMetas() : null; // 更新store
63
66
  }
64
67
  }).catch(function (err) {
65
68
  message.error('修改失败');
@@ -272,14 +275,16 @@ var TablePlus = function TablePlus(props) {
272
275
  if (eventGroupId != undefined) _temp = {
273
276
  eventGroupId: eventGroupId
274
277
  };
278
+ if (type != 'copy') _temp = _objectSpread(_objectSpread({}, _temp), {}, {
279
+ oldEventGroupId: data.groupId
280
+ });
275
281
  request(apis.operateGroupRelations, {
276
282
  method: 'post',
277
283
  data: _objectSpread({
278
284
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
279
285
  platform: 0,
280
286
  hasPublicAttrView: true,
281
- eventIds: groupCheckedData[data.groupId].join(','),
282
- oldEventGroupId: type == 'copy' ? null : data.groupId
287
+ eventIds: groupCheckedData[data.groupId].join(',')
283
288
  }, _temp)
284
289
  }).then(function (res) {
285
290
  message.success('成功');
@@ -341,15 +346,9 @@ var TablePlus = function TablePlus(props) {
341
346
  className: "group-box"
342
347
  }, /*#__PURE__*/React.createElement(IconFont, {
343
348
  type: "left"
344
- }), /*#__PURE__*/React.createElement(Popover, {
345
- content: function content() {
346
- return record.groupId == -1 ? '未分组' : record.groupName;
347
- },
348
- trigger: "hover",
349
- placement: "top"
350
- }, /*#__PURE__*/React.createElement("span", {
349
+ }), /*#__PURE__*/React.createElement("span", {
351
350
  className: "group-text"
352
- }, record.groupId == -1 ? '未分组' : record.groupName)), ((_groupCheckedData$rec = groupCheckedData[record.groupId]) === null || _groupCheckedData$rec === void 0 ? void 0 : _groupCheckedData$rec.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
351
+ }, record.groupId == -1 ? '未分组' : record.groupName), ((_groupCheckedData$rec = groupCheckedData[record.groupId]) === null || _groupCheckedData$rec === void 0 ? void 0 : _groupCheckedData$rec.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
353
352
  content: function content() {
354
353
  return groupPopoverContent(record, 'move-in');
355
354
  },
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import './styles/index.less';
3
- declare const DataManage: React.FC;
3
+ interface DataManageProps {
4
+ updateEventMetas: Function;
5
+ }
6
+ declare const DataManage: React.FC<DataManageProps>;
4
7
  export default DataManage;
@@ -21,6 +21,7 @@ import DataCollection from '../dataCollection';
21
21
 
22
22
  var DataManage = function DataManage(props) {
23
23
  var classPrefix = 'data-manage';
24
+ var updateEventMetas = props.updateEventMetas;
24
25
 
25
26
  var _useState = useState('0'),
26
27
  _useState2 = _slicedToArray(_useState, 2),
@@ -52,7 +53,9 @@ var DataManage = function DataManage(props) {
52
53
  defaultSelectedKeys: ['0'],
53
54
  onSelect: onSelect,
54
55
  items: items
55
- })), menuTab == '0' && /*#__PURE__*/React.createElement(DataCollection, null), menuTab == '1' && /*#__PURE__*/React.createElement(PlanList, null));
56
+ })), menuTab == '0' && /*#__PURE__*/React.createElement(DataCollection, {
57
+ updateEventMetas: updateEventMetas
58
+ }), menuTab == '1' && /*#__PURE__*/React.createElement(PlanList, null));
56
59
  };
57
60
 
58
61
  export default DataManage;
@@ -194,6 +194,7 @@ var AddPlan = function AddPlan(props) {
194
194
  }).catch(function (err) {
195
195
  message.error('上传失败');
196
196
  });
197
+ return false;
197
198
  }
198
199
  }; // 事件列表-渲染数据
199
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.2-dm.5",
3
+ "version": "1.0.2-dm.7",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "license": "ISC",
@@ -53,7 +53,7 @@
53
53
  "umi-request": "^1.4.0",
54
54
  "yorkie": "^2.0.0"
55
55
  },
56
- "gitHead": "67f8d1ed5d82858a8d44153a22b41cad2a1fe6c8",
56
+ "gitHead": "ebcb846bfe38cd43875714df057c9822d0efe735",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }