@zgfe/modules-settings 2.1.0-zhongyuan.22 → 2.1.0-zhongyuan.24

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.
@@ -19,5 +19,6 @@ declare const _default: React.ForwardRefExoticComponent<{
19
19
  name?: string | undefined;
20
20
  appVersion?: number | undefined;
21
21
  currentUser?: any;
22
+ category?: string | undefined;
22
23
  } & React.RefAttributes<React.FC<{}>>>;
23
24
  export default _default;
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import React, { useEffect, forwardRef, useState, useImperativeHandle } from 'react';
8
- import { Form, Input, Alert, Radio } from 'antd';
8
+ import { Form, Input, Alert, Radio, Select } from 'antd';
9
9
  import './index.less';
10
10
  import { classPrefix } from './index';
11
11
  export var AppVersion;
@@ -25,7 +25,9 @@ export var AppVersion;
25
25
  })(AppVersion || (AppVersion = {}));
26
26
  var ApplicationForm = function ApplicationForm(props, ref) {
27
27
  var name = props.name,
28
- currentUser = props.currentUser;
28
+ currentUser = props.currentUser,
29
+ _props$category = props.category,
30
+ category = _props$category === void 0 ? '1' : _props$category;
29
31
  var _useState = useState(true),
30
32
  _useState2 = _slicedToArray(_useState, 2),
31
33
  showChunk = _useState2[0],
@@ -55,9 +57,13 @@ var ApplicationForm = function ApplicationForm(props, ref) {
55
57
  name: 'name',
56
58
  value: name
57
59
  }]);
60
+ form.setFields([{
61
+ name: 'category',
62
+ value: category
63
+ }]);
58
64
  setShowchunk(false);
59
65
  }
60
- }, [name]);
66
+ }, [name, category]);
61
67
  return /*#__PURE__*/React.createElement(Form, {
62
68
  form: form,
63
69
  labelCol: {
@@ -65,7 +71,8 @@ var ApplicationForm = function ApplicationForm(props, ref) {
65
71
  },
66
72
  layout: "horizontal",
67
73
  initialValues: {
68
- appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion
74
+ appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion,
75
+ category: '1'
69
76
  }
70
77
  }, showChunk && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Alert, {
71
78
  className: "".concat(classPrefix, "-alert-info"),
@@ -81,6 +88,29 @@ var ApplicationForm = function ApplicationForm(props, ref) {
81
88
  }, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
82
89
  value: AppVersion.bank
83
90
  }, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))))), /*#__PURE__*/React.createElement(Form.Item, {
91
+ name: "category",
92
+ className: "app-list-form-item"
93
+ }, /*#__PURE__*/React.createElement(Select, {
94
+ options: [{
95
+ value: '1',
96
+ label: '零售'
97
+ }, {
98
+ value: '2',
99
+ label: '公司'
100
+ }, {
101
+ value: '3',
102
+ label: '同业'
103
+ }, {
104
+ value: '4',
105
+ label: '风险'
106
+ }, {
107
+ value: '5',
108
+ label: '内部管理'
109
+ }, {
110
+ value: '6',
111
+ label: '其他'
112
+ }]
113
+ })), /*#__PURE__*/React.createElement(Form.Item, {
84
114
  name: "name",
85
115
  required: true,
86
116
  rules: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.1.0-zhongyuan.22",
3
+ "version": "2.1.0-zhongyuan.24",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "4dc139bed00c6349a80428f7cc7e99cd8b295618",
70
+ "gitHead": "9548e3f0011ea8bb557139247c1f0bf010963986",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }