@zgfe/modules-settings 2.0.0-zhongyuan.7 → 2.0.0-zhongyuan.8
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.
|
@@ -311,12 +311,26 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
311
311
|
};
|
|
312
312
|
var saveShare = function saveShare() {
|
|
313
313
|
var _currentObj$current4;
|
|
314
|
+
var currentId = undefined;
|
|
315
|
+
if (currentShareType == 1) {
|
|
316
|
+
// 应用
|
|
317
|
+
var a = projectList.filter(function (o) {
|
|
318
|
+
return currentAppArr.includes(o.projectId);
|
|
319
|
+
});
|
|
320
|
+
currentId = a.map(function (o) {
|
|
321
|
+
var _o$appList, _o$appList$;
|
|
322
|
+
return (_o$appList = o.appList) === null || _o$appList === void 0 ? void 0 : (_o$appList$ = _o$appList[0]) === null || _o$appList$ === void 0 ? void 0 : _o$appList$.appId;
|
|
323
|
+
});
|
|
324
|
+
} else if (currentShareType == 2) {
|
|
325
|
+
// 用户
|
|
326
|
+
currentId = currentUserArr;
|
|
327
|
+
}
|
|
314
328
|
request(apis.setting.shareAPP, {
|
|
315
329
|
method: 'post',
|
|
316
330
|
data: {
|
|
317
331
|
type: currentShareType,
|
|
318
332
|
id: (_currentObj$current4 = currentObj.current) === null || _currentObj$current4 === void 0 ? void 0 : _currentObj$current4.id,
|
|
319
|
-
shareIds:
|
|
333
|
+
shareIds: currentId
|
|
320
334
|
}
|
|
321
335
|
}).then(function (res) {
|
|
322
336
|
if (res && (res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
@@ -433,7 +447,7 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
433
447
|
value: 4
|
|
434
448
|
}, "\u6240\u6709\u6210\u5458"), /*#__PURE__*/React.createElement(Radio, {
|
|
435
449
|
value: 1
|
|
436
|
-
}, "\u6307\u5B9A\u5E94\u7528\uFF08\u6240\u6709\u62E5\u6709\u8BE5\u5E94\u7528\u6743\u9650\u7684\u89D2\u8272\uFF09"), currentShareType == 1 ? (/*#__PURE__*/React.createElement(React.Fragment, null, currentAppArr.length >
|
|
450
|
+
}, "\u6307\u5B9A\u5E94\u7528\uFF08\u6240\u6709\u62E5\u6709\u8BE5\u5E94\u7528\u6743\u9650\u7684\u89D2\u8272\uFF09"), currentShareType == 1 ? (/*#__PURE__*/React.createElement(React.Fragment, null, currentAppArr.length > 0 ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
437
451
|
title: function title() {
|
|
438
452
|
return projectList.filter(function (o) {
|
|
439
453
|
return currentAppArr.includes(o.projectId);
|