@zgfe/modules-settings 2.1.0-zhongyuan.23 → 2.1.0-zhongyuan.25

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,6 +19,6 @@ declare const _default: React.ForwardRefExoticComponent<{
19
19
  name?: string | undefined;
20
20
  appVersion?: number | undefined;
21
21
  currentUser?: any;
22
- appType?: string | undefined;
22
+ category?: string | undefined;
23
23
  } & React.RefAttributes<React.FC<{}>>>;
24
24
  export default _default;
@@ -26,7 +26,8 @@ export var AppVersion;
26
26
  var ApplicationForm = function ApplicationForm(props, ref) {
27
27
  var name = props.name,
28
28
  currentUser = props.currentUser,
29
- appType = props.appType;
29
+ _props$category = props.category,
30
+ category = _props$category === void 0 ? '1' : _props$category;
30
31
  var _useState = useState(true),
31
32
  _useState2 = _slicedToArray(_useState, 2),
32
33
  showChunk = _useState2[0],
@@ -57,12 +58,12 @@ var ApplicationForm = function ApplicationForm(props, ref) {
57
58
  value: name
58
59
  }]);
59
60
  form.setFields([{
60
- name: 'appType',
61
- value: appType
61
+ name: 'category',
62
+ value: category
62
63
  }]);
63
64
  setShowchunk(false);
64
65
  }
65
- }, [name, appType]);
66
+ }, [name, category]);
66
67
  return /*#__PURE__*/React.createElement(Form, {
67
68
  form: form,
68
69
  labelCol: {
@@ -70,7 +71,8 @@ var ApplicationForm = function ApplicationForm(props, ref) {
70
71
  },
71
72
  layout: "horizontal",
72
73
  initialValues: {
73
- 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'
74
76
  }
75
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, {
76
78
  className: "".concat(classPrefix, "-alert-info"),
@@ -86,27 +88,9 @@ var ApplicationForm = function ApplicationForm(props, ref) {
86
88
  }, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
87
89
  value: AppVersion.bank
88
90
  }, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))))), /*#__PURE__*/React.createElement(Form.Item, {
89
- name: "name",
90
- required: true,
91
- rules: [{
92
- required: true,
93
- validateTrigger: 'submit',
94
- validator: function validator(rule, value, callback) {
95
- if (!value) {
96
- return Promise.reject('应用名称不可为空');
97
- }
98
- return Promise.resolve();
99
- }
100
- }]
101
- }, /*#__PURE__*/React.createElement(Input, {
102
- placeholder: "\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0",
103
- showCount: true,
104
- maxLength: 20
105
- })), /*#__PURE__*/React.createElement(Form.Item, {
106
- name: 'appType',
91
+ name: "category",
107
92
  className: "app-list-form-item"
108
93
  }, /*#__PURE__*/React.createElement(Select, {
109
- defaultValue: "1",
110
94
  options: [{
111
95
  value: '1',
112
96
  label: '零售'
@@ -126,6 +110,23 @@ var ApplicationForm = function ApplicationForm(props, ref) {
126
110
  value: '6',
127
111
  label: '其他'
128
112
  }]
113
+ })), /*#__PURE__*/React.createElement(Form.Item, {
114
+ name: "name",
115
+ required: true,
116
+ rules: [{
117
+ required: true,
118
+ validateTrigger: 'submit',
119
+ validator: function validator(rule, value, callback) {
120
+ if (!value) {
121
+ return Promise.reject('应用名称不可为空');
122
+ }
123
+ return Promise.resolve();
124
+ }
125
+ }]
126
+ }, /*#__PURE__*/React.createElement(Input, {
127
+ placeholder: "\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0",
128
+ showCount: true,
129
+ maxLength: 20
129
130
  })), showChunk && (/*#__PURE__*/React.createElement(Form.Item, {
130
131
  style: {
131
132
  color: '#9AA1A9'
@@ -138,7 +138,7 @@ var UserGroup = function UserGroup(props) {
138
138
  setCreateAppLoading(true);
139
139
  var msg = '';
140
140
  var params = _objectSpread(_objectSpread({}, value), {}, {
141
- password: "ZG_".concat(value.email).concat(getDate()),
141
+ password: "Aa111111",
142
142
  id: userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id,
143
143
  roleIds: value === null || value === void 0 ? void 0 : (_value$roleIds = value.roleIds) === null || _value$roleIds === void 0 ? void 0 : _value$roleIds.map(function (item) {
144
144
  return item.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.1.0-zhongyuan.23",
3
+ "version": "2.1.0-zhongyuan.25",
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": "12c1d4ab5b6ebbeb66299e23aa8f9726672d02d8",
70
+ "gitHead": "f9bbe18ea9f27c0a392e59cea858f430bea25292",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }