@zgfe/modules-settings 1.2.10-scenes1.0.1 → 1.2.10-scenes1.0.3
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.
|
@@ -44,7 +44,8 @@ var appList = function appList(props) {
|
|
|
44
44
|
createAppCallback = props.createAppCallback,
|
|
45
45
|
closeCreateCallback = props.closeCreateCallback;
|
|
46
46
|
var _useContext = useContext(BizGlobalDataContext),
|
|
47
|
-
system = _useContext.system
|
|
47
|
+
system = _useContext.system,
|
|
48
|
+
currentUser = _useContext.currentUser;
|
|
48
49
|
var _useState = useState(false),
|
|
49
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
50
51
|
createdAppPanel = _useState2[0],
|
|
@@ -350,7 +351,7 @@ var appList = function appList(props) {
|
|
|
350
351
|
var _formRef$current4;
|
|
351
352
|
setAppNameVal((_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.getFieldValue('appNameVal'));
|
|
352
353
|
}
|
|
353
|
-
}, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
354
|
+
}, (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
354
355
|
className: "app-list-version-warning"
|
|
355
356
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
356
357
|
type: "tishi1"
|
|
@@ -362,7 +363,7 @@ var appList = function appList(props) {
|
|
|
362
363
|
value: AppVersion.common
|
|
363
364
|
}, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
|
|
364
365
|
value: AppVersion.bank
|
|
365
|
-
}, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
366
|
+
}, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C")))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
366
367
|
name: 'appNameVal'
|
|
367
368
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
368
369
|
type: 'text',
|
|
@@ -34,7 +34,8 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
34
34
|
var apisOkNum = 0;
|
|
35
35
|
var _useContext = useContext(BizGlobalDataContext),
|
|
36
36
|
envs = _useContext.envs,
|
|
37
|
-
getMenuRouterByName = _useContext.getMenuRouterByName
|
|
37
|
+
getMenuRouterByName = _useContext.getMenuRouterByName,
|
|
38
|
+
currentApp = _useContext.currentApp;
|
|
38
39
|
var _ref = envs || {},
|
|
39
40
|
zgText = _ref.zgText,
|
|
40
41
|
showVirtualApp = _ref.showVirtualApp,
|
|
@@ -200,7 +201,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
200
201
|
request(api.app.queryLeftMenus, {
|
|
201
202
|
method: 'get',
|
|
202
203
|
params: {
|
|
203
|
-
appId:
|
|
204
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
204
205
|
}
|
|
205
206
|
}).then(function (res) {
|
|
206
207
|
var menus = res && res.data || [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.10-scenes1.0.
|
|
3
|
+
"version": "1.2.10-scenes1.0.3",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "0697f4a3bcd5f770250a81c7eec83483cc29b4ef",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|