parent
535998afed
commit
dbf1abcbf4
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,156 @@
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/IOT/ElectronBPManage/index.less?modules ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.header_div___HhszB {
|
||||
display: flex;
|
||||
}
|
||||
.header_div___HhszB .header_title___qgGn3 {
|
||||
height: 38px;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 38px;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 19px;
|
||||
height: 38px;
|
||||
width: 260px;
|
||||
padding-left: 8px;
|
||||
background-color: #f6f7f9;
|
||||
border: none;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv span[class~='ant-input-search-icon'] {
|
||||
display: none;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv [class~='ant-input-affix-wrapper'] {
|
||||
background-color: #f6f7f9;
|
||||
border: none;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv [class~='ant-input-affix-wrapper'] {
|
||||
outline: none !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv span[class~='ant-input-group-addon'] {
|
||||
display: none;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv .searchIcon___ugsHx {
|
||||
margin-right: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.header_div___HhszB .search___GYwGv input {
|
||||
background-color: #f6f7f9;
|
||||
}
|
||||
.header_div___HhszB [class~='ant-form-item'] [class~='ant-form-item-label'] {
|
||||
text-align: right !important;
|
||||
}
|
||||
.header_div___HhszB [class~='ant-form-item'] [class~='ant-form-item-label'] label {
|
||||
color: #666 !important;
|
||||
display: block !important;
|
||||
height: 36px !important;
|
||||
line-height: 36px !important;
|
||||
}
|
||||
.header_div___HhszB [class~='ant-select-selector'] {
|
||||
height: 36px !important;
|
||||
}
|
||||
.header_div___HhszB [class~='ant-select-selection-item'] {
|
||||
line-height: 34px !important;
|
||||
}
|
||||
.clear_Data___BnAOz {
|
||||
width: 130px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #FFFFFF;
|
||||
line-height: 32px;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: 4px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.batch___f_bzI {
|
||||
height: 60px;
|
||||
margin: auto;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px -1px 6px 0px #efefef;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
.batch___f_bzI > aside {
|
||||
margin: 0 100px;
|
||||
padding-left: 270px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
.batch___f_bzI > aside .btns___Wmb4Z {
|
||||
flex: 1 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.batch___f_bzI > aside .btns___Wmb4Z .btn___gqt9F {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
background: #ffffff;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #d9d9d9;
|
||||
padding: 0 10px;
|
||||
color: #145dff;
|
||||
cursor: pointer;
|
||||
margin-right: 15px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.batch___f_bzI > aside .btns___Wmb4Z .btn___gqt9F i {
|
||||
color: #464f66;
|
||||
margin-right: 6px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.my_modal___d_ikP {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-form-item'] {
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-form-item'] [class~='ant-form-item-label'] {
|
||||
text-align: right !important;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-form-item'] [class~='ant-form-item-label'] label {
|
||||
color: #666 !important;
|
||||
width: 80px !important;
|
||||
display: block !important;
|
||||
line-height: 38px !important;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-form-item']:nth-child(2n) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-form-item']:nth-last-child(1) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-form-item']:nth-last-child(1) [class~='ant-select-lg'] {
|
||||
position: relative;
|
||||
left: 35px;
|
||||
}
|
||||
.my_modal___d_ikP [class~='ant-modal-footer'] {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
.maleRow___qNzzJ {
|
||||
background-color: #FCF1F1 !important;
|
||||
}
|
||||
.maleRow___qNzzJ:hover > td {
|
||||
background-color: inherit !important;
|
||||
/* 禁止行鼠标移入时改变背景颜色 */
|
||||
}
|
||||
|
||||
@ -0,0 +1,411 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61075],{
|
||||
|
||||
/***/ 11407:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_LeftOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(4751);
|
||||
// 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.4.2@@ant-design/icons-svg/es/asn/LeftOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LeftOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 88845:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_RightOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(4751);
|
||||
// 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.4.2@@ant-design/icons-svg/es/asn/RightOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_RightOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_RightOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97837:
|
||||
/*!*************************************************************!*\
|
||||
!*** ./src/pages/IOT/ViewAppointment/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 */ IOT_ViewAppointment; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(82242);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(7557);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(41498);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
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
|
||||
var _umi_production_exports = __webpack_require__(12712);
|
||||
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var ViewAppointmentmodules = ({"content":"content____xFwD","schedule":"schedule___o3VOV","item_detail":"item_detail___Qvgau","item_detail_warp":"item_detail_warp___hPMSO","header_img":"header_img___HzTSz","item_title":"item_title___iUpmc","list_item":"list_item___Diz3Q","list_item_name":"list_item_name___AUxW9","goback_button":"goback_button___gGqG8"});
|
||||
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/schedule/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var schedulemodules = ({"week":"week___Rv_0n","btn":"btn___a2OPL","weekCount":"weekCount___mG7X8","weekDay":"weekDay___ch7aL","weekDay1":"weekDay1___v2p75","weekDay2":"weekDay2___g0cHs","timeSlotWarp":"timeSlotWarp___Guf0w","timeSlot":"timeSlot___fsmG7","timeSlotItem":"timeSlotItem___H7Giz","timeSlotItem2":"timeSlotItem2___LETaH"});
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
|
||||
var LeftOutlined = __webpack_require__(11407);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules
|
||||
var RightOutlined = __webpack_require__(88845);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/schedule/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Navigation = function Navigation(_ref) {
|
||||
var _scheduleData$reserva, _scheduleData$reserva2;
|
||||
var loading = _ref.loading,
|
||||
scheduleData = _ref.scheduleData,
|
||||
onChangeWeek = _ref.onChangeWeek;
|
||||
var times = ['0:00—0:50', '1:00—1:50', '2:00—2:50', '3:00—3:50', '4:00—4:50', '5:00—5:50', '6:00—6:50', '7:00—7:50', '8:00—8:50', '9:00—9:50', '10:00—10:50', '11:00—11:50', '12:00—12:50', '13:00—13:50', '14:00—14:50', '15:00—15:50', '16:00—16:50', '17:00—17:50', '18:00—18:50', '19:00—19:50', '20:00—20:50', '21:00—21:50', '22:00—22:50', '23:00—23:50'];
|
||||
var colorType = {
|
||||
0: '#ADB2B8',
|
||||
1: '#165DFF'
|
||||
};
|
||||
var bgcolorType = {
|
||||
4: 'rgba(22,93,255,0.04)',
|
||||
2: '#FBFBFB'
|
||||
};
|
||||
var nameType = {
|
||||
0: '已过期',
|
||||
1: '已预约'
|
||||
};
|
||||
var dayType = {
|
||||
1: '一',
|
||||
2: '二',
|
||||
3: '三',
|
||||
4: '四',
|
||||
5: '五',
|
||||
6: '六',
|
||||
7: '日'
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
padding: 20
|
||||
},
|
||||
children: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.week,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: schedulemodules.btn,
|
||||
style: {
|
||||
cursor: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1 ? 'pointer' : 'not-allowed',
|
||||
color: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1 ? '#464F66' : 'rgba(70, 79, 102,.5)'
|
||||
},
|
||||
onClick: function onClick() {
|
||||
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1) {
|
||||
onChangeWeek(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) - 1);
|
||||
}
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.weekCount,
|
||||
children: ["\u7B2C", scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek, "\u5468"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: schedulemodules.btn,
|
||||
style: {
|
||||
cursor: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) == Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1 ? 'not-allowed' : 'pointer',
|
||||
color: (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) == Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1 ? 'rgba(70, 79, 102,.5)' : '#464F66'
|
||||
},
|
||||
onClick: function onClick() {
|
||||
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) < Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1) {
|
||||
onChangeWeek(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) + 1);
|
||||
}
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
|
||||
color: "#464F66"
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.weekDay,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.weekDay1,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: "\u65E5\u671F"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: "\u8BFE\u8282"
|
||||
})]
|
||||
}), scheduleData === null || scheduleData === void 0 || (_scheduleData$reserva = scheduleData.reservation_details) === null || _scheduleData$reserva === void 0 ? void 0 : _scheduleData$reserva.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.weekDay2,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginRight: 10,
|
||||
color: '#ADB2B8'
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.date
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: ["\u5468", dayType[item === null || item === void 0 ? void 0 : item.week]]
|
||||
})]
|
||||
}, item === null || item === void 0 ? void 0 : item.date);
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.timeSlotWarp,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: schedulemodules.timeSlot,
|
||||
children: times.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: schedulemodules.timeSlotItem,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: index + 1
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: item
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
}), scheduleData === null || scheduleData === void 0 || (_scheduleData$reserva2 = scheduleData.reservation_details) === null || _scheduleData$reserva2 === void 0 ? void 0 : _scheduleData$reserva2.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
width: '100%'
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.sections.map(function (item2, index2) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: schedulemodules.timeSlotItem2,
|
||||
style: {
|
||||
color: colorType[item2 === null || item2 === void 0 ? void 0 : item2.status],
|
||||
background: bgcolorType[item2 === null || item2 === void 0 ? void 0 : item2.status]
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: (item2 === null || item2 === void 0 ? void 0 : item2.status) != 5 ? nameType[item2 === null || item2 === void 0 ? void 0 : item2.status] : "\u5269\u4F59 ".concat(item2 === null || item2 === void 0 ? void 0 : item2.num)
|
||||
})
|
||||
}, "".concat(item.date, "_").concat(index2));
|
||||
})
|
||||
}, item === null || item === void 0 ? void 0 : item.date);
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var schedule = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var loading = _ref2.loading,
|
||||
engineeringNavigtion = _ref2.engineeringNavigtion;
|
||||
return objectSpread2_default()({
|
||||
loading: loading
|
||||
}, engineeringNavigtion);
|
||||
})(Navigation));
|
||||
// EXTERNAL MODULE: ./src/assets/images/roomInitImg.png
|
||||
var roomInitImg = __webpack_require__(58253);
|
||||
// EXTERNAL MODULE: ./src/service/laboratory.ts
|
||||
var laboratory = __webpack_require__(5703);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(17985);
|
||||
;// CONCATENATED MODULE: ./src/pages/IOT/ViewAppointment/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var ViewAppointment = function ViewAppointment(_ref) {
|
||||
var _scheduleData$directo;
|
||||
var loading = _ref.loading,
|
||||
dispatch = _ref.dispatch;
|
||||
var _useState = (0,_react_17_0_2_react.useState)({}),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
scheduleData = _useState2[0],
|
||||
setScheduleData = _useState2[1];
|
||||
var params = (0,_umi_production_exports.useParams)();
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getData(null);
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: false
|
||||
});
|
||||
return function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: true
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(box) {
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,laboratory/* getReservationDetails */.C)({
|
||||
id: params === null || params === void 0 ? void 0 : params.id,
|
||||
cweek: box
|
||||
}).then(function (res) {
|
||||
setScheduleData(res === null || res === void 0 ? void 0 : res.data);
|
||||
});
|
||||
case 2:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData(_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: ViewAppointmentmodules.content,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ViewAppointmentmodules.schedule,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(schedule, {
|
||||
scheduleData: scheduleData,
|
||||
onChangeWeek: function onChangeWeek(e) {
|
||||
getData(e);
|
||||
}
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ViewAppointmentmodules.item_detail,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: ViewAppointmentmodules.item_detail_warp,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
className: ViewAppointmentmodules.header_img,
|
||||
src: scheduleData !== null && scheduleData !== void 0 && scheduleData.image ? env/* default */.Z.API_SERVER + '/' + (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.image) : roomInitImg
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ViewAppointmentmodules.item_title,
|
||||
children: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.title
|
||||
}), [{
|
||||
name: '所属实验室',
|
||||
content: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.classroom_title
|
||||
}, {
|
||||
name: '使用面积',
|
||||
content: "".concat(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.area, "\u5E73\u65B9\u7C73")
|
||||
}, {
|
||||
name: '工位数量',
|
||||
content: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.work_num
|
||||
}, {
|
||||
name: '责任人',
|
||||
content: scheduleData === null || scheduleData === void 0 || (_scheduleData$directo = scheduleData.directors) === null || _scheduleData$directo === void 0 || (_scheduleData$directo = _scheduleData$directo[0]) === null || _scheduleData$directo === void 0 ? void 0 : _scheduleData$directo.name
|
||||
}].map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: ViewAppointmentmodules.list_item,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ViewAppointmentmodules.list_item_name,
|
||||
children: item === null || item === void 0 ? void 0 : item.name.split('').map(function (item2, i) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: item2
|
||||
}, i);
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: item === null || item === void 0 ? void 0 : item.content
|
||||
})]
|
||||
}, item === null || item === void 0 ? void 0 : item.name);
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ViewAppointmentmodules.goback_button,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push('/iot/electronBPManage');
|
||||
},
|
||||
children: "\u9000\u51FA"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var IOT_ViewAppointment = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var loading = _ref3.loading,
|
||||
engineeringNavigtion = _ref3.engineeringNavigtion,
|
||||
dispatch = _ref3.dispatch;
|
||||
return objectSpread2_default()(objectSpread2_default()({
|
||||
loading: loading
|
||||
}, engineeringNavigtion), {}, {
|
||||
dispatch: dispatch
|
||||
});
|
||||
})(ViewAppointment));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,191 @@
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/IOT/ViewAppointment/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.content____xFwD {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: #EFEFEF;
|
||||
}
|
||||
.content____xFwD .schedule___o3VOV {
|
||||
width: calc(100% - 380px);
|
||||
height: 100%;
|
||||
margin: 20px;
|
||||
background: #fff;
|
||||
height: calc(100% - 40px);
|
||||
border-radius: 3px;
|
||||
}
|
||||
.content____xFwD .item_detail___Qvgau {
|
||||
width: 340px;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
.content____xFwD .item_detail___Qvgau .item_detail_warp___hPMSO {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
}
|
||||
.content____xFwD .item_detail___Qvgau .header_img___HzTSz {
|
||||
width: 300px;
|
||||
height: 156px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.content____xFwD .item_detail___Qvgau .item_title___iUpmc {
|
||||
font-weight: 600;
|
||||
font-size: 30px;
|
||||
color: #000F37;
|
||||
text-align: left;
|
||||
margin: 40px 0 30px 0;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content____xFwD .item_detail___Qvgau .list_item___Diz3Q {
|
||||
color: #000000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.content____xFwD .item_detail___Qvgau .list_item_name___AUxW9 {
|
||||
width: 70px;
|
||||
font-size: 14px;
|
||||
color: #999999;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-right: 20px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content____xFwD .goback_button___gGqG8 {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
width: 300px;
|
||||
height: 38px;
|
||||
line-height: 38px;
|
||||
text-align: center;
|
||||
background: #3061D0;
|
||||
color: #fff;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/IOT/ViewAppointment/schedule/index.less?modules ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.week___Rv_0n {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
border: 1px solid #F1F1F1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.week___Rv_0n .btn___a2OPL {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: #F8F9FC;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #C3CFE0;
|
||||
opacity: 0.5;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.week___Rv_0n .weekCount___mG7X8 {
|
||||
width: 190px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
.weekDay___ch7aL {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 60px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-top: 0;
|
||||
background: rgba(22, 93, 255, 0.04);
|
||||
color: #333;
|
||||
}
|
||||
.weekDay___ch7aL .weekDay1___v2p75 {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.weekDay___ch7aL .weekDay1___v2p75 :nth-child(1) {
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
left: 71%;
|
||||
}
|
||||
.weekDay___ch7aL .weekDay1___v2p75 :nth-child(2) {
|
||||
position: absolute;
|
||||
top: 47%;
|
||||
left: 12%;
|
||||
}
|
||||
.weekDay___ch7aL .weekDay1___v2p75::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
box-sizing: border-box;
|
||||
background: linear-gradient(to top right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 1px), rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0) calc(50% + 1px), rgba(0, 0, 0, 0) 100%);
|
||||
}
|
||||
.weekDay___ch7aL .weekDay2___g0cHs {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-left: 1px solid #F1F1F1;
|
||||
}
|
||||
.timeSlotWarp___Guf0w {
|
||||
display: flex;
|
||||
}
|
||||
.timeSlot___fsmG7 {
|
||||
width: 101%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.timeSlot___fsmG7 .timeSlotItem___H7Giz {
|
||||
width: calc(100%);
|
||||
height: 60px;
|
||||
background: rgba(22, 93, 255, 0.04);
|
||||
border: 1px solid #F1F1F1;
|
||||
border-top: 0px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.timeSlot___fsmG7 .timeSlotItem___H7Giz :nth-child(1) {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
}
|
||||
.timeSlot___fsmG7 .timeSlotItem___H7Giz :nth-child(2) {
|
||||
color: #999999;
|
||||
font-size: 12px;
|
||||
}
|
||||
.timeSlotItem2___LETaH {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-top: 0px;
|
||||
border-left: 0px;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue