@vtx/modals2 5.0.9 → 5.0.10
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/index.js +2 -1
- package/lib/vtx-base-modal/index.js +15 -2
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +139 -0
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.less +73 -0
- package/lib/vtx-housing-estate-modal/components/index.js +1 -0
- package/lib/vtx-housing-estate-modal/imgs/aibox.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/aibox_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/android.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/android_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_video.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_video_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/api.js +575 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +61 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +132 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL.js +44 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +104 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +79 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +111 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +162 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX.js +43 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +183 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +97 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +65 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +103 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +104 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.less +116 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +123 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/index.js +56 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/index.less +242 -0
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +138 -0
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.less +78 -0
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/Content.js +63 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +61 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +117 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.js +52 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-sdyd-tfd-modal/components/index.js +6 -0
- package/lib/vtx-sdyd-tfd-modal/config.js +63 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/BOTTLE.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/CAN.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/KRAFT_PAPER_BOX.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/PLASTIC_BAG.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/aibox.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/aibox_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/android.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/android_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/avatar.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/garbage_default.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/hmd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/rank.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/index.js +113 -0
- package/lib/vtx-sdyd-tfd-modal/style/index.js +4 -0
- package/lib/vtx-sdyd-tfd-modal/style/index.less +1 -0
- package/lib/vtx-wr-modal/components/Appraise/index.js +123 -36
- package/lib/vtx-wr-modal/components/Appraise/index.less +40 -43
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +151 -227
- package/lib/vtx-wr-modal/components/Base/Ptss.js +215 -0
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +163 -76
- package/lib/vtx-wr-modal/components/Base/assets/blue/dswsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/tywsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/dswsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/tywsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/index.js +319 -32
- package/lib/vtx-wr-modal/components/Base/index.less +237 -227
- package/lib/vtx-wr-modal/components/Build/index.js +169 -0
- package/lib/vtx-wr-modal/components/Build/index.less +104 -0
- package/lib/vtx-wr-modal/components/File/index.js +107 -0
- package/lib/vtx-wr-modal/components/File/index.less +41 -0
- package/lib/vtx-wr-modal/components/Score/index.js +122 -28
- package/lib/vtx-wr-modal/components/Score/index.less +36 -36
- package/lib/vtx-wr-modal/components/index.js +3 -1
- package/lib/vtx-wr-modal/index.js +79 -15
- package/lib/vtx-wr-modal/style/index.js +2 -0
- package/package.json +12 -11
|
@@ -0,0 +1,575 @@
|
|
|
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(throwPointId) {
|
|
74
|
+
var _useRequest = useRequest(function () {
|
|
75
|
+
return query('/cloud/sdyd/user/divisionBusinessPackages', {
|
|
76
|
+
throwPointId: throwPointId
|
|
77
|
+
});
|
|
78
|
+
}, {
|
|
79
|
+
ready: !!throwPointId,
|
|
80
|
+
refreshDeps: [throwPointId]
|
|
81
|
+
}),
|
|
82
|
+
data = _useRequest.data;
|
|
83
|
+
return data;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// 枚举
|
|
87
|
+
export var useGetLoadEnumValue = function useGetLoadEnumValue(throwPointId) {
|
|
88
|
+
var _useRequest2 = useRequest(function () {
|
|
89
|
+
return query('/cloud/sdyd/user/divisionBusinessPackages', {
|
|
90
|
+
throwPointId: throwPointId
|
|
91
|
+
});
|
|
92
|
+
}, {
|
|
93
|
+
ready: !!throwPointId,
|
|
94
|
+
refreshDeps: [throwPointId]
|
|
95
|
+
}),
|
|
96
|
+
data = _useRequest2.data;
|
|
97
|
+
return data;
|
|
98
|
+
};
|
|
99
|
+
// 综合总览
|
|
100
|
+
export var overViewService = {
|
|
101
|
+
// 投放点
|
|
102
|
+
useThrowPoints: function useThrowPoints(_ref3) {
|
|
103
|
+
var throwPointId = _ref3.throwPointId;
|
|
104
|
+
var _useRequest3 = useRequest(function () {
|
|
105
|
+
return query('/cloud/sdyd/throwPoint/list', {
|
|
106
|
+
throwPointId: throwPointId,
|
|
107
|
+
containsLongLat: true
|
|
108
|
+
});
|
|
109
|
+
}, {
|
|
110
|
+
ready: !!throwPointId,
|
|
111
|
+
refreshDeps: [throwPointId]
|
|
112
|
+
}),
|
|
113
|
+
data = _useRequest3.data;
|
|
114
|
+
return data;
|
|
115
|
+
},
|
|
116
|
+
// 小区基本数据
|
|
117
|
+
useEstateStatistics: function useEstateStatistics(_ref4) {
|
|
118
|
+
var throwPointId = _ref4.throwPointId;
|
|
119
|
+
var _useRequest4 = useRequest(function () {
|
|
120
|
+
return query("/cloud/sdyd/throwPoint/intelligent/queryById", {
|
|
121
|
+
throwPointId: throwPointId
|
|
122
|
+
});
|
|
123
|
+
}, {
|
|
124
|
+
ready: !!throwPointId,
|
|
125
|
+
refreshDeps: [throwPointId]
|
|
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 throwPointId = _ref5.throwPointId;
|
|
145
|
+
var _useRequest6 = useRequest(function () {
|
|
146
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByGarbageType"), {
|
|
147
|
+
throwPointId: throwPointId
|
|
148
|
+
});
|
|
149
|
+
}, {
|
|
150
|
+
refreshDeps: [throwPointId]
|
|
151
|
+
// pollingInterval: 5000
|
|
152
|
+
}),
|
|
153
|
+
data = _useRequest6.data;
|
|
154
|
+
return data;
|
|
155
|
+
},
|
|
156
|
+
// 投放热度按24h统计
|
|
157
|
+
useThrowSumByHour: function useThrowSumByHour(_ref6) {
|
|
158
|
+
var throwPointId = _ref6.throwPointId,
|
|
159
|
+
beginTime = _ref6.beginTime,
|
|
160
|
+
endTime = _ref6.endTime;
|
|
161
|
+
var _useRequest7 = useRequest(function () {
|
|
162
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByHour"), {
|
|
163
|
+
throwPointId: throwPointId,
|
|
164
|
+
beginTime: beginTime,
|
|
165
|
+
endTime: endTime
|
|
166
|
+
});
|
|
167
|
+
}, {
|
|
168
|
+
refreshDeps: [throwPointId, beginTime, endTime]
|
|
169
|
+
}),
|
|
170
|
+
data = _useRequest7.data;
|
|
171
|
+
return data;
|
|
172
|
+
},
|
|
173
|
+
// 点位分布
|
|
174
|
+
useThrowSumByPointOneWeek: function useThrowSumByPointOneWeek(_ref7) {
|
|
175
|
+
var throwPointId = _ref7.throwPointId;
|
|
176
|
+
var _useRequest8 = useRequest(function () {
|
|
177
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByPointOneWeek"), {
|
|
178
|
+
throwPointId: throwPointId
|
|
179
|
+
});
|
|
180
|
+
}, {
|
|
181
|
+
refreshDeps: [throwPointId]
|
|
182
|
+
}),
|
|
183
|
+
data = _useRequest8.data;
|
|
184
|
+
return data;
|
|
185
|
+
},
|
|
186
|
+
// 一周趋势
|
|
187
|
+
useThrowSumByDayAndPoint: function useThrowSumByDayAndPoint(_ref8) {
|
|
188
|
+
var throwPointId = _ref8.throwPointId;
|
|
189
|
+
var _useRequest9 = useRequest(function () {
|
|
190
|
+
return query("".concat(PREFIX, "/popupCommon/throwSumByDayAndPointOneWeek"), {
|
|
191
|
+
throwPointId: throwPointId
|
|
192
|
+
});
|
|
193
|
+
}, {
|
|
194
|
+
refreshDeps: [throwPointId]
|
|
195
|
+
}),
|
|
196
|
+
data = _useRequest9.data;
|
|
197
|
+
return data;
|
|
198
|
+
},
|
|
199
|
+
// AI工单报事件类型分布
|
|
200
|
+
useAlarmSumByType: function useAlarmSumByType(_ref9) {
|
|
201
|
+
var throwPointId = _ref9.throwPointId,
|
|
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
|
+
throwPointId: throwPointId,
|
|
208
|
+
businessPackage: businessPackage,
|
|
209
|
+
beginTime: beginTime,
|
|
210
|
+
endTime: endTime
|
|
211
|
+
});
|
|
212
|
+
}, {
|
|
213
|
+
refreshDeps: [throwPointId, businessPackage, beginTime, endTime]
|
|
214
|
+
// pollingInterval: 5000
|
|
215
|
+
}),
|
|
216
|
+
data = _useRequest10.data;
|
|
217
|
+
return data;
|
|
218
|
+
},
|
|
219
|
+
useThrowCount: function useThrowCount(_ref10) {
|
|
220
|
+
var throwPointId = _ref10.throwPointId;
|
|
221
|
+
var _useRequest11 = useRequest(function () {
|
|
222
|
+
return query('/cloud/sdyd/housingEstateKanban/throwPointDetail', {
|
|
223
|
+
throwPointId: throwPointId
|
|
224
|
+
});
|
|
225
|
+
}, {
|
|
226
|
+
refreshDeps: [throwPointId]
|
|
227
|
+
// pollingInterval: 5000
|
|
228
|
+
}),
|
|
229
|
+
data = _useRequest11.data;
|
|
230
|
+
return data === null || data === void 0 ? void 0 : data.throwAberrantStatistics;
|
|
231
|
+
},
|
|
232
|
+
// AI工单近一周趋势
|
|
233
|
+
useAlarmSumByDate: function useAlarmSumByDate(_ref11) {
|
|
234
|
+
var throwPointId = _ref11.throwPointId,
|
|
235
|
+
businessPackage = _ref11.businessPackage,
|
|
236
|
+
beginTime = _ref11.beginTime,
|
|
237
|
+
endTime = _ref11.endTime;
|
|
238
|
+
var _useRequest12 = useRequest(function () {
|
|
239
|
+
return query("".concat(PREFIX, "/popupCommon/aiAlarmGroupByTypeAndDayOneWeek"), {
|
|
240
|
+
throwPointId: throwPointId,
|
|
241
|
+
businessPackage: businessPackage,
|
|
242
|
+
beginTime: beginTime,
|
|
243
|
+
endTime: endTime
|
|
244
|
+
});
|
|
245
|
+
}, {
|
|
246
|
+
refreshDeps: [throwPointId, businessPackage, beginTime, endTime]
|
|
247
|
+
}),
|
|
248
|
+
data = _useRequest12.data;
|
|
249
|
+
return data;
|
|
250
|
+
},
|
|
251
|
+
// 运营管理
|
|
252
|
+
useManagementData: function useManagementData(_ref12) {
|
|
253
|
+
var throwPointId = _ref12.throwPointId;
|
|
254
|
+
var _useRequest13 = useRequest(function () {
|
|
255
|
+
return query("".concat(PREFIX, "/popupCommon/operationManagement"), {
|
|
256
|
+
throwPointId: throwPointId
|
|
257
|
+
});
|
|
258
|
+
}, {
|
|
259
|
+
refreshDeps: [throwPointId]
|
|
260
|
+
// pollingInterval: 5 * 60 * 1000
|
|
261
|
+
}),
|
|
262
|
+
data = _useRequest13.data;
|
|
263
|
+
return data;
|
|
264
|
+
},
|
|
265
|
+
// 工单处理效率
|
|
266
|
+
useResolveEfficiency: function useResolveEfficiency(_ref13) {
|
|
267
|
+
var throwPointId = _ref13.throwPointId,
|
|
268
|
+
businessPackage = _ref13.businessPackage,
|
|
269
|
+
beginTime = _ref13.beginTime,
|
|
270
|
+
endTime = _ref13.endTime;
|
|
271
|
+
var _useRequest14 = useRequest(function () {
|
|
272
|
+
return query("".concat(PREFIX, "/popupCommon/resolveEfficiency"), {
|
|
273
|
+
throwPointId: throwPointId,
|
|
274
|
+
businessPackage: businessPackage,
|
|
275
|
+
beginTime: beginTime,
|
|
276
|
+
endTime: endTime
|
|
277
|
+
});
|
|
278
|
+
}, {
|
|
279
|
+
refreshDeps: [throwPointId, businessPackage, beginTime, endTime]
|
|
280
|
+
//pollingInterval: 5000
|
|
281
|
+
}),
|
|
282
|
+
data = _useRequest14.data;
|
|
283
|
+
return data;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// 违规人公示
|
|
288
|
+
export var throwFailPersonService = {
|
|
289
|
+
useGetList: function useGetList(_ref14) {
|
|
290
|
+
var beginTime = _ref14.beginTime,
|
|
291
|
+
endTime = _ref14.endTime,
|
|
292
|
+
_ref14$throwPointId = _ref14.throwPointId,
|
|
293
|
+
throwPointId = _ref14$throwPointId === void 0 ? '' : _ref14$throwPointId;
|
|
294
|
+
var _useRequest15 = useRequest(function () {
|
|
295
|
+
return query("".concat(PREFIX, "/popupCommon/throwFailPersonPage"), {
|
|
296
|
+
page: 0,
|
|
297
|
+
size: 999999,
|
|
298
|
+
beginTime: beginTime,
|
|
299
|
+
endTime: endTime,
|
|
300
|
+
throwPointId: throwPointId
|
|
301
|
+
});
|
|
302
|
+
}, {
|
|
303
|
+
ready: !!throwPointId,
|
|
304
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
305
|
+
}),
|
|
306
|
+
data = _useRequest15.data,
|
|
307
|
+
loading = _useRequest15.loading;
|
|
308
|
+
return {
|
|
309
|
+
data: data,
|
|
310
|
+
loading: loading
|
|
311
|
+
};
|
|
312
|
+
},
|
|
313
|
+
export: function _export(_ref15) {
|
|
314
|
+
var throwPointId = _ref15.throwPointId,
|
|
315
|
+
beginTime = _ref15.beginTime,
|
|
316
|
+
endTime = _ref15.endTime,
|
|
317
|
+
_ref15$throwFailIds = _ref15.throwFailIds,
|
|
318
|
+
throwFailIds = _ref15$throwFailIds === void 0 ? '' : _ref15$throwFailIds;
|
|
319
|
+
downloadFile("".concat(PREFIX, "/popupCommon/throwFailPersonExport"), {
|
|
320
|
+
data: _defineProperty(_defineProperty({
|
|
321
|
+
throwPointId: throwPointId,
|
|
322
|
+
beginTime: beginTime,
|
|
323
|
+
endTime: endTime
|
|
324
|
+
}, "throwPointId", throwPointId), "throwFailIds", throwFailIds)
|
|
325
|
+
}, 'blob');
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
// 投放热度
|
|
330
|
+
export var throwRecordService = {
|
|
331
|
+
useGetCount: function useGetCount(_ref16) {
|
|
332
|
+
var throwPointId = _ref16.throwPointId,
|
|
333
|
+
startDatetime = _ref16.startDatetime,
|
|
334
|
+
endDatetime = _ref16.endDatetime;
|
|
335
|
+
var _useRequest16 = useRequest(function () {
|
|
336
|
+
return query('/cloud/sdyd/throwRecord/count', {
|
|
337
|
+
throwPointId: throwPointId,
|
|
338
|
+
startDatetime: startDatetime,
|
|
339
|
+
endDatetime: endDatetime
|
|
340
|
+
});
|
|
341
|
+
}, {
|
|
342
|
+
ready: !!throwPointId,
|
|
343
|
+
refreshDeps: [throwPointId, startDatetime, endDatetime]
|
|
344
|
+
}),
|
|
345
|
+
data = _useRequest16.data;
|
|
346
|
+
return data;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
// 违规行为
|
|
351
|
+
export var throwFailBehaviorService = {
|
|
352
|
+
useGetList: function useGetList(_ref17) {
|
|
353
|
+
var throwPointId = _ref17.throwPointId,
|
|
354
|
+
startDatetime = _ref17.startDatetime,
|
|
355
|
+
endDatetime = _ref17.endDatetime,
|
|
356
|
+
_ref17$throwAberrantC = _ref17.throwAberrantCode,
|
|
357
|
+
throwAberrantCode = _ref17$throwAberrantC === void 0 ? '' : _ref17$throwAberrantC;
|
|
358
|
+
var _useRequest17 = useRequest(function () {
|
|
359
|
+
return query('/cloud/sdyd/throwFail/list', {
|
|
360
|
+
throwPointId: throwPointId,
|
|
361
|
+
startDatetime: startDatetime,
|
|
362
|
+
endDatetime: endDatetime,
|
|
363
|
+
throwAberrantCode: throwAberrantCode,
|
|
364
|
+
auditStatusCode: 'PASSED',
|
|
365
|
+
rectificationStatuses: 'TO_BE_RESOLVED,TO_BE_AUDITED,FAILED,PASSED',
|
|
366
|
+
sourceCodes: ' VIDEO,AI'
|
|
367
|
+
});
|
|
368
|
+
}, {
|
|
369
|
+
ready: !!throwPointId,
|
|
370
|
+
refreshDeps: [startDatetime, endDatetime, throwPointId, throwAberrantCode]
|
|
371
|
+
}),
|
|
372
|
+
data = _useRequest17.data,
|
|
373
|
+
loading = _useRequest17.loading;
|
|
374
|
+
return {
|
|
375
|
+
data: data,
|
|
376
|
+
loading: loading
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
export: function _export(_ref18) {
|
|
380
|
+
var throwPointId = _ref18.throwPointId,
|
|
381
|
+
startDatetime = _ref18.startDatetime,
|
|
382
|
+
endDatetime = _ref18.endDatetime;
|
|
383
|
+
downloadFile("".concat(PREFIX, "/popupCommon/throwFailPersonExport"), {
|
|
384
|
+
data: {
|
|
385
|
+
throwPointId: throwPointId,
|
|
386
|
+
startDatetime: startDatetime,
|
|
387
|
+
endDatetime: endDatetime,
|
|
388
|
+
auditStatusCode: 'PASSED',
|
|
389
|
+
sourceCodes: ' VIDEO,AI'
|
|
390
|
+
}
|
|
391
|
+
}, 'blob');
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
export var alarmService = {
|
|
395
|
+
useGetTabs: function useGetTabs(_ref19) {
|
|
396
|
+
var throwPointId = _ref19.throwPointId;
|
|
397
|
+
var _useRequest18 = useRequest(function () {
|
|
398
|
+
return query('/cloud/sdyd/user/divisionBusinessPackages', {
|
|
399
|
+
throwPointId: throwPointId
|
|
400
|
+
});
|
|
401
|
+
}, {
|
|
402
|
+
refreshDeps: []
|
|
403
|
+
}),
|
|
404
|
+
data = _useRequest18.data;
|
|
405
|
+
return data;
|
|
406
|
+
},
|
|
407
|
+
// 黑榜
|
|
408
|
+
useBlackRank: function useBlackRank(_ref20) {
|
|
409
|
+
var thisAreaId = _ref20.thisAreaId,
|
|
410
|
+
areaDimension = _ref20.areaDimension,
|
|
411
|
+
businessPackage = _ref20.businessPackage;
|
|
412
|
+
var _useRequest19 = useRequest(function () {
|
|
413
|
+
return query("".concat(PREFIX, "/center/operationResultBlackRanking"), {
|
|
414
|
+
thisAreaId: thisAreaId,
|
|
415
|
+
areaDimension: areaDimension,
|
|
416
|
+
businessPackage: businessPackage
|
|
417
|
+
});
|
|
418
|
+
}, {
|
|
419
|
+
refreshDeps: [thisAreaId, areaDimension, businessPackage]
|
|
420
|
+
// pollingInterval: 5 * 50 * 1000
|
|
421
|
+
}),
|
|
422
|
+
data = _useRequest19.data;
|
|
423
|
+
return data;
|
|
424
|
+
},
|
|
425
|
+
// 落地包-一周分布
|
|
426
|
+
useAiAlarmGroupByTypeAndHourOneWeek: function useAiAlarmGroupByTypeAndHourOneWeek(_ref21) {
|
|
427
|
+
var throwPointId = _ref21.throwPointId,
|
|
428
|
+
beginTime = _ref21.beginTime,
|
|
429
|
+
endTime = _ref21.endTime,
|
|
430
|
+
businessPackage = _ref21.businessPackage;
|
|
431
|
+
var _useRequest20 = useRequest(function () {
|
|
432
|
+
return query("".concat(PREFIX, "/popupCommon/aiAlarmGroupByTypeAndHourOneWeek"), {
|
|
433
|
+
beginTime: beginTime,
|
|
434
|
+
endTime: endTime,
|
|
435
|
+
throwPointId: throwPointId,
|
|
436
|
+
businessPackage: businessPackage
|
|
437
|
+
});
|
|
438
|
+
}, {
|
|
439
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
440
|
+
// pollingInterval: 5000
|
|
441
|
+
}),
|
|
442
|
+
data = _useRequest20.data;
|
|
443
|
+
var obj = {};
|
|
444
|
+
if (data !== null && data !== void 0 && data.length) {
|
|
445
|
+
data.forEach(function (item) {
|
|
446
|
+
if (!obj[item.date]) {
|
|
447
|
+
obj[item.date] = {
|
|
448
|
+
throwCount: item.count,
|
|
449
|
+
date: item.date
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
obj[item.date].throwCount += item.count;
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
return Object.values(obj);
|
|
456
|
+
},
|
|
457
|
+
// 分类质量-厨余未破袋,混合投放占比
|
|
458
|
+
useChuyuFail: function useChuyuFail(_ref22) {
|
|
459
|
+
var throwPointId = _ref22.throwPointId,
|
|
460
|
+
beginTime = _ref22.beginTime,
|
|
461
|
+
endTime = _ref22.endTime;
|
|
462
|
+
var _useRequest21 = useRequest(function () {
|
|
463
|
+
return query("".concat(PREFIX, "/popupCommon/chuyuFail"), {
|
|
464
|
+
beginTime: beginTime,
|
|
465
|
+
endTime: endTime,
|
|
466
|
+
throwPointId: throwPointId
|
|
467
|
+
});
|
|
468
|
+
}, {
|
|
469
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
470
|
+
// pollingInterval: 5000
|
|
471
|
+
}),
|
|
472
|
+
data = _useRequest21.data;
|
|
473
|
+
return data;
|
|
474
|
+
},
|
|
475
|
+
// 分类质量-混投垃圾排行
|
|
476
|
+
useMixSumRank: function useMixSumRank(_ref23) {
|
|
477
|
+
var throwPointId = _ref23.throwPointId,
|
|
478
|
+
beginTime = _ref23.beginTime,
|
|
479
|
+
endTime = _ref23.endTime;
|
|
480
|
+
var _useRequest22 = useRequest(function () {
|
|
481
|
+
return query("".concat(PREFIX, "/popupCommon/mixedThrowSumByGarbageType"), {
|
|
482
|
+
beginTime: beginTime,
|
|
483
|
+
endTime: endTime,
|
|
484
|
+
throwPointId: throwPointId
|
|
485
|
+
});
|
|
486
|
+
}, {
|
|
487
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
488
|
+
}),
|
|
489
|
+
data = _useRequest22.data;
|
|
490
|
+
return data;
|
|
491
|
+
},
|
|
492
|
+
// 满溢-处理效率
|
|
493
|
+
useMyEfficiency: function useMyEfficiency(_ref24) {
|
|
494
|
+
var throwPointId = _ref24.throwPointId,
|
|
495
|
+
beginTime = _ref24.beginTime,
|
|
496
|
+
endTime = _ref24.endTime;
|
|
497
|
+
var _useRequest23 = useRequest(function () {
|
|
498
|
+
return query("".concat(PREFIX, "/popupCommon/overflowResolveEfficiency"), {
|
|
499
|
+
beginTime: beginTime,
|
|
500
|
+
endTime: endTime,
|
|
501
|
+
throwPointId: throwPointId
|
|
502
|
+
});
|
|
503
|
+
}, {
|
|
504
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
505
|
+
}),
|
|
506
|
+
data = _useRequest23.data;
|
|
507
|
+
return data;
|
|
508
|
+
},
|
|
509
|
+
// 满溢-垃圾类型占比
|
|
510
|
+
useMySumByGarbageType: function useMySumByGarbageType(_ref25) {
|
|
511
|
+
var throwPointId = _ref25.throwPointId,
|
|
512
|
+
beginTime = _ref25.beginTime,
|
|
513
|
+
endTime = _ref25.endTime;
|
|
514
|
+
var _useRequest24 = useRequest(function () {
|
|
515
|
+
return query("".concat(PREFIX, "/popupCommon/overflowSumByGarbageType"), {
|
|
516
|
+
beginTime: beginTime,
|
|
517
|
+
endTime: endTime,
|
|
518
|
+
throwPointId: throwPointId
|
|
519
|
+
});
|
|
520
|
+
}, {
|
|
521
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
522
|
+
}),
|
|
523
|
+
data = _useRequest24.data;
|
|
524
|
+
return data;
|
|
525
|
+
},
|
|
526
|
+
// 满溢-一周趋势变化
|
|
527
|
+
useMySumByGarbageTypeAndDay: function useMySumByGarbageTypeAndDay(_ref26) {
|
|
528
|
+
var throwPointId = _ref26.throwPointId,
|
|
529
|
+
beginTime = _ref26.beginTime,
|
|
530
|
+
endTime = _ref26.endTime;
|
|
531
|
+
var _useRequest25 = useRequest(function () {
|
|
532
|
+
return query("".concat(PREFIX, "/popupCommon/overflowSumByGarbageTypeAndDay"), {
|
|
533
|
+
beginTime: beginTime,
|
|
534
|
+
endTime: endTime,
|
|
535
|
+
throwPointId: throwPointId
|
|
536
|
+
});
|
|
537
|
+
}, {
|
|
538
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
539
|
+
}),
|
|
540
|
+
data = _useRequest25.data;
|
|
541
|
+
return data;
|
|
542
|
+
},
|
|
543
|
+
// 满溢-时段分布
|
|
544
|
+
useMySumByGarbageTypeAndPeriod: function useMySumByGarbageTypeAndPeriod(_ref27) {
|
|
545
|
+
var throwPointId = _ref27.throwPointId,
|
|
546
|
+
beginTime = _ref27.beginTime,
|
|
547
|
+
endTime = _ref27.endTime;
|
|
548
|
+
var _useRequest26 = useRequest(function () {
|
|
549
|
+
return query("".concat(PREFIX, "/popupCommon/overflowSumByGarbageTypeAndPeriod"), {
|
|
550
|
+
beginTime: beginTime,
|
|
551
|
+
endTime: endTime,
|
|
552
|
+
throwPointId: throwPointId
|
|
553
|
+
});
|
|
554
|
+
}, {
|
|
555
|
+
refreshDeps: [beginTime, endTime, throwPointId]
|
|
556
|
+
}),
|
|
557
|
+
data = _useRequest26.data;
|
|
558
|
+
return data;
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
export var deviceServce = {
|
|
562
|
+
useGetList: function useGetList(_ref28) {
|
|
563
|
+
var throwPointId = _ref28.throwPointId;
|
|
564
|
+
var _useRequest27 = useRequest(function () {
|
|
565
|
+
return query('/cloud/sdyd/throwPoint/intelligent/throwPointDeviceStatusList', {
|
|
566
|
+
throwPointId: throwPointId
|
|
567
|
+
});
|
|
568
|
+
}, {
|
|
569
|
+
ready: !!throwPointId,
|
|
570
|
+
refreshDeps: [throwPointId]
|
|
571
|
+
}),
|
|
572
|
+
data = _useRequest27.data;
|
|
573
|
+
return data || [];
|
|
574
|
+
}
|
|
575
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import { useState } from 'react';
|
|
9
|
+
import { VmFilter, VmPieCharts, VmTitle } from "../../../_components";
|
|
10
|
+
import { alarmService } from "../../api";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
var FSSD = function FSSD(_ref) {
|
|
14
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
15
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
16
|
+
id = _ref.id;
|
|
17
|
+
var _useState = useState(dayjs()),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
times = _useState2[0],
|
|
20
|
+
setTimes = _useState2[1];
|
|
21
|
+
var throwPercent = alarmService.useChuyuFail({
|
|
22
|
+
throwPointId: id,
|
|
23
|
+
beginTime: times.format('YYYY-MM-DD 00:00:00'),
|
|
24
|
+
endTime: times.format('YYYY-MM-DD 23:59:59')
|
|
25
|
+
});
|
|
26
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
27
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
28
|
+
className: "".concat(classPrefix, "-row"),
|
|
29
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
30
|
+
title: "\u53A8\u4F59\u5783\u573E\u6295\u653E\u5206\u6790",
|
|
31
|
+
border: false
|
|
32
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMDatePicker, {
|
|
33
|
+
value: times,
|
|
34
|
+
onChange: function onChange(value) {
|
|
35
|
+
return setTimes(value);
|
|
36
|
+
}
|
|
37
|
+
})]
|
|
38
|
+
}), /*#__PURE__*/_jsx(VmPieCharts, {
|
|
39
|
+
dataList: [{
|
|
40
|
+
name: '未破袋投放',
|
|
41
|
+
value: (throwPercent === null || throwPercent === void 0 ? void 0 : throwPercent.trashBagCount) || 0
|
|
42
|
+
}, {
|
|
43
|
+
name: '混合投放',
|
|
44
|
+
value: (throwPercent === null || throwPercent === void 0 ? void 0 : throwPercent.mixedThrowCount) || 0
|
|
45
|
+
}],
|
|
46
|
+
title: "\u603B\u6570(\u6B21)",
|
|
47
|
+
total: (throwPercent === null || throwPercent === void 0 ? void 0 : throwPercent.trashBagCount) + (throwPercent === null || throwPercent === void 0 ? void 0 : throwPercent.mixedThrowCount) + 0,
|
|
48
|
+
name: "\u53A8\u4F59\u5783\u573E\u6295\u653E"
|
|
49
|
+
// loading={loading}
|
|
50
|
+
,
|
|
51
|
+
unit: "\u6B21",
|
|
52
|
+
height: 150,
|
|
53
|
+
legendConfig: {
|
|
54
|
+
right: '12%'
|
|
55
|
+
},
|
|
56
|
+
innerRadius: ['65%', '85%'],
|
|
57
|
+
outerRadius: ['85%', '95%']
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
export default FSSD;
|