@zgfe/modules-settings 1.2.20-role.25 → 1.2.20-role.26

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.
@@ -367,9 +367,7 @@ var RoleList = function RoleList(props) {
367
367
  groupType: item.groupType || 0,
368
368
  json: JSON.parse(item.json)
369
369
  });
370
- item.isAllUser = JSON.parse(item.json) ? 0 : 1;
371
370
  });
372
- console.log('authGroupList', authGroupList);
373
371
  if (authGroupList === null || authGroupList === void 0 ? void 0 : authGroupList.length) setAPPCondition(authGroupList);
374
372
  form.setFieldsValue(_objectSpread(_objectSpread({}, res === null || res === void 0 ? void 0 : res.data), {}, {
375
373
  appIds: usListArr === null || usListArr === void 0 ? void 0 : usListArr.map(function (item) {
@@ -473,6 +471,12 @@ var RoleList = function RoleList(props) {
473
471
  return item.app_id;
474
472
  }) || []);
475
473
  setSelectArr(arr);
474
+ // let authInfoParam = {
475
+ // appId: appId,
476
+ // platform: 0,
477
+ // allUser: isAllUser,
478
+ // data: JSON.stringify({ color: '#8db3e2', name: 0, groupType: 0, json: [] }),
479
+ // };
476
480
  if (arr.includes(1) && arr.includes(2) && arr.includes(3)) {
477
481
  // 三种应用都存在
478
482
  setAppVersionFl(arr.includes(1) && arr.includes(2) && arr.includes(3));
@@ -777,11 +781,9 @@ var RoleList = function RoleList(props) {
777
781
  var currentJson = appCondition.filter(function (item) {
778
782
  return item.appId === option.app_id;
779
783
  });
780
- console.log('currentJson', currentJson);
781
784
  if (currentJson && currentJson.length) {
782
785
  var _currentJson$;
783
- console.log('currentJson[0].allUser', currentJson[0].isAllUser);
784
- setIsAllUser(currentJson[0].isAllUser);
786
+ setIsAllUser(currentJson[0].allUser);
785
787
  setCurrentJson(currentJson[0].data ? JSON.parse((_currentJson$ = currentJson[0]) === null || _currentJson$ === void 0 ? void 0 : _currentJson$.data).json : JSON.parse(currentJson[0].json));
786
788
  } else {
787
789
  setIsAllUser(1);
@@ -831,7 +833,6 @@ var RoleList = function RoleList(props) {
831
833
  } else {
832
834
  newAppCondition.push(authInfoParam);
833
835
  }
834
- console.log('newAppCondition', newAppCondition);
835
836
  setAPPCondition(newAppCondition);
836
837
  }
837
838
  return /*#__PURE__*/React.createElement(Spin, {
@@ -18,12 +18,12 @@ var SetDataRangeDialog = function SetDataRangeDialog(props) {
18
18
  setCurrentJson(data);
19
19
  }
20
20
  function onConfirm() {
21
- console.log('currentJson', currentJson);
22
- console.log('isAllUser', isAllUser);
23
- if (currentJson.length || !isAllUser) {
24
- var res = util.validateUserCondition(currentJson);
25
- if (res) return message.error(res);
21
+ if (!currentJson.length || isAllUser) {
22
+ setIsModalOpen(false);
23
+ return;
26
24
  }
25
+ var res = util.validateUserCondition(currentJson);
26
+ if (res) return message.error(res);
27
27
  setConditionFn(currentSelectAppInfo.app_id, currentJson, isAllUser);
28
28
  setIsModalOpen(false);
29
29
  setCurrentJson([]);
@@ -51,7 +51,7 @@ var SetDataRangeDialog = function SetDataRangeDialog(props) {
51
51
  }
52
52
  }, /*#__PURE__*/React.createElement(Radio, {
53
53
  value: 1
54
- }, "\u5168\u90E8\u6570\u636E"), /*#__PURE__*/React.createElement(Radio, {
54
+ }, "\u5168\u90E8\u6570\u636E", isAllUser), /*#__PURE__*/React.createElement(Radio, {
55
55
  value: 0
56
56
  }, "\u7B5B\u9009\u7528\u6237")), !isAllUser ? /*#__PURE__*/React.createElement("li", {
57
57
  className: "group-config condition"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "1.2.20-role.25",
3
+ "version": "1.2.20-role.26",
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": "b8999505f1bb6c9445fca6cc42cf6e9777a26862",
54
+ "gitHead": "045cfa054f72123a3b36d7914ab9c99d8efd6183",
55
55
  "gitHooks": {
56
56
  "pre-commit": "lint-staged"
57
57
  }