@zgfe/modules-dm 1.0.2-dm.16 → 1.0.2-dm.18

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.
@@ -99,18 +99,20 @@ var AddPlan = function AddPlan(props) {
99
99
 
100
100
  var exportHandleChange = function exportHandleChange(e) {
101
101
  // console.log(e, selectedRowKeys);
102
+ if (e == '1' && selectedRowKeys.length <= 0) {
103
+ message.error('当前未选中数据,无法导出');
104
+ return;
105
+ }
106
+
102
107
  var _selectedRowKeys = selectedRowKeys.map(function (item) {
103
108
  return item.split('&*&')[0];
104
- }); // console.log(e, selectedRowKeys);
105
-
109
+ });
106
110
 
107
111
  if (listTab == '1') {
108
112
  window.open("".concat(apis.downloadPlanEvent, "?appId=").concat(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, "&planId=").concat(props.detailId, "&eventName").concat(e == '0' ? '' : '=' + _selectedRowKeys));
109
113
  } else {
110
114
  window.open("".concat(apis.downloadPlanProp, "?appId=").concat(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, "&planId=").concat(props.detailId, "&propName").concat(e == '0' ? '' : '=' + _selectedRowKeys));
111
115
  }
112
-
113
- setExportValue('导出');
114
116
  };
115
117
 
116
118
  var _useState7 = useState(false),
@@ -651,12 +653,6 @@ var AddPlan = function AddPlan(props) {
651
653
  setSearchTotal(userAttrData.length);
652
654
  }
653
655
  }, [listTab, eventListData, userAttrData]);
654
-
655
- var _useState37 = useState('导出'),
656
- _useState38 = _slicedToArray(_useState37, 2),
657
- exportValue = _useState38[0],
658
- setExportValue = _useState38[1];
659
-
660
656
  return /*#__PURE__*/React.createElement(Drawer, {
661
657
  width: '70%',
662
658
  placement: "right",
@@ -715,7 +711,7 @@ var AddPlan = function AddPlan(props) {
715
711
  width: 84
716
712
  },
717
713
  placeholder: "\u5BFC\u51FA",
718
- value: exportValue,
714
+ value: "\u5BFC\u51FA",
719
715
  onChange: exportHandleChange
720
716
  }, /*#__PURE__*/React.createElement(Option, {
721
717
  value: "0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.2-dm.16",
3
+ "version": "1.0.2-dm.18",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "license": "ISC",
@@ -41,7 +41,7 @@
41
41
  "@types/lodash": "^4.14.182",
42
42
  "@umijs/fabric": "^2.8.1",
43
43
  "@umijs/test": "^3.0.5",
44
- "@zgfe/business-lib": "1.1.7-dmd.3",
44
+ "@zgfe/business-lib": "1.1.7-dmd2.5",
45
45
  "antd": "4.22.6",
46
46
  "dumi": "^1.1.0",
47
47
  "father-build": "^1.17.2",
@@ -53,7 +53,7 @@
53
53
  "umi-request": "^1.4.0",
54
54
  "yorkie": "^2.0.0"
55
55
  },
56
- "gitHead": "0fa9c6f10383ff544fb92fceec9980654b514d07",
56
+ "gitHead": "88153f3f23cf0c07f486a6fcb90cf59084438f3a",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }