ztxkui 4.2.18 → 4.2.19

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.
@@ -9,6 +9,7 @@ interface IProps {
9
9
  isEdit: boolean;
10
10
  value?: any;
11
11
  onChange?: any;
12
+ areaTypeName?: string;
12
13
  }
13
14
  declare const SealCheckbox: React.FC<IProps>;
14
15
  interface ISealProps {
@@ -19,6 +20,7 @@ interface ISealProps {
19
20
  sealName: string;
20
21
  sealNo: string;
21
22
  sealCount: number;
23
+ areaTypeName: string;
22
24
  }[];
23
25
  isEdit: boolean;
24
26
  }
@@ -24,10 +24,10 @@ import React from 'react';
24
24
  import { Checkbox, InputNumber, SearchContainer } from '../../../../index';
25
25
  var Item = SearchContainer.SearchItem;
26
26
  var SealCheckbox = function (_a) {
27
- var name = _a.name, id = _a.id, value = _a.value, onChange = _a.onChange, isEdit = _a.isEdit;
27
+ var name = _a.name, id = _a.id, value = _a.value, onChange = _a.onChange, isEdit = _a.isEdit, areaTypeName = _a.areaTypeName;
28
28
  var onCheckboxChange = function (e) {
29
29
  onChange &&
30
- onChange(__assign(__assign({}, (value || {})), { sealName: e.target.checked ? name : null, sealNo: e.target.checked ? id : null }));
30
+ onChange(__assign(__assign({}, (value || {})), { sealName: e.target.checked ? name : null, sealNo: e.target.checked ? id : null, areaTypeName: e.target.checked ? areaTypeName : null }));
31
31
  };
32
32
  var onNumberChange = function (count) {
33
33
  var num = count;
@@ -92,7 +92,7 @@ var SealCheckboxGroup = function (_a) {
92
92
  if (Array.isArray(value)) {
93
93
  itemValue = value.find(function (valueItem) { return valueItem.sealNo === item.sealNo; });
94
94
  }
95
- return (React.createElement(SealCheckbox, { key: item === null || item === void 0 ? void 0 : item.sealNo, name: item === null || item === void 0 ? void 0 : item.sealName, id: item === null || item === void 0 ? void 0 : item.sealNo, value: itemValue, isEdit: isEdit, onChange: function (value, type) {
95
+ return (React.createElement(SealCheckbox, { key: item === null || item === void 0 ? void 0 : item.sealNo, name: item === null || item === void 0 ? void 0 : item.sealName, id: item === null || item === void 0 ? void 0 : item.sealNo, areaTypeName: item === null || item === void 0 ? void 0 : item.areaTypeName, value: itemValue, isEdit: isEdit, onChange: function (value, type) {
96
96
  onChangeHandle(value, index, item.sealNo, type);
97
97
  } }));
98
98
  })));
@@ -310,6 +310,7 @@ var Sinatures = function (_a) {
310
310
  setSealList((_a = res.data.data) === null || _a === void 0 ? void 0 : _a.map(function (item, index) { return ({
311
311
  sealName: item.sealName,
312
312
  sealNo: item.sealNo,
313
+ areaTypeName: item.areaTypeName,
313
314
  }); }));
314
315
  }
315
316
  else {
@@ -568,18 +569,20 @@ var Sinatures = function (_a) {
568
569
  if (xhr.status === 200) {
569
570
  setTbLoading(false);
570
571
  if ((response === null || response === void 0 ? void 0 : response.success) === true) {
572
+ var result_1 = [];
571
573
  var getNewRecord_1 = function (data) {
572
574
  var newRecords = data.slice();
573
575
  newRecords.splice(index, 1);
576
+ result_1 = newRecords;
574
577
  return newRecords;
575
578
  };
576
- if (records.length > 0 && onSigValuesChange) {
577
- onSigValuesChange(sigValuesChange('fileList', getNewRecord_1(records)));
578
- }
579
579
  setRecords(function (preRecords) {
580
580
  return getNewRecord_1(preRecords);
581
581
  });
582
582
  setContractId(null);
583
+ if (records.length > 0 && onSigValuesChange) {
584
+ onSigValuesChange(sigValuesChange('fileList', result_1));
585
+ }
583
586
  message.success('文件删除成功!');
584
587
  }
585
588
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.18",
3
+ "version": "4.2.19",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",