@vtx/modals2 2.15.58 → 2.15.60
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/README.md +33 -33
- package/lib/style/index.less +8 -8
- package/lib/style/themes/dark.less +128 -128
- package/lib/style/themes/default.less +44 -44
- package/lib/style/themes/index.less +1 -1
- package/lib/vm-alarm-info/Components/index.less +43 -43
- package/lib/vm-alarm-info/style/index.less +16 -16
- package/lib/vm-alarm-situation/style/index.less +67 -67
- package/lib/vm-alarm-situation-pt/style/index.less +65 -65
- package/lib/vm-analysis-comparison/style/index.less +12 -12
- package/lib/vm-appraisal-info/style/index.less +136 -136
- package/lib/vm-base-list/style/index.less +39 -39
- package/lib/vm-button/style/index.less +20 -20
- package/lib/vm-charts/index.less +30 -30
- package/lib/vm-checkbox/style/index.less +25 -25
- package/lib/vm-container/style/index.less +30 -30
- package/lib/vm-correlation-comparison/style/index.less +13 -13
- package/lib/vm-custom/style/index.less +20 -20
- package/lib/vm-empty/style/index.less +23 -23
- package/lib/vm-iframe-modal/style/index.less +9 -9
- package/lib/vm-image-text/style/index.less +32 -32
- package/lib/vm-info-collection/index.js +2 -2
- package/lib/vm-info-collection/index.js.map +1 -1
- package/lib/vm-map/style/index.less +3 -3
- package/lib/vm-modal-table/style/index.less +23 -23
- package/lib/vm-radio/style/index.less +26 -26
- package/lib/vm-real-time-monitor/style/index.less +12 -12
- package/lib/vm-repair-maintain/style/index.less +115 -115
- package/lib/vm-round-content/style/index.less +33 -33
- package/lib/vm-select-device/style/index.less +16 -16
- package/lib/vm-sub-tabs/style/index.less +179 -179
- package/lib/vm-sub-title/style/index.less +69 -69
- package/lib/vm-video/api.js +1 -1
- package/lib/vm-video/api.js.map +1 -1
- package/lib/vm-video/index.less +36 -36
- package/lib/vtx-base-info/style/index.less +66 -66
- package/lib/vtx-base-modal/api.js +7 -6
- package/lib/vtx-base-modal/api.js.map +1 -1
- package/lib/vtx-base-modal/style/index.less +1097 -1097
- package/lib/vtx-car-modal/api.js +47 -44
- package/lib/vtx-car-modal/api.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/index.less +40 -40
- package/lib/vtx-car-modal/components/BaseInfo/Charts.js +3 -2
- package/lib/vtx-car-modal/components/BaseInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.js +10 -6
- package/lib/vtx-car-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.less +290 -290
- package/lib/vtx-car-modal/components/Collection/index.less +18 -18
- package/lib/vtx-car-modal/components/DetailInfo/index.less +21 -21
- package/lib/vtx-car-modal/components/Maintenance/index.less +35 -35
- package/lib/vtx-car-modal/components/OilConsumption/index.less +39 -39
- package/lib/vtx-car-modal/components/StaticInfo/index.less +82 -82
- package/lib/vtx-car-modal/components/WaterConsumption/index.less +25 -25
- package/lib/vtx-car-modal/components/WorkInfo/index.less +66 -66
- package/lib/vtx-car-modal/index.js +8 -8
- package/lib/vtx-car-modal/index.js.map +1 -1
- package/lib/vtx-car-modal/style/index.less +8 -8
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.less +108 -108
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +46 -46
- package/lib/vtx-cc-cp-modal/style/index.less +1 -1
- package/lib/vtx-cc-unit-modal/style/index.less +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +109 -109
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +156 -156
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +109 -109
- package/lib/vtx-cp-modal/components/SyInfo/index.less +47 -47
- package/lib/vtx-cp-modal/style/index.less +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.less +38 -38
- package/lib/vtx-default-modal/style/index.less +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.less +173 -173
- package/lib/vtx-df-modal/components/Metering/index.less +83 -83
- package/lib/vtx-df-modal/components/WorkCondition/index.less +136 -136
- package/lib/vtx-df-modal/style/index.less +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.less +120 -120
- package/lib/vtx-facility-modal/style/index.less +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +66 -66
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +256 -256
- package/lib/vtx-housing-estate-modal/components/SPJK/index.less +6 -6
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +102 -102
- package/lib/vtx-housing-estate-modal/style/index.less +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +66 -66
- package/lib/vtx-kh-modal/style/index.less +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/index.less +103 -103
- package/lib/vtx-pump-modal/components/Basic/index.less +74 -74
- package/lib/vtx-pump-modal/components/Sbxl/index.less +90 -90
- package/lib/vtx-pump-modal/components/Sjfx/index.less +60 -60
- package/lib/vtx-pump-modal/components/Sxyx/index.less +161 -161
- package/lib/vtx-pump-modal/style/index.less +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.less +35 -35
- package/lib/vtx-restaurant-modal/components/Collection/index.less +29 -29
- package/lib/vtx-restaurant-modal/style/index.less +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.less +146 -146
- package/lib/vtx-road-modal/components/Statistical/index.less +112 -112
- package/lib/vtx-road-modal/style/index.less +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +23 -23
- package/lib/vtx-staff-modal/components/Attendance/index.css +12 -12
- package/lib/vtx-staff-modal/components/Attendance/index.less +44 -44
- package/lib/vtx-staff-modal/components/BaseInfo/index.css +12 -12
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +225 -225
- package/lib/vtx-staff-modal/components/DetailInfo/index.less +38 -38
- package/lib/vtx-staff-modal/components/Equipment/index.css +6 -6
- package/lib/vtx-staff-modal/components/Equipment/index.less +52 -52
- package/lib/vtx-staff-modal/components/StaticInfo/index.css +0 -12
- package/lib/vtx-staff-modal/components/StaticInfo/index.less +270 -283
- package/lib/vtx-staff-modal/style/index.less +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/index.less +69 -69
- package/lib/vtx-throw-point-modal/components/OverView/index.less +331 -331
- package/lib/vtx-throw-point-modal/components/SBZJ/index.less +92 -92
- package/lib/vtx-throw-point-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-throw-point-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-throw-point-modal/components/WGXW/index.less +102 -102
- package/lib/vtx-throw-point-modal/style/index.less +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/index.less +106 -106
- package/lib/vtx-wr-modal/components/BaseInfo/index.less +142 -142
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.less +570 -570
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.less +461 -461
- package/lib/vtx-wr-modal/components/Evaluate/index.less +124 -124
- package/lib/vtx-wr-modal/components/Monitor/index.less +82 -82
- package/lib/vtx-wr-modal/components/Score/index.less +134 -134
- package/lib/vtx-wr-modal/style/index.less +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +97 -97
- package/lib/vtx-zg-modal/style/index.less +1 -1
- package/package.json +1 -1
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -16,11 +16,14 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
|
|
|
16
16
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
17
17
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18
18
|
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 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 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 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; }
|
|
19
|
+
var prefix = process.env.PREFIX || '';
|
|
19
20
|
var ConfigService = exports.ConfigService = {
|
|
20
|
-
useConfig: function useConfig() {
|
|
21
|
+
useConfig: function useConfig(hasJXH) {
|
|
21
22
|
var _useRequest = (0, _ahooks.useRequest)(function () {
|
|
22
|
-
return _utils.request.get(
|
|
23
|
+
return _utils.request.get("".concat(prefix, "/cloud/zyqs-zqb/api/v101/systemConfig/load"));
|
|
23
24
|
}, {
|
|
25
|
+
ready: hasJXH,
|
|
26
|
+
refreshDeps: [hasJXH],
|
|
24
27
|
onError: function onError(error) {
|
|
25
28
|
if (error.status === 404) {
|
|
26
29
|
//
|
|
@@ -37,7 +40,7 @@ var BaseService = exports.BaseService = {
|
|
|
37
40
|
useBaseInfo: function useBaseInfo(id) {
|
|
38
41
|
var _a, _b, _c, _d;
|
|
39
42
|
var _useRequest2 = (0, _ahooks.useRequest)(function () {
|
|
40
|
-
return _utils.request.get(
|
|
43
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/sdk/car/getCarInfoByProductType"), {
|
|
41
44
|
data: {
|
|
42
45
|
carId: id
|
|
43
46
|
}
|
|
@@ -47,7 +50,7 @@ var BaseService = exports.BaseService = {
|
|
|
47
50
|
}),
|
|
48
51
|
baseInfoRes = _useRequest2.data;
|
|
49
52
|
var _useRequest3 = (0, _ahooks.useRequest)(function () {
|
|
50
|
-
return _utils.request.get(
|
|
53
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/np/getCarDetailById"), {
|
|
51
54
|
data: {
|
|
52
55
|
id: id
|
|
53
56
|
}
|
|
@@ -95,7 +98,7 @@ var BaseService = exports.BaseService = {
|
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
100
|
var _useRequest4 = (0, _ahooks.useRequest)(function () {
|
|
98
|
-
return _utils.request.get(
|
|
101
|
+
return _utils.request.get("".concat(prefix, "/cloud/jcss-reborn/facility/type/config/getByCode"), {
|
|
99
102
|
data: {
|
|
100
103
|
code: 'car'
|
|
101
104
|
}
|
|
@@ -121,7 +124,7 @@ var BaseService = exports.BaseService = {
|
|
|
121
124
|
useDeviceInfo: function useDeviceInfo(id) {
|
|
122
125
|
var _a;
|
|
123
126
|
var _useRequest5 = (0, _ahooks.useRequest)(function () {
|
|
124
|
-
return _utils.request.get(
|
|
127
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/device/page"), {
|
|
125
128
|
data: {
|
|
126
129
|
carId: id,
|
|
127
130
|
deviceTypeId: 'd335fc77c9d44f7bbe9b3e20609f295c',
|
|
@@ -139,7 +142,7 @@ var BaseService = exports.BaseService = {
|
|
|
139
142
|
useConfig: function useConfig() {
|
|
140
143
|
var _a, _b;
|
|
141
144
|
var _useRequest6 = (0, _ahooks.useRequest)(function () {
|
|
142
|
-
return _utils.request.get(
|
|
145
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/param/config/webList"));
|
|
143
146
|
}),
|
|
144
147
|
config = _useRequest6.data;
|
|
145
148
|
var paramConfigsList = {};
|
|
@@ -158,7 +161,7 @@ var BaseService = exports.BaseService = {
|
|
|
158
161
|
while (1) switch (_context.prev = _context.next) {
|
|
159
162
|
case 0:
|
|
160
163
|
_context.next = 2;
|
|
161
|
-
return _utils.request.get("/cloud/cc-reborn/api/v101/carDeviceInfo/get", {
|
|
164
|
+
return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/carDeviceInfo/get"), {
|
|
162
165
|
data: {
|
|
163
166
|
id: carId
|
|
164
167
|
}
|
|
@@ -181,7 +184,7 @@ var BaseService = exports.BaseService = {
|
|
|
181
184
|
},
|
|
182
185
|
useDetailInfo: function useDetailInfo(carId) {
|
|
183
186
|
var _useRequest8 = (0, _ahooks.useRequest)(function () {
|
|
184
|
-
return _utils.request.get(
|
|
187
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/np/getCarDetailById"), {
|
|
185
188
|
data: {
|
|
186
189
|
id: carId,
|
|
187
190
|
desensitization: true
|
|
@@ -195,7 +198,7 @@ var BaseService = exports.BaseService = {
|
|
|
195
198
|
},
|
|
196
199
|
useServiceInfo: function useServiceInfo(carId) {
|
|
197
200
|
var _useRequest9 = (0, _ahooks.useRequest)(function () {
|
|
198
|
-
return _utils.request.get(
|
|
201
|
+
return _utils.request.get("".concat(prefix, "/cloud/jcss-reborn/contract/carHistoryContract"), {
|
|
199
202
|
data: {
|
|
200
203
|
id: carId
|
|
201
204
|
}
|
|
@@ -209,7 +212,7 @@ var BaseService = exports.BaseService = {
|
|
|
209
212
|
useFieldConfig: function useFieldConfig() {
|
|
210
213
|
var _a;
|
|
211
214
|
var _useRequest10 = (0, _ahooks.useRequest)(function () {
|
|
212
|
-
return _utils.request.get(
|
|
215
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/dataConfig/list"));
|
|
213
216
|
}),
|
|
214
217
|
data = _useRequest10.data;
|
|
215
218
|
return {
|
|
@@ -218,18 +221,18 @@ var BaseService = exports.BaseService = {
|
|
|
218
221
|
})) || []
|
|
219
222
|
};
|
|
220
223
|
},
|
|
221
|
-
useDailySummaryJxh: function useDailySummaryJxh(carId, date, service) {
|
|
224
|
+
useDailySummaryJxh: function useDailySummaryJxh(carId, date, service, hasJXH) {
|
|
222
225
|
// 左侧今日排版、今日作业
|
|
223
226
|
var _useRequest11 = (0, _ahooks.useRequest)(function () {
|
|
224
|
-
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/kanbanWorkInfoAndShiftStatistics"), {
|
|
227
|
+
return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/kanbanWorkInfoAndShiftStatistics"), {
|
|
225
228
|
data: {
|
|
226
229
|
carId: carId,
|
|
227
230
|
date: date
|
|
228
231
|
}
|
|
229
232
|
});
|
|
230
233
|
}, {
|
|
231
|
-
ready: !!carId,
|
|
232
|
-
refreshDeps: [carId, date]
|
|
234
|
+
ready: !!carId && hasJXH,
|
|
235
|
+
refreshDeps: [carId, date, hasJXH]
|
|
233
236
|
}),
|
|
234
237
|
dailySummaryJxh = _useRequest11.data;
|
|
235
238
|
return {
|
|
@@ -239,7 +242,7 @@ var BaseService = exports.BaseService = {
|
|
|
239
242
|
useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
|
|
240
243
|
//今日运行
|
|
241
244
|
var _useRequest12 = (0, _ahooks.useRequest)(function () {
|
|
242
|
-
return _utils.request.get(
|
|
245
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
|
|
243
246
|
data: {
|
|
244
247
|
carIds: id,
|
|
245
248
|
reportDateStart: beginTime,
|
|
@@ -257,7 +260,7 @@ var BaseService = exports.BaseService = {
|
|
|
257
260
|
useTodayRun: function useTodayRun(carId, beginTime, endTime, source) {
|
|
258
261
|
//今日运行
|
|
259
262
|
var _useRequest13 = (0, _ahooks.useRequest)(function () {
|
|
260
|
-
return _utils.request.get(
|
|
263
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/detail/alarmSumWithDetail"), {
|
|
261
264
|
data: {
|
|
262
265
|
carId: carId,
|
|
263
266
|
beginTime: "".concat(beginTime, " 00:00:00"),
|
|
@@ -276,7 +279,7 @@ var BaseService = exports.BaseService = {
|
|
|
276
279
|
useTodayWorkJxh: function useTodayWorkJxh(carId, date, service) {
|
|
277
280
|
//今日作业-机械化
|
|
278
281
|
var _useRequest14 = (0, _ahooks.useRequest)(function () {
|
|
279
|
-
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/getRoadWorkInfoByCarId"), {
|
|
282
|
+
return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/getRoadWorkInfoByCarId"), {
|
|
280
283
|
data: {
|
|
281
284
|
carId: carId,
|
|
282
285
|
date: date
|
|
@@ -312,7 +315,7 @@ var BaseService = exports.BaseService = {
|
|
|
312
315
|
carId = _ref.carId,
|
|
313
316
|
garbageType = _ref.garbageType;
|
|
314
317
|
var _useRequest16 = (0, _ahooks.useRequest)(function () {
|
|
315
|
-
return _utils.request.get(
|
|
318
|
+
return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/gisOnePage/getCarCollectDay"), {
|
|
316
319
|
data: {
|
|
317
320
|
carId: carId,
|
|
318
321
|
searchDay: searchDay,
|
|
@@ -329,13 +332,13 @@ var BaseService = exports.BaseService = {
|
|
|
329
332
|
useTodayWorkCC: function useTodayWorkCC(carId, queryStartTime, queryEndTime, garbageType) {
|
|
330
333
|
//今日作业-餐厨
|
|
331
334
|
var _useRequest17 = (0, _ahooks.useRequest)(function () {
|
|
332
|
-
return garbageType === 'fqyz' ? _utils.request.get(
|
|
335
|
+
return garbageType === 'fqyz' ? _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/oilWeight/list"), {
|
|
333
336
|
data: {
|
|
334
337
|
carId: carId,
|
|
335
338
|
weightTimeStart: queryStartTime,
|
|
336
339
|
weightTimeEnd: queryEndTime
|
|
337
340
|
}
|
|
338
|
-
}) : _utils.request.get(
|
|
341
|
+
}) : _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/rtCarDataDetail/list"), {
|
|
339
342
|
data: {
|
|
340
343
|
carId: carId,
|
|
341
344
|
queryStartTime: queryStartTime,
|
|
@@ -353,7 +356,7 @@ var BaseService = exports.BaseService = {
|
|
|
353
356
|
useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate, service) {
|
|
354
357
|
//机械化作业统计
|
|
355
358
|
var _useRequest18 = (0, _ahooks.useRequest)(function () {
|
|
356
|
-
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoStatisticsByCarId"), {
|
|
359
|
+
return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoStatisticsByCarId"), {
|
|
357
360
|
data: {
|
|
358
361
|
carId: carId,
|
|
359
362
|
startDate: startDate,
|
|
@@ -372,7 +375,7 @@ var BaseService = exports.BaseService = {
|
|
|
372
375
|
useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate, service) {
|
|
373
376
|
//机械化作业分析
|
|
374
377
|
var _useRequest19 = (0, _ahooks.useRequest)(function () {
|
|
375
|
-
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoAnalysisByCarId"), {
|
|
378
|
+
return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoAnalysisByCarId"), {
|
|
376
379
|
data: {
|
|
377
380
|
carId: carId,
|
|
378
381
|
startDate: startDate,
|
|
@@ -390,7 +393,7 @@ var BaseService = exports.BaseService = {
|
|
|
390
393
|
useWorkAnaLjsy: function useWorkAnaLjsy(carId, startDate, endDate, isReleate) {
|
|
391
394
|
//垃圾收运-作业分析
|
|
392
395
|
var _useRequest20 = (0, _ahooks.useRequest)(function () {
|
|
393
|
-
return _utils.request.get(
|
|
396
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId"), {
|
|
394
397
|
data: {
|
|
395
398
|
carId: carId,
|
|
396
399
|
startDate: startDate,
|
|
@@ -409,7 +412,7 @@ var BaseService = exports.BaseService = {
|
|
|
409
412
|
useWorkAnaCC: function useWorkAnaCC(carId, startDate, endDate, isReleate) {
|
|
410
413
|
//垃圾收运-作业分析
|
|
411
414
|
var _useRequest21 = (0, _ahooks.useRequest)(function () {
|
|
412
|
-
return _utils.request.get(
|
|
415
|
+
return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/gisOnePage/carCollectSummaryLine"), {
|
|
413
416
|
data: {
|
|
414
417
|
carId: carId,
|
|
415
418
|
startDay: startDate,
|
|
@@ -429,7 +432,7 @@ var BaseService = exports.BaseService = {
|
|
|
429
432
|
var AlarmService = exports.AlarmService = {
|
|
430
433
|
useAlarmType: function useAlarmType(carIds, startTime, endTime, source) {
|
|
431
434
|
var _useRequest22 = (0, _ahooks.useRequest)(function () {
|
|
432
|
-
return _utils.request.get(
|
|
435
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/statisticsPage"), {
|
|
433
436
|
data: {
|
|
434
437
|
carIds: carIds,
|
|
435
438
|
startTime: startTime,
|
|
@@ -450,7 +453,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
450
453
|
},
|
|
451
454
|
useAlarmTypeWork: function useAlarmTypeWork(carIds, startTime, endTime, source) {
|
|
452
455
|
var _useRequest23 = (0, _ahooks.useRequest)(function () {
|
|
453
|
-
return _utils.request.get(
|
|
456
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/task/alarm/alarmSum"), {
|
|
454
457
|
data: {
|
|
455
458
|
carIds: carIds,
|
|
456
459
|
startDate: startTime,
|
|
@@ -472,7 +475,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
472
475
|
},
|
|
473
476
|
useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page) {
|
|
474
477
|
var _useRequest24 = (0, _ahooks.useRequest)(function () {
|
|
475
|
-
return _utils.request.get(
|
|
478
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/pageList"), {
|
|
476
479
|
data: {
|
|
477
480
|
carCode: carCode,
|
|
478
481
|
alarmStrategyName: alarmStrategyName,
|
|
@@ -493,7 +496,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
493
496
|
},
|
|
494
497
|
useAlarmListWork: function useAlarmListWork(carIds, alarmTypeCode, startDate, endDate, page) {
|
|
495
498
|
var _useRequest25 = (0, _ahooks.useRequest)(function () {
|
|
496
|
-
return _utils.request.get(
|
|
499
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/task/alarm/alarmPage"), {
|
|
497
500
|
data: {
|
|
498
501
|
carIds: carIds,
|
|
499
502
|
alarmTypeCode: alarmTypeCode,
|
|
@@ -516,7 +519,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
516
519
|
var _a;
|
|
517
520
|
//今日运行
|
|
518
521
|
var _useRequest26 = (0, _ahooks.useRequest)(function () {
|
|
519
|
-
return _utils.request.get(
|
|
522
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/task/alarm/alarmSumByTypeAndDay"), {
|
|
520
523
|
data: {
|
|
521
524
|
carId: carId,
|
|
522
525
|
startDate: beginTime,
|
|
@@ -566,7 +569,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
566
569
|
useWorkTypeJxh: function useWorkTypeJxh(service) {
|
|
567
570
|
//机械化作业类型
|
|
568
571
|
var _useRequest27 = (0, _ahooks.useRequest)(function () {
|
|
569
|
-
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v101/common/listWorkType"), {
|
|
572
|
+
return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/v101/common/listWorkType"), {
|
|
570
573
|
data: {}
|
|
571
574
|
});
|
|
572
575
|
}),
|
|
@@ -578,7 +581,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
578
581
|
useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order, service) {
|
|
579
582
|
//机械化
|
|
580
583
|
var _useRequest28 = (0, _ahooks.useRequest)(function () {
|
|
581
|
-
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v1.5/noshift/page"), {
|
|
584
|
+
return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/v1.5/noshift/page"), {
|
|
582
585
|
data: {
|
|
583
586
|
carId: carId,
|
|
584
587
|
workTypeCodes: workTypeCodes,
|
|
@@ -603,7 +606,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
603
606
|
useWorkSummaryLjsy: function useWorkSummaryLjsy(carId, startDate, endDate) {
|
|
604
607
|
//垃圾收运头部统计
|
|
605
608
|
var _useRequest29 = (0, _ahooks.useRequest)(function () {
|
|
606
|
-
return _utils.request.get(
|
|
609
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoSummaryByCarId"), {
|
|
607
610
|
data: {
|
|
608
611
|
carId: carId,
|
|
609
612
|
startDate: startDate,
|
|
@@ -621,7 +624,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
621
624
|
useRecordLjsy: function useRecordLjsy(carIds, startTime, endTime, page, sort) {
|
|
622
625
|
//机械化
|
|
623
626
|
var _useRequest30 = (0, _ahooks.useRequest)(function () {
|
|
624
|
-
return _utils.request.get(
|
|
627
|
+
return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/collect/record/detail/page"), {
|
|
625
628
|
data: {
|
|
626
629
|
carIds: carIds,
|
|
627
630
|
startTime: startTime,
|
|
@@ -645,7 +648,7 @@ var OilService = exports.OilService = {
|
|
|
645
648
|
useHasOil: function useHasOil(carId) {
|
|
646
649
|
var _a;
|
|
647
650
|
var _useRequest31 = (0, _ahooks.useRequest)(function () {
|
|
648
|
-
return _utils.request.get(
|
|
651
|
+
return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/config/getById"), {
|
|
649
652
|
data: {
|
|
650
653
|
id: carId
|
|
651
654
|
}
|
|
@@ -660,7 +663,7 @@ var OilService = exports.OilService = {
|
|
|
660
663
|
},
|
|
661
664
|
useOilLine: function useOilLine(carId, startTime, endTime) {
|
|
662
665
|
var _useRequest32 = (0, _ahooks.useRequest)(function () {
|
|
663
|
-
return _utils.request.get(
|
|
666
|
+
return _utils.request.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/oilLine.smvc"), {
|
|
664
667
|
data: {
|
|
665
668
|
carId: carId,
|
|
666
669
|
startTime: startTime,
|
|
@@ -677,7 +680,7 @@ var OilService = exports.OilService = {
|
|
|
677
680
|
},
|
|
678
681
|
useSummary: function useSummary(carId, startTime, endTime) {
|
|
679
682
|
var _useRequest33 = (0, _ahooks.useRequest)(function () {
|
|
680
|
-
return _utils.request.get(
|
|
683
|
+
return _utils.request.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/summary.smvc"), {
|
|
681
684
|
data: {
|
|
682
685
|
carId: carId,
|
|
683
686
|
startTime: startTime,
|
|
@@ -694,7 +697,7 @@ var OilService = exports.OilService = {
|
|
|
694
697
|
},
|
|
695
698
|
useRecord: function useRecord(carId, startTime, endTime, page, sort) {
|
|
696
699
|
var _useRequest34 = (0, _ahooks.useRequest)(function () {
|
|
697
|
-
return _utils.request.get(
|
|
700
|
+
return _utils.request.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/simplePage.smvc"), {
|
|
698
701
|
data: {
|
|
699
702
|
carId: carId,
|
|
700
703
|
startTime: startTime,
|
|
@@ -718,7 +721,7 @@ var OilService = exports.OilService = {
|
|
|
718
721
|
var WaterService = exports.WaterService = {
|
|
719
722
|
useSummary: function useSummary(carId, startTime, endTime) {
|
|
720
723
|
var _useRequest35 = (0, _ahooks.useRequest)(function () {
|
|
721
|
-
return _utils.request.get(
|
|
724
|
+
return _utils.request.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/summary"), {
|
|
722
725
|
data: {
|
|
723
726
|
hasWaterStatus: true,
|
|
724
727
|
carId: carId,
|
|
@@ -736,7 +739,7 @@ var WaterService = exports.WaterService = {
|
|
|
736
739
|
},
|
|
737
740
|
useRecord: function useRecord(carId, startDate, endDate, order) {
|
|
738
741
|
var _useRequest36 = (0, _ahooks.useRequest)(function () {
|
|
739
|
-
return _utils.request.get(
|
|
742
|
+
return _utils.request.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/queryList"), {
|
|
740
743
|
data: {
|
|
741
744
|
hasWaterStatus: true,
|
|
742
745
|
carId: carId,
|
|
@@ -759,7 +762,7 @@ var WaterService = exports.WaterService = {
|
|
|
759
762
|
var MaintenanceService = exports.MaintenanceService = {
|
|
760
763
|
useMaintenance: function useMaintenance(carId) {
|
|
761
764
|
var _useRequest37 = (0, _ahooks.useRequest)(function () {
|
|
762
|
-
return _utils.request.get(
|
|
765
|
+
return _utils.request.get("".concat(prefix, "/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse"), {
|
|
763
766
|
data: {
|
|
764
767
|
carId: carId
|
|
765
768
|
}
|
|
@@ -786,7 +789,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
786
789
|
while (1) switch (_context2.prev = _context2.next) {
|
|
787
790
|
case 0:
|
|
788
791
|
_context2.next = 2;
|
|
789
|
-
return _utils.request.get(
|
|
792
|
+
return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/collectPeriod/getPeriodListByCarId"), {
|
|
790
793
|
data: {
|
|
791
794
|
carId: carId,
|
|
792
795
|
startDay: startDay,
|
|
@@ -821,7 +824,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
821
824
|
while (1) switch (_context3.prev = _context3.next) {
|
|
822
825
|
case 0:
|
|
823
826
|
_context3.next = 2;
|
|
824
|
-
return _utils.request.get(
|
|
827
|
+
return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/rtCarDataDetail/list"), {
|
|
825
828
|
data: {
|
|
826
829
|
carId: id,
|
|
827
830
|
queryStartTime: startTime,
|
|
@@ -846,7 +849,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
846
849
|
}
|
|
847
850
|
};
|
|
848
851
|
var tabConfigService = exports.tabConfigService = function tabConfigService() {
|
|
849
|
-
return _utils.request.get(
|
|
852
|
+
return _utils.request.get("".concat(prefix, "/cloud/jcss-reborn/facility/type/config/getByCode"), {
|
|
850
853
|
data: {
|
|
851
854
|
code: 'car'
|
|
852
855
|
}
|