Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent 8c935a380d
commit 00ea14d8e8

@ -150,7 +150,7 @@ var _default = exports["default"] = RefIcon;
/***/ }),
/***/ 13305:
/***/ 82141:
/*!***************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/createField.js + 4 modules ***!
\***************************************************************************************************************/
@ -194,12 +194,12 @@ function pickProFormItemProps(props) {
});
return attrs;
}
// EXTERNAL MODULE: ./node_modules/_safe-stable-stringify@2.4.3@safe-stable-stringify/index.js
var _safe_stable_stringify_2_4_3_safe_stable_stringify = __webpack_require__(15894);
;// CONCATENATED MODULE: ./node_modules/_safe-stable-stringify@2.4.3@safe-stable-stringify/esm/wrapper.js
// EXTERNAL MODULE: ./node_modules/_safe-stable-stringify@2.5.0@safe-stable-stringify/index.js
var _safe_stable_stringify_2_5_0_safe_stable_stringify = __webpack_require__(53680);
;// CONCATENATED MODULE: ./node_modules/_safe-stable-stringify@2.5.0@safe-stable-stringify/esm/wrapper.js
const configure = _safe_stable_stringify_2_4_3_safe_stable_stringify.configure
const configure = _safe_stable_stringify_2_5_0_safe_stable_stringify.configure
const stringify = (/* unused pure expression or super */ null && (cjsModule))
/* harmony default export */ var wrapper = ((/* unused pure expression or super */ null && (cjsModule)));
@ -600,7 +600,7 @@ function createField(Field, config) {
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ant-design/pro-utils */ 22102);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ 24905);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _BaseForm_createField__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../BaseForm/createField */ 13305);
/* harmony import */ var _BaseForm_createField__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../BaseForm/createField */ 82141);
/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Field */ 40647);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
@ -14389,7 +14389,7 @@ var isDeepEqualReact = __webpack_require__(91517);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/EditOrReadOnlyContext.js
var EditOrReadOnlyContext = __webpack_require__(5774);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/createField.js + 4 modules
var createField = __webpack_require__(13305);
var createField = __webpack_require__(82141);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/components/Field/index.js
@ -15201,7 +15201,7 @@ var ProFormItem = function ProFormItem(props) {
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ant-design/pro-utils */ 22102);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ 5112);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _BaseForm_createField__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../BaseForm/createField */ 13305);
/* harmony import */ var _BaseForm_createField__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../BaseForm/createField */ 82141);
/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Field */ 40647);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
@ -23411,9 +23411,9 @@ exports["default"] = mergeClasses;
/***/ }),
/***/ 15894:
/***/ 53680:
/*!**********************************************************************************!*\
!*** ./node_modules/_safe-stable-stringify@2.4.3@safe-stable-stringify/index.js ***!
!*** ./node_modules/_safe-stable-stringify@2.5.0@safe-stable-stringify/index.js ***!
\**********************************************************************************/
/***/ (function(module, exports) {
@ -23440,7 +23440,7 @@ exports.configure = configure
module.exports = stringify
// eslint-disable-next-line no-control-regex
const strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/
const strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/
// Escape C0 control characters, double quotes, the backslash and every code
// unit with a numeric value in the inclusive range 0xD800 to 0xDFFF.
@ -23452,11 +23452,11 @@ function strEscape (str) {
return JSON.stringify(str)
}
function insertSort (array) {
// Insertion sort is very efficient for small input sizes but it has a bad
function sort (array, comparator) {
// Insertion sort is very efficient for small input sizes, but it has a bad
// worst case complexity. Thus, use native array sort for bigger values.
if (array.length > 2e2) {
return array.sort()
if (array.length > 2e2 || comparator) {
return array.sort(comparator)
}
for (let i = 1; i < array.length; i++) {
const currentValue = array[i]
@ -23517,6 +23517,17 @@ function getCircularValueOption (options) {
return '"[Circular]"'
}
function getDeterministicOption (options) {
let value
if (hasOwnProperty.call(options, 'deterministic')) {
value = options.deterministic
if (typeof value !== 'boolean' && typeof value !== 'function') {
throw new TypeError('The "deterministic" argument must be of type boolean or comparator function')
}
}
return value === undefined ? true : value
}
function getBooleanOption (options, key) {
let value
if (hasOwnProperty.call(options, key)) {
@ -23591,7 +23602,8 @@ function configure (options) {
}
const circularValue = getCircularValueOption(options)
const bigint = getBooleanOption(options, 'bigint')
const deterministic = getBooleanOption(options, 'deterministic')
const deterministic = getDeterministicOption(options)
const comparator = typeof deterministic === 'function' ? deterministic : undefined
const maximumDepth = getPositiveIntegerOption(options, 'maximumDepth')
const maximumBreadth = getPositiveIntegerOption(options, 'maximumBreadth')
@ -23668,7 +23680,7 @@ function configure (options) {
}
const maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth)
if (deterministic && !isTypedArrayWithEntries(value)) {
keys = insertSort(keys)
keys = sort(keys, comparator)
}
stack.push(value)
for (let i = 0; i < maximumPropertiesToStringify; i++) {
@ -23867,7 +23879,7 @@ function configure (options) {
separator = join
}
if (deterministic) {
keys = insertSort(keys)
keys = sort(keys, comparator)
}
stack.push(value)
for (let i = 0; i < maximumPropertiesToStringify; i++) {
@ -23929,7 +23941,8 @@ function configure (options) {
let res = ''
if (Array.isArray(value)) {
const hasLength = value.length !== undefined
if (hasLength && Array.isArray(value)) {
if (value.length === 0) {
return '[]'
}
@ -23964,14 +23977,14 @@ function configure (options) {
}
let separator = ''
let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth)
if (isTypedArrayWithEntries(value)) {
if (hasLength && isTypedArrayWithEntries(value)) {
res += stringifyTypedArray(value, ',', maximumBreadth)
keys = keys.slice(value.length)
maximumPropertiesToStringify -= value.length
separator = ','
}
if (deterministic) {
keys = insertSort(keys)
keys = sort(keys, comparator)
}
stack.push(value)
for (let i = 0; i < maximumPropertiesToStringify; i++) {

@ -2190,9 +2190,6 @@ var HeaderComponents = function HeaderComponents(_ref) {
src: logoUrl || logo
})
}), location.pathname == '/' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '300px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/home/schoollogo.png */ 32229),
width: 252

@ -12,7 +12,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta http-equiv="Cache-Control" content="no-transform">
<title>头歌实践教学平台</title>
<link rel="stylesheet" href="/react/build/umi.ef077ebb.css">
<link rel="stylesheet" href="/react/build/umi.a1708416.css">
<script src="/react/build/js/polyfill.min.js"></script>
</head>
<body>
@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.d7960b1a.js"></script>
<script src="/react/build/umi.84260f45.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -432,10 +432,10 @@ function _reservation_today_data() {
}
// EXTERNAL MODULE: ./src/styles/table_botton.less
var table_botton = __webpack_require__(78289);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(80348);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
var input = __webpack_require__(92832);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
@ -1518,7 +1518,7 @@ var Details = function Details(_ref) {
onClick: function onClick() {
var _info$date;
var info = form.getFieldsValue();
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.PROXY_SERVER, "/api/zz_classrooms/reservations.xlsx?keyword=").concat((info === null || info === void 0 ? void 0 : info.keyword) || '', "&date=").concat(info !== null && info !== void 0 && info.date ? dayjs_min_default()(info === null || info === void 0 || (_info$date = info.date) === null || _info$date === void 0 ? void 0 : _info$date.$d).format('YYYY-MM-DD') : '', "&device_id=").concat((info === null || info === void 0 ? void 0 : info.device_id) || '', "&role=").concat((info === null || info === void 0 ? void 0 : info.role) || '', "&shixun_id=").concat((info === null || info === void 0 ? void 0 : info.shixun_id) || '', "&status=").concat((info === null || info === void 0 ? void 0 : info.status) || '', "&type=1"));
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER, "/api/zz_classrooms/reservations.xlsx?keyword=").concat((info === null || info === void 0 ? void 0 : info.keyword) || '', "&date=").concat(info !== null && info !== void 0 && info.date ? dayjs_min_default()(info === null || info === void 0 || (_info$date = info.date) === null || _info$date === void 0 ? void 0 : _info$date.$d).format('YYYY-MM-DD') : '', "&device_id=").concat((info === null || info === void 0 ? void 0 : info.device_id) || '', "&role=").concat((info === null || info === void 0 ? void 0 : info.role) || '', "&shixun_id=").concat((info === null || info === void 0 ? void 0 : info.shixun_id) || '', "&status=").concat((info === null || info === void 0 ? void 0 : info.status) || '', "&type=1"));
},
children: "\u5BFC\u51FA"
})

@ -44,7 +44,8 @@ var SubMenu = menu/* default */.Z.SubMenu;
var Engineering = function Engineering(_ref) {
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering;
engineering = _ref.engineering,
dispatch = _ref.dispatch;
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,_react_17_0_2_react.useState)(1),
_useState2 = slicedToArray_default()(_useState, 2),
@ -58,6 +59,18 @@ var Engineering = function Engineering(_ref) {
return e + 1;
});
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
function getItem(label, key, icon, children, type) {
return {
key: key,
@ -132,11 +145,13 @@ var Engineering = function Engineering(_ref) {
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref2) {
var globalSetting = _ref2.globalSetting,
user = _ref2.user,
engineering = _ref2.engineering;
engineering = _ref2.engineering,
dispatch = _ref2.dispatch;
return {
user: user,
globalSetting: globalSetting,
engineering: engineering
engineering: engineering,
dispatch: dispatch
};
})(Engineering));

@ -41,8 +41,6 @@ var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerat
var onlinedevice = __webpack_require__(26367);
// EXTERNAL MODULE: ./src/styles/table_botton.less
var table_botton = __webpack_require__(78289);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(80348);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
@ -367,6 +365,8 @@ var GLDevicesDialog = function GLDevicesDialog(_ref) {
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/InfoList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var InfoListmodules = ({"search_params":"search_params___qdp66","search":"search___wEG7n","searchIcon":"searchIcon___orerQ","clear_Data":"clear_Data___M2GZV"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
;// CONCATENATED MODULE: ./src/pages/Equipment/Information/InfoList/index.tsx
@ -948,7 +948,7 @@ var InfoList = function InfoList(_ref) {
},
onClick: function onClick() {
var info = form.getFieldsValue();
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.PROXY_SERVER, "/api/zz_classrooms/devices.xlsx?keyword=").concat((info === null || info === void 0 ? void 0 : info.keyword) || '', "&classroom_id=").concat((info === null || info === void 0 ? void 0 : info.classroom_id) || '', "&tag_id=").concat((info === null || info === void 0 ? void 0 : info.tag_id) || '', "&reservation_status=").concat((info === null || info === void 0 ? void 0 : info.reservation_status) || '', "&type_id=").concat((info === null || info === void 0 ? void 0 : info.type_id) || '', "&use_status=").concat((info === null || info === void 0 ? void 0 : info.use_status) || '', "&status=").concat((info === null || info === void 0 ? void 0 : info.status) || '', "&scrapped=0"));
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER, "/api/zz_classrooms/devices.xlsx?keyword=").concat((info === null || info === void 0 ? void 0 : info.keyword) || '', "&classroom_id=").concat((info === null || info === void 0 ? void 0 : info.classroom_id) || '', "&tag_id=").concat((info === null || info === void 0 ? void 0 : info.tag_id) || '', "&reservation_status=").concat((info === null || info === void 0 ? void 0 : info.reservation_status) || '', "&type_id=").concat((info === null || info === void 0 ? void 0 : info.type_id) || '', "&use_status=").concat((info === null || info === void 0 ? void 0 : info.use_status) || '', "&status=").concat((info === null || info === void 0 ? void 0 : info.status) || '', "&scrapped=0"));
},
children: "\u5BFC\u51FA"
})

@ -427,8 +427,6 @@ function _message_table_delete() {
}
// EXTERNAL MODULE: ./src/styles/table_botton.less
var table_botton = __webpack_require__(78289);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(80348);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
@ -446,6 +444,8 @@ var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Equipment/MessageCenterManage/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var MessageCenterManagemodules = ({"superiorTabs":"superiorTabs___UlZKK","messageCon":"messageCon___f3Dn7","messageCon_tabs":"messageCon_tabs___FEWpz","tab_item":"tab_item___HXDlP","active_tab_item":"active_tab_item___Cyi7k","wd_message_item":"wd_message_item___oTo2f","message_item":"message_item___l2I0M","message_item_warp":"message_item_warp___kvnzh","left_con":"left_con___RMKoq","wd_drop":"wd_drop___og2ZN","item_name":"item_name___OsAV1","item_time":"item_time___W2zGf","item_info":"item_info___rOlXj","item_info_warning":"item_info_warning___l5iv_","btn":"btn___Oodq4","messageCon_page":"messageCon_page___O2djX"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Equipment/MessageCenterManage/index.tsx
@ -603,7 +603,7 @@ var DeviceInfoPage = function DeviceInfoPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.PROXY_SERVER, "/api/zz_classrooms/message_centers.xlsx?msg_type=").concat(activeKey || '', "&is_read=").concat(activeKey1 || ''));
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER, "/api/zz_classrooms/message_centers.xlsx?msg_type=").concat(activeKey || '', "&is_read=").concat(activeKey1 || ''));
},
children: "\u5BFC\u51FA"
})]

