autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 3e19ea3732
commit 8166ae5779

@ -29,7 +29,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.b7874770.js"></script>
<script src="/react/build/umi.aff594c3.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -561,6 +561,10 @@ var IndexPage = function IndexPage(_ref) {
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 4),
GetDeviceStatistics = _useCustomRequest2[2],
DeviceStatisticsData = _useCustomRequest2[3];
var _useState19 = (0,_react_17_0_2_react.useState)(),
_useState20 = slicedToArray_default()(_useState19, 2),
videocount = _useState20[0],
setvideocount = _useState20[1];
var iframeRef = (0,_react_17_0_2_react.useRef)(null);
(0,_react_17_0_2_react.useEffect)(function () {
document.onselectstart = new Function('event.returnValue=false;');
@ -716,17 +720,21 @@ var IndexPage = function IndexPage(_ref) {
// }
function _getlist() {
_getlist = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
var res, item, count;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/zz_classrooms/statistics/camera_infos.json", {
return (0,fetch/* default */.ZP)("/streams", {
method: 'get'
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {}
if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
item = res === null || res === void 0 ? void 0 : res.payload['1'];
count = Object.keys(item.channels).length; // console.log('---', count, item.name, item.channels);
setvideocount(count);
}
case 4:
case "end":
return _context2.stop();
@ -893,7 +901,7 @@ var IndexPage = function IndexPage(_ref) {
overflow: 'auto',
marginTop: 20
},
children: (_Array$fill = Array(16).fill({})) === null || _Array$fill === void 0 ? void 0 : _Array$fill.map(function (item, index) {
children: (_Array$fill = Array(videocount).fill({})) === null || _Array$fill === void 0 ? void 0 : _Array$fill.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 6,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MsePlayer, {

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