@vtx/modals2 5.0.57 → 5.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/vm-calendar/index.js +14 -4
- package/lib/_components/vm-calendar/style/index.less +4 -1
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-custom/index.js +1 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/index.js +25 -0
- package/lib/_components/vm-pie-charts/index.js +14 -4
- package/lib/_components/vm-popover/index.less +7 -7
- package/lib/_components/vm-progress/index.js +6 -0
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-table/style/index.less +12 -7
- package/lib/_components/vm-video/index.js +6 -1
- package/lib/style/index.less +5 -0
- package/lib/vtx-area-modal/api.js +2 -0
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/index.js +5 -0
- package/lib/vtx-car-modal/api.js +179 -74
- 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/JXH/Hw2AlarmInfo/List.js +133 -0
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +84 -0
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +223 -0
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +549 -0
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.less +6 -0
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +291 -0
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/index.js +9 -1
- package/lib/vtx-car-modal/imgs/calendar/auto.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_auto.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_electricity.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_oil.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_transition.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_water.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_yy_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/electricity.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/oil.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/transition.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/water.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/yy_mileage.png +0 -0
- package/lib/vtx-car-modal/index.js +9 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +2 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +2 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +2 -0
- 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/api.js +348 -11
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -5
- package/lib/vtx-road-modal/components/BaseInfo/index.js +6 -5
- package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +63 -0
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +434 -0
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +80 -0
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +127 -0
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +194 -0
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +312 -0
- package/lib/vtx-road-modal/components/LaneStatistical/index.less +32 -0
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-road-modal/components/index.js +4 -1
- package/lib/vtx-road-modal/imgs/car.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_car.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_person.png +0 -0
- package/lib/vtx-road-modal/imgs/person.png +0 -0
- package/lib/vtx-road-modal/imgs/schedule.png +0 -0
- package/lib/vtx-road-modal/imgs/work.png +0 -0
- package/lib/vtx-road-modal/imgs//344/274/230.png +0 -0
- package/lib/vtx-road-modal/imgs//345/267/256.png +0 -0
- package/lib/vtx-road-modal/imgs//350/211/257.png +0 -0
- package/lib/vtx-road-modal/index.js +18 -13
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +2 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +2 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +2 -0
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +2 -2
- package/package.json +81 -81
|
@@ -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,11 +1,21 @@
|
|
|
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); }
|
|
1
2
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
4
|
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
5
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
6
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
7
|
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; }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
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; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
+
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); }
|
|
14
|
+
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); } }
|
|
15
|
+
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); }); }; }
|
|
7
16
|
import { useRequest } from 'ahooks';
|
|
8
|
-
import
|
|
17
|
+
import dayjs from 'dayjs';
|
|
18
|
+
import _, { keyBy } from 'lodash';
|
|
9
19
|
import np from 'number-precision';
|
|
10
20
|
import http from "../_util/http";
|
|
11
21
|
var workTypeColors = ['blue', 'green', 'yellow', 'purple', 'orange'];
|
|
@@ -73,19 +83,51 @@ export var BaseService = {
|
|
|
73
83
|
},
|
|
74
84
|
useJcss: function useJcss(id) {
|
|
75
85
|
var _jcssInfo$dataJson;
|
|
76
|
-
var _useRequest3 = useRequest(function () {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
var _useRequest3 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
87
|
+
var res, data, originTypeName, _res;
|
|
88
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
89
|
+
while (1) switch (_context.prev = _context.next) {
|
|
90
|
+
case 0:
|
|
91
|
+
_context.next = 2;
|
|
92
|
+
return http.get('/cloud/jcss-reborn/facility/get', {
|
|
93
|
+
body: {
|
|
94
|
+
id: id,
|
|
95
|
+
coordType: 'wgs84'
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
case 2:
|
|
99
|
+
res = _context.sent;
|
|
100
|
+
data = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
101
|
+
originTypeName = data.typeName;
|
|
102
|
+
if (!(data.typeName !== 'tr' && data.dataJson.roadId)) {
|
|
103
|
+
_context.next = 10;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
_context.next = 8;
|
|
107
|
+
return http.get('/cloud/jcss-reborn/facility/get', {
|
|
108
|
+
body: {
|
|
109
|
+
id: data.dataJson.roadId,
|
|
110
|
+
coordType: 'wgs84'
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
case 8:
|
|
114
|
+
_res = _context.sent;
|
|
115
|
+
data = (_res === null || _res === void 0 ? void 0 : _res.data) || {};
|
|
116
|
+
case 10:
|
|
117
|
+
return _context.abrupt("return", _objectSpread(_objectSpread({}, data), {}, {
|
|
118
|
+
originTypeName: originTypeName
|
|
119
|
+
}));
|
|
120
|
+
case 11:
|
|
121
|
+
case "end":
|
|
122
|
+
return _context.stop();
|
|
81
123
|
}
|
|
82
|
-
});
|
|
83
|
-
}, {
|
|
124
|
+
}, _callee);
|
|
125
|
+
})), {
|
|
84
126
|
refreshDeps: [id]
|
|
85
127
|
}),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
var hasRule = (jcssInfo === null || jcssInfo === void 0 || (_jcssInfo$dataJson = jcssInfo.dataJson) === null || _jcssInfo$dataJson === void 0
|
|
128
|
+
_useRequest3$data = _useRequest3.data,
|
|
129
|
+
jcssInfo = _useRequest3$data === void 0 ? {} : _useRequest3$data;
|
|
130
|
+
var hasRule = ((jcssInfo === null || jcssInfo === void 0 || (_jcssInfo$dataJson = jcssInfo.dataJson) === null || _jcssInfo$dataJson === void 0 ? void 0 : _jcssInfo$dataJson.businessTypeId) || '').toLocaleUpperCase().indexOf('HW') > -1;
|
|
89
131
|
return {
|
|
90
132
|
jcssInfo: jcssInfo,
|
|
91
133
|
hasRule: hasRule
|
|
@@ -216,4 +258,299 @@ export var BaseService = {
|
|
|
216
258
|
loading: loading
|
|
217
259
|
};
|
|
218
260
|
}
|
|
261
|
+
};
|
|
262
|
+
export var LaneService = {
|
|
263
|
+
useBaseInfo: function useBaseInfo(id, hasRule) {
|
|
264
|
+
var _showConfig$data3, _showConfig$data4, _ref4;
|
|
265
|
+
var _useRequest10 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
266
|
+
var _res$data;
|
|
267
|
+
var res;
|
|
268
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
269
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
270
|
+
case 0:
|
|
271
|
+
_context2.next = 2;
|
|
272
|
+
return http.get("/cloud/zyqs-zqb/api/hwv2/road/page", {
|
|
273
|
+
body: {
|
|
274
|
+
ids: id
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
case 2:
|
|
278
|
+
res = _context2.sent;
|
|
279
|
+
return _context2.abrupt("return", (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.rows[0]) || {});
|
|
280
|
+
case 4:
|
|
281
|
+
case "end":
|
|
282
|
+
return _context2.stop();
|
|
283
|
+
}
|
|
284
|
+
}, _callee2);
|
|
285
|
+
})), {
|
|
286
|
+
refreshDeps: [id, hasRule],
|
|
287
|
+
ready: hasRule
|
|
288
|
+
}),
|
|
289
|
+
_useRequest10$data = _useRequest10.data,
|
|
290
|
+
info = _useRequest10$data === void 0 ? {} : _useRequest10$data;
|
|
291
|
+
var _useRequest11 = useRequest(function () {
|
|
292
|
+
return http.getForTenantId('/cloud/jcss-reborn/facility/type/getByCode', {
|
|
293
|
+
body: {
|
|
294
|
+
code: 'tr',
|
|
295
|
+
tenantId: ''
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}, {
|
|
299
|
+
refreshDeps: [id]
|
|
300
|
+
}),
|
|
301
|
+
showConfig = _useRequest11.data;
|
|
302
|
+
var showbidSection = (showConfig === null || showConfig === void 0 || (_showConfig$data3 = showConfig.data) === null || _showConfig$data3 === void 0 ? void 0 : _showConfig$data3.code) === 'tr' ? showConfig === null || showConfig === void 0 || (_showConfig$data4 = showConfig.data) === null || _showConfig$data4 === void 0 || (_showConfig$data4 = _showConfig$data4.fieldJson) === null || _showConfig$data4 === void 0 ? void 0 : _showConfig$data4.find(function (item) {
|
|
303
|
+
return item.key === 'tenderId' && item.enabled === true;
|
|
304
|
+
}) : true;
|
|
305
|
+
var baseInfo = (_ref4 = [{
|
|
306
|
+
label: '路段类型',
|
|
307
|
+
key: 'roadTypeName',
|
|
308
|
+
value: info === null || info === void 0 ? void 0 : info.roadTypeName
|
|
309
|
+
}, {
|
|
310
|
+
label: '路段等级',
|
|
311
|
+
key: 'levelName',
|
|
312
|
+
value: info === null || info === void 0 ? void 0 : info.levelName
|
|
313
|
+
}, showbidSection && {
|
|
314
|
+
label: '所属标段',
|
|
315
|
+
key: 'bidSectionName',
|
|
316
|
+
value: info === null || info === void 0 ? void 0 : info.bidSectionName
|
|
317
|
+
}, {
|
|
318
|
+
label: '作业单位',
|
|
319
|
+
key: 'companyName',
|
|
320
|
+
value: info === null || info === void 0 ? void 0 : info.companyName
|
|
321
|
+
}, {
|
|
322
|
+
label: '长度',
|
|
323
|
+
key: 'roadSpace',
|
|
324
|
+
value: "".concat((info === null || info === void 0 ? void 0 : info.roadSpace) || '0', "m")
|
|
325
|
+
}, {
|
|
326
|
+
label: '宽度(m)',
|
|
327
|
+
key: 'roadWidth',
|
|
328
|
+
value: "".concat((info === null || info === void 0 ? void 0 : info.roadWidth) || '0', "m")
|
|
329
|
+
}, {
|
|
330
|
+
label: '面积(m²)',
|
|
331
|
+
key: 'roadArea',
|
|
332
|
+
value: "".concat((info === null || info === void 0 ? void 0 : info.roadArea) || '0', "m\xB2")
|
|
333
|
+
}]) === null || _ref4 === void 0 ? void 0 : _ref4.filter(Boolean);
|
|
334
|
+
return {
|
|
335
|
+
baseInfo: baseInfo,
|
|
336
|
+
info: info
|
|
337
|
+
};
|
|
338
|
+
},
|
|
339
|
+
useGetRuleInfo: function useGetRuleInfo(id, hasRule) {
|
|
340
|
+
var _useRequest12 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
341
|
+
var res;
|
|
342
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
343
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
344
|
+
case 0:
|
|
345
|
+
_context3.next = 2;
|
|
346
|
+
return http.get("/cloud/zyqs-zqb/api/hwv2/popup/road/rule/summary", {
|
|
347
|
+
body: {
|
|
348
|
+
id: id,
|
|
349
|
+
date: dayjs().format('YYYY-MM-DD')
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
case 2:
|
|
353
|
+
res = _context3.sent;
|
|
354
|
+
return _context3.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
|
|
355
|
+
case 4:
|
|
356
|
+
case "end":
|
|
357
|
+
return _context3.stop();
|
|
358
|
+
}
|
|
359
|
+
}, _callee3);
|
|
360
|
+
})), {
|
|
361
|
+
refreshDeps: [id, hasRule],
|
|
362
|
+
ready: hasRule
|
|
363
|
+
}),
|
|
364
|
+
_useRequest12$data = _useRequest12.data,
|
|
365
|
+
data = _useRequest12$data === void 0 ? [] : _useRequest12$data;
|
|
366
|
+
var workTypeColorMap = {};
|
|
367
|
+
_.uniqBy(data, 'workTypeName').forEach(function (item, index) {
|
|
368
|
+
workTypeColorMap[item.workTypeName] = workTypeColors[index % workTypeColors.length];
|
|
369
|
+
});
|
|
370
|
+
return {
|
|
371
|
+
rules: data,
|
|
372
|
+
workTypeColorMap: workTypeColorMap
|
|
373
|
+
};
|
|
374
|
+
},
|
|
375
|
+
useWorkInfo: function useWorkInfo(id, date) {
|
|
376
|
+
var _useRequest13 = useRequest(function () {
|
|
377
|
+
return http.get("/cloud/zyqs-zqb/api/hwv2/realtime/road/workInfo", {
|
|
378
|
+
body: {
|
|
379
|
+
id: id,
|
|
380
|
+
date: date
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
}, {
|
|
384
|
+
refreshDeps: [id, date]
|
|
385
|
+
}),
|
|
386
|
+
workInfoRes = _useRequest13.data,
|
|
387
|
+
loading = _useRequest13.loading;
|
|
388
|
+
return {
|
|
389
|
+
workInfo: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.data) || {},
|
|
390
|
+
loading: loading
|
|
391
|
+
};
|
|
392
|
+
},
|
|
393
|
+
useTaskList: function useTaskList(id, date, page, isTr) {
|
|
394
|
+
var _useRequest14 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
395
|
+
var res;
|
|
396
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
397
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
398
|
+
case 0:
|
|
399
|
+
_context4.next = 2;
|
|
400
|
+
return http.get("/cloud/zyqs-zqb/api/hwv2/task/page", {
|
|
401
|
+
body: _objectSpread({
|
|
402
|
+
startDate: date,
|
|
403
|
+
endDate: date,
|
|
404
|
+
size: 10,
|
|
405
|
+
page: page - 1
|
|
406
|
+
}, isTr ? {
|
|
407
|
+
trId: id
|
|
408
|
+
} : {
|
|
409
|
+
roadId: id
|
|
410
|
+
})
|
|
411
|
+
});
|
|
412
|
+
case 2:
|
|
413
|
+
res = _context4.sent;
|
|
414
|
+
return _context4.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
|
|
415
|
+
case 4:
|
|
416
|
+
case "end":
|
|
417
|
+
return _context4.stop();
|
|
418
|
+
}
|
|
419
|
+
}, _callee4);
|
|
420
|
+
})), {
|
|
421
|
+
refreshDeps: [id, date, page]
|
|
422
|
+
}),
|
|
423
|
+
_useRequest14$data = _useRequest14.data,
|
|
424
|
+
data = _useRequest14$data === void 0 ? [] : _useRequest14$data,
|
|
425
|
+
loading = _useRequest14.loading;
|
|
426
|
+
return {
|
|
427
|
+
taskPage: data,
|
|
428
|
+
loading: loading
|
|
429
|
+
};
|
|
430
|
+
},
|
|
431
|
+
useWorkSummary: function useWorkSummary(id, startDate, endDate) {
|
|
432
|
+
var _useRequest15 = useRequest(function () {
|
|
433
|
+
return http.get("/cloud/zyqs-zqb/api/hwv2/popup/road/work/summary", {
|
|
434
|
+
body: {
|
|
435
|
+
id: id,
|
|
436
|
+
startDate: startDate,
|
|
437
|
+
endDate: endDate
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}, {
|
|
441
|
+
refreshDeps: [id, startDate, endDate]
|
|
442
|
+
}),
|
|
443
|
+
workInfoRes = _useRequest15.data,
|
|
444
|
+
loading = _useRequest15.loading;
|
|
445
|
+
return {
|
|
446
|
+
workSummary: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.data) || {},
|
|
447
|
+
loading: loading
|
|
448
|
+
};
|
|
449
|
+
},
|
|
450
|
+
useCalendar: function useCalendar(_ref7) {
|
|
451
|
+
var id = _ref7.id,
|
|
452
|
+
startDate = _ref7.startDate,
|
|
453
|
+
endDate = _ref7.endDate,
|
|
454
|
+
facilityTypeCodes = _ref7.facilityTypeCodes,
|
|
455
|
+
workTypeCodes = _ref7.workTypeCodes;
|
|
456
|
+
var _useRequest16 = useRequest(function () {
|
|
457
|
+
return http.get("/cloud/zyqs-zqb/api/hwv2/popup/road/work/calendar", {
|
|
458
|
+
body: {
|
|
459
|
+
id: id,
|
|
460
|
+
startDate: startDate,
|
|
461
|
+
endDate: endDate,
|
|
462
|
+
facilityTypeCodes: facilityTypeCodes,
|
|
463
|
+
workTypeCodes: workTypeCodes
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
}, {
|
|
467
|
+
refreshDeps: [id, startDate, endDate, facilityTypeCodes, workTypeCodes]
|
|
468
|
+
}),
|
|
469
|
+
calendarInfoRes = _useRequest16.data,
|
|
470
|
+
loading = _useRequest16.loading;
|
|
471
|
+
return {
|
|
472
|
+
calendarInfo: keyBy((calendarInfoRes === null || calendarInfoRes === void 0 ? void 0 : calendarInfoRes.data) || {}, 'date'),
|
|
473
|
+
loading: loading
|
|
474
|
+
};
|
|
475
|
+
},
|
|
476
|
+
useGetParams: function useGetParams(code) {
|
|
477
|
+
var _useRequest17 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
478
|
+
var res;
|
|
479
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
480
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
481
|
+
case 0:
|
|
482
|
+
_context5.next = 2;
|
|
483
|
+
return http.get("/cloud/management/rest/param/getByParamTypeCode.read", {
|
|
484
|
+
body: {
|
|
485
|
+
parameters: JSON.stringify({
|
|
486
|
+
paramTypeCode: code
|
|
487
|
+
})
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
case 2:
|
|
491
|
+
res = _context5.sent;
|
|
492
|
+
return _context5.abrupt("return", ((res === null || res === void 0 ? void 0 : res.data) || []).map(function (item) {
|
|
493
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
494
|
+
label: item.parmName,
|
|
495
|
+
value: item.parmCode
|
|
496
|
+
});
|
|
497
|
+
}));
|
|
498
|
+
case 4:
|
|
499
|
+
case "end":
|
|
500
|
+
return _context5.stop();
|
|
501
|
+
}
|
|
502
|
+
}, _callee5);
|
|
503
|
+
})), {
|
|
504
|
+
refreshDeps: [code]
|
|
505
|
+
}),
|
|
506
|
+
_useRequest17$data = _useRequest17.data,
|
|
507
|
+
data = _useRequest17$data === void 0 ? [] : _useRequest17$data;
|
|
508
|
+
return data;
|
|
509
|
+
},
|
|
510
|
+
useGetLaneList: function useGetLaneList() {
|
|
511
|
+
var _useRequest18 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
512
|
+
var _configRes$data;
|
|
513
|
+
var configRes, code, res;
|
|
514
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
515
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
516
|
+
case 0:
|
|
517
|
+
_context6.next = 2;
|
|
518
|
+
return http.get("/cloud/zyqs-zqb/api/v101/systemConfig/load");
|
|
519
|
+
case 2:
|
|
520
|
+
configRes = _context6.sent;
|
|
521
|
+
code = (configRes === null || configRes === void 0 || (_configRes$data = configRes.data) === null || _configRes$data === void 0 ? void 0 : _configRes$data.syncFacilityTypes) || '';
|
|
522
|
+
if (code) {
|
|
523
|
+
_context6.next = 6;
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
return _context6.abrupt("return", []);
|
|
527
|
+
case 6:
|
|
528
|
+
_context6.next = 8;
|
|
529
|
+
return http.get("/cloud/jcss-reborn/facility/type/list", {
|
|
530
|
+
body: {
|
|
531
|
+
code: code
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
case 8:
|
|
535
|
+
res = _context6.sent;
|
|
536
|
+
return _context6.abrupt("return", (res.data || []).filter(function (item) {
|
|
537
|
+
return item.code !== 'tr';
|
|
538
|
+
}).map(function (item) {
|
|
539
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
540
|
+
label: item.name,
|
|
541
|
+
value: item.code
|
|
542
|
+
});
|
|
543
|
+
}));
|
|
544
|
+
case 10:
|
|
545
|
+
case "end":
|
|
546
|
+
return _context6.stop();
|
|
547
|
+
}
|
|
548
|
+
}, _callee6);
|
|
549
|
+
}))),
|
|
550
|
+
_useRequest18$data = _useRequest18.data,
|
|
551
|
+
data = _useRequest18$data === void 0 ? [] : _useRequest18$data;
|
|
552
|
+
return {
|
|
553
|
+
laneList: data
|
|
554
|
+
};
|
|
555
|
+
}
|
|
219
556
|
};
|
|
@@ -166,11 +166,16 @@ var Work = function Work(props) {
|
|
|
166
166
|
align: 'middle',
|
|
167
167
|
justify: 'center',
|
|
168
168
|
children: /*#__PURE__*/_jsx(Spin, {})
|
|
169
|
-
}) : isEmpty(workInfo) ? /*#__PURE__*/_jsx(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
}) : isEmpty(workInfo) ? /*#__PURE__*/_jsx("div", {
|
|
170
|
+
style: {
|
|
171
|
+
height: 200
|
|
172
|
+
},
|
|
173
|
+
children: /*#__PURE__*/_jsx(VmEmpty, {
|
|
174
|
+
imgStyle: {
|
|
175
|
+
marginLeft: 0,
|
|
176
|
+
transform: 'translateX(0%)'
|
|
177
|
+
}
|
|
178
|
+
})
|
|
174
179
|
}) : /*#__PURE__*/_jsxs("div", {
|
|
175
180
|
className: "vtx-road-work-wrap",
|
|
176
181
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -256,6 +261,7 @@ var Work = function Work(props) {
|
|
|
256
261
|
})]
|
|
257
262
|
}), /*#__PURE__*/_jsx(VmProgress.Line, {
|
|
258
263
|
rate: item.rate,
|
|
264
|
+
width: '100%',
|
|
259
265
|
strokeColor: colorMap[workTypeColorMap[item.workTypeStr]]
|
|
260
266
|
})]
|
|
261
267
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -12,19 +12,20 @@ import { BaseInfo as DefaultBaseInfo } from "../../../vtx-default-modal/componen
|
|
|
12
12
|
import "./index.less";
|
|
13
13
|
import Rules from "./Rules";
|
|
14
14
|
import Work from "./Work";
|
|
15
|
+
import { BaseService } from "../../api";
|
|
15
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
var BaseInfo = function BaseInfo(_ref) {
|
|
17
18
|
var _info$lngLats, _jcssInfo$geometryInf;
|
|
18
19
|
var id = _ref.id,
|
|
19
|
-
data = _ref.data,
|
|
20
20
|
jcssInfo = _ref.jcssInfo,
|
|
21
21
|
_ref$hasRule = _ref.hasRule,
|
|
22
22
|
hasRule = _ref$hasRule === void 0 ? false : _ref$hasRule,
|
|
23
23
|
setIframeModalInfo = _ref.setIframeModalInfo;
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
var _BaseService$useBaseI = BaseService.useBaseInfo(id, hasRule),
|
|
25
|
+
info = _BaseService$useBaseI.info,
|
|
26
|
+
baseInfo = _BaseService$useBaseI.baseInfo,
|
|
27
|
+
rules = _BaseService$useBaseI.rules,
|
|
28
|
+
workTypeColorMap = _BaseService$useBaseI.workTypeColorMap;
|
|
28
29
|
var rings = (info === null || info === void 0 || (_info$lngLats = info.lngLats) === null || _info$lngLats === void 0 ? void 0 : _info$lngLats.wgs84) || (jcssInfo === null || jcssInfo === void 0 || (_jcssInfo$geometryInf = jcssInfo.geometryInfo) === null || _jcssInfo$geometryInf === void 0 ? void 0 : _jcssInfo$geometryInf.lngLats) || '';
|
|
29
30
|
var mapPolygons = _.isEmpty(rings) ? [] : [{
|
|
30
31
|
rings: rings
|