@ -77,7 +77,7 @@ var rightImg_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAv
var A = "/react/build/videos/20821c44-1775248f8e1.mp4";
var B = "/react/build/videos/28357c10-1775907ad78.mp4";
var C = "/react/build/videos/4fdca3e8-17752499adf.mp4";
var D = "/react/build/videos5490aa0d-17759081e1d.mp4";
var D = "/react/build/videos/5490aa0d-17759081e1d.mp4";
var E = "/react/build/videos/3fcef362-17759076bd9.mp4";
// const B = "http://192.168.31.236:8080/c.mp4"
@ -630,7 +630,7 @@ var AccountPage = function AccountPage(_ref) {
className: "".concat(Homepagemodules.pic2, " ").concat(fade ? '' : Homepagemodules.fade),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
opacity: 0.1
opacity: 0.3
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: currentNewsIndex + 1 < newsList.length ? newsList !== null && newsList !== void 0 && (_newsList = newsList[currentNewsIndex + 1]) !== null && _newsList !== void 0 && _newsList.isPushed ? "".concat(newsList === null || newsList === void 0 || (_newsList2 = newsList[currentNewsIndex + 1]) === null || _newsList2 === void 0 || (_newsList2 = _newsList2.attachment) === null || _newsList2 === void 0 ? void 0 : _newsList2.url) : "".concat(env/* default */.Z.IMG_SERVER) + "".concat(newsList === null || newsList === void 0 || (_newsList3 = newsList[currentNewsIndex + 1]) === null || _newsList3 === void 0 || (_newsList3 = _newsList3.attachment) === null || _newsList3 === void 0 ? void 0 : _newsList3.url) : "".concat(env/* default */.Z.IMG_SERVER) + "".concat(newsList === null || newsList === void 0 || (_newsList$ = newsList[0]) === null || _newsList$ === void 0 || (_newsList$ = _newsList$.attachment) === null || _newsList$ === void 0 ? void 0 : _newsList$.url),

@ -360,342 +360,347 @@ var ElectronBPManage = function ElectronBPManage(_ref) {
}
return Promise.resolve();
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
margin: '0 100px'
background: '#fff'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ElectronBPManagemodules.header_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ElectronBPManagemodules.header_title,
children: "\u667A\u6167\u73ED\u724C\u7CFB\u7EDF"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
style: {
marginLeft: 'auto'
},
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0/\u8BBE\u5907\u7F16\u53F7",
size: "large",
className: ElectronBPManagemodules.search,
value: keyword,
onChange: function onChange(e) {
setkeyword(e.target.value);
},
onSearch: function onSearch(value) {
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(ElectronBPManagemodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ElectronBPManagemodules.clear_Data,
onClick: function onClick() {
setRowData(null);
setRooms2([]);
setOpenAddModal(true);
},
children: "\u5173\u8054\u8BBE\u5907"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ElectronBPManagemodules.header_div,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
margin: '20px 0px 6px 0px'
margin: '0 100px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ElectronBPManagemodules.header_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ElectronBPManagemodules.header_title,
children: "\u667A\u6167\u73ED\u724C\u7CFB\u7EDF"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
style: {
width: 140
marginLeft: 'auto'
},
defaultValue: sys,
value: sys,
onChange: function onChange(e) {
setSys(e);
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
classroom_id: e
}).then(function (res) {
var _res$data6;
setRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list));
});
},
children: (_ref2 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(laboratorys))) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4\u623F\u95F4",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0/\u8BBE\u5907\u7F16\u53F7",
size: "large",
style: {
width: 140
},
defaultValue: sysRoom,
value: sysRoom,
className: ElectronBPManagemodules.search,
value: keyword,
onChange: function onChange(e) {
setSysRoom(e);
setkeyword(e.target.value);
},
children: (_ref3 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(rooms))) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
loading: isLoading,
pagination: false,
dataSource: tableData,
columns: columns
}, refresh), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 7px 20px 7px'
},
children: [/*#__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"]
onSearch: function onSearch(value) {
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(ElectronBPManagemodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ElectronBPManagemodules.clear_Data,
onClick: function onClick() {
setRowData(null);
setRooms2([]);
setOpenAddModal(true);
},
children: "\u5173\u8054\u8BBE\u5907"
})]
}) : ''
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ElectronBPManagemodules.my_modal,
open: openAddModal,
title: "".concat(rowData ? '编辑关联设备' : '关联设备'),
width: "534px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return myForm.validateFields();
case 2:
if (rowData) {
(0,iot/* editIOTDevices */.Tk)({
device: objectSpread2_default()({}, myForm.getFieldsValue())
}, rowData === null || rowData === void 0 ? void 0 : rowData.id).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('编辑成功');
setOpenAddModal(false);
myForm.resetFields();
getData(true);
}
});
} else {
(0,iot/* addIOTDevices */["if"])({
device: objectSpread2_default()(objectSpread2_default()({}, myForm.getFieldsValue()), {}, {
genre: 'electronic_card',
category: 1
})
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('关联成功');
setOpenAddModal(false);
myForm.resetFields();
getData(true);
}
});
}
case 3:
case "end":
return _context.stop();
}
}, _callee);
})),
onCancel: function onCancel() {
setOpenAddModal(false);
myForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: myForm,
wrapperCol: {
span: 19
},
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ElectronBPManagemodules.header_div,
style: {
maxHeight: "550px",
overflowY: 'auto'
margin: '20px 0px 6px 0px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u7F16\u53F7",
name: "number",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
label: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u7F16\u53F7",
showCount: true,
maxLength: 10,
onChange: function onChange(e) {
var _e$target;
myForm.setFieldValue('number', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u540D\u79F0",
name: "name",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0",
showCount: true,
maxLength: 30,
style: {
width: 140
},
defaultValue: sys,
value: sys,
onChange: function onChange(e) {
var _e$target2;
myForm.setFieldValue('name', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim());
}
setSys(e);
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
classroom_id: e
}).then(function (res) {
var _res$data6;
setRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list));
});
},
children: (_ref2 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(laboratorys))) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u578B\u53F7",
name: "model",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
label: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4\u623F\u95F4",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u578B\u53F7",
showCount: true,
maxLength: 30,
style: {
width: 140
},
defaultValue: sysRoom,
value: sysRoom,
onChange: function onChange(e) {
var _e$target3;
myForm.setFieldValue('model', e === null || e === void 0 || (_e$target3 = e.target) === null || _e$target3 === void 0 || (_e$target3 = _e$target3.value) === null || _e$target3 === void 0 ? void 0 : _e$target3.trim());
}
setSysRoom(e);
},
children: (_ref3 = [{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(rooms))) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907IP",
name: "ip",
rules: [{
required: true,
message: '请输入设备IP'
}, {
validator: validateIPAddress
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907IP",
onChange: function onChange(e) {
var _e$target4;
myForm.setFieldValue('ip', e === null || e === void 0 || (_e$target4 = e.target) === null || _e$target4 === void 0 || (_e$target4 = _e$target4.value) === null || _e$target4 === void 0 ? void 0 : _e$target4.trim());
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
loading: isLoading,
pagination: false,
dataSource: tableData,
columns: columns
}, refresh), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 7px 20px 7px'
},
children: [/*#__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, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ElectronBPManagemodules.my_modal,
open: openAddModal,
title: "".concat(rowData ? '编辑关联设备' : '关联设备'),
width: "534px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return myForm.validateFields();
case 2:
if (rowData) {
(0,iot/* editIOTDevices */.Tk)({
device: objectSpread2_default()({}, myForm.getFieldsValue())
}, rowData === null || rowData === void 0 ? void 0 : rowData.id).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('编辑成功');
setOpenAddModal(false);
myForm.resetFields();
getData(true);
}
});
} else {
(0,iot/* addIOTDevices */["if"])({
device: objectSpread2_default()(objectSpread2_default()({}, myForm.getFieldsValue()), {}, {
genre: 'electronic_card',
category: 1
})
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('关联成功');
setOpenAddModal(false);
myForm.resetFields();
getData(true);
}
});
}
case 3:
case "end":
return _context.stop();
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}, _callee);
})),
onCancel: function onCancel() {
setOpenAddModal(false);
myForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: myForm,
wrapperCol: {
span: 19
},
style: {
display: 'flex'
maxHeight: "550px",
overflowY: 'auto'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u5730\u70B9",
name: "classroom_id",
label: "\u8BBE\u5907\u7F16\u53F7",
name: "number",
rules: [{
required: true,
message: '请选择实验室'
required: true
}],
style: {
width: '50%'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u9009\u62E9\u5B9E\u9A8C\u5BA4",
style: {
width: '185px'
},
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u7F16\u53F7",
showCount: true,
maxLength: 10,
onChange: function onChange(e) {
myForm.setFieldValue('classroom_room_id', null);
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
classroom_id: e
}).then(function (res) {
var _res$data7;
setRooms2(toConsumableArray_default()(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.list));
});
},
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
var _e$target;
myForm.setFieldValue('number', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "",
name: "classroom_room_id",
label: "\u8BBE\u5907\u540D\u79F0",
name: "name",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0",
showCount: true,
maxLength: 30,
onChange: function onChange(e) {
var _e$target2;
myForm.setFieldValue('name', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907\u578B\u53F7",
name: "model",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907\u578B\u53F7",
showCount: true,
maxLength: 30,
onChange: function onChange(e) {
var _e$target3;
myForm.setFieldValue('model', e === null || e === void 0 || (_e$target3 = e.target) === null || _e$target3 === void 0 || (_e$target3 = _e$target3.value) === null || _e$target3 === void 0 ? void 0 : _e$target3.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8BBE\u5907IP",
name: "ip",
rules: [{
required: true,
message: '请选择实验室房间'
message: '请输入设备IP'
}, {
validator: validateIPAddress
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
placeholder: "\u8BF7\u8F93\u5165\u8BBE\u5907IP",
onChange: function onChange(e) {
var _e$target4;
myForm.setFieldValue('ip', e === null || e === void 0 || (_e$target4 = e.target) === null || _e$target4 === void 0 || (_e$target4 = _e$target4.value) === null || _e$target4 === void 0 ? void 0 : _e$target4.trim());
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
width: '50%'
display: 'flex'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
placeholder: "\u8BF7\u9009\u62E9\u5B9E\u9A8C\u5BA4\u623F\u95F4",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u5173\u8054\u5730\u70B9",
name: "classroom_id",
rules: [{
required: true,
message: '请选择实验室'
}],
style: {
width: '185px'
width: '50%'
},
children: rooms2 === null || rooms2 === void 0 ? void 0 : rooms2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
placeholder: "\u8BF7\u9009\u62E9\u5B9E\u9A8C\u5BA4",
style: {
width: '185px'
},
onChange: function onChange(e) {
myForm.setFieldValue('classroom_room_id', null);
//实验室房间
(0,laboratory/* classroom_rooms_query */.jd)({
page: 1,
limit: 10000,
classroom_id: e
}).then(function (res) {
var _res$data7;
setRooms2(toConsumableArray_default()(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.list));
});
},
children: laboratorys === null || laboratorys === void 0 ? void 0 : laboratorys.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "",
name: "classroom_room_id",
rules: [{
required: true,
message: '请选择实验室房间'
}],
style: {
width: '50%'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: "large",
placeholder: "\u8BF7\u9009\u62E9\u5B9E\u9A8C\u5BA4\u623F\u95F4",
style: {
width: '185px'
},
children: rooms2 === null || rooms2 === void 0 ? void 0 : rooms2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.title
}, index);
})
})
})]
})]
})]
})
})]
})
})]
})
});
};
/* harmony default export */ var IOT_ElectronBPManage = ((0,_umi_production_exports.connect)(function (_ref5) {

@ -360,6 +360,7 @@ var Navigation = function Navigation(_ref) {
setIsLoading(true);
_context.next = 5;
return (0,laboratory/* reservations_query */.bU)({
is_all: true,
classroom_room_id: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.id,
section_ids: [item2 === null || item2 === void 0 ? void 0 : item2.id],
reservation_date: item === null || item === void 0 ? void 0 : item.date

@ -42,10 +42,11 @@ var SubMenu = menu/* default */.Z.SubMenu;
var Engineering = function Engineering(_ref) {
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14;
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12;
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering;
engineering = _ref.engineering,
dispatch = _ref.dispatch;
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,_react_17_0_2_react.useState)(1),
_useState2 = slicedToArray_default()(_useState, 2),
@ -59,6 +60,18 @@ var Engineering = function Engineering(_ref) {
return e + 1;
});
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
function getItem(label, key, icon, children, type) {
return {
key: key,
@ -74,7 +87,9 @@ var Engineering = function Engineering(_ref) {
className: "iconfont icon-wodeyuyue"
})), (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.classroom_center_auth) && getItem('工作台', 'workbench', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-wodegongzuotai"
}), [(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_center_auth) && getItem('实验室中心', '/laboratory/laboratoryCenter'), ((user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.classroom_auth)) && getItem('智慧大屏', '/wisdom'), ((user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.classroom_auth)) && getItem('我的实验室', '/laboratory/myLaboratory'), ((user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.classroom_auth)) && getItem('实验室房间', '/laboratory/laboratoryRoom'), ((user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.classroom_auth)) && getItem('预约规则', '/laboratory/ruleManage'), ((user === null || user === void 0 || (_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.classroom_auth)) && getItem('实验室分类', '/laboratory/laboratoryType'), ((user === null || user === void 0 || (_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.classroom_auth)) && getItem('预约管理', '/laboratory/reservationmanage')])];
}), [(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.classroom_center_auth) && getItem('实验室中心', '/laboratory/laboratoryCenter'),
// (user?.userInfo?.classroom_center_auth || user?.userInfo?.classroom_auth) && getItem('智慧大屏', '/wisdom'),
((user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.classroom_auth)) && getItem('我的实验室', '/laboratory/myLaboratory'), ((user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.classroom_auth)) && getItem('实验室房间', '/laboratory/laboratoryRoom'), ((user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.classroom_auth)) && getItem('预约规则', '/laboratory/ruleManage'), ((user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.classroom_auth)) && getItem('实验室分类', '/laboratory/laboratoryType'), ((user === null || user === void 0 || (_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.classroom_center_auth) || (user === null || user === void 0 || (_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.classroom_auth)) && getItem('预约管理', '/laboratory/reservationmanage')])];
// 获取所有二级菜单项的key
var allSubMenuKeys = items.filter(function (item) {
@ -125,11 +140,13 @@ var Engineering = function Engineering(_ref) {
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref2) {
var globalSetting = _ref2.globalSetting,
user = _ref2.user,
engineering = _ref2.engineering;
engineering = _ref2.engineering,
dispatch = _ref2.dispatch;
return {
user: user,
globalSetting: globalSetting,
engineering: engineering
engineering: engineering,
dispatch: dispatch
};
})(Engineering));

@ -685,7 +685,8 @@ var Navigation = function Navigation(_ref) {
var Info_Navigation = function Navigation(_ref) {
var _dataInfo$directors, _dataInfo$directors2;
var loading = _ref.loading,
user = _ref.user;
user = _ref.user,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
@ -703,6 +704,16 @@ var Info_Navigation = function Navigation(_ref) {
}).then(function (res) {
setDataInfo(res === null || res === void 0 ? void 0 : res.data);
});
dispatch({
type: 'globalSetting/headerFooterToggle',
payload: true
});
return function () {
dispatch({
type: 'globalSetting/headerFooterToggle',
payload: false
});
};
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Infomodules.wrap,
@ -834,10 +845,12 @@ var Info_Navigation = function Navigation(_ref) {
/* harmony default export */ var Info = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
user = _ref2.user,
engineeringNavigtion = _ref2.engineeringNavigtion;
engineeringNavigtion = _ref2.engineeringNavigtion,
dispatch = _ref2.dispatch;
return objectSpread2_default()({
loading: loading,
user: user
user: user,
dispatch: dispatch
}, engineeringNavigtion);
})(Info_Navigation));

@ -95,7 +95,7 @@
.search_params___EeMV6 {
display: flex;
position: absolute;
top: -60px;
top: -72px;
right: 0;
z-index: 10;
}

@ -368,7 +368,8 @@ var Navigation = function Navigation(_ref) {
children: [(record === null || record === void 0 ? void 0 : record.status) != 'queue' && (record === null || record === void 0 ? void 0 : record.status) != 'pending' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
cursor: "pointer",
marginRight: 10
},
onClick: function onClick() {
setOpenSeeModal(true);
@ -381,7 +382,7 @@ var Navigation = function Navigation(_ref) {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: "10px"
marginRight: 10
},
onClick: function onClick() {
var _record$sections2;

@ -373,7 +373,8 @@ var Navigation = function Navigation(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
cursor: "pointer",
marginRight: 10
},
onClick: function onClick() {
var _record$sections2;
@ -455,7 +456,7 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6367",
marginLeft: "10px",
marginRight: 10,
cursor: "pointer"
},
onClick: function onClick() {
@ -469,7 +470,8 @@ var Navigation = function Navigation(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
cursor: "pointer",
marginRight: 10
},
onClick: function onClick() {
(0,laboratory/* reservations_review */.UP)({
@ -486,7 +488,7 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#E30000",
marginLeft: "10px",
marginRight: 10,
cursor: "pointer"
},
onClick: function onClick() {

@ -794,6 +794,7 @@ var subscribe_Navigation = function Navigation(_ref) {
date: time ? dayjs_min_default()(time === null || time === void 0 ? void 0 : time.$d).format('YYYY-MM-DD') : '',
status: status,
classroom_id: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.classroom_id,
classroom_room_id: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.id,
keyword: keyword
}).then(function (res) {
var _res$data12, _res$data13;

@ -424,6 +424,7 @@ var Navigation = function Navigation(_ref) {
date: time,
section: section,
keyword: keyword,
is_now: true,
classroom_center_id: laboratoryCenter,
classroom_id: laboratory
}).then(function (res) {

@ -455,7 +455,7 @@ var Navigation = function Navigation(_ref) {
(0,laboratory/* reservation_rules_info */.Cc)({
id: record === null || record === void 0 ? void 0 : record.id
}).then(function (res) {
var _res$data11, _res$data12, _res$data13, _res$data14, _res$data15;
var _res$data11, _res$data12, _res$data13, _res$data14, _res$data15, _res$data16;
myForm.setFieldsValue({
title: res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.title,
cycle: res === null || res === void 0 || (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.cycle,
@ -466,6 +466,9 @@ var Navigation = function Navigation(_ref) {
res === null || res === void 0 || (_res$data15 = res.data) === null || _res$data15 === void 0 || (_res$data15 = _res$data15.details) === null || _res$data15 === void 0 || _res$data15.map(function (item, index) {
initialCustomRulesList[Number(item === null || item === void 0 ? void 0 : item.week) - 1].reservation[Number(item === null || item === void 0 ? void 0 : item.section) - 1] = true;
});
console.log('1111');
console.log(initialCustomRulesList);
console.log(res === null || res === void 0 || (_res$data16 = res.data) === null || _res$data16 === void 0 ? void 0 : _res$data16.details);
setNewDate(initialCustomRulesList);
setRefresh(new Date());
});

@ -45,7 +45,8 @@ var Engineering = function Engineering(_ref) {
var _user$userInfo, _user$userInfo2;
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering;
engineering = _ref.engineering,
dispatch = _ref.dispatch;
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,_react_17_0_2_react.useState)(1),
_useState2 = slicedToArray_default()(_useState, 2),
@ -59,6 +60,18 @@ var Engineering = function Engineering(_ref) {
return e + 1;
});
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
function getItem(label, key, icon, children, type) {
return {
key: key,
@ -127,11 +140,13 @@ var Engineering = function Engineering(_ref) {
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref2) {
var globalSetting = _ref2.globalSetting,
user = _ref2.user,
engineering = _ref2.engineering;
engineering = _ref2.engineering,
dispatch = _ref2.dispatch;
return {
user: user,
globalSetting: globalSetting,
engineering: engineering
engineering: engineering,
dispatch: dispatch
};
})(Engineering));

@ -4760,8 +4760,7 @@ var Navigation = function Navigation(_ref) {
height: '30vh',
backgroundSize: '100% 100%',
position: 'relative',
marginTop: '1vh',
overflow: 'hidden'
marginTop: '1vh'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Wisdommodules.content_title,

File diff suppressed because one or more lines are too long

@ -11481,6 +11481,7 @@ p {
#educoder .ant-modal .ant-modal-content .ant-modal-close {
top: 22px;
right: 22px;
z-index: 10;
}
#educoder .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-icon::before,
#educoder .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-icon::after {
@ -13281,6 +13282,5 @@ body[data-custom='auto'] {
.layoutMainClass___t8btz {
min-width: 1400px;
min-height: 80vh;
background-color: #fff;
}
Loading…
Cancel
Save