@tddc/assign-modal 1.1.2 → 1.1.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.
|
@@ -119,6 +119,16 @@ var AssignModal = function AssignModal(props) {
|
|
|
119
119
|
|
|
120
120
|
setCheckedKeys(initOrgs);
|
|
121
121
|
setAppKeys(initApps || []);
|
|
122
|
+
onChange && onChange({
|
|
123
|
+
appKeys: appCodes.includes('all') ? ['all'] : initApps,
|
|
124
|
+
checkedKeys: orgCodes.includes('all') ? ['all'] : initOrgs,
|
|
125
|
+
appCheckAll: appCodes.includes('all'),
|
|
126
|
+
orgCheckAll: orgCodes.includes('all'),
|
|
127
|
+
checkData: {
|
|
128
|
+
apps: initApps,
|
|
129
|
+
orgs: initOrgs
|
|
130
|
+
}
|
|
131
|
+
});
|
|
122
132
|
}, [dataItem]);
|
|
123
133
|
|
|
124
134
|
var loopTreeNodes = function loopTreeNodes(data) {
|
|
@@ -244,7 +254,7 @@ var AssignModal = function AssignModal(props) {
|
|
|
244
254
|
});
|
|
245
255
|
} else {
|
|
246
256
|
setAllOrgChecked(false);
|
|
247
|
-
var arr = orgCodes.includes('all') ?
|
|
257
|
+
var arr = orgCodes.includes('all') ? allOrg : orgCodes;
|
|
248
258
|
orgChecks = Array.from(new Set([].concat(_toConsumableArray(arr || []), _toConsumableArray(path))));
|
|
249
259
|
setCheckedKeys(orgChecks);
|
|
250
260
|
onChange({
|
package/lib/AssignModal/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tddc/assign-modal",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
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": "f4555cf2544c81d3579ce12103f41ab31079baa7"
|
|
22
22
|
}
|