ztxkui 3.1.18 → 3.1.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.
@@ -52,7 +52,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
52
52
  import React, { useRef, useState } from 'react';
53
53
  // redux
54
54
  // ztxkui公共组件
55
- import { Sinatures, Template } from '../index';
55
+ import { Sinatures } from '../index';
56
56
  import { stringify } from 'qs';
57
57
  // 路由配置
58
58
  // store
@@ -165,7 +165,7 @@ var qunjSeal = {
165
165
  /** 已勾选的契约锁印章id列表 */
166
166
  var electronicSeal = ['2969500030189355150'];
167
167
  var SinaturesDemo = function () {
168
- var _a = useState(0), rIndex = _a[0], setRIndex = _a[1];
168
+ var _a = useState(0), setRIndex = _a[1];
169
169
  var openCustomerModalHandle = function (index) {
170
170
  console.log(index);
171
171
  setRIndex(index);
@@ -199,8 +199,6 @@ var SinaturesDemo = function () {
199
199
  };
200
200
  return (React.createElement("div", null,
201
201
  React.createElement(Sinatures, __assign({ openCustomerModalHandle: openCustomerModalHandle, handleRef: handleRef, request: myRequest }, params)),
202
- React.createElement(Template, { handleRef: handleRef, rIndex: rIndex, templateRef: templateRef, request: myRequest, deptId: "1262999321077198849", memberId: "3334" // 客商id
203
- }),
204
202
  React.createElement("button", { onClick: function () {
205
203
  var _a;
206
204
  console.log((_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.getData());
@@ -3,6 +3,7 @@ interface IProps {
3
3
  codeTypeList: any[];
4
4
  onSearch?: (params: any) => void;
5
5
  initParams?: any;
6
+ request?: any;
6
7
  }
7
8
  declare const _default: React.NamedExoticComponent<IProps>;
8
9
  export default _default;
@@ -34,13 +34,25 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import React, { memo, useEffect, useCallback } from 'react';
37
+ import React, { memo, useEffect, useCallback, useState } from 'react';
38
38
  import { Form, Input, message, EnhanceSelect } from '../../../../index';
39
39
  import SearchContainer from '../../SearchContainer';
40
40
  var SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight, Item = SearchContainer.SearchItem;
41
41
  var SearchForm = function (_a) {
42
- var codeTypeList = _a.codeTypeList, onSearch = _a.onSearch, initParams = _a.initParams;
42
+ var codeTypeList = _a.codeTypeList, onSearch = _a.onSearch, initParams = _a.initParams, request = _a.request;
43
43
  var form = Form.useForm()[0];
44
+ var _b = useState([]), list = _b[0], setList = _b[1];
45
+ useEffect(function () {
46
+ request === null || request === void 0 ? void 0 : request({
47
+ url: "api/zmdms-mdm-data/dict-biz/dictionary",
48
+ method: 'GET',
49
+ params: { code: 'mdm_code_type' },
50
+ }).then(function (res) {
51
+ var _a;
52
+ setList(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || []);
53
+ });
54
+ // setList(ListConst);
55
+ }, [request]);
44
56
  /**提交验证 */
45
57
  var vallidateFn = useCallback(function (callback) { return __awaiter(void 0, void 0, void 0, function () {
46
58
  var err_1, errorFields;
@@ -96,7 +108,7 @@ var SearchForm = function (_a) {
96
108
  React.createElement(SearchContainer, null,
97
109
  React.createElement(SearchLeft, null,
98
110
  React.createElement(Item, { name: "type", label: "\u7F16\u7801\u7C7B\u578B", rules: [{ required: true, message: '请填写编码类型' }] },
99
- React.createElement(EnhanceSelect, { list: codeTypeList, titleKey: "dictValue", dataKey: "dictKey" })),
111
+ React.createElement(EnhanceSelect, { list: list, titleKey: "dictValue", dataKey: "dictKey" })),
100
112
  React.createElement(Item, { name: "name", label: "\u63CF\u8FF0", rules: [{ required: true, message: '请填写描述' }] },
101
113
  React.createElement(Input, { allowClear: true }))),
102
114
  React.createElement(SearchRight, { onSearchHandle: onSearchHandle, onResetHandle: onResetHandle }))));
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  interface ICodeQuery {
7
7
  request: any;
8
8
  onCancel: any;
9
- codeTypeList: any[];
9
+ codeTypeList?: any[];
10
10
  visible?: boolean;
11
11
  }
12
12
  declare const _default: React.NamedExoticComponent<ICodeQuery>;
@@ -31,7 +31,7 @@ var CodeQuery = function (_a) {
31
31
  ]; }, [total, current, pageSize, onPageChange]);
32
32
  return (React.createElement(React.Fragment, null,
33
33
  React.createElement(Modal, { title: "\u7F16\u7801\u67E5\u8BE2\u5DE5\u5177", width: "80%", loading: loading, visible: visible, onCancel: onCancel, maskClosable: false, footer: null, style: { marginTop: '-50px' } },
34
- React.createElement(SearchForm, { codeTypeList: codeTypeList, onSearch: onSearchHandle }),
34
+ React.createElement(SearchForm, { codeTypeList: codeTypeList, onSearch: onSearchHandle, request: request }),
35
35
  React.createElement(TableList, { records: records }),
36
36
  React.createElement(Footer, { footerDom: footerDom, className: "select-footer" }))));
37
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.1.18",
3
+ "version": "3.1.19",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",