@tddc/assign-modal 1.1.1 → 1.1.2
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.
|
@@ -141,7 +141,7 @@ var AssignModal = function AssignModal(props) {
|
|
|
141
141
|
node: item
|
|
142
142
|
}),
|
|
143
143
|
item: item,
|
|
144
|
-
disabled: orgDisabled || disabled
|
|
144
|
+
disabled: orgDisabled || disabled || allOrgChecked
|
|
145
145
|
}, loopTreeNodes(item.children, level + 1));
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -235,7 +235,7 @@ var AssignModal = function AssignModal(props) {
|
|
|
235
235
|
onChange({
|
|
236
236
|
appKeys: allAppChecked ? ['all'] : appKeys,
|
|
237
237
|
checkedKeys: ['all'],
|
|
238
|
-
appCheckAll:
|
|
238
|
+
appCheckAll: allAppChecked,
|
|
239
239
|
orgCheckAll: true,
|
|
240
240
|
checkData: {
|
|
241
241
|
apps: appKeys,
|
|
@@ -244,12 +244,13 @@ var AssignModal = function AssignModal(props) {
|
|
|
244
244
|
});
|
|
245
245
|
} else {
|
|
246
246
|
setAllOrgChecked(false);
|
|
247
|
-
|
|
247
|
+
var arr = orgCodes.includes('all') ? allApp : orgCodes;
|
|
248
|
+
orgChecks = Array.from(new Set([].concat(_toConsumableArray(arr || []), _toConsumableArray(path))));
|
|
248
249
|
setCheckedKeys(orgChecks);
|
|
249
250
|
onChange({
|
|
250
251
|
appKeys: allAppChecked ? ['all'] : appKeys,
|
|
251
252
|
checkedKeys: orgChecks,
|
|
252
|
-
appCheckAll:
|
|
253
|
+
appCheckAll: allAppChecked,
|
|
253
254
|
orgCheckAll: false,
|
|
254
255
|
checkData: {
|
|
255
256
|
apps: appKeys,
|
|
@@ -281,7 +282,8 @@ var AssignModal = function AssignModal(props) {
|
|
|
281
282
|
});
|
|
282
283
|
} else {
|
|
283
284
|
setAllAppChecked(false);
|
|
284
|
-
|
|
285
|
+
var arr = appCodes.includes('all') ? allApp : appCodes;
|
|
286
|
+
appChecks = Array.from(new Set([].concat(_toConsumableArray(arr || []), [appCode])));
|
|
285
287
|
setAppKeys(appChecks);
|
|
286
288
|
onChange({
|
|
287
289
|
appKeys: appChecks,
|
|
@@ -316,8 +318,8 @@ var AssignModal = function AssignModal(props) {
|
|
|
316
318
|
checkedKeys: checkedKeys,
|
|
317
319
|
defaultExpandAll: true,
|
|
318
320
|
onCheck: onCheck,
|
|
319
|
-
disabled:
|
|
320
|
-
}, loopTreeNodes(orgList))), /*#__PURE__*/_react.default.createElement("div", {
|
|
321
|
+
disabled: true
|
|
322
|
+
}, loopTreeNodes(orgList, 0))), /*#__PURE__*/_react.default.createElement("div", {
|
|
321
323
|
className: "right"
|
|
322
324
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
323
325
|
className: "menu-header"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tddc/assign-modal",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Layout",
|
|
5
5
|
"author": "zj <jun.zhang002383@tongdun.net>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"jsencrypt": "^3.2.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "12b2d87f0ca80cfe05cf4a23cb9cdcde8d5b752e"
|
|
22
22
|
}
|