ns-base-module 1.1.68 → 1.1.69
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.
|
@@ -32,7 +32,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
32
32
|
// import { initLang } from "@/utils/language";
|
|
33
33
|
import { CopyOutlined, DeleteOutlined, PlusOutlined, SettingOutlined, ShareAltOutlined, UserOutlined } from "@ant-design/icons";
|
|
34
34
|
import { Button, Checkbox, Input, message, Popconfirm, Popover, Radio, Tooltip, Tree } from "antd";
|
|
35
|
-
import { cloneDeep, isArray, isEmpty } from "lodash";
|
|
35
|
+
import { cloneDeep, get, isArray, isEmpty } from "lodash";
|
|
36
36
|
import React, { memo, useEffect, useMemo, useState } from "react";
|
|
37
37
|
import { DndProvider } from "react-dnd";
|
|
38
38
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
@@ -707,6 +707,18 @@ var ColumnsToolbar = function ColumnsToolbar(_ref4) {
|
|
|
707
707
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
708
708
|
curItem = _useState20[0],
|
|
709
709
|
setCurItem = _useState20[1];
|
|
710
|
+
var mode = useMemo(function () {
|
|
711
|
+
try {
|
|
712
|
+
var userInfoStr = window.localStorage.getItem("userInfo");
|
|
713
|
+
if (userInfoStr) {
|
|
714
|
+
var userInfo = JSON.parse(userInfoStr);
|
|
715
|
+
return get(userInfo, "userPreferenceConfig.mode", "");
|
|
716
|
+
}
|
|
717
|
+
return "";
|
|
718
|
+
} catch (error) {
|
|
719
|
+
return "";
|
|
720
|
+
}
|
|
721
|
+
}, []);
|
|
710
722
|
var saveTempale = /*#__PURE__*/function () {
|
|
711
723
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
712
724
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -1177,7 +1189,7 @@ var ColumnsToolbar = function ColumnsToolbar(_ref4) {
|
|
|
1177
1189
|
type: "primary"
|
|
1178
1190
|
}, initLang({
|
|
1179
1191
|
id: "button.set.default"
|
|
1180
|
-
}))), (curItem === null || curItem === void 0 ? void 0 : curItem.perms_type) == "public" && /*#__PURE__*/React.createElement(React.Fragment, null, (curItem === null || curItem === void 0 ? void 0 : curItem.is_default_public) === "Y" ? /*#__PURE__*/React.createElement(Button, {
|
|
1192
|
+
}))), (curItem === null || curItem === void 0 ? void 0 : curItem.perms_type) == "public" && mode === "DEV" && /*#__PURE__*/React.createElement(React.Fragment, null, (curItem === null || curItem === void 0 ? void 0 : curItem.is_default_public) === "Y" ? /*#__PURE__*/React.createElement(Button, {
|
|
1181
1193
|
onClick: function onClick() {
|
|
1182
1194
|
return handleSaveDefault("N", "public");
|
|
1183
1195
|
},
|