kts-components-document-access-point 1.4.9 → 1.4.10

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/dist/index.esm.js CHANGED
@@ -3048,10 +3048,15 @@ function modalcomfirm(props) {
3048
3048
  return s.targetId;
3049
3049
  }, []);
3050
3050
 
3051
- var _useState = useState([]),
3051
+ var _useState = useState(false),
3052
3052
  _useState2 = _slicedToArray(_useState, 2),
3053
- targetList = _useState2[0],
3054
- setTargetList = _useState2[1];
3053
+ loading = _useState2[0],
3054
+ setloading = _useState2[1];
3055
+
3056
+ var _useState3 = useState([]),
3057
+ _useState4 = _slicedToArray(_useState3, 2),
3058
+ targetList = _useState4[0],
3059
+ setTargetList = _useState4[1];
3055
3060
 
3056
3061
  useEffect(function () {
3057
3062
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -3089,9 +3094,8 @@ function modalcomfirm(props) {
3089
3094
  }, []);
3090
3095
  var handleOk = useCallback(function () {
3091
3096
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
3092
- var _DocumentsService$ins2;
3097
+ var note, data, _DocumentsService$ins2, res;
3093
3098
 
3094
- var note, data, res;
3095
3099
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
3096
3100
  while (1) {
3097
3101
  switch (_context2.prev = _context2.next) {
@@ -3107,14 +3111,21 @@ function modalcomfirm(props) {
3107
3111
  senderParticipantNote: note && note.remarkName
3108
3112
  });
3109
3113
  });
3110
- _context2.next = 4;
3114
+
3115
+ if (loading) {
3116
+ _context2.next = 9;
3117
+ break;
3118
+ }
3119
+
3120
+ setloading(true);
3121
+ _context2.next = 6;
3111
3122
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
3112
3123
  url: '/schema/config/batchSend',
3113
3124
  data: data,
3114
3125
  type: 'post'
3115
3126
  });
3116
3127
 
3117
- case 4:
3128
+ case 6:
3118
3129
  res = _context2.sent;
3119
3130
 
3120
3131
  if (res.res) {
@@ -3123,14 +3134,16 @@ function modalcomfirm(props) {
3123
3134
  props.handleCancel();
3124
3135
  }
3125
3136
 
3126
- case 6:
3137
+ setloading(false);
3138
+
3139
+ case 9:
3127
3140
  case "end":
3128
3141
  return _context2.stop();
3129
3142
  }
3130
3143
  }
3131
3144
  }, _callee2);
3132
3145
  }))();
