@vtx/modals2 5.0.11 → 5.0.13

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.
Files changed (34) hide show
  1. package/lib/_components/vm-extra-tab/index.js +8 -0
  2. package/lib/_components/vm-extra-tab/style/index.less +1 -0
  3. package/lib/_util/http.js +6 -0
  4. package/lib/index.js +2 -1
  5. package/lib/vtx-car-modal/api.js +7 -0
  6. package/lib/vtx-car-modal/components/Info/index.js +5 -2
  7. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +2 -1
  8. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +3 -3
  9. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +20 -12
  10. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +28 -7
  11. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +12 -8
  12. package/lib/vtx-cp-modal/components/BaseInfo/index.less +1 -1
  13. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +5 -5
  14. package/lib/vtx-cp-modal/components/SyInfo/index.js +3 -0
  15. package/lib/vtx-shxq-modal/index.js +1 -2
  16. package/lib/vtx-tfd-modal/index.js +1 -1
  17. package/lib/vtx-wr-modal/components/Base/Jbxx.js +3 -1
  18. package/lib/vtx-wr-modal/components/Base/Ptss.js +0 -6
  19. package/lib/vtx-wr-modal/components/Base/Sjjg.js +2 -5
  20. package/lib/vtx-wr-modal/components/Base/index.less +5 -10
  21. package/lib/vtx-wr-modal/components/Build/index.js +3 -2
  22. package/lib/vtx-wr-modal/components/Score/index.js +4 -4
  23. package/lib/vtx-wr-modal/index.js +15 -2
  24. package/lib/vtx-wr-modal/style/index.js +1 -0
  25. package/lib/vtx-zf-modal/components/Base/index.js +220 -0
  26. package/lib/vtx-zf-modal/components/Base/index.less +106 -0
  27. package/lib/vtx-zf-modal/components/Process/index.js +12 -0
  28. package/lib/vtx-zf-modal/components/Process/index.less +53 -0
  29. package/lib/vtx-zf-modal/components/Right/index.js +46 -0
  30. package/lib/vtx-zf-modal/components/index.js +3 -0
  31. package/lib/vtx-zf-modal/index.js +91 -0
  32. package/lib/vtx-zf-modal/style/index.js +3 -0
  33. package/lib/vtx-zf-modal/style/index.less +1 -0
  34. package/package.json +1 -1
@@ -1,3 +1,9 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
9
  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); }
@@ -13,6 +19,7 @@ export default function VmExtraTab(_ref) {
13
19
  var data = _ref.data,
14
20
  value = _ref.value,
15
21
  style = _ref.style,
22
+ itemStyle = _ref.itemStyle,
16
23
  onChange = _ref.onChange;
17
24
  var _useSettings = useSettings(),
18
25
  isDark = _useSettings.isDark;
@@ -30,6 +37,7 @@ export default function VmExtraTab(_ref) {
30
37
  children: data === null || data === void 0 ? void 0 : data.map(function (item, index) {
31
38
  return /*#__PURE__*/_jsx("div", {
32
39
  className: "vm-extra-btn-item ".concat(activeKey === item.key ? 'active' : ''),
40
+ style: _objectSpread({}, itemStyle),
33
41
  onClick: function onClick() {
34
42
  setActiveKey(item.key);
35
43
  onChange && onChange(item.key);
@@ -21,6 +21,7 @@
21
21
  background: var(--bg);
22
22
  border-radius: 6px;
23
23
  padding: 2px;
24
+ white-space: nowrap;
24
25
  &-item {
25
26
  height: 28px;
26
27
  width: 28px;
package/lib/_util/http.js CHANGED
@@ -229,6 +229,9 @@ var Http = /*#__PURE__*/function () {
229
229
  if (data.result === 0) {
230
230
  return data;
231
231
  } else {
232
+ if (config.url.indexOf('zdjg/jg/data/getJgDataStatistics') > -1 || config.url.indexOf('/cloud/zd/base/api/cp/commonFactory') > -1) {
233
+ return;
234
+ }
232
235
  message.error(data.msg || '请求信息错误');
233
236
  return;
234
237
  }
@@ -246,6 +249,9 @@ var Http = /*#__PURE__*/function () {
246
249
  key: "_errorHandler",
247
250
  value: function _errorHandler(error) {
248
251
  if (error.response) {
252
+ if (error.response.data.path.indexOf('zdjg/jg/data/getJgDataStatistics') > -1 || error.response.data.path.indexOf('/cloud/zd/base/api/cp/commonFactory') > -1) {
253
+ return;
254
+ }
249
255
  var msg;
250
256
  switch (error.response.status) {
251
257
  case 404:
package/lib/index.js CHANGED
@@ -16,4 +16,5 @@ export { default as VtxRestaurantModal } from "./vtx-restaurant-modal";
16
16
  export { default as VtxCcCpModal } from "./vtx-cc-cp-modal";
17
17
  export { default as VtxKhModal } from "./vtx-kh-modal";
18
18
  export { default as VtxZgModal } from "./vtx-zg-modal";
19
- export { default as VtxSdydTfdModal } from "./vtx-sdyd-tfd-modal";
19
+ export { default as VtxSdydTfdModal } from "./vtx-sdyd-tfd-modal";
20
+ export { default as VtxZfModal } from "./vtx-zf-modal";
@@ -1012,6 +1012,13 @@ export var MaintenanceService = {
1012
1012
  };
1013
1013
  }
1014
1014
  };
1015
+
1016
+ // 无人车实时信息
1017
+ export var unmannedRealByCarId = function unmannedRealByCarId(body) {
1018
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/kanban/unmannedRealByCarId"), {
1019
+ body: body
1020
+ });
1021
+ };
1015
1022
  export var carIdentityMap = new Map([['innerCode', '自编号'], ['carCode', '车牌号'], ['originalDeviceCode', '原始设备编码'], ['carClassName', '车辆类别'], ['carGradeName', '车辆种类'], ['emissionStageName', '排放阶段'], ['licensePlateColorName', '车牌颜色'], ['drivingLicenseCode', '行驶证编号'], ['useUnitName', '使用单位'], ['belongUnitName', '所属单位'], ['manageStaffName', '责任人'], ['divisionName', '行政区划'], ['backupManageStaffName', '后备责任人'], ['contact', '联系人'], ['contactWay', '联系方式'], ['carBrand', '车辆品牌'], ['carType', '车辆型号'], ['procurementDate', '购置时间'], ['useYears', '使用年限'], ['procurementAmt', '购置金额(元)'], ['life', '使用年限(年)'], ['scrapDate', '报废时间'], ['depreciationVal', '已折旧金额(元)'], ['reDepreciationVal', '剩余折旧金额(元)'], ['invoiceCode', '发票编号'], ['certificateCode', '证书编号'], ['certificateKeeper', '证书保管人'], ['identifyCode', '车辆识别代号'], ['engineCode', '发动机号'], ['purchaseApprovalCode', '采购审批单号'], ['orderIndex', '排序号'], ['workTypeName', '作业类型'], ['carStateStr', '生命周期'], ['bidSectionName', '所属标段'], ['photoIds', '车辆照片'],
1016
1023
  // ['qrCode', '车辆二维码'],
1017
1024
  ['photoTwoIds', '图片']]);
@@ -29,7 +29,8 @@ var Info = function Info() {
29
29
  var _useContext = useContext(CarContext),
30
30
  info = _useContext.info,
31
31
  detail = _useContext.detail,
32
- showFields = _useContext.showFields;
32
+ showFields = _useContext.showFields,
33
+ id = _useContext.id;
33
34
  var showFieldsMap = keyBy(showFields, 'dataKey') || {};
34
35
  var _useSettings = useSettings(),
35
36
  isDark = _useSettings.isDark;
@@ -94,7 +95,9 @@ var Info = function Info() {
94
95
  }), /*#__PURE__*/_jsx(VmTitle, {
95
96
  title: '实时信息',
96
97
  time: info === null || info === void 0 ? void 0 : info.equipmentTime
97
- }), (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Monitor, {}) : /*#__PURE__*/_jsx(VmFactorList, {
98
+ }), (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Monitor, {
99
+ carId: id
100
+ }) : /*#__PURE__*/_jsx(VmFactorList, {
98
101
  list: list
99
102
  }), /*#__PURE__*/_jsx("div", {
100
103
  className: 'vm-car-map-wrap',
@@ -49,7 +49,8 @@ var BaseInfo = function BaseInfo() {
49
49
  return current && current > dayjs().endOf('day');
50
50
  },
51
51
  children: (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.WorkInfo, {
52
- info: info
52
+ id: id,
53
+ date: date
53
54
  }) : /*#__PURE__*/_jsx(BaseWork, {
54
55
  id: id,
55
56
  date: date
@@ -250,14 +250,14 @@ var WorkRecord = function WorkRecord() {
250
250
  }
251
251
  })
252
252
  }), /*#__PURE__*/_jsxs(Col, {
253
- children: [(info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' && /*#__PURE__*/_jsx(VmFactor, {
254
- name: '规划里程',
253
+ children: [(info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(VmFactor, {
254
+ name: '计划作业里程',
255
255
  unit: 'km',
256
256
  type: 'sm',
257
257
  value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.planMileage) || 0,
258
258
  fontType: 'blue',
259
259
  img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png")
260
- }), /*#__PURE__*/_jsx(VmFactor, {
260
+ }) : /*#__PURE__*/_jsx(VmFactor, {
261
261
  name: '行驶里程',
262
262
  unit: 'km',
263
263
  type: 'sm',
@@ -11,7 +11,10 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
11
11
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
12
  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; }
13
13
  import { QuestionCircleOutlined } from '@ant-design/icons';
14
+ import { JxhService } from "../../../api";
14
15
  import { Space, Tooltip } from 'antd';
16
+ import dayjs from 'dayjs';
17
+ import { keyBy } from 'lodash';
15
18
  import { VmBarCharts, VmCalendar, VmCalendarInner, VmCalendarPercent, VmTable } from "../../../../_components";
16
19
  import useSettings from "../../../../_hooks/useSettings";
17
20
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
@@ -32,23 +35,28 @@ export default function (_ref) {
32
35
  var _useSettings = useSettings(),
33
36
  isDark = _useSettings.isDark,
34
37
  chartFontColor = _useSettings.chartFontColor;
38
+ var _JxhService$useCarWor = JxhService.useCarWorkDailyReport(id, month.startOf('M').format('YYYY-MM-DD'), month.endOf('M').format('YYYY-MM-DD')),
39
+ _JxhService$useCarWor2 = _JxhService$useCarWor.dailyData,
40
+ dailyData = _JxhService$useCarWor2 === void 0 ? [] : _JxhService$useCarWor2,
41
+ loading = _JxhService$useCarWor.loading;
42
+ var keyByDate = keyBy(dailyData || [], 'workDate');
43
+ console.log(keyByDate);
35
44
  var dateCellRender = function dateCellRender(value) {
36
- // const date = dayjs(value).format('YYYY-MM-DD');
37
- // const item = keyByDate[date];
38
- // if (!item) {
39
- // return null;
40
- // }
41
- // const { percent, driveMileage, workMileage } = item;
42
- var percent = 50;
43
- var color = getRateColor(percent);
45
+ var date = dayjs(value).format('YYYY-MM-DD');
46
+ var item = keyByDate[date];
47
+ if (!item) {
48
+ return null;
49
+ }
50
+ // let percent = 50;
51
+ var color = getRateColor(item.percent);
44
52
  return /*#__PURE__*/_jsxs(_Fragment, {
45
53
  children: [/*#__PURE__*/_jsx(VmCalendarPercent, {
46
- percent: percent,
54
+ percent: item.percent,
47
55
  color: color
48
56
  }), /*#__PURE__*/_jsx(VmCalendarInner, {
49
57
  type: "blue",
50
58
  img: isDark ? track_dark : track,
51
- value: "0/0",
59
+ value: "".concat((item === null || item === void 0 ? void 0 : item.workMileage) || 0, "/").concat((item === null || item === void 0 ? void 0 : item.driveMileage) || 0),
52
60
  style: {
53
61
  width: '139px',
54
62
  justifyContent: 'space-between',
@@ -57,7 +65,7 @@ export default function (_ref) {
57
65
  }), /*#__PURE__*/_jsx(VmCalendarInner, {
58
66
  type: "yellow",
59
67
  img: isDark ? butter_dark : butter,
60
- value: 0,
68
+ value: (item === null || item === void 0 ? void 0 : item.electricityExpendTotal) || 0,
61
69
  style: {
62
70
  width: '139px',
63
71
  justifyContent: 'space-between',
@@ -66,7 +74,7 @@ export default function (_ref) {
66
74
  }), /*#__PURE__*/_jsx(VmCalendarInner, {
67
75
  type: "green",
68
76
  img: isDark ? water_dark : water,
69
- value: 0,
77
+ value: (item === null || item === void 0 ? void 0 : item.waterExpendTotal) || 0,
70
78
  style: {
71
79
  width: '139px',
72
80
  justifyContent: 'space-between'
@@ -1,4 +1,12 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { unmannedRealByCarId } from "../../../api";
1
8
  import { Col, Row, Space } from 'antd';
9
+ import { useEffect, useState } from 'react';
2
10
  import { VmProgress } from "../../../..//_components";
3
11
  import useSettings from "../../../../_hooks/useSettings";
4
12
  import butter from "../../../imgs/butter.png";
@@ -8,10 +16,23 @@ import water_dark from "../../../imgs/water_dark.png";
8
16
  import "./index.less";
9
17
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
18
  function Monitor(_ref) {
11
- var _ref$carInfo = _ref.carInfo,
12
- carInfo = _ref$carInfo === void 0 ? {} : _ref$carInfo;
19
+ var carId = _ref.carId;
13
20
  var _useSettings = useSettings(),
14
21
  isDark = _useSettings.isDark;
22
+ var _useState = useState({}),
23
+ _useState2 = _slicedToArray(_useState, 2),
24
+ detail = _useState2[0],
25
+ setDetail = _useState2[1];
26
+ useEffect(function () {
27
+ if (carId) unmannedRealByCarId({
28
+ carId: carId,
29
+ mainDevice: true
30
+ }).then(function (res) {
31
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
32
+ setDetail((res === null || res === void 0 ? void 0 : res.data) || {});
33
+ }
34
+ });
35
+ }, [carId]);
15
36
  return /*#__PURE__*/_jsx("div", {
16
37
  className: "unmaned_factor_bg",
17
38
  children: /*#__PURE__*/_jsxs(Row, {
@@ -20,8 +41,8 @@ function Monitor(_ref) {
20
41
  children: /*#__PURE__*/_jsx(Item, {
21
42
  icon: isDark ? butter_dark : butter,
22
43
  unit: "%",
23
- value: 60,
24
- rate: 60,
44
+ value: (detail === null || detail === void 0 ? void 0 : detail.surplusElectricity) || 0,
45
+ rate: (detail === null || detail === void 0 ? void 0 : detail.surplusElectricity) || 0,
25
46
  strokeColor: ['#FFA700', '#FFC637']
26
47
  })
27
48
  }), /*#__PURE__*/_jsx(Col, {
@@ -29,7 +50,7 @@ function Monitor(_ref) {
29
50
  children: /*#__PURE__*/_jsxs("div", {
30
51
  className: "unmaned_factor_simple",
31
52
  children: [/*#__PURE__*/_jsx("div", {
32
- children: carInfo.gpsSpeed || 0
53
+ children: (detail === null || detail === void 0 ? void 0 : detail.mileage) || 0
33
54
  }), /*#__PURE__*/_jsx("div", {
34
55
  className: "unit",
35
56
  children: '今日行驶(km)'
@@ -40,8 +61,8 @@ function Monitor(_ref) {
40
61
  children: /*#__PURE__*/_jsx(Item, {
41
62
  icon: isDark ? water_dark : water,
42
63
  unit: "L",
43
- value: 60,
44
- rate: 60,
64
+ value: (detail === null || detail === void 0 ? void 0 : detail.surplusWater) || 0,
65
+ rate: (detail === null || detail === void 0 ? void 0 : detail.surplusWater) || 0,
45
66
  strokeColor: ['#00CF5D', '#04EC6C']
46
67
  })
47
68
  })]
@@ -4,48 +4,52 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { JxhService } from "../../../api";
7
8
  import { Col, Row } from 'antd';
9
+ import dayjs from 'dayjs';
8
10
  import { VmFactor, VmProgress } from "../../../../_components";
9
11
  import useSettings from "../../../../_hooks/useSettings";
10
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
13
  export default function (props) {
12
- var info = props.info;
13
14
  var _useSettings = useSettings(),
14
15
  isDark = _useSettings.isDark;
16
+ var _JxhService$useWorkSu = JxhService.useWorkSummaryJxh(props.id, dayjs(props.date).format('YYYY-MM-DD'), dayjs(props.date).format('YYYY-MM-DD')),
17
+ workSummaryJxhRes = _JxhService$useWorkSu.workSummaryJxhRes,
18
+ loading = _JxhService$useWorkSu.loading;
15
19
  var data = [{
16
20
  name: '规划里程',
17
21
  unit: 'km',
18
- value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
22
+ value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.planMileage,
19
23
  img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png"),
20
24
  fontType: 'blue'
21
25
  }, {
22
26
  name: '运行时长',
23
27
  unit: '',
24
- value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
28
+ value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.runDuration,
25
29
  img: isDark ? require("../../../imgs/clock_dark.png") : require("../../../imgs/clock.png"),
26
30
  fontType: 'blue'
27
31
  }, {
28
32
  name: '总电耗',
29
33
  unit: 'kwh',
30
- value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
34
+ value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.electricityExpendTotal,
31
35
  img: isDark ? require("../../../imgs/butter_dark.png") : require("../../../imgs/butter.png"),
32
36
  fontType: 'yellow'
33
37
  }, {
34
38
  name: '核算作业里程',
35
39
  unit: 'km',
36
- value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
40
+ value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workMileage,
37
41
  img: isDark ? require("../../../imgs/track_green_dark.png") : require("../../../imgs/track_green.png"),
38
42
  fontType: 'green'
39
43
  }, {
40
44
  name: '作业时长',
41
45
  unit: '',
42
- value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
46
+ value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workDuration,
43
47
  img: isDark ? require("../../../imgs/clock_green_dark.png") : require("../../../imgs/clock_green.png"),
44
48
  fontType: 'green'
45
49
  }, {
46
50
  name: '总水耗',
47
51
  unit: 'L',
48
- value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
52
+ value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.waterExpendTotal,
49
53
  img: isDark ? require("../../../imgs/water_dark.png") : require("../../../imgs/water.png"),
50
54
  fontType: 'green'
51
55
  }];
@@ -59,7 +63,7 @@ export default function (props) {
59
63
  children: [/*#__PURE__*/_jsx(Col, {
60
64
  flex: '112px',
61
65
  children: /*#__PURE__*/_jsx(VmProgress.Circle, {
62
- rate: (info === null || info === void 0 ? void 0 : info.rate) || 50,
66
+ rate: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workRate) || 0,
63
67
  name: '完成率',
64
68
  strokeColor: isDark ? {
65
69
  '0%': '#009DFF',
@@ -33,7 +33,7 @@
33
33
  &-block {
34
34
  flex: 1;
35
35
  display: flex;
36
- justify-content: space-between;
36
+ justify-content: space-evenly;
37
37
  align-items: center;
38
38
  }
39
39
  }
@@ -20,7 +20,7 @@ import sumBy from 'lodash/sumBy';
20
20
  import { useEffect } from 'react';
21
21
  import { VmFilter, VmTable, VmWrapper } from "../../../_components";
22
22
  import useSettings from "../../../_hooks/useSettings";
23
- import { AlarmService } from "../../api";
23
+ import { ExeceptionService } from "../../api";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  export default function AlarmRecord(props) {
26
26
  var _useSettings = useSettings(),
@@ -51,10 +51,10 @@ export default function AlarmRecord(props) {
51
51
  startDate = state.startDate,
52
52
  endDate = state.endDate,
53
53
  sort = state.sort;
54
- var _AlarmService$useAlar = AlarmService.useAlarmTrend(id, startDate, endDate),
55
- alarmTypes = _AlarmService$useAlar.alarmTypes;
56
- var _AlarmService$useAlar2 = AlarmService.useAlarmRecord(id, alarmTypeCode === 'all' ? '' : alarmTypeCode, startDate, endDate, pagination.current - 1, sort),
57
- detail = _AlarmService$useAlar2.detail;
54
+ var _ExeceptionService$us = ExeceptionService.useAlarmTrend(id, startDate, endDate),
55
+ alarmTypes = _ExeceptionService$us.alarmTypes;
56
+ var _ExeceptionService$us2 = ExeceptionService.useAlarmRecord(id, alarmTypeCode === 'all' ? '' : alarmTypeCode, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), pagination.current - 1, sort),
57
+ detail = _ExeceptionService$us2.detail;
58
58
  // 格式化报警类型数据
59
59
  var formatAlarmType = function formatAlarmType(dataList) {
60
60
  var list = [];
@@ -221,6 +221,9 @@ var SyInfo = function SyInfo(props) {
221
221
  size: 26,
222
222
  children: [/*#__PURE__*/_jsx(VmExtraTab, {
223
223
  value: filterKey,
224
+ itemStyle: {
225
+ width: 'fit-content'
226
+ },
224
227
  data: (baseInfo === null || baseInfo === void 0 ? void 0 : baseInfo.map(function (ele) {
225
228
  return {
226
229
  key: (ele === null || ele === void 0 ? void 0 : ele.productTypeId) || '',
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  var TABS_BASE = 'base';
14
14
  var TABS_CALENDAR = 'calender';
15
15
  var TABS_THROW = 'throw';
16
- var TABS_ALARM = 'alarm';
16
+ var TABS_ALARM = 'shxq-alarm';
17
17
  var TABS_TFD = 'tfd';
18
18
  var tabs = [{
19
19
  key: TABS_BASE,
@@ -88,7 +88,6 @@ var VtxShxqModal = function VtxShxqModal(props) {
88
88
  }
89
89
  });
90
90
  }
91
- console.log(tabsList, contents);
92
91
  return /*#__PURE__*/_jsx(VtxBaseModal, {
93
92
  id: id,
94
93
  type: "shxq",
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  var TABS_BASE = 'base';
15
15
  var TABS_CALENDAR = 'calender';
16
16
  var TABS_THROW = 'throw';
17
- var TABS_ALARM = 'alarm';
17
+ var TABS_ALARM = 'tfd-alarm';
18
18
  var tabs = [{
19
19
  key: TABS_BASE,
20
20
  title: '总览信息'
@@ -11,6 +11,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import { VtxImage } from '@vtx/components';
14
+ import '@vtx/components/lib/vtx-image/style/index';
14
15
  import { getVtxToken, request } from '@vtx/utils';
15
16
  import { useEffect, useState } from 'react';
16
17
  import { VmEmpty } from "../../../_components";
@@ -122,11 +123,12 @@ export default (function (props) {
122
123
  children: [/*#__PURE__*/_jsx("div", {
123
124
  className: "wr-base-img",
124
125
  children: imgList.length ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
125
- children: imgList.map(function (item) {
126
+ children: imgList.map(function (item, index) {
126
127
  return /*#__PURE__*/_jsx(VtxImage, {
127
128
  src: item.url,
128
129
  alt: item.name,
129
130
  style: {
131
+ display: index === 0 ? 'block' : 'none',
130
132
  width: '100%',
131
133
  height: '100%'
132
134
  }
@@ -191,12 +191,6 @@ export default (function (props) {
191
191
  })]
192
192
  }), showKeys.includes('womanAccessibilityNums') && /*#__PURE__*/_jsxs("div", {
193
193
  children: [/*#__PURE__*/_jsx("span", {
194
- style: {
195
- color: '#1CE548',
196
- fontSize: '24px'
197
- },
198
- children: "1"
199
- }), /*#__PURE__*/_jsx("span", {
200
194
  style: {
201
195
  fontSize: '24px'
202
196
  },
@@ -154,14 +154,11 @@ export default (function (props) {
154
154
  }), "\xA0", (_each$unit = each.unit) !== null && _each$unit !== void 0 ? _each$unit : '--']
155
155
  }), /*#__PURE__*/_jsxs("div", {
156
156
  className: "each-factor-value",
157
+ title: each.factorName || each.name,
157
158
  children: [/*#__PURE__*/_jsx("img", {
158
159
  src: require("./assets/".concat(theme, "/").concat(getImg(each.factorCode), ".png")),
159
160
  alt: "rll"
160
- }), /*#__PURE__*/_jsx("div", {
161
- className: "each-factor-text",
162
- title: each.factorName || each.name,
163
- children: each.factorName || each.name
164
- })]
161
+ }), each.factorName || each.name]
165
162
  })]
166
163
  }, each.factorName);
167
164
  })
@@ -314,22 +314,17 @@
314
314
  font-weight: bold;
315
315
  }
316
316
  .each-factor-value {
317
- flex: 1;
318
- display: flex;
319
- align-items: center;
317
+ width: 120px;
318
+ text-align: center;
319
+ overflow: hidden;
320
+ text-overflow: ellipsis;
321
+ white-space: nowrap;
320
322
  img {
321
323
  width: 16px;
322
324
  height: 16px;
323
325
  vertical-align: middle;
324
326
  margin-right: 4px;
325
327
  }
326
- .each-factor-text {
327
- width: 100px;
328
- text-overflow: ellipsis;
329
- overflow: hidden;
330
- white-space: nowrap;
331
- padding-left: 2px;
332
- }
333
328
  }
334
329
  }
335
330
  }
@@ -9,6 +9,7 @@ import { getVtxToken, request } from '@vtx/utils';
9
9
  import { Button, Space, Tooltip } from 'antd';
10
10
  import Base64 from 'base-64';
11
11
  import { useEffect, useState } from 'react';
12
+ import { VmEmpty } from "../../../_components";
12
13
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
14
  var preview = function preview() {
14
15
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
@@ -114,7 +115,7 @@ export default (function (props) {
114
115
  children: "\u5EFA\u8BBE\u4FE1\u606F"
115
116
  }), /*#__PURE__*/_jsx("div", {
116
117
  className: "wr-build-inner",
117
- children: list.map(function (item) {
118
+ children: list.length ? list.map(function (item) {
118
119
  return /*#__PURE__*/_jsxs("div", {
119
120
  className: "wr-build-panel",
120
121
  children: [/*#__PURE__*/_jsxs("div", {
@@ -163,7 +164,7 @@ export default (function (props) {
163
164
  }), getFileComponents(item.fileJson)]
164
165
  })]
165
166
  }, item.id);
166
- })
167
+ }) : /*#__PURE__*/_jsx(VmEmpty, {})
167
168
  })]
168
169
  });
169
170
  });
@@ -15,7 +15,7 @@ import { useSetState } from 'ahooks';
15
15
  import dayjs from 'dayjs';
16
16
  import { useEffect } from 'react';
17
17
  import { TagCloud } from 'react-tagcloud';
18
- import { VmTable } from "../../../_components";
18
+ import { VmEmpty, VmTable } from "../../../_components";
19
19
  import { VMRangePicker } from "../../../_components/vm-filter";
20
20
 
21
21
  //公厕详情
@@ -38,7 +38,7 @@ export default (function (props) {
38
38
  theme = props.theme;
39
39
  var _useSetState = useSetState({
40
40
  detail: {
41
- evaluateLabelCountList: [{}]
41
+ evaluateLabelCountList: []
42
42
  },
43
43
  startDate: '',
44
44
  endDate: '',
@@ -164,14 +164,14 @@ export default (function (props) {
164
164
  })
165
165
  }), /*#__PURE__*/_jsx("div", {
166
166
  className: "score-text",
167
- children: !!data.length && /*#__PURE__*/_jsx(TagCloud, {
167
+ children: !!data.length ? /*#__PURE__*/_jsx(TagCloud, {
168
168
  tags: data,
169
169
  minSize: 25,
170
170
  maxSize: 50,
171
171
  colorOptions: {
172
172
  colors: ['red', 'orange', 'yellow', 'green', 'blue', 'purple']
173
173
  }
174
- })
174
+ }) : /*#__PURE__*/_jsx(VmEmpty, {})
175
175
  })]
176
176
  })]
177
177
  }), /*#__PURE__*/_jsxs("div", {
@@ -12,6 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import { request } from '@vtx/utils';
14
14
  import { useEffect, useState } from 'react';
15
+ import VmCustom from "../_components/vm-custom";
15
16
  import VtxBaseModal from "../vtx-base-modal";
16
17
  import { Appraise, Base, Build, File, Score } from "./components";
17
18
  import "./style";
@@ -54,10 +55,10 @@ export default (function (props) {
54
55
  setConfig((res.data.popupConfigJson || []).filter(function (item) {
55
56
  return item.display;
56
57
  }).map(function (item) {
57
- return {
58
+ return _objectSpread(_objectSpread({}, item), {}, {
58
59
  key: item.code,
59
60
  title: item.name
60
- };
61
+ });
61
62
  }));
62
63
  }
63
64
  });
@@ -72,6 +73,18 @@ export default (function (props) {
72
73
  });
73
74
  }, [id]);
74
75
  var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'wr-base', /*#__PURE__*/_jsx(Base, _objectSpread({}, props))), 'wr-appraise', /*#__PURE__*/_jsx(Appraise, _objectSpread({}, props))), 'wr-score', /*#__PURE__*/_jsx(Score, _objectSpread({}, props))), 'wr-build', /*#__PURE__*/_jsx(Build, _objectSpread({}, props))), 'wr-file', /*#__PURE__*/_jsx(File, _objectSpread({}, props)));
76
+
77
+ // 自定义页签可配置多个,
78
+ if (config !== null && config !== void 0 && config.length) {
79
+ config.forEach(function (ele) {
80
+ if (ele.url) {
81
+ contentList[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
82
+ id: id,
83
+ url: ele === null || ele === void 0 ? void 0 : ele.url
84
+ });
85
+ }
86
+ });
87
+ }
75
88
  return /*#__PURE__*/_jsx(_Fragment, {
76
89
  children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
77
90
  type: "wr",
@@ -1,3 +1,4 @@
1
+ import '@vtx/components/lib/vtx-image/style/index';
1
2
  import "../components/Appraise/index.less";
2
3
  import "../components/Base/index.less";
3
4
  import "../components/Build/index.less";
@@ -0,0 +1,220 @@
1
+ import { VmMap } from "../../../_components";
2
+ import Right from "../Right";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export default (function (props) {
5
+ var theme = props.theme,
6
+ id = props.id;
7
+ var base = [{
8
+ name: '案件来源',
9
+ key: '案件来源'
10
+ }, {
11
+ name: '受案机关',
12
+ key: '受案机关'
13
+ }, {
14
+ name: '受案时间',
15
+ key: '受案时间'
16
+ }, {
17
+ name: '案发时间',
18
+ key: '案发时间'
19
+ }, {
20
+ name: '登记时间',
21
+ key: '登记时间'
22
+ }, {
23
+ name: '登记人',
24
+ key: '登记人'
25
+ }, {
26
+ name: '案情概述',
27
+ key: '案情概述',
28
+ weights: 2
29
+ }, {
30
+ name: '案发地点',
31
+ key: '案发地点',
32
+ weights: 2
33
+ }];
34
+ var dsr = [{
35
+ name: '当事人类型',
36
+ key: '当事人类型'
37
+ }, {
38
+ name: '单位名称',
39
+ key: '单位名称'
40
+ }, {
41
+ name: '法定代表人',
42
+ key: '法定代表人'
43
+ }, {
44
+ name: '统一社会信用代码',
45
+ key: '统一社会信用代码'
46
+ }, {
47
+ name: '联系电话',
48
+ key: '联系电话'
49
+ }, {
50
+ name: '身份证号',
51
+ key: '身份证号'
52
+ }, {
53
+ name: '住所地址',
54
+ key: '案情概述',
55
+ weights: 2
56
+ }];
57
+ var cbxx = [{
58
+ name: '承办单位',
59
+ key: '承办单位'
60
+ }, {
61
+ name: '主办人',
62
+ key: '主办人'
63
+ }, {
64
+ name: '协办人',
65
+ key: '协办人'
66
+ }];
67
+ var laxx = [{
68
+ name: '案件流程',
69
+ key: '案件流程'
70
+ }, {
71
+ name: '案件编号',
72
+ key: '案件编号'
73
+ }, {
74
+ name: '卷宗编号',
75
+ key: '卷宗编号'
76
+ }, {
77
+ name: '立案时间',
78
+ key: '立案时间'
79
+ }, {
80
+ name: '案件案由',
81
+ key: '案件案由'
82
+ }, {
83
+ name: '违反条款',
84
+ key: '《大气污染防治法》 第八十二条第一款.第一百一十九条第二款:(2018年修订)  禁止在人口集中地区和其他依法需要特殊保护的区域内焚烧沥青、油毡、橡胶、塑料、皮革、垃圾以及其他产生有毒有害烟尘和恶臭气体的物质。  违反本法规定,在人口集中地区和其他依法需要特殊保护的区域内,焚烧沥青、油毡、橡胶、塑料、皮革、垃圾以及其他产生有毒有害烟尘和恶臭气体的物质的,由县级人民政府确定的监督管理部门责令改正,对单位处一万元以上十万元以下的罚款,对个人处五百元以上二千元以下的罚款。',
85
+ weights: 2
86
+ }, {
87
+ name: '处罚条款',
88
+ key: '《大气污染防治法》第一百一十九条第二款:(2019年修订) 违反本法规定,在人口集中地区和其他依法需要特殊保护的区域内,焚烧沥青、油毡、橡胶、塑料、皮革、垃圾以及其他产生有毒有害烟尘和恶臭气体的物质的,由县级人民政府确定的监督管理部门责令改正,对单位处一万元以上十万元以下的罚款,对个人处五百元以上二千元以下的罚款。',
89
+ weights: 2
90
+ }];
91
+ return /*#__PURE__*/_jsxs("div", {
92
+ className: "zf-base-content",
93
+ children: [/*#__PURE__*/_jsxs("div", {
94
+ className: "zf-base-left",
95
+ children: [/*#__PURE__*/_jsxs("div", {
96
+ className: "zf-left-top",
97
+ children: [/*#__PURE__*/_jsxs("div", {
98
+ className: "zf-base-title",
99
+ children: ["\u6848\u4EF6\u4FE1\u606F", /*#__PURE__*/_jsx("span", {
100
+ className: "zf-base-subTitle",
101
+ children: "[\u4E00\u822C\u6848\u4EF6-\u627F\u529E\u673A\u6784\u7ACB\u6848\u5BA1\u6279]"
102
+ })]
103
+ }), /*#__PURE__*/_jsxs("div", {
104
+ className: "zf-base-info",
105
+ children: [/*#__PURE__*/_jsx("div", {
106
+ className: "zf-base-list",
107
+ children: base.map(function (item) {
108
+ return /*#__PURE__*/_jsxs("div", {
109
+ className: "zf-base-item",
110
+ style: {
111
+ width: item.weights === 2 ? '100%' : '45%'
112
+ },
113
+ children: [/*#__PURE__*/_jsxs("span", {
114
+ className: "zf-base-label",
115
+ children: [item.name, "\uFF1A"]
116
+ }), /*#__PURE__*/_jsx("span", {
117
+ children: item.key
118
+ })]
119
+ }, item.key);
120
+ })
121
+ }), /*#__PURE__*/_jsx("div", {
122
+ className: "zf-base-map",
123
+ children: /*#__PURE__*/_jsx(VmMap, {
124
+ mapCenter: [119.503902227162, 27.461841428139778],
125
+ mapPoints: [{
126
+ lng: 119.503902227162,
127
+ lat: 27.461841428139778,
128
+ icon: 'GD'
129
+ }]
130
+ })
131
+ })]
132
+ })]
133
+ }), /*#__PURE__*/_jsxs("div", {
134
+ className: "zf-left-bottom",
135
+ children: [/*#__PURE__*/_jsx("div", {
136
+ className: "zf-base-title",
137
+ children: "\u5F53\u4E8B\u4EBA\u4FE1\u606F"
138
+ }), /*#__PURE__*/_jsx("div", {
139
+ className: "zf-base-info",
140
+ style: {
141
+ height: 'auto'
142
+ },
143
+ children: /*#__PURE__*/_jsx("div", {
144
+ className: "zf-base-list",
145
+ children: dsr.map(function (item) {
146
+ return /*#__PURE__*/_jsxs("div", {
147
+ className: "zf-base-item",
148
+ style: {
149
+ width: item.weights === 2 ? '100%' : '45%'
150
+ },
151
+ children: [/*#__PURE__*/_jsxs("span", {
152
+ className: "zf-base-label",
153
+ children: [item.name, "\uFF1A"]
154
+ }), /*#__PURE__*/_jsx("span", {
155
+ children: item.key
156
+ })]
157
+ }, item.key);
158
+ })
159
+ })
160
+ })]
161
+ }), /*#__PURE__*/_jsxs("div", {
162
+ className: "zf-left-bottom",
163
+ children: [/*#__PURE__*/_jsx("div", {
164
+ className: "zf-base-title",
165
+ children: "\u627F\u529E\u4FE1\u606F"
166
+ }), /*#__PURE__*/_jsx("div", {
167
+ className: "zf-base-info",
168
+ style: {
169
+ height: 'auto'
170
+ },
171
+ children: /*#__PURE__*/_jsx("div", {
172
+ className: "zf-base-list",
173
+ children: cbxx.map(function (item) {
174
+ return /*#__PURE__*/_jsxs("div", {
175
+ className: "zf-base-item",
176
+ style: {
177
+ width: item.weights === 2 ? '100%' : '45%'
178
+ },
179
+ children: [/*#__PURE__*/_jsxs("span", {
180
+ className: "zf-base-label",
181
+ children: [item.name, "\uFF1A"]
182
+ }), /*#__PURE__*/_jsx("span", {
183
+ children: item.key
184
+ })]
185
+ }, item.key);
186
+ })
187
+ })
188
+ })]
189
+ }), /*#__PURE__*/_jsxs("div", {
190
+ className: "zf-left-bottom",
191
+ children: [/*#__PURE__*/_jsx("div", {
192
+ className: "zf-base-title",
193
+ children: "\u7ACB\u6848\u4FE1\u606F"
194
+ }), /*#__PURE__*/_jsx("div", {
195
+ className: "zf-base-info",
196
+ style: {
197
+ height: 'auto'
198
+ },
199
+ children: /*#__PURE__*/_jsx("div", {
200
+ className: "zf-base-list",
201
+ children: laxx.map(function (item) {
202
+ return /*#__PURE__*/_jsxs("div", {
203
+ className: "zf-base-item",
204
+ style: {
205
+ width: item.weights === 2 ? '100%' : '45%'
206
+ },
207
+ children: [/*#__PURE__*/_jsxs("span", {
208
+ className: "zf-base-label",
209
+ children: [item.name, "\uFF1A"]
210
+ }), /*#__PURE__*/_jsx("span", {
211
+ children: item.key
212
+ })]
213
+ }, item.key);
214
+ })
215
+ })
216
+ })]
217
+ })]
218
+ }), /*#__PURE__*/_jsx(Right, {})]
219
+ });
220
+ });
@@ -0,0 +1,106 @@
1
+ .zf-base-content {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ .zf-base-left {
7
+ width: 866px;
8
+ height: 100%;
9
+ overflow: hidden;
10
+ overflow-y: auto;
11
+ & > div {
12
+ width: 100%;
13
+ overflow: hidden;
14
+ overflow-y: auto;
15
+ border-radius: 8px;
16
+ box-sizing: border-box;
17
+ margin-bottom: 16px;
18
+ }
19
+ .zf-left-top {
20
+ height: 60%;
21
+ }
22
+
23
+ .zf-left-bottom {
24
+ height: auto;
25
+ flex-shrink: 0;
26
+ }
27
+ }
28
+ }
29
+
30
+ .zf-base-info {
31
+ width: 100%;
32
+ height: calc(100% - 51px);
33
+ padding: 16px 18px;
34
+ overflow: hidden;
35
+ overflow-y: auto;
36
+ .zf-base-list {
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ }
40
+ .zf-base-map {
41
+ width: 100%;
42
+ height: calc(100% - 120px);
43
+ margin-top: 10px;
44
+ }
45
+ }
46
+
47
+ .zf-base-title {
48
+ padding: 12px 16px;
49
+ font-size: 16px;
50
+ box-sizing: border-box;
51
+ .zf-base-subTitle {
52
+ color: #2facff;
53
+ margin-left: 10px;
54
+ }
55
+ }
56
+
57
+ .zf-base-right {
58
+ width: calc(100% - 882px);
59
+ height: 100%;
60
+ overflow: hidden;
61
+ overflow-y: auto;
62
+ border-radius: 8px;
63
+ box-sizing: border-box;
64
+ }
65
+
66
+ .vm-modal-dark {
67
+ .zf-base-content {
68
+ color: #fff;
69
+
70
+ .zf-base-left {
71
+ & > div {
72
+ border: 1px solid #1064a7;
73
+ background: rgba(0, 155, 233, 0.1);
74
+ }
75
+ }
76
+ }
77
+ .zf-base-title {
78
+ border-bottom: 1px solid rgba(12, 154, 255, 0.15);
79
+ }
80
+ .zf-base-label {
81
+ color: #2facff;
82
+ }
83
+ .zf-base-right {
84
+ border: 1px solid #1064a7;
85
+ background: rgba(0, 155, 233, 0.1);
86
+ }
87
+ }
88
+
89
+ .vm-modal-light {
90
+ .zf-base-content {
91
+ .zf-base-left {
92
+ & > div {
93
+ background: #fff;
94
+ }
95
+ }
96
+ }
97
+ .zf-base-title {
98
+ border-bottom: 1px solid #f1f0f0;
99
+ }
100
+ .zf-base-label {
101
+ color: #8c8c8c;
102
+ }
103
+ .zf-base-right {
104
+ background: #fff;
105
+ }
106
+ }
@@ -0,0 +1,12 @@
1
+ import Right from "../Right";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ export default (function (props) {
4
+ var theme = props.theme,
5
+ id = props.id;
6
+ return /*#__PURE__*/_jsxs("div", {
7
+ className: "zf-process-content",
8
+ children: [/*#__PURE__*/_jsx("div", {
9
+ className: "zf-process-left"
10
+ }), /*#__PURE__*/_jsx(Right, {})]
11
+ });
12
+ });
@@ -0,0 +1,53 @@
1
+ .zf-process-content {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ .zf-process-title {
7
+ padding: 12px 16px;
8
+ font-size: 16px;
9
+ box-sizing: border-box;
10
+ .zf-process-subTitle {
11
+ color: #2facff;
12
+ margin-left: 10px;
13
+ }
14
+ }
15
+ .zf-process-left {
16
+ width: 866px;
17
+ height: 100%;
18
+ overflow: hidden;
19
+ overflow-y: auto;
20
+ border-radius: 8px;
21
+ box-sizing: border-box;
22
+ }
23
+ }
24
+
25
+ .vm-modal-dark {
26
+ .zf-process-content {
27
+ color: #fff;
28
+ .zf-process-title {
29
+ border-bottom: 1px solid rgba(12, 154, 255, 0.15);
30
+ }
31
+ .zf-process-left {
32
+ border: 1px solid #1064a7;
33
+ background: rgba(0, 155, 233, 0.1);
34
+ }
35
+ .zf-process-label {
36
+ color: #2facff;
37
+ }
38
+ }
39
+ }
40
+
41
+ .vm-modal-light {
42
+ .zf-process-content {
43
+ .zf-process-title {
44
+ border-bottom: 1px solid #f1f0f0;
45
+ }
46
+ .zf-process-left {
47
+ background: #fff;
48
+ }
49
+ .zf-process-label {
50
+ color: #8c8c8c;
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ //样式定义在Base内
3
+
4
+ export default (function (props) {
5
+ var theme = props.theme,
6
+ id = props.id;
7
+ var jdxx = [{
8
+ name: '当前节点',
9
+ key: '承办机构立案审批'
10
+ }, {
11
+ name: '当前节点耗时',
12
+ key: '当前节点耗时'
13
+ }, {
14
+ name: '开始时间',
15
+ key: '开始时间'
16
+ }, {
17
+ name: '总耗时',
18
+ key: '总耗时'
19
+ }];
20
+ return /*#__PURE__*/_jsxs("div", {
21
+ className: "zf-base-right",
22
+ children: [/*#__PURE__*/_jsx("div", {
23
+ className: "zf-base-title",
24
+ children: "\u8282\u70B9\u4FE1\u606F"
25
+ }), /*#__PURE__*/_jsx("div", {
26
+ className: "zf-base-info",
27
+ children: /*#__PURE__*/_jsx("div", {
28
+ className: "zf-base-list",
29
+ children: jdxx.map(function (item) {
30
+ return /*#__PURE__*/_jsxs("div", {
31
+ className: "zf-base-item",
32
+ style: {
33
+ width: '100%'
34
+ },
35
+ children: [/*#__PURE__*/_jsxs("span", {
36
+ className: "zf-base-label",
37
+ children: [item.name, "\uFF1A"]
38
+ }), /*#__PURE__*/_jsx("span", {
39
+ children: item.key
40
+ })]
41
+ }, item.key);
42
+ })
43
+ })
44
+ })]
45
+ });
46
+ });
@@ -0,0 +1,3 @@
1
+ import Base from "./Base";
2
+ import Process from "./Process";
3
+ export { Base, Process };
@@ -0,0 +1,91 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ 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); }
10
+ 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; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { request } from '@vtx/utils';
14
+ import { useEffect, useState } from 'react';
15
+ import VmCustom from "../_components/vm-custom";
16
+ import VtxBaseModal from "../vtx-base-modal";
17
+ import { Base, Process } from "./components";
18
+ import "./style";
19
+
20
+ //弹窗配置
21
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
22
+ var getByCode = function getByCode(params) {
23
+ return request.get('/cloud/jcss-reborn/facility/type/config/getByCode', {
24
+ data: params
25
+ });
26
+ };
27
+ export default (function (props) {
28
+ var _config$;
29
+ var visible = props.visible,
30
+ theme = props.theme,
31
+ title = props.title,
32
+ id = props.id,
33
+ onCancel = props.onCancel;
34
+ var _useState = useState({}),
35
+ _useState2 = _slicedToArray(_useState, 2),
36
+ detail = _useState2[0],
37
+ setDetail = _useState2[1];
38
+ var _useState3 = useState([{
39
+ title: '基本信息',
40
+ key: 'zf-base'
41
+ }, {
42
+ title: '流程信息',
43
+ key: 'zf-process'
44
+ }]),
45
+ _useState4 = _slicedToArray(_useState3, 2),
46
+ config = _useState4[0],
47
+ setConfig = _useState4[1];
48
+ useEffect(function () {
49
+ return;
50
+ getByCode({
51
+ code: 'zhzf'
52
+ }).then(function (res) {
53
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
54
+ setConfig((res.data.popupConfigJson || []).filter(function (item) {
55
+ return item.display;
56
+ }).map(function (item) {
57
+ return _objectSpread(_objectSpread({}, item), {}, {
58
+ key: item.code,
59
+ title: item.name
60
+ });
61
+ }));
62
+ }
63
+ });
64
+ }, []);
65
+ var contentList = _defineProperty(_defineProperty({}, 'zf-base', /*#__PURE__*/_jsx(Base, _objectSpread({}, props))), 'zf-process', /*#__PURE__*/_jsx(Process, _objectSpread({}, props)));
66
+
67
+ // 自定义页签可配置多个,
68
+ if (config !== null && config !== void 0 && config.length) {
69
+ config.forEach(function (ele) {
70
+ if (ele.url) {
71
+ contentList[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
72
+ id: id,
73
+ url: ele === null || ele === void 0 ? void 0 : ele.url
74
+ });
75
+ }
76
+ });
77
+ }
78
+ return /*#__PURE__*/_jsx(_Fragment, {
79
+ children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
80
+ type: "zf",
81
+ visible: visible,
82
+ theme: theme,
83
+ title: title,
84
+ id: id,
85
+ onCancel: onCancel,
86
+ tabs: config,
87
+ contents: contentList,
88
+ tabChose: (_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.key
89
+ })
90
+ });
91
+ });
@@ -0,0 +1,3 @@
1
+ import "../components/Base/index.less";
2
+ import "../components/Process/index.less";
3
+ import "./index.less";
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "5.0.11",
3
+ "version": "5.0.13",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",