@zgfe/modules-settings 1.2.9 → 1.2.10-scenes1.0.1
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/es/modules/companySetting/appList/index.js +25 -9
- package/es/modules/companySetting/appList/index.less +17 -0
- package/es/modules/companySetting/user/index.js +1 -2
- package/es/modules/companySetting/userGroup/authConfigDetail.d.ts +2 -1
- package/es/types/app.d.ts +10 -17
- package/es/types/app.js +11 -1
- package/package.json +3 -3
|
@@ -8,10 +8,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
8
8
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import './index.less';
|
|
10
10
|
import util from './../../../utils/util';
|
|
11
|
-
import { Button, Form, Input, notification } from 'antd';
|
|
11
|
+
import { Button, Form, Input, Radio, notification } from 'antd';
|
|
12
12
|
import request from './../../../utils/ajax';
|
|
13
13
|
import api from './../../../constants/api';
|
|
14
|
-
import { BizTable, BizDialog, BizGlobalDataContext, ajax } from '@zgfe/business-lib';
|
|
14
|
+
import { BizTable, BizDialog, BizGlobalDataContext, ajax, IconFont } from '@zgfe/business-lib';
|
|
15
|
+
import { AppVersion } from '../../../types';
|
|
15
16
|
var reworkAppName = function reworkAppName(name) {
|
|
16
17
|
return name.length > 15 ? "".concat(name.substring(0, 15), "...") : name;
|
|
17
18
|
};
|
|
@@ -262,6 +263,7 @@ var appList = function appList(props) {
|
|
|
262
263
|
});
|
|
263
264
|
};
|
|
264
265
|
var onCreateConfirm = function onCreateConfirm() {
|
|
266
|
+
var _formRef$current2;
|
|
265
267
|
if (inDemoMode()) {
|
|
266
268
|
return;
|
|
267
269
|
}
|
|
@@ -283,7 +285,8 @@ var appList = function appList(props) {
|
|
|
283
285
|
method: 'post',
|
|
284
286
|
data: {
|
|
285
287
|
appName: appNameVal,
|
|
286
|
-
companyId: companyId
|
|
288
|
+
companyId: companyId,
|
|
289
|
+
appVersion: (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.getFieldValue('appVersion')
|
|
287
290
|
}
|
|
288
291
|
}).then(function (res) {
|
|
289
292
|
if (!res) return;
|
|
@@ -319,9 +322,9 @@ var appList = function appList(props) {
|
|
|
319
322
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
320
323
|
type: "primary",
|
|
321
324
|
onClick: function onClick() {
|
|
322
|
-
var _formRef$
|
|
325
|
+
var _formRef$current3;
|
|
323
326
|
setCreatedAppPanel(true);
|
|
324
|
-
(_formRef$
|
|
327
|
+
(_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('appNameVal', '');
|
|
325
328
|
}
|
|
326
329
|
}, "\u65B0\u5EFA\u5E94\u7528")), /*#__PURE__*/React.createElement(BizDialog, {
|
|
327
330
|
title: "\u65B0\u5EFA\u5E94\u7528",
|
|
@@ -339,14 +342,27 @@ var appList = function appList(props) {
|
|
|
339
342
|
className: "dialog-content"
|
|
340
343
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
341
344
|
initialValues: {
|
|
342
|
-
appNameVal: ''
|
|
345
|
+
appNameVal: '',
|
|
346
|
+
appVersion: AppVersion.common
|
|
343
347
|
},
|
|
344
348
|
ref: formRef,
|
|
345
349
|
onValuesChange: function onValuesChange() {
|
|
346
|
-
var _formRef$
|
|
347
|
-
setAppNameVal((_formRef$
|
|
350
|
+
var _formRef$current4;
|
|
351
|
+
setAppNameVal((_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.getFieldValue('appNameVal'));
|
|
348
352
|
}
|
|
349
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
353
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
354
|
+
className: "app-list-version-warning"
|
|
355
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
356
|
+
type: "tishi1"
|
|
357
|
+
}), "\u7248\u672C\u9009\u62E9\u540E\u65E0\u6CD5\u66F4\u6539\uFF0C\u8BF7\u8C28\u614E\u9009\u62E9")), /*#__PURE__*/React.createElement(Form.Item, {
|
|
358
|
+
name: "appVersion"
|
|
359
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
360
|
+
className: "app-version"
|
|
361
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
362
|
+
value: AppVersion.common
|
|
363
|
+
}, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
|
|
364
|
+
value: AppVersion.bank
|
|
365
|
+
}, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
350
366
|
name: 'appNameVal'
|
|
351
367
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
352
368
|
type: 'text',
|
|
@@ -62,4 +62,21 @@
|
|
|
62
62
|
color: #000;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
.app-version .ant-radio-wrapper {
|
|
66
|
+
margin-right: 48px !important;
|
|
67
|
+
}
|
|
68
|
+
&-version-warning {
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: 10px;
|
|
71
|
+
align-items: center;
|
|
72
|
+
padding: 9px 16px;
|
|
73
|
+
color: #021429;
|
|
74
|
+
background-color: #e6f7ff;
|
|
75
|
+
border: 1px solid #91d5ff;
|
|
76
|
+
border-radius: 2px;
|
|
77
|
+
.bsicon {
|
|
78
|
+
color: #1890ff;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
65
82
|
}
|
|
@@ -501,8 +501,7 @@ var User = function User(props) {
|
|
|
501
501
|
dataSource: showMembers,
|
|
502
502
|
columns: columns,
|
|
503
503
|
total: showMembers.length,
|
|
504
|
-
rowKey: "id"
|
|
505
|
-
pageSize: showMembers.length / 10
|
|
504
|
+
rowKey: "id"
|
|
506
505
|
}), /*#__PURE__*/React.createElement("div", null, isAdmin ? /*#__PURE__*/React.createElement("div", {
|
|
507
506
|
style: {
|
|
508
507
|
top: !showMembers.length ? -14 : -64
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style/authConfigDetail.less';
|
|
3
3
|
import { AppListItem, Config, LeftMenusItem } from '../../../types';
|
|
4
|
+
import { UserInfo } from '@zgfe/business-lib/es/context';
|
|
4
5
|
declare const authConfigDetail: React.FC<{
|
|
5
6
|
name?: string;
|
|
6
7
|
authConfig: Config;
|
|
@@ -9,6 +10,6 @@ declare const authConfigDetail: React.FC<{
|
|
|
9
10
|
id?: number;
|
|
10
11
|
groupId?: number;
|
|
11
12
|
type: number;
|
|
12
|
-
serviceType:
|
|
13
|
+
serviceType: UserInfo['serviceType'];
|
|
13
14
|
}>;
|
|
14
15
|
export default authConfigDetail;
|
package/es/types/app.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GlobalContextProps } from '@zgfe/business-lib/es/context';
|
|
2
1
|
import { InterfaceApiResult } from '@zgfe/business-lib/es/utils/type';
|
|
3
2
|
import { AppListItem, Config, LeftMenusItem } from './companySetting';
|
|
4
3
|
export interface IResError {
|
|
@@ -119,22 +118,16 @@ export interface IConfigData {
|
|
|
119
118
|
app_id: number;
|
|
120
119
|
event_id: string[];
|
|
121
120
|
}
|
|
122
|
-
export interface IGlobalContext extends GlobalContextProps {
|
|
123
|
-
currentUser: {
|
|
124
|
-
id: number;
|
|
125
|
-
username: string;
|
|
126
|
-
email: string;
|
|
127
|
-
companyId: number;
|
|
128
|
-
companyName: string;
|
|
129
|
-
serviceType: number;
|
|
130
|
-
secret: string;
|
|
131
|
-
emailNote: string;
|
|
132
|
-
telphone: string;
|
|
133
|
-
};
|
|
134
|
-
envs: {
|
|
135
|
-
[propsName: string]: any;
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
121
|
export interface IEditVirtualSourceRes<T> extends InterfaceApiResult<T> {
|
|
139
122
|
code: string;
|
|
140
123
|
}
|
|
124
|
+
export declare enum AppVersion {
|
|
125
|
+
/**
|
|
126
|
+
* 通用版本: 1
|
|
127
|
+
*/
|
|
128
|
+
common = 1,
|
|
129
|
+
/**
|
|
130
|
+
* 城商行版本: 2
|
|
131
|
+
*/
|
|
132
|
+
bank = 2
|
|
133
|
+
}
|
package/es/types/app.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10-scenes1.0.1",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/lodash": "^4.14.182",
|
|
39
39
|
"@umijs/fabric": "^2.8.1",
|
|
40
40
|
"@umijs/test": "^3.0.5",
|
|
41
|
-
"@zgfe/business-lib": "1.1.
|
|
41
|
+
"@zgfe/business-lib": "1.1.80-dyq.6",
|
|
42
42
|
"@zgfe/modules-demo-manage": "^1.0.1",
|
|
43
43
|
"antd": "4.22.6",
|
|
44
44
|
"dumi": "^1.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "cf817780bb436812a5f0dd8c9d446beb28a792d6",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|