3133
- }, [targetId, targetList]);
3146
+ }, [targetId, targetList, loading]);
3134
3147
  var gotoSendlist = useCallback(function () {
3135
3148
  controller.pipeline( /*#__PURE__*/function () {
3136
3149
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
@@ -3711,7 +3724,7 @@ var PageHeader = (function () {
3711
3724
  }));
3712
3725
  });
3713
3726
 
3714
- var css_248z$3 = ".header {\n padding: 10px 0px;\n display: flex;\n align-items: center;\n}\n.header .buttonGroup {\n margin-right: 20px;\n white-space: nowrap;\n}\n.header .buttons {\n text-align: right;\n flex: 1;\n white-space: nowrap;\n}\n.tabel-action {\n padding: 0 5px;\n font-size: 12px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #0074ff;\n white-space: nowrap;\n cursor: pointer;\n}\n.ktsAntX-xui-page-header-foot {\n overflow: inherit !important;\n}\n.ktsAntX-table .ktsAntX-table-thead > tr > th {\n background: #fafafa !important;\n}\n.ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before {\n box-shadow: none !important;\n}\n.fixheight .ktsAntX-table .ktsAntX-table-thead > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table-tbody > tr > td,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > td {\n padding: 5px 16px;\n height: 50px;\n}\n.ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before {\n opacity: 0;\n}\n";
3727
+ var css_248z$3 = ".header {\n padding: 10px 0px;\n display: flex;\n align-items: center;\n}\n.header .buttonGroup {\n margin-right: 20px;\n white-space: nowrap;\n}\n.header .buttons {\n text-align: right;\n flex: 1;\n white-space: nowrap;\n}\n.tabel-action {\n padding: 0 5px;\n font-size: 12px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #0074ff;\n white-space: nowrap;\n cursor: pointer;\n}\n";
3715
3728
  styleInject(css_248z$3);
3716
3729
 
3717
3730
  var attributionEnum = {
package/dist/index.js CHANGED
@@ -3062,10 +3062,15 @@ function modalcomfirm(props) {
3062
3062
  return s.targetId;
3063
3063
  }, []);
3064
3064
 
3065
- var _useState = React.useState([]),
3065
+ var _useState = React.useState(false),
3066
3066
  _useState2 = _slicedToArray(_useState, 2),
3067
- targetList = _useState2[0],
3068
- setTargetList = _useState2[1];
3067
+ loading = _useState2[0],
3068
+ setloading = _useState2[1];
3069
+
3070
+ var _useState3 = React.useState([]),
3071
+ _useState4 = _slicedToArray(_useState3, 2),
3072
+ targetList = _useState4[0],
3073
+ setTargetList = _useState4[1];
3069
3074
 
3070
3075
  React.useEffect(function () {
3071
3076
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -3103,9 +3108,8 @@ function modalcomfirm(props) {
3103
3108
  }, []);
3104
3109
  var handleOk = React.useCallback(function () {
3105
3110
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
3106
- var _DocumentsService$ins2;
3111
+ var note, data, _DocumentsService$ins2, res;
3107
3112
 
3108
- var note, data, res;
3109
3113
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
3110
3114
  while (1) {
3111
3115
  switch (_context2.prev = _context2.next) {
@@ -3121,14 +3125,21 @@ function modalcomfirm(props) {
3121
3125
  senderParticipantNote: note && note.remarkName
3122
3126
  });
3123
3127
  });
3124
- _context2.next = 4;
3128
+
3129
+ if (loading) {
3130
+ _context2.next = 9;
3131
+ break;
3132
+ }
3133
+
3134
+ setloading(true);
3135
+ _context2.next = 6;
3125
3136
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
3126
3137
  url: '/schema/config/batchSend',
3127
3138
  data: data,
3128
3139
  type: 'post'
3129
3140
  });
3130
3141
 
3131
- case 4:
3142
+ case 6:
3132
3143
  res = _context2.sent;
3133
3144
 
3134
3145
  if (res.res) {
@@ -3137,14 +3148,16 @@ function modalcomfirm(props) {
3137
3148
  props.handleCancel();
3138
3149
  }
3139
3150
 
3140
- case 6:
3151
+ setloading(false);
3152
+
3153
+ case 9:
3141
3154
  case "end":
3142
3155
  return _context2.stop();
3143
3156
  }
3144
3157
  }
3145
3158
  }, _callee2);
3146
3159
  }))();
3147
- }, [targetId, targetList]);
3160
+ }, [targetId, targetList, loading]);
3148
3161
  var gotoSendlist = React.useCallback(function () {
3149
3162
  controller.pipeline( /*#__PURE__*/function () {
3150
3163
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
@@ -3725,7 +3738,7 @@ var PageHeader = (function () {
3725
3738
  }));
3726
3739
  });
3727
3740
 
3728
- var css_248z$3 = ".header {\n padding: 10px 0px;\n display: flex;\n align-items: center;\n}\n.header .buttonGroup {\n margin-right: 20px;\n white-space: nowrap;\n}\n.header .buttons {\n text-align: right;\n flex: 1;\n white-space: nowrap;\n}\n.tabel-action {\n padding: 0 5px;\n font-size: 12px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #0074ff;\n white-space: nowrap;\n cursor: pointer;\n}\n.ktsAntX-xui-page-header-foot {\n overflow: inherit !important;\n}\n.ktsAntX-table .ktsAntX-table-thead > tr > th {\n background: #fafafa !important;\n}\n.ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before {\n box-shadow: none !important;\n}\n.fixheight .ktsAntX-table .ktsAntX-table-thead > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table-tbody > tr > td,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > td {\n padding: 5px 16px;\n height: 50px;\n}\n.ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before {\n opacity: 0;\n}\n";
3741
+ var css_248z$3 = ".header {\n padding: 10px 0px;\n display: flex;\n align-items: center;\n}\n.header .buttonGroup {\n margin-right: 20px;\n white-space: nowrap;\n}\n.header .buttons {\n text-align: right;\n flex: 1;\n white-space: nowrap;\n}\n.tabel-action {\n padding: 0 5px;\n font-size: 12px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #0074ff;\n white-space: nowrap;\n cursor: pointer;\n}\n";
3729
3742
  styleInject(css_248z$3);
3730
3743
 
3731
3744
  var attributionEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-components-document-access-point",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "dumi dev",
@@ -35,7 +35,7 @@
35
35
  "kts-component-service": "^1.0.4",
36
36
  "kts-components": "^1.2.26",
37
37
  "kts-components-antd-x4": "^4.0.3",
38
- "kts-xui": "1.0.6",
38
+ "kts-xui": "^1.0.31",
39
39
  "lodash": "^4.17.21",
40
40
  "moment": "2.29.1",
41
41
  "query-string": "^7.0.1",
@@ -21,21 +21,21 @@
21
21
  white-space: nowrap;
22
22
  cursor: pointer;
23
23
  }
