Auto Submit

pull/1/head
autosubmit 2 years ago
parent 785402a9ee
commit eb2711a05a

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10375,15569,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10375,15569,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12312,15569,54747,73168,18080,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12312,15569,54747,73168,18080,64802,34668,54512,25156,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15569,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15569,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16856,15569,19523,18900,34712,66469,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16856,15569,19523,18900,34712,66469,10375,64802,34668,54512,25156],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18080,15569,12312,54747,73168,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18080,15569,12312,54747,73168,64802,34668,54512,25156,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18900,15569,19523,34712,66469,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18900,15569,19523,34712,66469,10375,64802,34668,54512,25156],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1913,79125,83012,38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1913,79125,83012,38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19188,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19188,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19523,15569,18900,34712,66469,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19523,15569,18900,34712,66469,10375,64802,34668,54512,25156],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -0,0 +1,781 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25156,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38329);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 38854:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_dropdown; }
});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(93319);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
var space = __webpack_require__(81327);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(47211);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const DropdownButton = props => {
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'default',
danger,
disabled,
loading,
onClick,
htmlType,
children,
className,
menu,
arrow,
autoFocus,
overlay,
trigger,
align,
open,
onOpenChange,
placement,
getPopupContainer,
href,
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
title,
buttonsRender = buttons => buttons,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
} = props,
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
const buttonPrefixCls = `${prefixCls}-button`;
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
const dropdownProps = {
menu,
arrow,
autoFocus,
align,
disabled,
trigger: disabled ? [] : trigger,
onOpenChange,
getPopupContainer: getPopupContainer || getContextPopupContainer,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
};
const {
compactSize,
compactItemClassnames
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const classes = _classnames_2_3_2_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
if ('overlay' in props) {
dropdownProps.overlay = overlay;
}
if ('open' in props) {
dropdownProps.open = open;
}
if ('placement' in props) {
dropdownProps.placement = placement;
} else {
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
}
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
disabled: disabled,
loading: loading,
onClick: onClick,
htmlType: htmlType,
href: href,
title: title
}, children);
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
};
DropdownButton.__ANT_BUTTON = true;
/* harmony default export */ var dropdown_button = (DropdownButton);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
"use client";
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ }),
/***/ 1056:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
var form_context = __webpack_require__(32441);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
var style = __webpack_require__(9937);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(9432);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38329);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(15997);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js
var omit = __webpack_require__(99468);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js
var es_ref = __webpack_require__(88831);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(59412);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(46820);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
"use client";
var Search_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ space; }
});
// UNUSED EXPORTS: SpaceContext
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(45659);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
latestIndex: 0
});
const SpaceContextProvider = SpaceContext.Provider;
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
"use client";
const Item = _ref => {
let {
className,
index,
children,
split,
style
} = _ref;
const {
latestIndex
} = _react_17_0_2_react.useContext(SpaceContext);
if (children === null || children === undefined) {
return null;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: className,
style: style
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${className}-split`
}, split));
};
/* harmony default export */ var space_Item = (Item);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
var space_style = __webpack_require__(2856);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
function isPresetSize(size) {
return ['small', 'middle', 'large'].includes(size);
}
function isValidGapNumber(size) {
if (!size) {
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
return false;
}
return typeof size === 'number' && !Number.isNaN(size);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
var _a, _b;
const {
getPrefixCls,
space,
direction: directionConfig
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
align,
className,
rootClassName,
children,
direction = 'horizontal',
prefixCls: customizePrefixCls,
split,
style,
wrap = false,
classNames: customClassNames,
styles
} = props,
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
const isPresetVerticalSize = isPresetSize(verticalSize);
const isPresetHorizontalSize = isPresetSize(horizontalSize);
const isValidVerticalSize = isValidGapNumber(verticalSize);
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
const childNodes = (0,toArray/* default */.Z)(children, {
keepEmpty: true
});
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
const prefixCls = getPrefixCls('space', customizePrefixCls);
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
const cls = _classnames_2_3_2_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
}, className, rootClassName);
const itemClassName = _classnames_2_3_2_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
// Calculate latest one
let latestIndex = 0;
const nodes = childNodes.map((child, i) => {
var _a, _b;
if (child !== null && child !== undefined) {
latestIndex = i;
}
const key = child && child.key || `${itemClassName}-${i}`;
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
className: itemClassName,
key: key,
index: i,
split: split,
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
}, child);
});
const spaceContext = _react_17_0_2_react.useMemo(() => ({
latestIndex
}), [latestIndex]);
// =========================== Render ===========================
if (childNodes.length === 0) {
return null;
}
const gapStyle = {};
if (wrap) {
gapStyle.flexWrap = 'wrap';
}
if (!isPresetHorizontalSize && isValidHorizontalSize) {
gapStyle.columnGap = horizontalSize;
}
if (!isPresetVerticalSize && isValidVerticalSize) {
gapStyle.rowGap = verticalSize;
}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
ref: ref,
className: cls,
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
value: spaceContext
}, nodes)));
});
if (false) {}
const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ })
}]);

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25223,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25223,64802,34668,54512,25156],{
/***/ 66549:
/*!**********************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27315,15569,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27315,15569,10375,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27829,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27829,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29414,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29414,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30701,79125,83012,1913,38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30701,79125,83012,1913,38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34668,64802,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34668,64802,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34712,15569,19523,18900,66469,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34712,15569,19523,18900,66469,10375,64802,34668,54512,25156],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38077,85794,15569,12312,54747,73168,18080,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38077,85794,15569,12312,54747,73168,18080,64802,34668,54512,25156,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47358,15569,77915,10375,64802,34668,54512,16703],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47358,15569,77915,10375,64802,34668,54512,25156,16703],{
/***/ 75769:
/*!*******************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54512,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54512,64802,34668,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54747,15569,12312,73168,18080,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54747,15569,12312,73168,18080,64802,34668,54512,25156,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[57889,27829,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[57889,27829,64802,34668,54512,25156],{
/***/ 47966:
/*!********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61169,79125,83012,1913,38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61169,79125,83012,1913,38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61952,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61952,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[66469,15569,19523,18900,34712,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[66469,15569,19523,18900,34712,10375,64802,34668,54512,25156],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72274,15569,27315,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72274,15569,27315,10375,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73168,15569,12312,54747,18080,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73168,15569,12312,54747,18080,64802,34668,54512,25156,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[75430,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[75430,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79399,15569,19523,18900,34712,66469,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79399,15569,19523,18900,34712,66469,10375,64802,34668,54512,25156],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82563,2595,55127,89360,64447,38177,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82563,2595,55127,89360,64447,38177,64802,34668,54512,25156,21105],{
/***/ 47966:
/*!********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[83012,79125,1913,38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[83012,79125,1913,38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86750,15569,79125,30701,83012,1913,10375,38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86750,15569,79125,30701,83012,1913,10375,38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[89995,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[89995,64802,34668,54512,25156],{
/***/ 28720:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94439,79125,30701,83012,1913,38177,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94439,79125,30701,83012,1913,38177,64802,34668,54512,25156],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98040,15569,10375,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98040,15569,10375,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -638,20 +638,38 @@ var Banner = function Banner(_ref) {
var virtual_spacesId = params.virtual_spacesId;
var _virtualSpaces$menus = virtualSpaces.menus,
menus = _virtualSpaces$menus === void 0 ? [] : _virtualSpaces$menus;
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
// 页面销毁前记录下当前布局信息
window.addEventListener('beforeunload', function (event) {
// localStorage.setItem('vtrsModuleId', '');
});
(0,_react_17_0_2_react.useEffect)(function () {
if (menus.length) {
var _location$pathname$sp;
var active = ((_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3]) || 'homepage';
setActiveKey(active);
// const keys = renderList().map(e => e.icon_type)
// if (keys.includes(active)) {
// setActiveKey(active);
// } else {
// setActiveKey(keys[0]);
// }
if (searchParams.get('leftMenuId')) {
setActiveKey(searchParams.get('leftMenuId'));
window.localStorage.setItem('vtrsModuleId', searchParams.get('leftMenuId'));
} else {
if (menus.length) {
var _location$pathname$sp;
if (!window.localStorage.getItem('vtrsModuleId') || !((_location$pathname$sp = location.pathname.split('/')) !== null && _location$pathname$sp !== void 0 && _location$pathname$sp[3])) {
var _menus$, _menus$2;
setActiveKey(menus === null || menus === void 0 || (_menus$ = menus[0]) === null || _menus$ === void 0 ? void 0 : _menus$.id);
window.localStorage.setItem('vtrsModuleId', menus === null || menus === void 0 || (_menus$2 = menus[0]) === null || _menus$2 === void 0 ? void 0 : _menus$2.id);
} else {
for (var i in menus) {
var _menus$i;
if ((menus === null || menus === void 0 || (_menus$i = menus[i]) === null || _menus$i === void 0 ? void 0 : _menus$i.module_url) == location.pathname) {
var _menus$i2, _menus$i3;
setActiveKey(menus === null || menus === void 0 || (_menus$i2 = menus[i]) === null || _menus$i2 === void 0 ? void 0 : _menus$i2.id);
window.localStorage.setItem('vtrsModuleId', menus === null || menus === void 0 || (_menus$i3 = menus[i]) === null || _menus$i3 === void 0 ? void 0 : _menus$i3.id);
}
}
}
}
}
}, [location.pathname, menus]);
}, [menus, location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
getMenus();
}, []);
@ -698,20 +716,34 @@ var Banner = function Banner(_ref) {
var icon_type = item.icon_type,
icon = item.icon,
name = item.name,
module_url = item.module_url;
module_url = item.module_url,
id = item.id;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: module_url,
to: module_url + '?leftMenuId=' + id,
onClick: function onClick() {
return setActiveKey(icon_type);
//重置菜单
for (var i in menus) {
var _menus$i4, _menus$i5;
if (((_menus$i4 = menus[i]) === null || _menus$i4 === void 0 ? void 0 : _menus$i4.id) == activeKey && ((_menus$i5 = menus[i]) === null || _menus$i5 === void 0 ? void 0 : _menus$i5.icon_type) == 'settings') {
dispatch({
type: 'virtualSpaces/getVirtualSpacesMenus',
payload: {
id: virtual_spacesId
}
});
}
}
setActiveKey(id);
window.localStorage.setItem('vtrsModuleId', id);
},
className: activeKey === icon_type ? LeftPlanMenusmodules.active : '',
className: activeKey == id ? LeftPlanMenusmodules.active : '',
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: icon
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: name,
children: name
})]
}, icon_type);
}, id);
})
})
});
@ -788,6 +820,10 @@ var listPlanLibrary = [{
icon_type: "resources",
name: "教学资源",
icon: 'iconfont icon-jiaoxueziyuan'
}, {
icon_type: "digtal",
name: "数字课堂",
icon: 'iconfont icon-shuziketang'
},
// {
// icon_type: "contribute",

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90337,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90337,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16328,15569,12312,54747,73168,18080,64802,34668,54512,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16328,15569,12312,54747,73168,18080,64802,34668,54512,25156,21105],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98062,64802,34668,54512],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98062,64802,34668,54512,25156],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -3811,7 +3811,7 @@ var AddAndEdit = function AddAndEdit(_ref) {
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1 && (res === null || res === void 0 ? void 0 : res.status) !== 403) {
message/* default */.ZP.success('操作成功');
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
setBtnLoading(false);
case 8:
@ -3830,7 +3830,7 @@ var AddAndEdit = function AddAndEdit(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: id ? '编辑公告' : '发布新公告',
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: "mt20",
@ -3873,7 +3873,7 @@ var AddAndEdit = function AddAndEdit(_ref) {
return form.submit();
},
cancelClick: function cancelClick() {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
cancelTitle: "\u53D6\u6D88",
className: "mb25"

@ -145,7 +145,7 @@ var Detail = function Detail(_ref) {
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('删除成功');
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
case 4:
case "end":
@ -165,13 +165,13 @@ var Detail = function Detail(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: "\u901A\u77E5\u516C\u544A\u8BE6\u60C5",
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,
children: [(data === null || data === void 0 ? void 0 : data.can_edit) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/").concat(id, "/edit"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/").concat(id, "/edit?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "primary-hover",

@ -110,8 +110,11 @@ var Page = function Page(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
params = _useState8[0],
setParams = _useState8[1];
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.module_url === location.pathname;
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
(0,_react_17_0_2_react.useEffect)(function () {
getData(params);
@ -208,7 +211,7 @@ var Page = function Page(_ref) {
onChange: function onChange() {},
tabBarExtraContent: permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(ui_customization/* CustomButton */.op, {
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/announcement/add"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/announcement/add?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 18,
@ -230,7 +233,7 @@ var Page = function Page(_ref) {
className: Announcementmodules.list,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/announcement/").concat(item.id, "/detail"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/announcement/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Announcementmodules.title,
@ -276,7 +279,7 @@ var Page = function Page(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/announcement/").concat(item.id, "/edit"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/announcement/").concat(item.id, "/edit?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
className: "primary-hover",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {

@ -0,0 +1,887 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67589],{
/***/ 73208:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__.Z = (noData);
/***/ }),
/***/ 92364:
/*!***************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/DigitalTopics/index.tsx + 3 modules ***!
\***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ DigitalTopics; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(26801);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(11006);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
var _umi_production_exports = __webpack_require__(49266);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(41867);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(73208);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/DigitalTopics/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var DigitalTopicsmodules = ({"flex_box_center":"flex_box_center___Rnm3q","flex_space_between":"flex_space_between___nRwGo","flex_box_vertical_center":"flex_box_vertical_center___uDVyV","flex_box_center_end":"flex_box_center_end___ECrdZ","flex_box_column":"flex_box_column___kBaOF","wrap":"wrap___KmeFa","dataDiv":"dataDiv___JXtBq","item_data":"item_data___zWMwd","item_data_content":"item_data_content___N5QQ7","item_data_button":"item_data_button___gVxEX","FileListDiv":"FileListDiv___dC2hh","FileItem":"FileItem____gvjM","FileItemUse":"FileItemUse___FQ06R","file_name":"file_name___dhlos","footer":"footer___BRkIa"});
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 34 modules
var ui_customization = __webpack_require__(94540);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(13186);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(1056);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(6557);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/DigitalTopics/AddOrEdit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddOrEditmodules = ({"flex_box_center":"flex_box_center___uRCSD","flex_space_between":"flex_space_between___tvdXV","flex_box_vertical_center":"flex_box_vertical_center___ymBGe","flex_box_center_end":"flex_box_center_end___HJZ3N","flex_box_column":"flex_box_column___T1kxI","form":"form___ENxpD","btn":"btn___bNIzG","img":"img___bxPJt"});
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(23875);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(78130);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(48796);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/DigitalTopics/AddOrEdit/index.tsx
var AddOrEdit = function AddOrEdit(_ref) {
var _fileList$3;
var visible = _ref.visible,
dialogData = _ref.dialogData,
keydom = _ref.keydom,
onOk = _ref.onOk,
onCancel = _ref.onCancel,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '' : _ref$title;
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
btnLoading = _useState2[0],
setBtnLoading = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
fileList = _useState4[0],
setFileList = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
imgLoading = _useState6[0],
setImgLoading = _useState6[1];
var query = (0,_umi_production_exports.useParams)();
(0,_react_17_0_2_react.useEffect)(function () {
if (dialogData !== null && dialogData !== void 0 && dialogData.id) {
var _dialogData$cover, _dialogData$cover2;
form.setFieldsValue(objectSpread2_default()(objectSpread2_default()({}, dialogData), {}, {
cover_id: dialogData === null || dialogData === void 0 || (_dialogData$cover = dialogData.cover) === null || _dialogData$cover === void 0 ? void 0 : _dialogData$cover.id
}));
if (dialogData !== null && dialogData !== void 0 && (_dialogData$cover2 = dialogData.cover) !== null && _dialogData$cover2 !== void 0 && _dialogData$cover2.id) {
var _dialogData$cover3;
setFileList([objectSpread2_default()(objectSpread2_default()({}, dialogData === null || dialogData === void 0 ? void 0 : dialogData.cover), {}, {
response: {
id: dialogData === null || dialogData === void 0 || (_dialogData$cover3 = dialogData.cover) === null || _dialogData$cover3 === void 0 ? void 0 : _dialogData$cover3.id
}
})]);
} else {
setFileList([]);
}
}
}, [keydom]);
var handleOk = function handleOk() {
form.submit();
};
var handleCancel = function handleCancel() {
onCancel();
};
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var _fileList$;
var param;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setBtnLoading(true);
param = objectSpread2_default()(objectSpread2_default()({}, values), {}, {
cover_id: (fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id) || ''
});
onOk(param);
case 3:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleFinish(_x) {
return _ref2.apply(this, arguments);
};
}();
var handleFileChange = function handleFileChange(info) {
form.setFieldsValue({
cover_id: ''
});
var statusList = ["uploading", "done", "removed"];
if (statusList.includes(info.file.status)) {
var _info$fileList;
if (info.file.status === 'uploading') {
setImgLoading(true);
}
if (info.file.status === 'done') {
setImgLoading(false);
}
setFileList(info.fileList);
form.setFieldsValue({
cover_id: (_info$fileList = info.fileList) === null || _info$fileList === void 0 || (_info$fileList = _info$fileList[0]) === null || _info$fileList === void 0 || (_info$fileList = _info$fileList.response) === null || _info$fileList === void 0 ? void 0 : _info$fileList.id
});
}
};
var handleFileRemove = function handleFileRemove(file) {
setFileList([]);
};
var handleFileBeforeUpload = function handleFileBeforeUpload(file) {
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
if (!isJpgOrPng) {
message/* default */.ZP.error('请上传jpg或png的图片!');
return Promise.reject();
}
var is150M = file.size / 1024 / 1024 > 2;
if (is150M) {
message/* default */.ZP.info('文件大小必须小于2MB');
return Promise.reject();
}
setFileList([]);
return true;
};
var renderImg = function renderImg() {
var _fileList$2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.img,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.API_SERVER + "/api/attachments/" + (fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id),
alt: "avatar",
style: {
width: '100%'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
onClick: function onClick() {
setFileList([]);
form.setFieldsValue({
cover_id: ''
});
},
style: {
fontSize: '16px',
color: 'red'
}
})
})]
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
title: "".concat(dialogData !== null && dialogData !== void 0 && dialogData.id ? '编辑' : '新建').concat(title),
open: visible,
onOk: handleOk,
centered: true,
onCancel: handleCancel
// confirmLoading={btnLoading}
,
okButtonProps: {
disabled: imgLoading
},
width: 686,
afterClose: function afterClose() {
setBtnLoading(false);
setFileList([]);
form.resetFields();
},
okText: '确认',
cancelText: "\u53D6\u6D88",
wrapClassName: resetmodules/* default */.Z.CustomCss,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
colon: false,
labelCol: {
span: 4
},
wrapperCol: {
span: 18
},
onFinish: handleFinish,
className: AddOrEditmodules.form,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6807\u9898",
name: "name",
rules: [{
required: true,
validator: function validator(_, value) {
var _value$replaceAll;
return (value === null || value === void 0 || (_value$replaceAll = value.replaceAll(' ', '')) === null || _value$replaceAll === void 0 ? void 0 : _value$replaceAll.length) > 0 ? Promise.resolve() : Promise.reject('请输入标题');
}
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u94FE\u63A5",
name: "lesson_url",
rules: [{
required: true,
validator: function validator(_, value) {
var _value$replaceAll2;
return (value === null || value === void 0 || (_value$replaceAll2 = value.replaceAll(' ', '')) === null || _value$replaceAll2 === void 0 ? void 0 : _value$replaceAll2.length) > 0 ? Promise.resolve() : Promise.reject('请输入链接');
}
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "cover_id",
label: "\u4E0A\u4F20\u5C01\u9762\u56FE",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AddOrEditmodules.upload,
children: fileList !== null && fileList !== void 0 && (_fileList$3 = fileList[0]) !== null && _fileList$3 !== void 0 && (_fileList$3 = _fileList$3.response) !== null && _fileList$3 !== void 0 && _fileList$3.id ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
fileList: fileList,
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
onChange: function onChange(e) {
return handleFileChange(e);
},
onRemove: function onRemove(e) {
return handleFileRemove(e);
},
beforeUpload: function beforeUpload(e) {
return handleFileBeforeUpload(e);
},
withCredentials: true,
accept: "image/*",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(ui_customization/* CustomButton */.op, {
style: {
borderRadius: '2px',
marginLeft: 4,
marginTop: 3
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangchuantupian2 mr5"
}), "\u4E0A\u4F20\u56FE\u7247"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
fontSize: 12,
color: '#999',
margin: 5
},
children: "\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M\uFF0C\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
})
})]
})
});
};
/* harmony default export */ var DigitalTopics_AddOrEdit = (AddOrEdit);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(91506);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/DigitalTopics/index.tsx
var Page = function Page(_ref) {
var _menus$find;
var globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
virtualSpaces = _ref.virtualSpaces;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
tableData = _useState2[0],
setTableData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails,
menus = virtualSpaces.menus;
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
var _useState5 = (0,_react_17_0_2_react.useState)(parseInt(localStorage.getItem('isFilePieceFenbu') || "1")),
_useState6 = slicedToArray_default()(_useState5, 2),
isPieceFenbu = _useState6[0],
setIsPieceFenbu = _useState6[1];
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
var _useState7 = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 12
}),
_useState8 = slicedToArray_default()(_useState7, 2),
params = _useState8[0],
setParams = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(0),
_useState10 = slicedToArray_default()(_useState9, 2),
total = _useState10[0],
setTotal = _useState10[1];
var dragged = (0,_react_17_0_2_react.useRef)(null);
var target = (0,_react_17_0_2_react.useRef)(null);
var _useState11 = (0,_react_17_0_2_react.useState)(false),
_useState12 = slicedToArray_default()(_useState11, 2),
visible = _useState12[0],
setVisible = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)({}),
_useState14 = slicedToArray_default()(_useState13, 2),
dialogData = _useState14[0],
setDialogData = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(''),
_useState16 = slicedToArray_default()(_useState15, 2),
keydom = _useState16[0],
setKeydom = _useState16[1];
var query = (0,_umi_production_exports.useParams)();
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [window.localStorage.getItem('vtrsModuleId')]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/digtal_lessons.json"), {
method: 'get',
params: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
setTotal(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.count);
setTableData(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list);
}
setLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var handleChange = function handleChange(current) {
params.page = current;
setParams(objectSpread2_default()({}, params));
getData();
};
/**
* @function 规定当元素被拖动时会发生什么
* */
var onDragStart = function onDragStart(e) {
dragged.current = e.target;
};
/**
* @function 元素被拖动到一个有效目标时触发的事件;第一个触发
* @description 元素被拖动到一个有效目标时以下数据依次触发 dragenterdragoverdrop
* */
var onDragEnter = function onDragEnter(e) {
target.current = e.target;
};
/**
* @function 元素被拖动到一个有效目标时触发的事件;第二个触发
* @description
* 默认地无法将数据/元素放置到其他元素中如果需要设置允许放置
* 我们必须阻止对元素的默认处理方式
* 这要通过调用 ondragover 事件的 event.preventDefault() 方法
* */
var onDragOver = function onDragOver(e) {
e.preventDefault();
};
/**
* @function 元素被拖动到一个有效目标时触发的事件;第三个最后触发
* @description 元素被拖动到一个有效目标时以下数据依次触发 dragenterdragoverdrop
* */
var onDrop = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(e) {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
e.preventDefault();
// const from = dragged.current.dataset.id; // 拖动元素id
// const to = target.current.dataset.id; // 放置目标id
if (!((0,authority/* isSuperAdmins */.Ny)() || virtualSpacesDetails !== null && virtualSpacesDetails !== void 0 && virtualSpacesDetails.is_member)) {
_context2.next = 6;
break;
}
_context2.next = 4;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/digtal_lessons/").concat(dragged.current.dataset.id, "/sort.json"), {
method: 'put',
body: {
position: target.current.dataset.position
}
});
case 4:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('排序成功');
getData();
}
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function onDrop(_x) {
return _ref3.apply(this, arguments);
};
}();
var handleOk = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(values) {
var res, _res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
if (!(dialogData !== null && dialogData !== void 0 && dialogData.id)) {
_context3.next = 7;
break;
}
_context3.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/digtal_lessons/").concat(dialogData === null || dialogData === void 0 ? void 0 : dialogData.id, ".json"), {
method: 'put',
body: objectSpread2_default()({
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}, values)
});
case 3:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
getData();
message/* default */.ZP.success('编辑成功');
setVisible(false);
}
_context3.next = 11;
break;
case 7:
_context3.next = 9;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/digtal_lessons.json"), {
method: 'post',
body: objectSpread2_default()({
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}, values)
});
case 9:
_res = _context3.sent;
if ((_res === null || _res === void 0 ? void 0 : _res.status) == 0) {
getData();
message/* default */.ZP.success('新增成功');
setVisible(false);
}
case 11:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function handleOk(_x2) {
return _ref4.apply(this, arguments);
};
}();
var deleteData = function deleteData(id) {
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
title: '提示',
content: '是否确认删除该课堂?',
onOk: function onOk() {
return asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/digtal_lessons/").concat(id, ".json"), {
method: 'delete',
body: {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 2:
res = _context4.sent;
if (res.status === 0) {
message/* default */.ZP.success("删除成功");
params.page = 1;
setParams(objectSpread2_default()({}, params));
getData();
}
case 4:
case "end":
return _context4.stop();
}
}, _callee4);
}))();
}
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: DigitalTopicsmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
value: 'all',
onChange: function onChange() {},
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "mr20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont ".concat(isPieceFenbu != 1 ? "icon-fenbu-2" : "icon-fenbu"),
onClick: function onClick() {
setIsPieceFenbu(isPieceFenbu != 1 ? 1 : 2);
localStorage.setItem('isFilePieceFenbu', "".concat(isPieceFenbu != 1 ? 1 : 2));
}
})
}), permission && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
onClick: function onClick() {
setVisible(true);
setDialogData({});
setKeydom(new Date());
},
children: "\u6DFB\u52A0"
})]
}),
dataSource: [{
id: 'all',
name: moduleName,
total: total
}]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
spinning: loading,
children: [!(tableData !== null && tableData !== void 0 && tableData.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), !!(tableData !== null && tableData !== void 0 && tableData.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: isPieceFenbu != 1 ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DigitalTopicsmodules.dataDiv,
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: DigitalTopicsmodules.item_data,
draggable: "true",
onDragStart: onDragStart,
onDragEnter: onDragEnter,
onDragOver: onDragOver,
onDrop: onDrop,
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item === null || item === void 0 ? void 0 : item.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
className: DigitalTopicsmodules.item_data_content,
onClick: function onClick() {
window.open(item === null || item === void 0 ? void 0 : item.lesson_url);
},
children: item === null || item === void 0 ? void 0 : item.name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
className: DigitalTopicsmodules.item_data_button,
onClick: function onClick() {
window.open(item === null || item === void 0 ? void 0 : item.lesson_url);
},
children: "\u67E5\u770B"
}), ((0,authority/* isSuperAdmins */.Ny)() || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member)) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
className: DigitalTopicsmodules.item_data_button,
onClick: function onClick() {
setVisible(true);
setDialogData(item);
setKeydom(new Date());
},
children: "\u7F16\u8F91"
}), ((0,authority/* isSuperAdmins */.Ny)() || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_creator)) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
className: DigitalTopicsmodules.item_data_button,
onClick: function onClick() {
deleteData(item === null || item === void 0 ? void 0 : item.id);
},
children: "\u5220\u9664"
})]
}, index);
})
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DigitalTopicsmodules.FileListDiv,
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item) {
var _item$cover;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
draggable: "true",
onDragStart: onDragStart,
onDragOver: onDragOver,
onDrop: onDrop,
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
onDragEnter: onDragEnter,
onClick: function onClick() {
window.open(item === null || item === void 0 ? void 0 : item.lesson_url);
},
className: DigitalTopicsmodules.FileItem,
align: "middle",
justify: "space-between",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 282,
height: 170,
src: env/* default */.Z.IMG_SERVER + (item === null || item === void 0 || (_item$cover = item.cover) === null || _item$cover === void 0 ? void 0 : _item$cover.url),
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item === null || item === void 0 ? void 0 : item.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "font16 ".concat(DigitalTopicsmodules.file_name),
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
children: item === null || item === void 0 ? void 0 : item.name
})
}), ((0,authority/* isSuperAdmins */.Ny)() || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member)) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: 40
},
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
height: 40,
width: "100%",
position: "absolute",
bottom: 0,
left: 0
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: DigitalTopicsmodules.FileItemUse,
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
onClick: function onClick(e) {
e.stopPropagation();
e.preventDefault();
},
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "primary-hover",
onClick: function onClick() {
setVisible(true);
setDialogData(item);
setKeydom(new Date());
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji7 font14 mr5"
}), "\u7F16\u8F91"]
})]
}), ((0,authority/* isSuperAdmins */.Ny)() || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_creator)) && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
className: DigitalTopicsmodules.FileItemUse,
"data-id": item === null || item === void 0 ? void 0 : item.id,
"data-position": item === null || item === void 0 ? void 0 : item.position,
onClick: function onClick(e) {
e.stopPropagation();
e.preventDefault();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "delete-hover",
onClick: function onClick() {
deleteData(item === null || item === void 0 ? void 0 : item.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-piliangshanchubeifen font14 mr5"
}), "\u5220\u9664"]
})
})]
})]
})]
}, item === null || item === void 0 ? void 0 : item.id);
})
})
})
}), !!(tableData !== null && tableData !== void 0 && tableData.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: DigitalTopicsmodules.footer,
children: [total > (params === null || params === void 0 ? void 0 : params.limit) ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#656F87'
},
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: total
}), "\u6761\u6570\u636E"]
})
}) : '', /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
defaultPageSize: 12,
current: (params === null || params === void 0 ? void 0 : params.page) || 1,
showSizeChanger: false,
showQuickJumper: true,
hideOnSinglePage: true,
total: total,
onChange: handleChange
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DigitalTopics_AddOrEdit, {
visible: visible,
dialogData: dialogData,
keydom: keydom,
title: "\u6570\u5B57\u8BFE\u5802",
onCancel: function onCancel() {
return setVisible(false);
},
onOk: handleOk
})]
});
};
/* harmony default export */ var DigitalTopics = ((0,_umi_production_exports.connect)(function (_ref5) {
var virtualSpaces = _ref5.virtualSpaces,
globalSetting = _ref5.globalSetting;
return {
globalSetting: globalSetting,
virtualSpaces: virtualSpaces
};
})(Page));
/***/ }),
/***/ 23875:
/*!************************************************************!*\
!*** ./src/components/ui-customization/reset.less?modules ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__.Z = ({"flex_box_center":"flex_box_center___vG4eV","flex_space_between":"flex_space_between___qVVxe","flex_box_vertical_center":"flex_box_vertical_center___P8Z8s","flex_box_center_end":"flex_box_center_end___VMme3","flex_box_column":"flex_box_column___VMHwm","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
/***/ })
}]);

@ -0,0 +1,241 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/DigitalTopics/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___Rnm3q {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___nRwGo {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___uDVyV {
align-items: center;
box-align: center;
}
.flex_box_center_end___ECrdZ {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___kBaOF {
flex-direction: column;
box-orient: block-axis;
}
.wrap___KmeFa {
padding: 0 45px;
margin-bottom: 20px;
}
.wrap___KmeFa .dataDiv___JXtBq .item_data___zWMwd {
height: 58px;
line-height: 58px;
border-bottom: 1px #F6F7F9 solid;
display: flex;
}
.wrap___KmeFa .dataDiv___JXtBq .item_data___zWMwd .item_data_content___N5QQ7 {
flex: 1 1;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #000000;
margin-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.wrap___KmeFa .dataDiv___JXtBq .item_data___zWMwd .item_data_button___gVxEX {
width: 28px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #165DFF;
margin-right: 20px;
cursor: pointer;
}
.wrap___KmeFa .FileListDiv___dC2hh {
margin-top: 25px;
display: flex;
flex-wrap: wrap;
gap: 30px 30px;
}
.wrap___KmeFa .FileListDiv___dC2hh .FileItem____gvjM {
flex-direction: column;
width: 282px;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
border: 1px solid #F6F7F9;
position: relative;
cursor: pointer;
}
.wrap___KmeFa .FileListDiv___dC2hh .FileItemUse___FQ06R {
align-items: center;
justify-content: center;
flex: 1 1;
cursor: pointer;
border: 1px solid #F6F7F9;
color: #5F6368;
}
.wrap___KmeFa .FileListDiv___dC2hh .file_name___dhlos {
width: 251px;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 26px;
margin: 16px auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.wrap___KmeFa .footer___BRkIa {
margin-top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/DigitalTopics/AddOrEdit/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___uRCSD {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___tvdXV {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___ymBGe {
align-items: center;
box-align: center;
}
.flex_box_center_end___HJZ3N {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___T1kxI {
flex-direction: column;
box-orient: block-axis;
}
.form___ENxpD input {
border-radius: 2px;
border: 1px solid #e1e1e1;
margin-left: 4px;
height: 38px;
}
.form___ENxpD label {
height: 38px;
color: #5F6367 !important;
}
.form___ENxpD label::before {
margin-top: 2px;
}
.form___ENxpD .btn___bNIzG {
padding: 0 16px;
background: #f6f7f9 linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
box-shadow: 0px 2px 4px 0px #e0dfe1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #bacffe;
height: 32px;
line-height: 30px;
color: #165dff;
}
.form___ENxpD .btn___bNIzG i {
margin-right: 3px;
font-size: 14px;
}
.form___ENxpD .img___bxPJt {
position: relative;
width: 200px;
height: auto;
background-color: #f4f3f4;
display: flex;
align-items: center;
justify-content: center;
}
.form___ENxpD .img___bxPJt > div {
position: absolute;
right: -6px;
top: -6px;
cursor: pointer;
background-color: #fff;
width: 16px;
height: 16px;
border-radius: 50%;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ui-customization/reset.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___vG4eV {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___qVVxe {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___P8Z8s {
align-items: center;
box-align: center;
}
.flex_box_center_end___VMme3 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___VMHwm {
flex-direction: column;
box-orient: block-axis;
}
.dropdownmenus___oVzoj {
width: 104px;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item'] {
text-align: center;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item']:hover {
color: #165dff !important;
background: #fff;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu'] {
padding: 10px 0 !important;
}
.popupClassNames___OcZq7 {
background: yellow;
}
.selectdown___mmcA8 [class~='ant-select-item-option-selected'] {
font-weight: 400 !important;
background-color: #edf2ff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option-active'] {
color: #165dff !important;
background-color: #fff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option'] {
padding: 10px 24px;
}

@ -174,7 +174,7 @@ var LessonPage = function LessonPage(_ref) {
cursor: "pointer"
},
onClick: function onClick() {
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.id, "?isViewFile=true"));
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.id, "?isViewFile=true&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(FileImage/* default */.Z, {
fileName: text
@ -196,7 +196,7 @@ var LessonPage = function LessonPage(_ref) {
},
type: "link",
onClick: function onClick() {
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.id, "?isViewFile=true"));
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.id, "?isViewFile=true&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: "\u67E5\u770B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
@ -343,10 +343,10 @@ var LessonPage = function LessonPage(_ref) {
title: isViewFile ? listItem === null || listItem === void 0 ? void 0 : listItem.title : DiscussionDetail === null || DiscussionDetail === void 0 || (_DiscussionDetail$dat = DiscussionDetail.data) === null || _DiscussionDetail$dat === void 0 ? void 0 : _DiscussionDetail$dat.name,
onClick: function onClick() {
if (isViewFile) {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion/").concat(id, "/detail"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
return;
}
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [isViewFile && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
@ -434,7 +434,7 @@ var LessonPage = function LessonPage(_ref) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("删除成功");
modal.destroy();
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/discussion?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
case 4:
case "end":

@ -81,21 +81,24 @@ var DiscussionPage = function DiscussionPage(_ref) {
_useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
urlData = _useState4[0],
setUrlData = _useState4[1];
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.module_url === location.pathname;
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
var getDiscussionList = function getDiscussionList() {
window.scrollTo(0, 0);
dispatch({
type: "virtualSpaces/getDiscussionList",
payload: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, urlData), {}, {
virtual_spacesId: virtual_spacesId
virtual_spacesId: virtual_spacesId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
};
(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {
getDiscussionList();
}, [urlData]);
}, [urlData, window.localStorage.getItem('vtrsModuleId')]);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
spinning: loading["virtualSpaces/getDiscussionList"],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div", {
@ -124,7 +127,7 @@ var DiscussionPage = function DiscussionPage(_ref) {
},
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.DiscussionListItem,
onClick: function onClick() {
umi__WEBPACK_IMPORTED_MODULE_6__.history.push("/".concat(_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .vtrsKey */ .AS, "/").concat(virtual_spacesId, "/discussion/").concat(item.id, "/detail"));
umi__WEBPACK_IMPORTED_MODULE_6__.history.push("/".concat(_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .vtrsKey */ .AS, "/").concat(virtual_spacesId, "/discussion/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
style: {
@ -251,9 +254,11 @@ var DiscussionPage = function DiscussionPage(_ref) {
_context.next = 3;
return dispatch({
type: "virtualSpaces/postDiscussionList",
payload: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({
payload: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({
virtual_spacesId: virtual_spacesId
}, ValueAll)
}, ValueAll), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 3:
res = _context.sent;

@ -1055,7 +1055,8 @@ var ShixunItem = function ShixunItem(_ref) {
pic = _ref2.pic,
identifier = _ref2.identifier,
id = _ref2.id,
is_self = _ref2.is_self;
is_self = _ref2.is_self,
virtual_classroom_shixun_id = _ref2.virtual_classroom_shixun_id;
var handleDelete = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
@ -1087,7 +1088,7 @@ var ShixunItem = function ShixunItem(_ref) {
_context.next = 2;
return (0,service_virtualSpaces/* deleteShixun */.Ps)({
virtual_classroom_id: virtualClassroomId,
shixun_id: id
shixun_id: virtual_classroom_shixun_id
});
case 2:
res = _context.sent;
@ -1267,7 +1268,8 @@ var SubjectItem = function SubjectItem(_ref) {
stages_count = _ref2.stages_count,
id = _ref2.id,
identifier = _ref2.identifier,
is_self = _ref2.is_self;
is_self = _ref2.is_self,
virtual_classroom_subject_id = _ref2.virtual_classroom_subject_id;
var handleDelete = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
@ -1299,7 +1301,7 @@ var SubjectItem = function SubjectItem(_ref) {
_context.next = 2;
return (0,service_virtualSpaces/* deleteCourse */.A)({
virtual_classroom_id: virtualClassroomId,
subject_id: id
subject_id: virtual_classroom_subject_id
});
case 2:
res = _context.sent;
@ -1509,7 +1511,7 @@ var ExperimentPage = function ExperimentPage(_ref) {
page: 1,
limit: 10
});
}, []);
}, [window.localStorage.getItem('vtrsModuleId')]);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
shixunPageloading = _useState2[0],
@ -1532,19 +1534,20 @@ var ExperimentPage = function ExperimentPage(_ref) {
while (1) switch (_context.prev = _context.next) {
case 0:
setShixunPageLoading(true);
_context.next = 3;
params.virtual_module_id = window.localStorage.getItem('vtrsModuleId');
_context.next = 4;
return (0,service_virtualSpaces/* getShixuns */.rV)(virtual_spacesId, params);
case 3:
case 4:
res = _context.sent;
if (!('status' in res)) {
_context.next = 6;
_context.next = 7;
break;
}
return _context.abrupt("return");
case 6:
case 7:
setShixunData(res);
setShixunPageLoading(false);
case 8:
case 9:
case "end":
return _context.stop();
}
@ -1576,19 +1579,20 @@ var ExperimentPage = function ExperimentPage(_ref) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setCoursePageLoading(true);
_context2.next = 3;
params.virtual_module_id = window.localStorage.getItem('vtrsModuleId');
_context2.next = 4;
return (0,service_virtualSpaces/* getCourseList */.tS)(virtual_spacesId, params);
case 3:
case 4:
res = _context2.sent;
if (!('status' in res)) {
_context2.next = 6;
_context2.next = 7;
break;
}
return _context2.abrupt("return");
case 6:
case 7:
setCourseData(res);
setCoursePageLoading(false);
case 8:
case 9:
case "end":
return _context2.stop();
}
@ -1786,7 +1790,8 @@ var ExperimentPage = function ExperimentPage(_ref) {
return (0,service_virtualSpaces/* addShixun */.LY)(virtual_spacesId, {
source: 'shixun',
shixun_ids: ids,
module_id: experimentModuleId
module_id: experimentModuleId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
});
case 2:
_context5.next = 4;
@ -1818,7 +1823,8 @@ var ExperimentPage = function ExperimentPage(_ref) {
return (0,service_virtualSpaces/* addShixun */.LY)(virtual_spacesId, {
source: 'subject',
subject_id: subjectId,
module_id: experimentModuleId
module_id: experimentModuleId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
});
case 3:
_context6.next = 5;
@ -1833,7 +1839,8 @@ var ExperimentPage = function ExperimentPage(_ref) {
_context6.next = 9;
return (0,service_virtualSpaces/* addCourse */.bq)(virtual_spacesId, {
subject_ids: [subjectId],
module_id: experimentModuleId
module_id: experimentModuleId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
});
case 9:
_context6.next = 11;

@ -3727,11 +3727,15 @@ var Page = function Page(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
loading = _useState6[0],
setLoading = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(''),
_useState8 = slicedToArray_default()(_useState7, 2),
descriptionId = _useState8[0],
setDescriptionId = _useState8[1];
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var query = (0,_umi_production_exports.useParams)();
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, []);
}, [window.localStorage.getItem('vtrsModuleId')]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, value;
@ -3741,7 +3745,10 @@ var Page = function Page(_ref) {
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/show_description.json"), {
method: 'get'
method: 'get',
params: {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 3:
res = _context.sent;
@ -3750,6 +3757,7 @@ var Page = function Page(_ref) {
description: (res === null || res === void 0 ? void 0 : res.description) || '',
desc_title: (res === null || res === void 0 ? void 0 : res.desc_title) || ''
};
setDescriptionId(res === null || res === void 0 ? void 0 : res.id);
setFormValue(value);
form.setFieldsValue(value);
}
@ -3771,9 +3779,11 @@ var Page = function Page(_ref) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/update_description.json"), {
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/update_description/").concat(descriptionId, ".json"), {
method: 'put',
body: values
body: objectSpread2_default()(objectSpread2_default()({}, values), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 2:
res = _context2.sent;

@ -6009,14 +6009,15 @@ var Addition = function Addition(_ref) {
method: id ? 'put' : 'post',
body: {
module_content: list,
module_name: name
module_name: name,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 11:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1 && (res === null || res === void 0 ? void 0 : res.status) !== 403) {
message/* default */.ZP.success('操作成功');
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
setBtnLoading(false);
case 14:
@ -6153,7 +6154,7 @@ var Addition = function Addition(_ref) {
confirmLoading: btnLoading,
confirmClick: handleFinish,
cancelClick: function cancelClick() {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
cancelTitle: "\u53D6\u6D88",
className: "mb25 mt20"
@ -6267,7 +6268,7 @@ var BatchAddition_Addition = function Addition(_ref) {
})]
}),
onOk: function onOk() {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
});
}
@ -6332,7 +6333,7 @@ var BatchAddition_Addition = function Addition(_ref) {
confirmLoading: btnLoading,
confirmClick: onFileOk,
cancelClick: function cancelClick() {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
cancelTitle: "\u53D6\u6D88",
className: "mb25 mt20"
@ -6410,7 +6411,7 @@ var AddAndEdit = function AddAndEdit(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: id ? '编辑知识点模块' : '新建知识点模块',
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/knowledge"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/knowledge?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
}), !id && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTags */.qp, {
titleWidth: 56,

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38447,61952,64802,34668,54512,4977,11436,94540,58356],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38447,61952,64802,34668,54512,25156,4977,11436,94540,58356],{
/***/ 15997:
/*!*****************************************************************************************************!*\
@ -6414,7 +6414,8 @@ var Atlas = function Atlas(_ref) {
method: 'get',
params: {
type: 2,
identifier: params.virtual_spacesId
identifier: params.virtual_spacesId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 3:
@ -6643,7 +6644,8 @@ var Atlas = function Atlas(_ref) {
method: 'post',
body: {
type: 2,
identifier: params.virtual_spacesId
identifier: params.virtual_spacesId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 3:
@ -6837,7 +6839,8 @@ var Atlas = function Atlas(_ref) {
method: 'DELETE',
body: {
type: 2,
identifier: params.virtual_spacesId
identifier: params.virtual_spacesId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 2:
@ -7751,7 +7754,8 @@ var Atlas = function Atlas(_ref) {
unit_type: 4,
type: 2,
identifier: params.virtual_spacesId,
parent_id: items.id
parent_id: items.id,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 3:
@ -7822,7 +7826,8 @@ var Atlas = function Atlas(_ref) {
body: objectSpread2_default()(objectSpread2_default()({}, value), {}, {
type: 2,
identifier: params.virtual_spacesId,
parent_id: items.id
parent_id: items.id,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 2:
@ -8071,12 +8076,13 @@ var Atlas = function Atlas(_ref) {
formData.append('ec_year_id', params.ec_year_id);
formData.append('identifier', params.virtual_spacesId);
formData.append('type', '2');
_context14.next = 13;
formData.append('virtual_module_id', window.localStorage.getItem('vtrsModuleId'));
_context14.next = 14;
return (0,fetch/* default */.ZP)("/api/knowledge_graphs/import.json", {
method: 'post',
body: formData
}, true);
case 13:
case 14:
res = _context14.sent;
setbuttonloading(false);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
@ -8102,7 +8108,7 @@ var Atlas = function Atlas(_ref) {
getdatas();
setexport(false);
}
case 16:
case 17:
case "end":
return _context14.stop();
}
@ -8470,7 +8476,7 @@ var Page = function Page(_ref) {
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [active]);
}, [active, window.localStorage.getItem('vtrsModuleId')]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
@ -8482,7 +8488,8 @@ var Page = function Page(_ref) {
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/knowledge_systems/show.json"), {
method: 'get',
params: {
column: active
column: active,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 3:
@ -8527,7 +8534,9 @@ var Page = function Page(_ref) {
_context2.next = 5;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/knowledge_systems/edit.json"), {
method: 'put',
body: body
body: objectSpread2_default()(objectSpread2_default()({}, body), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 5:
res = _context2.sent;
@ -8622,7 +8631,7 @@ var Page = function Page(_ref) {
}), "\u7F16\u8F91\u8BF4\u660E"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(ui_customization/* CustomButton */.op, {
onClick: function onClick() {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge/add"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge/add?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
className: "ml20",
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -8689,7 +8698,7 @@ var Page = function Page(_ref) {
className: Knowledgemodules.btns,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge/").concat(subject_module_id, "/edit"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/knowledge/").concat(subject_module_id, "/edit?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "primary-hover",

@ -239,7 +239,7 @@ var LessonPage = function LessonPage(_ref) {
window.open(record === null || record === void 0 ? void 0 : record.url);
return;
}
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.attachment_id, "?isViewFile=true&recordid=").concat(record.id));
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.attachment_id, "?isViewFile=true&recordid=").concat(record.id, "&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: "\u67E5\u770B"
}), urlData.resource_type == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
@ -450,10 +450,10 @@ var LessonPage = function LessonPage(_ref) {
title: isViewFile ? listItem === null || listItem === void 0 ? void 0 : listItem.title : LessonDetail === null || LessonDetail === void 0 || (_LessonDetail$data = LessonDetail.data) === null || _LessonDetail$data === void 0 ? void 0 : _LessonDetail$data.name,
onClick: function onClick() {
if (isViewFile) {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
return;
}
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [isViewFile && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
@ -508,7 +508,7 @@ var LessonPage = function LessonPage(_ref) {
res = _context6.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("删除成功");
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
case 4:
case "end":
@ -559,7 +559,7 @@ var LessonPage = function LessonPage(_ref) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("删除成功");
modal.destroy();
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
case 4:
case "end":
@ -612,7 +612,7 @@ var LessonPage = function LessonPage(_ref) {
content: "",
type: ""
});
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
})
}), !isViewFile && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
@ -839,7 +839,9 @@ var LessonPage = function LessonPage(_ref) {
_context9.next = 2;
return dispatch({
type: "virtualSpaces/postAddLessonRes",
payload: objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData)
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 2:
res = _context9.sent;
@ -919,7 +921,9 @@ var LessonPage = function LessonPage(_ref) {
_context10.next = 3;
return dispatch({
type: "virtualSpaces/postAddLessonRes",
payload: objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData)
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 3:
res = _context10.sent;

@ -115,21 +115,24 @@ var LessonPage = function LessonPage(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
urlData = _useState6[0],
setUrlData = _useState6[1];
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.module_url === location.pathname;
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
var getGoodLessonsList = function getGoodLessonsList() {
window.scrollTo(0, 0);
dispatch({
type: "virtualSpaces/getGoodLessonsList",
payload: objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
virtual_spacesId: virtual_spacesId
virtual_spacesId: virtual_spacesId,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
};
(0,_react_17_0_2_react.useEffect)(function () {
getGoodLessonsList();
}, [urlData]);
}, [urlData, window.localStorage.getItem('vtrsModuleId')]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading["virtualSpaces/getGoodLessonsList"],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -163,7 +166,7 @@ var LessonPage = function LessonPage(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Lessonmodules/* default */.Z.LessonsListItem,
onClick: function onClick() {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(item.id, "/detail"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
@ -252,9 +255,11 @@ var LessonPage = function LessonPage(_ref) {
_context.next = 2;
return dispatch({
type: "virtualSpaces/postGoodLessonsList",
payload: objectSpread2_default()({
payload: objectSpread2_default()(objectSpread2_default()({
virtual_spacesId: virtual_spacesId
}, ValueAll)
}, ValueAll), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 2:
res = _context.sent;

@ -6438,7 +6438,7 @@ var Detail = function Detail(_ref) {
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
message/* default */.ZP.success('操作成功');
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/material"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/material?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
case 4:
case "end":
@ -6518,7 +6518,7 @@ var Detail = function Detail(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: "\u6559\u6750\u8BE6\u60C5",
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/material"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/material?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: verify(data.user_id) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,

@ -521,7 +521,7 @@ var Page = function Page(_ref) {
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [active]);
}, [active, window.localStorage.getItem('vtrsModuleId')]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
@ -533,7 +533,8 @@ var Page = function Page(_ref) {
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subject_materials/list.json"), {
method: 'get',
params: {
material_type: active
material_type: active,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 3:
@ -572,7 +573,8 @@ var Page = function Page(_ref) {
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subject_materials.json"), {
method: 'post',
body: objectSpread2_default()({
material_type: active
material_type: active,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}, values)
});
case 2:
@ -654,7 +656,7 @@ var Page = function Page(_ref) {
className: Materialmodules.PieceFenbuItem,
wrap: false,
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/material/").concat(id, "/detail"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/material/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
@ -722,7 +724,7 @@ var Page = function Page(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Materialmodules.list,
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/material/").concat(id, "/detail"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/material/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Materialmodules.left,

@ -502,7 +502,7 @@ var Detail = function Detail(_ref) {
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/plan"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/plan?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
message/* default */.ZP.success('删除成功');
}
case 4:
@ -523,7 +523,7 @@ var Detail = function Detail(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: item.title,
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/plan"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/plan?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,

@ -398,7 +398,8 @@ var UploadModal = function UploadModal(_ref) {
method: 'post',
body: {
attachment_ids: attachment_ids,
folder_id: Number(value === null || value === void 0 || (_value$ = value[0]) === null || _value$ === void 0 || (_value$ = _value$.split('_')) === null || _value$ === void 0 ? void 0 : _value$[1])
folder_id: Number(value === null || value === void 0 || (_value$ = value[0]) === null || _value$ === void 0 || (_value$ = _value$.split('_')) === null || _value$ === void 0 ? void 0 : _value$[1]),
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 8:
@ -551,7 +552,8 @@ var AddModal = function AddModal(_ref) {
method: 'post',
body: {
name: name,
id: Number(value === null || value === void 0 || (_value$ = value[0]) === null || _value$ === void 0 || (_value$ = _value$.split('_')) === null || _value$ === void 0 ? void 0 : _value$[1])
id: Number(value === null || value === void 0 || (_value$ = value[0]) === null || _value$ === void 0 || (_value$ = _value$.split('_')) === null || _value$ === void 0 ? void 0 : _value$[1]),
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 9:
@ -920,12 +922,14 @@ var Page = function Page(_ref) {
var bool = (0,authority/* isSuperAdmins */.Ny)() || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_creator) || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) && (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.user_id) === user_id;
return bool;
};
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.module_url === location.pathname;
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, []);
}, [window.localStorage.getItem('vtrsModuleId')]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res1, res2, _res1$data, _res1$data2;
@ -935,7 +939,10 @@ var Page = function Page(_ref) {
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subject_plans/folder_list.json"), {
method: 'get'
method: 'get',
params: {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 3:
res1 = _context.sent;
@ -943,7 +950,8 @@ var Page = function Page(_ref) {
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subject_plans/folder_list.json"), {
method: 'get',
params: {
only_folder: 1
only_folder: 1,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 6:
@ -1145,7 +1153,7 @@ var Page = function Page(_ref) {
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER).concat((_item$url = item.url) === null || _item$url === void 0 ? void 0 : _item$url.replace('disposition=inline', '')));
return _context3.abrupt("return");
case 3:
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/plan/").concat(item.id, "/detail"));
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/plan/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
case 4:
case "end":
return _context3.stop();

@ -505,7 +505,7 @@ var Detail = function Detail(_ref) {
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
message/* default */.ZP.success('删除成功');
}
case 4:
@ -526,7 +526,7 @@ var Detail = function Detail(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: item.title,
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,

@ -247,7 +247,8 @@ var OutsideModal = function OutsideModal(_ref) {
file_type: 2,
is_outer_chain: 0,
subject_material_id: value,
attachment_ids: attachment_ids
attachment_ids: attachment_ids,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 10:
@ -392,7 +393,8 @@ var AddOrEdit = function AddOrEdit(_ref) {
method: 'post',
body: objectSpread2_default()({
file_type: 2,
is_outer_chain: 1
is_outer_chain: 1,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}, values)
});
case 3:
@ -545,8 +547,10 @@ var Page = function Page(_ref) {
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails,
menus = virtualSpaces.menus;
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.module_url === location.pathname;
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
var query = (0,_umi_production_exports.useParams)();
var _useState15 = (0,_react_17_0_2_react.useState)({
@ -561,7 +565,7 @@ var Page = function Page(_ref) {
setParams = _useState16[1];
(0,_react_17_0_2_react.useEffect)(function () {
getData(params, true);
}, []);
}, [window.localStorage.getItem('vtrsModuleId')]);
var verify = function verify(user_id) {
var bool = (0,authority/* isSuperAdmins */.Ny)() || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_creator) || (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) && (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.user_id) === user_id;
return bool;
@ -580,7 +584,9 @@ var Page = function Page(_ref) {
_context.next = 7;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/files/list.json"), {
method: 'get',
params: newRecord
params: objectSpread2_default()(objectSpread2_default()({}, newRecord), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 7:
res = _context.sent;
@ -609,7 +615,8 @@ var Page = function Page(_ref) {
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subject_materials/list.json"), {
method: 'get',
params: {
material_type: 0
material_type: 0,
virtual_file_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 12:
@ -704,7 +711,7 @@ var Page = function Page(_ref) {
(0,util/* openNewWindow */.xg)(item.url);
return _context3.abrupt("return");
case 3:
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources/").concat(item.file_id, "/detail"));
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources/").concat(item.file_id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
case 4:
case "end":
return _context3.stop();
@ -735,7 +742,7 @@ var Page = function Page(_ref) {
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER).concat((_item$url = item.url) === null || _item$url === void 0 ? void 0 : _item$url.replace('disposition=inline', '')));
return _context4.abrupt("return");
case 6:
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources/").concat(item.file_id, "/detail"));
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/resources/").concat(item.file_id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
case 7:
case "end":
return _context4.stop();

@ -179,6 +179,7 @@ var Page = function Page(_ref) {
setImgLoading = _useState10[1];
var titleDesc = {
homepage: "该模块为虚拟社区主页可编辑展示本虚拟社区的基本介绍支持markdown编辑器编辑展示内容",
workplace: "该模块为虚拟社区个人工作台,可统计社区数据、通知公告、教研活动等内容",
announcement: "该模块为通知公告模块,可以发布、编辑和删除通知公告内容",
lesson: "该模块为好课展示模块,支持添加好课和添加好课链接",
survey: "该模块为课程调研模块,可以对相关调研文件进行上传、查看、下载、删除操作",
@ -188,7 +189,8 @@ var Page = function Page(_ref) {
experiment: "该模块为实验体系模块,支持老师从实践项目和实践课程中选用实验加入",
discussion: "该模块为交流研讨模块,支持发布交流研讨的信息和上传相关附件视频。",
resources: "该模块为教学资源模块,支持上传对应教材的教学资源和添加外链资源",
settings: "该模块为社区设置模块,支持对社区名称、社区类型、标识、封面图、详情顶部背景和模块展示控制、人员管理进行设置"
settings: "该模块为社区设置模块,支持对社区名称、社区类型、标识、封面图、详情顶部背景和模块展示控制、人员管理进行设置",
digtal: "该模块为数字课堂模块,支持添加数字课堂的标题、链接和封面"
};
(0,_react_17_0_2_react.useEffect)(function () {
if (virtualSpacesDetails !== null && virtualSpacesDetails !== void 0 && virtualSpacesDetails.id && menus !== null && menus !== void 0 && menus.length) {
@ -262,7 +264,7 @@ var Page = function Page(_ref) {
}
});
// window.location.href = `/${values?.vs_type === 'classroom' ? 'vtrs' : '101'}/${values?.identifier}/settings`
_umi_production_exports.history.replace("/".concat((values === null || values === void 0 ? void 0 : values.vs_type) === 'classroom' ? 'vtrs' : '101', "/").concat(values === null || values === void 0 ? void 0 : values.identifier, "/settings"));
_umi_production_exports.history.replace("/".concat((values === null || values === void 0 ? void 0 : values.vs_type) === 'classroom' ? 'vtrs' : '101', "/").concat(values === null || values === void 0 ? void 0 : values.identifier, "/settings?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
if ((res === null || res === void 0 ? void 0 : res.status) === -3) {
form.setFields([{
@ -499,7 +501,7 @@ var Page = function Page(_ref) {
move = _ref3.move;
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: fields.map(function (field, index) {
var _menus$name, _menus$name2;
var _menus$name, _menus$name2, _menus$field$name, _menus$field$name2;
var key = field.key,
name = field.name,
restField = objectWithoutProperties_default()(field, _excluded2);
@ -518,6 +520,13 @@ var Page = function Page(_ref) {
flex: 1
},
name: [name, 'name'],
rules: [{
required: true,
validator: function validator(_, value) {
var _value$replaceAll;
return (value === null || value === void 0 || (_value$replaceAll = value.replaceAll(' ', '')) === null || _value$replaceAll === void 0 ? void 0 : _value$replaceAll.length) <= 14 ? Promise.resolve() : Promise.reject('字数限制在14个字以内');
}
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
})), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "ml20",
@ -577,6 +586,38 @@ var Page = function Page(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangyi3"
})
}), index < fields.length - 1 && ((_menus$field$name = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name === void 0 ? void 0 : _menus$field$name.icon_type) != 'announcement' && ((_menus$field$name2 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name2 === void 0 ? void 0 : _menus$field$name2.icon_type) != 'workplace' && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: "\u590D\u5236",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fuzhi8 current",
style: {
marginLeft: 10,
marginTop: '-2px'
},
onClick: function onClick() {
var _menus$field$name3, _menus$field$name4, _menus$field$name5, _menus$field$name6, _menus$field$name7, _menus$field$name8, _menus$field$name9, _menus$field$name10, _menus$field$name11, _menus$field$name12, _menus$field$name13, _menus$field$name14, _menus$field$name15;
var findName = findNames((_menus$field$name3 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name3 === void 0 ? void 0 : _menus$field$name3.name, 1);
add({
name: findName,
position: (_menus$field$name4 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name4 === void 0 ? void 0 : _menus$field$name4.position,
icon_type: (_menus$field$name5 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name5 === void 0 ? void 0 : _menus$field$name5.icon_type,
module_url: (_menus$field$name6 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name6 === void 0 ? void 0 : _menus$field$name6.module_url,
hidden: (_menus$field$name7 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name7 === void 0 ? void 0 : _menus$field$name7.hidden,
disabled: (_menus$field$name8 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name8 === void 0 ? void 0 : _menus$field$name8.disabled,
children: (_menus$field$name9 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name9 === void 0 ? void 0 : _menus$field$name9.children
}, name + 1);
menus.splice(name + 1, 0, {
name: findName,
position: (_menus$field$name10 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name10 === void 0 ? void 0 : _menus$field$name10.position,
icon_type: (_menus$field$name11 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name11 === void 0 ? void 0 : _menus$field$name11.icon_type,
module_url: (_menus$field$name12 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name12 === void 0 ? void 0 : _menus$field$name12.module_url,
hidden: (_menus$field$name13 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name13 === void 0 ? void 0 : _menus$field$name13.hidden,
disabled: (_menus$field$name14 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name14 === void 0 ? void 0 : _menus$field$name14.disabled,
children: (_menus$field$name15 = menus[field === null || field === void 0 ? void 0 : field.name]) === null || _menus$field$name15 === void 0 ? void 0 : _menus$field$name15.children
});
}
})
})]
})]
})

@ -505,7 +505,7 @@ var Detail = function Detail(_ref) {
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey"));
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
message/* default */.ZP.success('删除成功');
}
case 4:
@ -526,7 +526,7 @@ var Detail = function Detail(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: item.title,
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,

@ -72,12 +72,12 @@ __webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Survey; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(26801);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(26801);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
@ -225,7 +225,8 @@ var UploadModal = function UploadModal(_ref) {
body: {
file_type: 1,
is_outer_chain: 0,
attachment_ids: attachment_ids
attachment_ids: attachment_ids,
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
}
});
case 8:
@ -362,8 +363,9 @@ var Page = function Page(_ref) {
_useState10 = slicedToArray_default()(_useState9, 2),
params = _useState10[0],
setParams = _useState10[1];
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
return e.module_url === location.pathname;
return e.id == window.localStorage.getItem('vtrsModuleId');
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
var verify = function verify(user_id) {
@ -372,7 +374,7 @@ var Page = function Page(_ref) {
};
(0,_react_17_0_2_react.useEffect)(function () {
getData(params);
}, []);
}, [window.localStorage.getItem('vtrsModuleId')]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
var res;
@ -383,7 +385,9 @@ var Page = function Page(_ref) {
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/files/list.json"), {
method: 'get',
params: record
params: objectSpread2_default()(objectSpread2_default()({}, record), {}, {
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
})
});
case 3:
res = _context.sent;
@ -468,7 +472,7 @@ var Page = function Page(_ref) {
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER).concat((_item$url = item.url) === null || _item$url === void 0 ? void 0 : _item$url.replace('disposition=inline', '')));
return _context3.abrupt("return");
case 3:
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey/").concat(item.file_id, "/detail"));
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey/").concat(item.file_id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
case 4:
case "end":
return _context3.stop();
@ -484,7 +488,7 @@ var Page = function Page(_ref) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey/").concat(item.file_id, "/detail"));
(0,util/* openNewWindow */.xg)("/".concat(util/* vtrsKey */.AS, "/").concat(query.virtual_spacesId, "/survey/").concat(item.file_id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
case 1:
case "end":
return _context4.stop();

@ -316,7 +316,7 @@ var WorkplacePage = function WorkplacePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/add"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/add?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji-moren mr5"
@ -328,7 +328,7 @@ var WorkplacePage = function WorkplacePage(_ref) {
cursor: "pointer"
},
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
}
})]
})]
@ -346,7 +346,7 @@ var WorkplacePage = function WorkplacePage(_ref) {
width: 260
},
onClick: function onClick() {
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/").concat(item.id, "/detail"));
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
},
children: item === null || item === void 0 ? void 0 : item.name
})

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -292,9 +292,9 @@ mark {
\**************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.83c10235.woff2) format('woff2'),
url(./static/iconfont.5a731b10.woff) format('woff'),
url(./static/iconfont.d0cfa584.ttf) format('truetype'),
src: url(./static/iconfont.dc142f7c.woff2) format('woff2'),
url(./static/iconfont.fa5ceaa1.woff) format('woff'),
url(./static/iconfont.feac23b4.ttf) format('truetype'),
url(./static/iconfont.817006e9.svg#iconfont) format('svg');
}

586
umi.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save