|
|
|
|
@ -78,7 +78,7 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Navigation = function Navigation(_ref) {
|
|
|
|
|
var _infoData$settings, _moment, _deviceInfo$memo;
|
|
|
|
|
var _infoData$settings, _infoData$settings2, _moment, _moment2, _deviceInfo$memo;
|
|
|
|
|
var loading = _ref.loading,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
@ -87,33 +87,29 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
|
|
|
|
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
|
|
|
|
searchParams = _useSearchParams2[0];
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)('提示'),
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
moni = _useState2[0],
|
|
|
|
|
setmoni = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
viewVisible = _useState2[0],
|
|
|
|
|
setViewVisible = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
viewVisible = _useState4[0],
|
|
|
|
|
setViewVisible = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
viewData = _useState6[0],
|
|
|
|
|
setViewData = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
viewData = _useState4[0],
|
|
|
|
|
setViewData = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
content: "",
|
|
|
|
|
type: ""
|
|
|
|
|
}),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
data = _useState6[0],
|
|
|
|
|
setData = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
data = _useState8[0],
|
|
|
|
|
setData = _useState8[1];
|
|
|
|
|
infoData = _useState8[0],
|
|
|
|
|
setInfoData = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
infoData = _useState10[0],
|
|
|
|
|
setInfoData = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
deviceInfo = _useState12[0],
|
|
|
|
|
setDeviceInfo = _useState12[1];
|
|
|
|
|
deviceInfo = _useState10[0],
|
|
|
|
|
setDeviceInfo = _useState10[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
// 详情
|
|
|
|
|
(0,equipment/* devices_info */.jc)({
|
|
|
|
|
@ -363,7 +359,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907\u540D\u79F0"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.name,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
style: {
|
|
|
|
|
@ -375,7 +371,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u6240\u5C5E\u5B9E\u9A8C\u5BA4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.classroom_title,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.classroom_title
|
|
|
|
|
@ -387,7 +383,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907\u578B\u53F7"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.model,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.model
|
|
|
|
|
@ -396,7 +392,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907IP\u5730\u5740"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.ip,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.ip
|
|
|
|
|
@ -408,19 +404,19 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907\u91D1\u989D"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.amount,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.amount
|
|
|
|
|
children: [(infoData === null || infoData === void 0 ? void 0 : infoData.amount) || '--', "\u5143"]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u6700\u5927\u5E76\u53D1\u4EBA\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 || (_infoData$settings = infoData.settings) === null || _infoData$settings === void 0 ? void 0 : _infoData$settings.concurrence,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: [infoData === null || infoData === void 0 || (_infoData$settings = infoData.settings) === null || _infoData$settings === void 0 ? void 0 : _infoData$settings.concurrence, " \u4EBA"]
|
|
|
|
|
children: [(infoData === null || infoData === void 0 || (_infoData$settings2 = infoData.settings) === null || _infoData$settings2 === void 0 ? void 0 : _infoData$settings2.concurrence) || '--', " \u4EBA"]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -429,19 +425,19 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907\u63A5\u5165\u4EBA"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.real_name,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: "\u65BD\u5E73\u7EFF"
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.real_name
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907\u63A5\u5165\u65F6\u95F4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: (_moment = dayjs_min_default()(infoData === null || infoData === void 0 ? void 0 : infoData.created_at)) === null || _moment === void 0 ? void 0 : _moment.format('YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: (_moment = dayjs_min_default()(infoData === null || infoData === void 0 ? void 0 : infoData.created_at)) === null || _moment === void 0 ? void 0 : _moment.format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
children: (_moment2 = dayjs_min_default()(infoData === null || infoData === void 0 ? void 0 : infoData.created_at)) === null || _moment2 === void 0 ? void 0 : _moment2.format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -450,7 +446,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u6240\u5C5E\u623F\u95F4\u53F7"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.classroom_room_title,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.classroom_room_title
|
|
|
|
|
@ -459,7 +455,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
className: infomodules.jbxx_content_list_label,
|
|
|
|
|
children: "\u8BBE\u5907MAC\u5730\u5740"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: moni,
|
|
|
|
|
title: infoData === null || infoData === void 0 ? void 0 : infoData.mac_address,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.jbxx_content_list_value,
|
|
|
|
|
children: infoData === null || infoData === void 0 ? void 0 : infoData.mac_address
|
|
|
|
|
@ -468,7 +464,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), (infoData === null || infoData === void 0 ? void 0 : infoData.category) == 'virtual' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: infomodules.echarts_style,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: infomodules.echarts_style_title,
|