@vtx/modals2 5.0.4 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/vm-bar-charts/index.js +9 -5
- package/lib/_components/vm-extra-tab/style/index.less +6 -3
- package/lib/_components/vm-map/index.js +1 -1
- package/lib/_components/vm-pie-charts/index.js +3 -1
- package/lib/_components/vm-tag/style/index.less +1 -0
- package/lib/_components/vm-video/HistoryGrid.js +52 -0
- package/lib/_components/vm-video/RealtimeGrid.js +8 -4
- package/lib/_components/vm-video/index.js +298 -112
- package/lib/_components/vm-video/index.less +10 -1
- package/lib/_service/index.js +5 -0
- package/lib/_util/index.js +0 -5
- package/lib/vtx-base-modal/Header/index.js +3 -1
- package/lib/vtx-base-modal/index.js +6 -3
- package/lib/vtx-car-modal/components/Info/index.js +2 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +131 -104
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +206 -158
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +19 -4
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
- package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/butter.png +0 -0
- package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/track.png +0 -0
- package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/water.png +0 -0
- package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +9 -3
- package/lib/vtx-default-modal/components/BaseInfo/index.js +6 -3
- package/lib/vtx-default-modal/index.js +9 -6
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +0 -1
- package/lib/vtx-df-modal/index.js +0 -2
- package/lib/vtx-housing-estate-modal/api.js +559 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-housing-estate-modal/components/index.js +5 -0
- package/lib/vtx-housing-estate-modal/config.js +77 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-housing-estate-modal/index.js +108 -0
- package/lib/vtx-housing-estate-modal/style/index.js +4 -0
- package/lib/vtx-housing-estate-modal/style/index.less +1 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +15 -5
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -8
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +0 -1
- package/package.json +1 -1
- package/lib/resources/jessibuca/decoder.js +0 -3839
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +0 -5350
|
@@ -62,11 +62,15 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
62
62
|
return ele.key !== 'metering';
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
if (tabsList.findIndex(function (ele) {
|
|
66
|
+
return ele.key === 'video';
|
|
67
|
+
}) > -1) {
|
|
68
|
+
if ((channels === null || channels === void 0 ? void 0 : channels.length) < 1) {
|
|
69
|
+
tabsList = tabsList.filter(function (ele) {
|
|
70
|
+
return ele.key !== 'video';
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
70
74
|
return tabsList;
|
|
71
75
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(detail)]);
|
|
72
76
|
var param = {
|
|
@@ -104,7 +108,6 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
104
108
|
}
|
|
105
109
|
});
|
|
106
110
|
}
|
|
107
|
-
console.log(tabsData);
|
|
108
111
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
109
112
|
children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
110
113
|
id: id,
|
|
@@ -27,7 +27,6 @@ var TABS_Calendar = 'calendar';
|
|
|
27
27
|
var VtxDfModal = function VtxDfModal(props) {
|
|
28
28
|
var id = props.id,
|
|
29
29
|
title = props.title,
|
|
30
|
-
subTitle = props.subTitle,
|
|
31
30
|
theme = props.theme,
|
|
32
31
|
startDate = props.startDate,
|
|
33
32
|
endDate = props.endDate,
|
|
@@ -120,7 +119,6 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
120
119
|
id: id,
|
|
121
120
|
type: "facility",
|
|
122
121
|
title: title,
|
|
123
|
-
subTitle: subTitle,
|
|
124
122
|
theme: theme,
|
|
125
123
|
source: source,
|
|
126
124
|
startDate: startDate,
|
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
|
+
import { downloadFile, request } from '@vtx/utils';
|
|
11
|
+
import { useRequest } from 'ahooks';
|
|
12
|
+
var query = /*#__PURE__*/function () {
|
|
13
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, params) {
|
|
14
|
+
var method,
|
|
15
|
+
res,
|
|
16
|
+
_args = arguments;
|
|
17
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19
|
+
case 0:
|
|
20
|
+
method = _args.length > 2 && _args[2] !== undefined ? _args[2] : 'get';
|
|
21
|
+
_context.next = 3;
|
|
22
|
+
return request[method](url, {
|
|
23
|
+
data: params
|
|
24
|
+
});
|
|
25
|
+
case 3:
|
|
26
|
+
res = _context.sent;
|
|
27
|
+
return _context.abrupt("return", res === null || res === void 0 ? void 0 : res.data);
|
|
28
|
+
case 5:
|
|
29
|
+
case "end":
|
|
30
|
+
return _context.stop();
|
|
31
|
+
}
|
|
32
|
+
}, _callee);
|
|
33
|
+
}));
|
|
34
|
+
return function query(_x, _x2) {
|
|
35
|
+
return _ref.apply(this, arguments);
|
|
36
|
+
};
|
|
37
|
+
}();
|
|
38
|
+
export var queryPage = /*#__PURE__*/function () {
|
|
39
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(url, params) {
|
|
40
|
+
var _res$data, _res$data2;
|
|
41
|
+
var res;
|
|
42
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
43
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
44
|
+
case 0:
|
|
45
|
+
_context2.next = 2;
|
|
46
|
+
return request.get(url, {
|
|
47
|
+
data: params
|
|
48
|
+
});
|
|
49
|
+
case 2:
|
|
50
|
+
res = _context2.sent;
|
|
51
|
+
return _context2.abrupt("return", {
|
|
52
|
+
list: (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.rows) || [],
|
|
53
|
+
total: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.total) || 0
|
|
54
|
+
});
|
|
55
|
+
case 4:
|
|
56
|
+
case "end":
|
|
57
|
+
return _context2.stop();
|
|
58
|
+
}
|
|
59
|
+
}, _callee2);
|
|
60
|
+
}));
|
|
61
|
+
return function queryPage(_x3, _x4) {
|
|
62
|
+
return _ref2.apply(this, arguments);
|
|
63
|
+
};
|
|
64
|
+
}();
|
|
65
|
+
var PREFIX = '/cloud/sdyd/kanban/v2';
|
|
66
|
+
|
|
67
|
+
// 违规行为下拉
|
|
68
|
+
export var getViolateBehavior = function getViolateBehavior() {
|
|
69
|
+
return query('/cloud/sdyd/common/loadEnumValue', {
|
|
70
|
+
enumCode: 'ThrowAberrantEnum'
|
|
71
|
+
}, 'post');
|
|
72
|
+
};
|
|
73
|
+
export var useGetDivisionBusinessPackages = function useGetDivisionBusinessPackages(housingEstateId) {
|
|
74
|
+
var _useRequest = useRequest(function () {
|
|
75
|
+
return query('/cloud/sdyd/user/divisionBusinessPackages', {
|
|
76
|
+
housingEstateId: housingEstateId
|
|
77
|
+
});
|
|
78
|
+
}, {
|
|
79
|
+
ready: !!housingEstateId,
|
|
80
|
+
refreshDeps: [housingEstateId]
|
|
81
|
+
}),
|
|
82
|
+
data = _useRequest.data;
|
|
83
|
+
return data;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// 枚举
|
|
87
|
+
export var useGetLoadEnumValue = function useGetLoadEnumValue(housingEstateId) {
|
|
88
|
+
var _useRequest2 = useRequest(function () {
|
|
89
|
+
return query('/cloud/sdyd/user/divisionBusinessPackages', {
|
|
90
|
+
housingEstateId: housingEstateId
|
|
91
|
+
});
|
|
92
|
+
}, {
|
|
93
|
+
ready: !!housingEstateId,
|
|
94
|
+
refreshDeps: [housingEstateId]
|
|
95
|
+
}),
|
|
96
|
+
data = _useRequest2.data;
|
|
97
|
+
return data;
|
|
98
|
+
};
|
|
99
|
+
// 综合总览
|
|
100
|
+
export var overViewService = {
|
|
101
|
+
// 投放点
|
|
102
|
+
useThrowPoints: function useThrowPoints(_ref3) {
|
|
103
|
+
var housingEstateId = _ref3.housingEstateId;
|
|
104
|
+
var _useRequest3 = useRequest(function () {
|
|
105
|
+
return query('/cloud/sdyd/throwPoint/list', {
|
|
106
|
+
housingEstateId: housingEstateId,
|
|
107
|
+
containsLongLat: true
|
|
108
|
+
});
|
|
109
|
+
}, {
|
|
110
|
+
ready: !!housingEstateId,
|
|
111
|
+
refreshDeps: [housingEstateId]
|
|
112
|
+
}),
|
|
113
|
+
data = _useRequest3.data;
|
|
114
|
+
return data;
|
|
115
|
+
},
|
|
116
|
+
// 小区基本数据
|
|
117
|
+
useEstateStatistics: function useEstateStatistics(_ref4) {
|
|
118
|
+
var housingEstateId = _ref4.housingEstateId;
|
|
119
|
+
var _useRequest4 = useRequest(function () {
|
|
120
|
+
return query("".concat(PREFIX, "/housingEstatePopup/housingEstateStatistics"), {
|
|
121
|
+
housingEstateId: housingEstateId
|
|
122
|
+
});
|
|
123
|
+
}, {
|
|
124
|
+
ready: !!housingEstateId,
|
|
125
|
+
refreshDeps: [housingEstateId]
|
|
126
|
+
}),
|
|
127
|
+
data = _useRequest4.data;
|
|
128
|
+
return data;
|
|
129
|
+
},
|
|
130
|
+
// 垃圾类型的图标
|
|
131
|
+
useGetGarbageIcons: function useGetGarbageIcons() {
|
|
132
|
+
var _useRequest5 = useRequest(function () {
|
|
133
|
+
return query('/cloud/jcss-reborn/garbageType/list', {});
|
|
134
|
+
}),
|
|
135
|
+
data = _useRequest5.data;
|
|
136
|
+
return (data === null || data === void 0 ? void 0 : data.map(function (ele) {
|
|
137
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
138
|
+
code: ele.code.toUpperCase()
|
|
139
|
+
});
|
|
140
|
+
})) || [];
|
|
141
|
+
},
|
|
142
|
+
// 投放热度按垃圾类型统计
|
|
143
|
+
useThrowSumByGarbageType: function useThrowSumByGarbageType(_ref5) {
|
|
144
|
+
var housingEstateId = _ref5.housingEstateId;
|
|
145
|
+
var _useRequest6 = useRequest(function () {
|
|
146
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByGarbageType"), {
|
|
147
|
+
housingEstateId: housingEstateId
|
|
148
|
+
});
|
|
149
|
+
}, {
|
|
150
|
+
refreshDeps: [housingEstateId]
|
|
151
|
+
// pollingInterval: 5000
|
|
152
|
+
}),
|
|
153
|
+
data = _useRequest6.data;
|
|
154
|
+
return data;
|
|
155
|
+
},
|
|
156
|
+
// 投放热度按24h统计
|
|
157
|
+
useThrowSumByHour: function useThrowSumByHour(_ref6) {
|
|
158
|
+
var housingEstateId = _ref6.housingEstateId,
|
|
159
|
+
beginTime = _ref6.beginTime,
|
|
160
|
+
endTime = _ref6.endTime;
|
|
161
|
+
var _useRequest7 = useRequest(function () {
|
|
162
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByHour"), {
|
|
163
|
+
housingEstateId: housingEstateId,
|
|
164
|
+
beginTime: beginTime,
|
|
165
|
+
endTime: endTime
|
|
166
|
+
});
|
|
167
|
+
}, {
|
|
168
|
+
refreshDeps: [housingEstateId, beginTime, endTime]
|
|
169
|
+
}),
|
|
170
|
+
data = _useRequest7.data;
|
|
171
|
+
return data;
|
|
172
|
+
},
|
|
173
|
+
// 点位分布
|
|
174
|
+
useThrowSumByPointOneWeek: function useThrowSumByPointOneWeek(_ref7) {
|
|
175
|
+
var housingEstateId = _ref7.housingEstateId;
|
|
176
|
+
var _useRequest8 = useRequest(function () {
|
|
177
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByPointOneWeek"), {
|
|
178
|
+
housingEstateId: housingEstateId
|
|
179
|
+
});
|
|
180
|
+
}, {
|
|
181
|
+
refreshDeps: [housingEstateId]
|
|
182
|
+
}),
|
|
183
|
+
data = _useRequest8.data;
|
|
184
|
+
return data;
|
|
185
|
+
},
|
|
186
|
+
// 一周趋势
|
|
187
|
+
useThrowSumByDayAndPoint: function useThrowSumByDayAndPoint(_ref8) {
|
|
188
|
+
var housingEstateId = _ref8.housingEstateId;
|
|
189
|
+
var _useRequest9 = useRequest(function () {
|
|
190
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByDayAndPointOneWeek"), {
|
|
191
|
+
housingEstateId: housingEstateId
|
|
192
|
+
});
|
|
193
|
+
}, {
|
|
194
|
+
refreshDeps: [housingEstateId]
|
|
195
|
+
}),
|
|
196
|
+
data = _useRequest9.data;
|
|
197
|
+
return data;
|
|
198
|
+
},
|
|
199
|
+
// AI工单报事件类型分布
|
|
200
|
+
useAlarmSumByType: function useAlarmSumByType(_ref9) {
|
|
201
|
+
var housingEstateId = _ref9.housingEstateId,
|
|
202
|
+
businessPackage = _ref9.businessPackage,
|
|
203
|
+
beginTime = _ref9.beginTime,
|
|
204
|
+
endTime = _ref9.endTime;
|
|
205
|
+
var _useRequest10 = useRequest(function () {
|
|
206
|
+
return query("".concat(PREFIX, "/popupCommon/aiAlarmGroupByType"), {
|
|
207
|
+
housingEstateId: housingEstateId,
|
|
208
|
+
businessPackage: businessPackage,
|
|
209
|
+
beginTime: beginTime,
|
|
210
|
+
endTime: endTime
|
|
211
|
+
});
|
|
212
|
+
}, {
|
|
213
|
+
refreshDeps: [housingEstateId, businessPackage, beginTime, endTime]
|
|
214
|
+
// pollingInterval: 5000
|
|
215
|
+
}),
|
|
216
|
+
data = _useRequest10.data;
|
|
217
|
+
return data;
|
|
218
|
+
},
|
|
219
|
+
// AI工单近一周趋势
|
|
220
|
+
useAlarmSumByDate: function useAlarmSumByDate(_ref10) {
|
|
221
|
+
var housingEstateId = _ref10.housingEstateId,
|
|
222
|
+
businessPackage = _ref10.businessPackage,
|
|
223
|
+
beginTime = _ref10.beginTime,
|
|
224
|
+
endTime = _ref10.endTime;
|
|
225
|
+
var _useRequest11 = useRequest(function () {
|
|
226
|
+
return query("".concat(PREFIX, "/popupCommon/aiAlarmGroupByTypeAndDayOneWeek"), {
|
|
227
|
+
housingEstateId: housingEstateId,
|
|
228
|
+
businessPackage: businessPackage,
|
|
229
|
+
beginTime: beginTime,
|
|
230
|
+
endTime: endTime
|
|
231
|
+
});
|
|
232
|
+
}, {
|
|
233
|
+
refreshDeps: [housingEstateId, businessPackage, beginTime, endTime]
|
|
234
|
+
}),
|
|
235
|
+
data = _useRequest11.data;
|
|
236
|
+
return data;
|
|
237
|
+
},
|
|
238
|
+
// 运营管理
|
|
239
|
+
useManagementData: function useManagementData(_ref11) {
|
|
240
|
+
var housingEstateId = _ref11.housingEstateId;
|
|
241
|
+
var _useRequest12 = useRequest(function () {
|
|
242
|
+
return query("".concat(PREFIX, "/popupCommon/operationManagement"), {
|
|
243
|
+
housingEstateId: housingEstateId
|
|
244
|
+
});
|
|
245
|
+
}, {
|
|
246
|
+
refreshDeps: [housingEstateId]
|
|
247
|
+
// pollingInterval: 5 * 60 * 1000
|
|
248
|
+
}),
|
|
249
|
+
data = _useRequest12.data;
|
|
250
|
+
return data;
|
|
251
|
+
},
|
|
252
|
+
// 工单处理效率
|
|
253
|
+
useResolveEfficiency: function useResolveEfficiency(_ref12) {
|
|
254
|
+
var housingEstateId = _ref12.housingEstateId,
|
|
255
|
+
businessPackage = _ref12.businessPackage,
|
|
256
|
+
beginTime = _ref12.beginTime,
|
|
257
|
+
endTime = _ref12.endTime;
|
|
258
|
+
var _useRequest13 = useRequest(function () {
|
|
259
|
+
return query("".concat(PREFIX, "/popupCommon/resolveEfficiency"), {
|
|
260
|
+
housingEstateId: housingEstateId,
|
|
261
|
+
businessPackage: businessPackage,
|
|
262
|
+
beginTime: beginTime,
|
|
263
|
+
endTime: endTime
|
|
264
|
+
});
|
|
265
|
+
}, {
|
|
266
|
+
refreshDeps: [housingEstateId, businessPackage, beginTime, endTime]
|
|
267
|
+
//pollingInterval: 5000
|
|
268
|
+
}),
|
|
269
|
+
data = _useRequest13.data;
|
|
270
|
+
return data;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
// 违规人公示
|
|
275
|
+
export var throwFailPersonService = {
|
|
276
|
+
useGetList: function useGetList(_ref13) {
|
|
277
|
+
var housingEstateId = _ref13.housingEstateId,
|
|
278
|
+
beginTime = _ref13.beginTime,
|
|
279
|
+
endTime = _ref13.endTime,
|
|
280
|
+
_ref13$throwPointId = _ref13.throwPointId,
|
|
281
|
+
throwPointId = _ref13$throwPointId === void 0 ? '' : _ref13$throwPointId;
|
|
282
|
+
var _useRequest14 = useRequest(function () {
|
|
283
|
+
return query("".concat(PREFIX, "/popupCommon/throwFailPersonPage"), {
|
|
284
|
+
page: 0,
|
|
285
|
+
size: 999999,
|
|
286
|
+
housingEstateId: housingEstateId,
|
|
287
|
+
beginTime: beginTime,
|
|
288
|
+
endTime: endTime,
|
|
289
|
+
throwPointId: throwPointId
|
|
290
|
+
});
|
|
291
|
+
}, {
|
|
292
|
+
ready: !!housingEstateId,
|
|
293
|
+
refreshDeps: [housingEstateId, beginTime, endTime, throwPointId]
|
|
294
|
+
}),
|
|
295
|
+
data = _useRequest14.data,
|
|
296
|
+
loading = _useRequest14.loading;
|
|
297
|
+
return {
|
|
298
|
+
data: data,
|
|
299
|
+
loading: loading
|
|
300
|
+
};
|
|
301
|
+
},
|
|
302
|
+
export: function _export(_ref14) {
|
|
303
|
+
var housingEstateId = _ref14.housingEstateId,
|
|
304
|
+
beginTime = _ref14.beginTime,
|
|
305
|
+
endTime = _ref14.endTime,
|
|
306
|
+
_ref14$throwPointId = _ref14.throwPointId,
|
|
307
|
+
throwPointId = _ref14$throwPointId === void 0 ? '' : _ref14$throwPointId,
|
|
308
|
+
_ref14$throwFailIds = _ref14.throwFailIds,
|
|
309
|
+
throwFailIds = _ref14$throwFailIds === void 0 ? '' : _ref14$throwFailIds;
|
|
310
|
+
downloadFile("".concat(PREFIX, "/popupCommon/throwFailPersonExport"), {
|
|
311
|
+
data: {
|
|
312
|
+
housingEstateId: housingEstateId,
|
|
313
|
+
beginTime: beginTime,
|
|
314
|
+
endTime: endTime,
|
|
315
|
+
throwPointId: throwPointId,
|
|
316
|
+
throwFailIds: throwFailIds
|
|
317
|
+
}
|
|
318
|
+
}, 'blob');
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
// 投放热度
|
|
323
|
+
export var throwRecordService = {
|
|
324
|
+
useGetCount: function useGetCount(_ref15) {
|
|
325
|
+
var housingEstateId = _ref15.housingEstateId,
|
|
326
|
+
startDatetime = _ref15.startDatetime,
|
|
327
|
+
endDatetime = _ref15.endDatetime;
|
|
328
|
+
var _useRequest15 = useRequest(function () {
|
|
329
|
+
return query('/cloud/sdyd/throwRecord/count', {
|
|
330
|
+
housingEstateId: housingEstateId,
|
|
331
|
+
startDatetime: startDatetime,
|
|
332
|
+
endDatetime: endDatetime
|
|
333
|
+
});
|
|
334
|
+
}, {
|
|
335
|
+
ready: !!housingEstateId,
|
|
336
|
+
refreshDeps: [housingEstateId, startDatetime, endDatetime]
|
|
337
|
+
}),
|
|
338
|
+
data = _useRequest15.data;
|
|
339
|
+
return data;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
// 违规行为
|
|
344
|
+
export var throwFailBehaviorService = {
|
|
345
|
+
useGetList: function useGetList(_ref16) {
|
|
346
|
+
var housingEstateId = _ref16.housingEstateId,
|
|
347
|
+
startDatetime = _ref16.startDatetime,
|
|
348
|
+
endDatetime = _ref16.endDatetime,
|
|
349
|
+
_ref16$throwPointId = _ref16.throwPointId,
|
|
350
|
+
throwPointId = _ref16$throwPointId === void 0 ? '' : _ref16$throwPointId,
|
|
351
|
+
_ref16$throwAberrantC = _ref16.throwAberrantCode,
|
|
352
|
+
throwAberrantCode = _ref16$throwAberrantC === void 0 ? '' : _ref16$throwAberrantC;
|
|
353
|
+
var _useRequest16 = useRequest(function () {
|
|
354
|
+
return query('/cloud/sdyd/throwFail/list', {
|
|
355
|
+
housingEstateId: housingEstateId,
|
|
356
|
+
startDatetime: startDatetime,
|
|
357
|
+
endDatetime: endDatetime,
|
|
358
|
+
throwPointId: throwPointId,
|
|
359
|
+
throwAberrantCode: throwAberrantCode,
|
|
360
|
+
auditStatusCode: 'PASSED',
|
|
361
|
+
rectificationStatuses: 'TO_BE_RESOLVED,TO_BE_AUDITED,FAILED,PASSED',
|
|
362
|
+
sourceCodes: ' VIDEO,AI'
|
|
363
|
+
});
|
|
364
|
+
}, {
|
|
365
|
+
ready: !!housingEstateId,
|
|
366
|
+
refreshDeps: [housingEstateId, startDatetime, endDatetime, throwPointId, throwAberrantCode]
|
|
367
|
+
}),
|
|
368
|
+
data = _useRequest16.data,
|
|
369
|
+
loading = _useRequest16.loading;
|
|
370
|
+
return {
|
|
371
|
+
data: data,
|
|
372
|
+
loading: loading
|
|
373
|
+
};
|
|
374
|
+
},
|
|
375
|
+
export: function _export(_ref17) {
|
|
376
|
+
var housingEstateId = _ref17.housingEstateId,
|
|
377
|
+
startDatetime = _ref17.startDatetime,
|
|
378
|
+
endDatetime = _ref17.endDatetime,
|
|
379
|
+
_ref17$throwPointId = _ref17.throwPointId,
|
|
380
|
+
throwPointId = _ref17$throwPointId === void 0 ? '' : _ref17$throwPointId;
|
|
381
|
+
downloadFile("".concat(PREFIX, "/popupCommon/throwFailPersonExport"), {
|
|
382
|
+
data: {
|
|
383
|
+
housingEstateId: housingEstateId,
|
|
384
|
+
startDatetime: startDatetime,
|
|
385
|
+
endDatetime: endDatetime,
|
|
386
|
+
throwPointId: throwPointId,
|
|
387
|
+
auditStatusCode: 'PASSED',
|
|
388
|
+
sourceCodes: ' VIDEO,AI'
|
|
389
|
+
}
|
|
390
|
+
}, 'blob');
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
export var alarmService = {
|
|
394
|
+
useGetTabs: function useGetTabs(_ref18) {
|
|
395
|
+
var housingEstateId = _ref18.housingEstateId;
|
|
396
|
+
var _useRequest17 = useRequest(function () {
|
|
397
|
+
return query(' /cloud/sdyd/user/divisionBusinessPackages', {
|
|
398
|
+
housingEstateId: housingEstateId
|
|
399
|
+
});
|
|
400
|
+
}, {
|
|
401
|
+
refreshDeps: []
|
|
402
|
+
}),
|
|
403
|
+
data = _useRequest17.data;
|
|
404
|
+
return data;
|
|
405
|
+
},
|
|
406
|
+
// 黑榜
|
|
407
|
+
useBlackRank: function useBlackRank(_ref19) {
|
|
408
|
+
var thisAreaId = _ref19.thisAreaId,
|
|
409
|
+
areaDimension = _ref19.areaDimension,
|
|
410
|
+
businessPackage = _ref19.businessPackage;
|
|
411
|
+
var _useRequest18 = useRequest(function () {
|
|
412
|
+
return query("".concat(PREFIX, "/center/operationResultBlackRanking"), {
|
|
413
|
+
thisAreaId: thisAreaId,
|
|
414
|
+
areaDimension: areaDimension,
|
|
415
|
+
businessPackage: businessPackage
|
|
416
|
+
});
|
|
417
|
+
}, {
|
|
418
|
+
refreshDeps: [thisAreaId, areaDimension, businessPackage]
|
|
419
|
+
// pollingInterval: 5 * 50 * 1000
|
|
420
|
+
}),
|
|
421
|
+
data = _useRequest18.data;
|
|
422
|
+
return data;
|
|
423
|
+
},
|
|
424
|
+
// 落地包-一周分布
|
|
425
|
+
useAiAlarmGroupByTypeAndHourOneWeek: function useAiAlarmGroupByTypeAndHourOneWeek(_ref20) {
|
|
426
|
+
var housingEstateId = _ref20.housingEstateId,
|
|
427
|
+
beginTime = _ref20.beginTime,
|
|
428
|
+
endTime = _ref20.endTime,
|
|
429
|
+
businessPackage = _ref20.businessPackage;
|
|
430
|
+
var _useRequest19 = useRequest(function () {
|
|
431
|
+
return query("".concat(PREFIX, "/popupCommon/aiAlarmGroupByTypeAndHourOneWeek"), {
|
|
432
|
+
beginTime: beginTime,
|
|
433
|
+
endTime: endTime,
|
|
434
|
+
housingEstateId: housingEstateId,
|
|
435
|
+
businessPackage: businessPackage
|
|
436
|
+
});
|
|
437
|
+
}, {
|
|
438
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
439
|
+
// pollingInterval: 5000
|
|
440
|
+
}),
|
|
441
|
+
data = _useRequest19.data;
|
|
442
|
+
var obj = {};
|
|
443
|
+
if (data !== null && data !== void 0 && data.length) {
|
|
444
|
+
data.forEach(function (item) {
|
|
445
|
+
if (!obj[item.date]) {
|
|
446
|
+
obj[item.date] = {
|
|
447
|
+
throwCount: item.count,
|
|
448
|
+
date: item.date
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
obj[item.date].throwCount += item.count;
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
return Object.values(obj);
|
|
455
|
+
},
|
|
456
|
+
// 分类质量-厨余未破袋,混合投放占比
|
|
457
|
+
useChuyuFail: function useChuyuFail(_ref21) {
|
|
458
|
+
var housingEstateId = _ref21.housingEstateId,
|
|
459
|
+
beginTime = _ref21.beginTime,
|
|
460
|
+
endTime = _ref21.endTime;
|
|
461
|
+
var _useRequest20 = useRequest(function () {
|
|
462
|
+
return query("".concat(PREFIX, "/popupCommon/chuyuFail"), {
|
|
463
|
+
beginTime: beginTime,
|
|
464
|
+
endTime: endTime,
|
|
465
|
+
housingEstateId: housingEstateId
|
|
466
|
+
});
|
|
467
|
+
}, {
|
|
468
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
469
|
+
// pollingInterval: 5000
|
|
470
|
+
}),
|
|
471
|
+
data = _useRequest20.data;
|
|
472
|
+
return data;
|
|
473
|
+
},
|
|
474
|
+
// 分类质量-混投垃圾排行
|
|
475
|
+
useMixSumRank: function useMixSumRank(_ref22) {
|
|
476
|
+
var housingEstateId = _ref22.housingEstateId,
|
|
477
|
+
beginTime = _ref22.beginTime,
|
|
478
|
+
endTime = _ref22.endTime;
|
|
479
|
+
var _useRequest21 = useRequest(function () {
|
|
480
|
+
return query("".concat(PREFIX, "/popupCommon/mixedThrowSumByGarbageType"), {
|
|
481
|
+
beginTime: beginTime,
|
|
482
|
+
endTime: endTime,
|
|
483
|
+
housingEstateId: housingEstateId
|
|
484
|
+
});
|
|
485
|
+
}, {
|
|
486
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
487
|
+
}),
|
|
488
|
+
data = _useRequest21.data;
|
|
489
|
+
return data;
|
|
490
|
+
},
|
|
491
|
+
// 满溢-处理效率
|
|
492
|
+
useMyEfficiency: function useMyEfficiency(_ref23) {
|
|
493
|
+
var housingEstateId = _ref23.housingEstateId,
|
|
494
|
+
beginTime = _ref23.beginTime,
|
|
495
|
+
endTime = _ref23.endTime;
|
|
496
|
+
var _useRequest22 = useRequest(function () {
|
|
497
|
+
return query("".concat(PREFIX, "/popupCommon/overflowResolveEfficiency"), {
|
|
498
|
+
beginTime: beginTime,
|
|
499
|
+
endTime: endTime,
|
|
500
|
+
housingEstateId: housingEstateId
|
|
501
|
+
});
|
|
502
|
+
}, {
|
|
503
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
504
|
+
}),
|
|
505
|
+
data = _useRequest22.data;
|
|
506
|
+
return data;
|
|
507
|
+
},
|
|
508
|
+
// 满溢-垃圾类型占比
|
|
509
|
+
useMySumByGarbageType: function useMySumByGarbageType(_ref24) {
|
|
510
|
+
var housingEstateId = _ref24.housingEstateId,
|
|
511
|
+
beginTime = _ref24.beginTime,
|
|
512
|
+
endTime = _ref24.endTime;
|
|
513
|
+
var _useRequest23 = useRequest(function () {
|
|
514
|
+
return query("".concat(PREFIX, "/popupCommon/overflowSumByGarbageType"), {
|
|
515
|
+
beginTime: beginTime,
|
|
516
|
+
endTime: endTime,
|
|
517
|
+
housingEstateId: housingEstateId
|
|
518
|
+
});
|
|
519
|
+
}, {
|
|
520
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
521
|
+
}),
|
|
522
|
+
data = _useRequest23.data;
|
|
523
|
+
return data;
|
|
524
|
+
},
|
|
525
|
+
// 满溢-一周趋势变化
|
|
526
|
+
useMySumByGarbageTypeAndDay: function useMySumByGarbageTypeAndDay(_ref25) {
|
|
527
|
+
var housingEstateId = _ref25.housingEstateId,
|
|
528
|
+
beginTime = _ref25.beginTime,
|
|
529
|
+
endTime = _ref25.endTime;
|
|
530
|
+
var _useRequest24 = useRequest(function () {
|
|
531
|
+
return query("".concat(PREFIX, "/popupCommon/overflowSumByGarbageTypeAndDay"), {
|
|
532
|
+
beginTime: beginTime,
|
|
533
|
+
endTime: endTime,
|
|
534
|
+
housingEstateId: housingEstateId
|
|
535
|
+
});
|
|
536
|
+
}, {
|
|
537
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
538
|
+
}),
|
|
539
|
+
data = _useRequest24.data;
|
|
540
|
+
return data;
|
|
541
|
+
},
|
|
542
|
+
// 满溢-时段分布
|
|
543
|
+
useMySumByGarbageTypeAndPeriod: function useMySumByGarbageTypeAndPeriod(_ref26) {
|
|
544
|
+
var housingEstateId = _ref26.housingEstateId,
|
|
545
|
+
beginTime = _ref26.beginTime,
|
|
546
|
+
endTime = _ref26.endTime;
|
|
547
|
+
var _useRequest25 = useRequest(function () {
|
|
548
|
+
return query("".concat(PREFIX, "/popupCommon/overflowSumByGarbageTypeAndPeriod"), {
|
|
549
|
+
beginTime: beginTime,
|
|
550
|
+
endTime: endTime,
|
|
551
|
+
housingEstateId: housingEstateId
|
|
552
|
+
});
|
|
553
|
+
}, {
|
|
554
|
+
refreshDeps: [beginTime, endTime, housingEstateId]
|
|
555
|
+
}),
|
|
556
|
+
data = _useRequest25.data;
|
|
557
|
+
return data;
|
|
558
|
+
}
|
|
559
|
+
};
|