24
- .ktsAntX-xui-page-header-foot{
25
- overflow: inherit !important;
26
- }
27
- .ktsAntX-table .ktsAntX-table-thead > tr > th{
28
- background:#fafafa !important
29
- }
30
- .ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before{
31
- box-shadow:none !important;
32
- }
33
- .fixheight {
34
- .ktsAntX-table .ktsAntX-table-thead > tr > th, .ktsAntX-table .ktsAntX-table-tbody > tr > td, .ktsAntX-table .ktsAntX-table tfoot > tr > th, .ktsAntX-table .ktsAntX-table tfoot > tr > td{
35
- padding: 5px 16px;
36
- height: 50px;
37
- }
38
- }
39
- .ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before{
40
- opacity: 0;
41
- }
24
+ // .ktsAntX-xui-page-header-foot{
25
+ // overflow: inherit !important;
26
+ // }
27
+ // .ktsAntX-table .ktsAntX-table-thead > tr > th{
28
+ // background:#fafafa !important
29
+ // }
30
+ // .ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before{
31
+ // box-shadow:none !important;
32
+ // }
33
+ // .fixheight {
34
+ // .ktsAntX-table .ktsAntX-table-thead > tr > th, .ktsAntX-table .ktsAntX-table-tbody > tr > td, .ktsAntX-table .ktsAntX-table tfoot > tr > th, .ktsAntX-table .ktsAntX-table tfoot > tr > td{
35
+ // padding: 5px 16px;
36
+ // height: 50px;
37
+ // }
38
+ // }
39
+ // .ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before{
40
+ // opacity: 0;
41
+ // }
@@ -10,6 +10,7 @@ export default function modalcomfirm(props: any) {
10
10
  const history = useHistory();
11
11
  const controller = Main.useController();
12
12
  const targetId = controller.useMemo(s => s.targetId, [])
13
+ const [loading, setloading] = useState(false);
13
14
  const [targetList, setTargetList] = useState<any[]>([]);
14
15
  useEffect(() => {
15
16
  (async () => {
@@ -34,20 +35,25 @@ export default function modalcomfirm(props: any) {
34
35
  senderParticipantNote: note && note.remarkName
35
36
  };
36
37
  });
37
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/batchSend', data: data, type: 'post' }) as any;
38
- if (res.res) {
39
- gotoSendlist();
40
- message.success('操作成功');
41
- props.handleCancel()
38
+
39
+ if (!loading) {
40
+ setloading(true)
41
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/batchSend', data: data, type: 'post' }) as any;
42
+ if (res.res) {
43
+ gotoSendlist();
44
+ message.success('操作成功');
45
+ props.handleCancel()
46
+ }
47
+ setloading(false)
42
48
  }
43
49
  })()
44
- }, [targetId,targetList]);
50
+ }, [targetId, targetList,loading]);
45
51
  const gotoSendlist = useCallback(() => {
46
52
  controller.pipeline(async s => {
47
53
  s.type = 2;
48
54
  if (selectItems.length === 1) {
49
55
  s.params = { configNumber: selectItems[0].configNumber }
50
- s.selectedRowKey=[];
56
+ s.selectedRowKey = [];
51
57
  }
52
58
  history.push({ pathname: `/rulelist`, state: { type: 2 } })
53
59
  })()