@vtx/modals2 5.0.30 → 5.0.32
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/index.js +2 -1
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-info-collection/style/index.js +1 -0
- package/lib/_components/vm-pie-charts/index.js +4 -2
- package/lib/_components/vm-popover/index.js +19 -0
- package/lib/_components/vm-popover/index.less +7 -0
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/style/index.less +1 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +54 -54
- package/lib/vtx-base-modal/style/index.less +0 -1
- package/lib/vtx-car-modal/api.js +47 -4
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +6 -6
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +27 -20
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +21 -6
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +11 -6
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +19 -12
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +9 -7
- package/lib/vtx-car-modal/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-device-modal/components/BaseInfo/KnowledgeBasesDetail.js +77 -0
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +92 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +104 -46
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-jzlj-df-tpd-modal/api.js +31 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +8 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +7 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +11 -3
- package/lib/vtx-jzlj-gcxm-modal/api.js +31 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +9 -7
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +6 -5
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +9 -8
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -2
- package/lib/vtx-jzlj-xnc-modal/api.js +31 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +9 -7
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +7 -6
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +8 -7
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +11 -3
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-staff-modal/api.js +62 -26
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +118 -33
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +12 -80
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/package.json +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +0 -48
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.vtx-restaurant-rule_item {
|
|
2
|
-
border-radius: 8px 8px 8px 8px;
|
|
3
|
-
border: 1px solid var(--gray-line-color);
|
|
4
|
-
padding: 16px 16px 8px;
|
|
5
|
-
margin-top: 12px;
|
|
6
|
-
position: relative;
|
|
7
|
-
.vtx-restaurant-border {
|
|
8
|
-
width: 100%;
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 0;
|
|
11
|
-
top: -2px;
|
|
12
|
-
height: 44px;
|
|
13
|
-
border-radius: 8px 8px 0px 0px;
|
|
14
|
-
border-top: 2px solid var(--blue-color);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
.vtx-restaurant-rule_item {
|
|
2
|
+
border-radius: 8px 8px 8px 8px;
|
|
3
|
+
border: 1px solid var(--gray-line-color);
|
|
4
|
+
padding: 16px 16px 8px;
|
|
5
|
+
margin-top: 12px;
|
|
6
|
+
position: relative;
|
|
7
|
+
.vtx-restaurant-border {
|
|
8
|
+
width: 100%;
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 0;
|
|
11
|
+
top: -2px;
|
|
12
|
+
height: 44px;
|
|
13
|
+
border-radius: 8px 8px 0px 0px;
|
|
14
|
+
border-top: 2px solid var(--blue-color);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -60,108 +60,108 @@ export var QD_DETAIL_FIELDS = [{
|
|
|
60
60
|
label: '二维码'
|
|
61
61
|
}];
|
|
62
62
|
export var RestaurantConfigureEnum = {
|
|
63
|
-
/**
|
|
64
|
-
* 编号
|
|
63
|
+
/**
|
|
64
|
+
* 编号
|
|
65
65
|
*/
|
|
66
66
|
CODE: 'code',
|
|
67
|
-
/**
|
|
68
|
-
* 产生单位名称
|
|
67
|
+
/**
|
|
68
|
+
* 产生单位名称
|
|
69
69
|
*/
|
|
70
70
|
NAME: 'name',
|
|
71
|
-
/**
|
|
72
|
-
* 店铺名称
|
|
71
|
+
/**
|
|
72
|
+
* 店铺名称
|
|
73
73
|
*/
|
|
74
74
|
SHORT_NAME: 'shortName',
|
|
75
|
-
/**
|
|
76
|
-
* 行政区划名称
|
|
75
|
+
/**
|
|
76
|
+
* 行政区划名称
|
|
77
77
|
*/
|
|
78
78
|
DIVISION_NAME: 'divisionId',
|
|
79
|
-
/**
|
|
80
|
-
* 联系人
|
|
79
|
+
/**
|
|
80
|
+
* 联系人
|
|
81
81
|
*/
|
|
82
82
|
CONTACT_PERSON: 'contactPerson',
|
|
83
|
-
/**
|
|
84
|
-
* 联系方式
|
|
83
|
+
/**
|
|
84
|
+
* 联系方式
|
|
85
85
|
*/
|
|
86
86
|
CONTACT_PHONE: 'contactPhone',
|
|
87
|
-
/**
|
|
88
|
-
* 身份证号
|
|
87
|
+
/**
|
|
88
|
+
* 身份证号
|
|
89
89
|
*/
|
|
90
90
|
CARD_ID: 'cardId',
|
|
91
|
-
/**
|
|
92
|
-
* 商户地址
|
|
91
|
+
/**
|
|
92
|
+
* 商户地址
|
|
93
93
|
*/
|
|
94
94
|
ADDRESS: 'address',
|
|
95
|
-
/**
|
|
96
|
-
* 经纬度
|
|
95
|
+
/**
|
|
96
|
+
* 经纬度
|
|
97
97
|
*/
|
|
98
98
|
LOCATION: 'location',
|
|
99
|
-
/**
|
|
100
|
-
* 产生单位状态
|
|
99
|
+
/**
|
|
100
|
+
* 产生单位状态
|
|
101
101
|
*/
|
|
102
102
|
SIGNED_STATUS: 'signedStatus',
|
|
103
|
-
/**
|
|
104
|
-
* 签约状态
|
|
103
|
+
/**
|
|
104
|
+
* 签约状态
|
|
105
105
|
*/
|
|
106
106
|
IS_SIGN: 'isSign',
|
|
107
|
-
/**
|
|
108
|
-
* 收集类型
|
|
107
|
+
/**
|
|
108
|
+
* 收集类型
|
|
109
109
|
*/
|
|
110
110
|
COLLECT_STATUS: 'collectStatus',
|
|
111
|
-
/**
|
|
112
|
-
* 收集点
|
|
111
|
+
/**
|
|
112
|
+
* 收集点
|
|
113
113
|
*/
|
|
114
114
|
SY_POINT_NAME: 'syPointId',
|
|
115
|
-
/**
|
|
116
|
-
* 商户类型名称
|
|
115
|
+
/**
|
|
116
|
+
* 商户类型名称
|
|
117
117
|
*/
|
|
118
118
|
CLASSES_NAME: 'classesId',
|
|
119
|
-
/**
|
|
120
|
-
* 规模名称
|
|
119
|
+
/**
|
|
120
|
+
* 规模名称
|
|
121
121
|
*/
|
|
122
122
|
SCALE_NAME: 'scaleId',
|
|
123
|
-
/**
|
|
124
|
-
* 垃圾桶个数
|
|
123
|
+
/**
|
|
124
|
+
* 垃圾桶个数
|
|
125
125
|
*/
|
|
126
126
|
TRASH_CAN_NUM: 'trashCanNum',
|
|
127
|
-
/**
|
|
128
|
-
* 统一社会信用代码
|
|
127
|
+
/**
|
|
128
|
+
* 统一社会信用代码
|
|
129
129
|
*/
|
|
130
130
|
CREDIT_CODE: 'creditCode',
|
|
131
|
-
/**
|
|
132
|
-
* 行业名称
|
|
131
|
+
/**
|
|
132
|
+
* 行业名称
|
|
133
133
|
*/
|
|
134
134
|
INDUSTRY_NAME: 'industryId',
|
|
135
|
-
/**
|
|
136
|
-
* 经营范围
|
|
135
|
+
/**
|
|
136
|
+
* 经营范围
|
|
137
137
|
*/
|
|
138
138
|
BUSINESS_SCOPE: 'businessScope',
|
|
139
|
-
/**
|
|
140
|
-
* 注册资金
|
|
139
|
+
/**
|
|
140
|
+
* 注册资金
|
|
141
141
|
*/
|
|
142
142
|
REGISTER_MONEY: 'registerMoney',
|
|
143
|
-
/**
|
|
144
|
-
* 企业成立时间
|
|
143
|
+
/**
|
|
144
|
+
* 企业成立时间
|
|
145
145
|
*/
|
|
146
146
|
ESTABLISHED_TIME: 'establishedTime',
|
|
147
|
-
/**
|
|
148
|
-
* 建议收集时间
|
|
147
|
+
/**
|
|
148
|
+
* 建议收集时间
|
|
149
149
|
*/
|
|
150
150
|
SUGGEST_COLLECT_TIME: 'suggestCollectTime',
|
|
151
|
-
/**
|
|
152
|
-
* 营业时间段
|
|
151
|
+
/**
|
|
152
|
+
* 营业时间段
|
|
153
153
|
*/
|
|
154
154
|
BUSINESS_TIME: 'businessTime',
|
|
155
|
-
/**
|
|
156
|
-
* 垃圾桶摆放位置图片
|
|
155
|
+
/**
|
|
156
|
+
* 垃圾桶摆放位置图片
|
|
157
157
|
*/
|
|
158
158
|
TRASH_BIN_LOCATION_PHOTO: 'trashBinLocationPhoto',
|
|
159
|
-
/**
|
|
160
|
-
* 商户图片
|
|
159
|
+
/**
|
|
160
|
+
* 商户图片
|
|
161
161
|
*/
|
|
162
162
|
PHOTO_IDS: 'photoIds',
|
|
163
|
-
/**
|
|
164
|
-
* 证件图片
|
|
163
|
+
/**
|
|
164
|
+
* 证件图片
|
|
165
165
|
*/
|
|
166
166
|
PAPER_FILE_IDS: 'paperFileIds'
|
|
167
167
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
.road-statistic-summary-main-rate {
|
|
2
|
-
--bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
|
|
3
|
-
&-dark {
|
|
4
|
-
--bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
|
|
5
|
-
}
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 130px;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-around;
|
|
11
|
-
padding: 0 24px;
|
|
12
|
-
background: var(--bg-color);
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
&--block {
|
|
15
|
-
width: 8px;
|
|
16
|
-
height: 8px;
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
}
|
|
19
|
-
&--label {
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: 4px;
|
|
22
|
-
align-items: center;
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
color: var(--img-text-color);
|
|
25
|
-
}
|
|
26
|
-
&--value {
|
|
27
|
-
margin-left: 12px;
|
|
28
|
-
font-weight: bold;
|
|
29
|
-
font-size: 24px;
|
|
30
|
-
color: #1F1F1F;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
.road-statistic-summary-main-rate {
|
|
2
|
+
--bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
|
|
3
|
+
&-dark {
|
|
4
|
+
--bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
|
|
5
|
+
}
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 130px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-around;
|
|
11
|
+
padding: 0 24px;
|
|
12
|
+
background: var(--bg-color);
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
&--block {
|
|
15
|
+
width: 8px;
|
|
16
|
+
height: 8px;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
}
|
|
19
|
+
&--label {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
align-items: center;
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
color: var(--img-text-color);
|
|
25
|
+
}
|
|
26
|
+
&--value {
|
|
27
|
+
margin-left: 12px;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
font-size: 24px;
|
|
30
|
+
color: #1F1F1F;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
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 _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; }
|
|
3
|
+
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); } }
|
|
4
|
+
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); }); }; }
|
|
2
5
|
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
6
|
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
7
|
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; }
|
|
@@ -175,9 +178,42 @@ var BaseService = {
|
|
|
175
178
|
workInfoRes: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.data) || {}
|
|
176
179
|
};
|
|
177
180
|
},
|
|
181
|
+
useStaffStatic: function useStaffStatic(staffId, startDate, endDate, service) {
|
|
182
|
+
var _useRequest7 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
183
|
+
var _res$data;
|
|
184
|
+
var res;
|
|
185
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
186
|
+
while (1) switch (_context.prev = _context.next) {
|
|
187
|
+
case 0:
|
|
188
|
+
_context.next = 2;
|
|
189
|
+
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/staffStatic/page"), {
|
|
190
|
+
data: {
|
|
191
|
+
staffId: staffId,
|
|
192
|
+
startTime: "".concat(startDate, " 00:00:00"),
|
|
193
|
+
endTime: "".concat(endDate, " 23:59:59"),
|
|
194
|
+
pageNo: 0,
|
|
195
|
+
pageSize: 1
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
case 2:
|
|
199
|
+
res = _context.sent;
|
|
200
|
+
return _context.abrupt("return", (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.rows) === null || _res$data === void 0 ? void 0 : _res$data[0]) || {});
|
|
201
|
+
case 4:
|
|
202
|
+
case "end":
|
|
203
|
+
return _context.stop();
|
|
204
|
+
}
|
|
205
|
+
}, _callee);
|
|
206
|
+
})), {
|
|
207
|
+
refreshDeps: [staffId, startDate, endDate]
|
|
208
|
+
}),
|
|
209
|
+
workInfoRes = _useRequest7.data;
|
|
210
|
+
return {
|
|
211
|
+
workInfoRes: workInfoRes || {}
|
|
212
|
+
};
|
|
213
|
+
},
|
|
178
214
|
// 今日作业
|
|
179
215
|
useTodayWork: function useTodayWork(staffId, startDate, endDate, page, service) {
|
|
180
|
-
var
|
|
216
|
+
var _useRequest8 = useRequest(function () {
|
|
181
217
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/kanban/kanbanShiftWorkInfoPage"), {
|
|
182
218
|
data: {
|
|
183
219
|
staffId: staffId,
|
|
@@ -190,14 +226,14 @@ var BaseService = {
|
|
|
190
226
|
}, {
|
|
191
227
|
refreshDeps: [staffId, startDate, endDate, page]
|
|
192
228
|
}),
|
|
193
|
-
todayWorkRes =
|
|
229
|
+
todayWorkRes = _useRequest8.data;
|
|
194
230
|
return {
|
|
195
231
|
todayWorkRes: (todayWorkRes === null || todayWorkRes === void 0 ? void 0 : todayWorkRes.data) || []
|
|
196
232
|
};
|
|
197
233
|
},
|
|
198
234
|
// 作业统计
|
|
199
235
|
useWorkStatic: function useWorkStatic(staffId, startDate, endDate, service) {
|
|
200
|
-
var
|
|
236
|
+
var _useRequest9 = useRequest(function () {
|
|
201
237
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/kanban/kanbanWorkInfoStatistics"), {
|
|
202
238
|
data: {
|
|
203
239
|
staffId: staffId,
|
|
@@ -208,14 +244,14 @@ var BaseService = {
|
|
|
208
244
|
}, {
|
|
209
245
|
refreshDeps: [staffId, startDate, endDate]
|
|
210
246
|
}),
|
|
211
|
-
workStaticRes =
|
|
247
|
+
workStaticRes = _useRequest9.data;
|
|
212
248
|
return {
|
|
213
249
|
workStaticRes: (workStaticRes === null || workStaticRes === void 0 ? void 0 : workStaticRes.data) || {}
|
|
214
250
|
};
|
|
215
251
|
},
|
|
216
252
|
// 里程分析
|
|
217
253
|
useMileAnalysis: function useMileAnalysis(staffId, startDate, endDate) {
|
|
218
|
-
var
|
|
254
|
+
var _useRequest10 = useRequest(function () {
|
|
219
255
|
return request.get('/cloud/zyry-reborn/api/v101/kanban/kanbanWorkMileageAnalysis', {
|
|
220
256
|
data: {
|
|
221
257
|
staffId: staffId,
|
|
@@ -226,14 +262,14 @@ var BaseService = {
|
|
|
226
262
|
}, {
|
|
227
263
|
refreshDeps: [staffId, startDate, endDate]
|
|
228
264
|
}),
|
|
229
|
-
mileAnalysisRes =
|
|
265
|
+
mileAnalysisRes = _useRequest10.data;
|
|
230
266
|
return {
|
|
231
267
|
mileAnalysisRes: (mileAnalysisRes === null || mileAnalysisRes === void 0 ? void 0 : mileAnalysisRes.data) || {}
|
|
232
268
|
};
|
|
233
269
|
},
|
|
234
270
|
useStatisticsByMonth: function useStatisticsByMonth(id, month, service) {
|
|
235
271
|
//日历
|
|
236
|
-
var
|
|
272
|
+
var _useRequest11 = useRequest(function () {
|
|
237
273
|
return request.get("/cloud/".concat(service ? 'rygl' : 'zyry-reborn', "/api/v101/attendanceRecord/statisticsByMonth"), {
|
|
238
274
|
data: {
|
|
239
275
|
staffId: id,
|
|
@@ -243,7 +279,7 @@ var BaseService = {
|
|
|
243
279
|
}, {
|
|
244
280
|
refreshDeps: [id, month]
|
|
245
281
|
}),
|
|
246
|
-
data =
|
|
282
|
+
data = _useRequest11.data;
|
|
247
283
|
return {
|
|
248
284
|
data: (data === null || data === void 0 ? void 0 : data.data) || []
|
|
249
285
|
};
|
|
@@ -253,7 +289,7 @@ var AlarmService = {
|
|
|
253
289
|
// 报警类型
|
|
254
290
|
useAlarmType: function useAlarmType(staffId, startTime, endTime, service) {
|
|
255
291
|
var _alarmTypeRes$data;
|
|
256
|
-
var
|
|
292
|
+
var _useRequest12 = useRequest(function () {
|
|
257
293
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/alarmInfo/pageAlarmCount"), {
|
|
258
294
|
data: {
|
|
259
295
|
staffId: staffId,
|
|
@@ -264,7 +300,7 @@ var AlarmService = {
|
|
|
264
300
|
}, {
|
|
265
301
|
refreshDeps: [staffId, startTime, endTime]
|
|
266
302
|
}),
|
|
267
|
-
alarmTypeRes =
|
|
303
|
+
alarmTypeRes = _useRequest12.data;
|
|
268
304
|
return {
|
|
269
305
|
alarmTypeRes: (alarmTypeRes === null || alarmTypeRes === void 0 || (_alarmTypeRes$data = alarmTypeRes.data) === null || _alarmTypeRes$data === void 0 ? void 0 : _alarmTypeRes$data.length) > 0 ? alarmTypeRes.data.map(function (ele) {
|
|
270
306
|
return _objectSpread({
|
|
@@ -278,7 +314,7 @@ var AlarmService = {
|
|
|
278
314
|
},
|
|
279
315
|
// 报警类型分析
|
|
280
316
|
useAlarmAnalysis: function useAlarmAnalysis(staffId, startDate, endDate, service) {
|
|
281
|
-
var
|
|
317
|
+
var _useRequest13 = useRequest(function () {
|
|
282
318
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/kanban/kanbanAlarmAnalysis"), {
|
|
283
319
|
data: {
|
|
284
320
|
staffId: staffId,
|
|
@@ -289,14 +325,14 @@ var AlarmService = {
|
|
|
289
325
|
}, {
|
|
290
326
|
refreshDeps: [staffId, startDate, endDate]
|
|
291
327
|
}),
|
|
292
|
-
alarmAnalysisRes =
|
|
328
|
+
alarmAnalysisRes = _useRequest13.data;
|
|
293
329
|
return {
|
|
294
330
|
alarmAnalysisRes: (alarmAnalysisRes === null || alarmAnalysisRes === void 0 ? void 0 : alarmAnalysisRes.data) || {}
|
|
295
331
|
};
|
|
296
332
|
},
|
|
297
333
|
// 报警列表
|
|
298
334
|
useAlarmRecord: function useAlarmRecord(staffId, alarmTypeCode, startTime, endTime, pageNo, sortBy, order, service) {
|
|
299
|
-
var
|
|
335
|
+
var _useRequest14 = useRequest(function () {
|
|
300
336
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/alarmInfo/page"), {
|
|
301
337
|
data: {
|
|
302
338
|
staffId: staffId,
|
|
@@ -312,7 +348,7 @@ var AlarmService = {
|
|
|
312
348
|
}, {
|
|
313
349
|
refreshDeps: [staffId, alarmTypeCode, startTime, endTime, pageNo, sortBy, order]
|
|
314
350
|
}),
|
|
315
|
-
alarmRecordRes =
|
|
351
|
+
alarmRecordRes = _useRequest14.data;
|
|
316
352
|
return {
|
|
317
353
|
alarmRecordRes: (alarmRecordRes === null || alarmRecordRes === void 0 ? void 0 : alarmRecordRes.data) || {}
|
|
318
354
|
};
|
|
@@ -321,7 +357,7 @@ var AlarmService = {
|
|
|
321
357
|
// 考勤信息
|
|
322
358
|
var AttendanceService = {
|
|
323
359
|
useTimeAnalysis: function useTimeAnalysis(staffId, startDate, endDate, service) {
|
|
324
|
-
var
|
|
360
|
+
var _useRequest15 = useRequest(function () {
|
|
325
361
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/kanban/kanbanAttendanceTimeAnalysis"), {
|
|
326
362
|
data: {
|
|
327
363
|
staffId: staffId,
|
|
@@ -332,14 +368,14 @@ var AttendanceService = {
|
|
|
332
368
|
}, {
|
|
333
369
|
refreshDeps: [staffId, startDate, endDate]
|
|
334
370
|
}),
|
|
335
|
-
attendTimeAnalysisRes =
|
|
371
|
+
attendTimeAnalysisRes = _useRequest15.data;
|
|
336
372
|
return {
|
|
337
373
|
attendTimeAnalysisRes: (attendTimeAnalysisRes === null || attendTimeAnalysisRes === void 0 ? void 0 : attendTimeAnalysisRes.data) || {}
|
|
338
374
|
};
|
|
339
375
|
},
|
|
340
376
|
useAnalysis: function useAnalysis(staffId, startDate, endDate, service) {
|
|
341
377
|
var _attendAnalysisRes$da;
|
|
342
|
-
var
|
|
378
|
+
var _useRequest16 = useRequest(function () {
|
|
343
379
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/kanban/kanbanAttendanceAnalysis"), {
|
|
344
380
|
data: {
|
|
345
381
|
staffId: staffId,
|
|
@@ -350,7 +386,7 @@ var AttendanceService = {
|
|
|
350
386
|
}, {
|
|
351
387
|
refreshDeps: [staffId, startDate, endDate]
|
|
352
388
|
}),
|
|
353
|
-
attendAnalysisRes =
|
|
389
|
+
attendAnalysisRes = _useRequest16.data;
|
|
354
390
|
return {
|
|
355
391
|
attendAnalysisRes: (attendAnalysisRes === null || attendAnalysisRes === void 0 || (_attendAnalysisRes$da = attendAnalysisRes.data) === null || _attendAnalysisRes$da === void 0 ? void 0 : _attendAnalysisRes$da.length) > 0 ? attendAnalysisRes.data.map(function (ele) {
|
|
356
392
|
return _objectSpread({
|
|
@@ -361,7 +397,7 @@ var AttendanceService = {
|
|
|
361
397
|
};
|
|
362
398
|
},
|
|
363
399
|
useAttendRecord: function useAttendRecord(staffId, startTime, endTime, pageNo, service) {
|
|
364
|
-
var
|
|
400
|
+
var _useRequest17 = useRequest(function () {
|
|
365
401
|
return request.get("/cloud/".concat(service ? 'rygl' : 'zyry-reborn', "/api/v101/attendanceRecord"), {
|
|
366
402
|
data: {
|
|
367
403
|
staffId: staffId,
|
|
@@ -374,7 +410,7 @@ var AttendanceService = {
|
|
|
374
410
|
}, {
|
|
375
411
|
refreshDeps: [staffId, startTime, endTime, pageNo]
|
|
376
412
|
}),
|
|
377
|
-
attendRecordRes =
|
|
413
|
+
attendRecordRes = _useRequest17.data;
|
|
378
414
|
return {
|
|
379
415
|
attendRecordRes: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.data) || {}
|
|
380
416
|
};
|
|
@@ -382,7 +418,7 @@ var AttendanceService = {
|
|
|
382
418
|
};
|
|
383
419
|
var EquipmentService = {
|
|
384
420
|
useDevice: function useDevice(staffId, service) {
|
|
385
|
-
var
|
|
421
|
+
var _useRequest18 = useRequest(function () {
|
|
386
422
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/device/getByStaffId"), {
|
|
387
423
|
data: {
|
|
388
424
|
staffId: staffId
|
|
@@ -391,8 +427,8 @@ var EquipmentService = {
|
|
|
391
427
|
}, {
|
|
392
428
|
refreshDeps: [staffId]
|
|
393
429
|
}),
|
|
394
|
-
deviceRes =
|
|
395
|
-
var
|
|
430
|
+
deviceRes = _useRequest18.data;
|
|
431
|
+
var _useRequest19 = useRequest(function () {
|
|
396
432
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/positionRealtime/getByStaffId"), {
|
|
397
433
|
data: {
|
|
398
434
|
staffId: staffId
|
|
@@ -401,14 +437,14 @@ var EquipmentService = {
|
|
|
401
437
|
}, {
|
|
402
438
|
refreshDeps: [staffId]
|
|
403
439
|
}),
|
|
404
|
-
monitorRes =
|
|
440
|
+
monitorRes = _useRequest19.data;
|
|
405
441
|
return {
|
|
406
442
|
deviceRes: (deviceRes === null || deviceRes === void 0 ? void 0 : deviceRes.data) || {},
|
|
407
443
|
monitorRes: (monitorRes === null || monitorRes === void 0 ? void 0 : monitorRes.data) || {}
|
|
408
444
|
};
|
|
409
445
|
},
|
|
410
446
|
useDeviceStatus: function useDeviceStatus(id, service) {
|
|
411
|
-
var
|
|
447
|
+
var _useRequest20 = useRequest(function () {
|
|
412
448
|
return request.get("/cloud/".concat(service || 'zyry-reborn', "/api/v101/positionRealtime/deviceStatus"), {
|
|
413
449
|
data: {
|
|
414
450
|
id: id
|
|
@@ -418,7 +454,7 @@ var EquipmentService = {
|
|
|
418
454
|
ready: !!id,
|
|
419
455
|
refreshDeps: [id]
|
|
420
456
|
}),
|
|
421
|
-
deviceStatusRes =
|
|
457
|
+
deviceStatusRes = _useRequest20.data;
|
|
422
458
|
return {
|
|
423
459
|
deviceStatusRes: (deviceStatusRes === null || deviceStatusRes === void 0 ? void 0 : deviceStatusRes.data) || '-'
|
|
424
460
|
};
|