@vtx/modals2 5.0.13 → 5.0.15

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 (160) hide show
  1. package/lib/_components/vm-extra-tab/style/index.less +1 -1
  2. package/lib/_components/vm-factor/index.js +1 -1
  3. package/lib/_components/vm-factor-list/index.js +4 -1
  4. package/lib/_components/vm-filter/style/index.less +4 -3
  5. package/lib/_components/vm-pie-charts/index.js +3 -0
  6. package/lib/_components/vm-wrapper/style/index.less +1 -1
  7. package/lib/_util/iconSvgHtml.js +653 -224
  8. package/lib/index.js +4 -1
  9. package/lib/style/index.less +1 -6
  10. package/lib/vtx-base-modal/Tabs/index.js +28 -3
  11. package/lib/vtx-base-modal/index.js +2 -2
  12. package/lib/vtx-base-modal/style/index.less +3 -1
  13. package/lib/vtx-car-modal/index.js +29 -29
  14. package/lib/vtx-cc-cp-modal/index.js +6 -6
  15. package/lib/vtx-cc-unit-modal/index.js +6 -6
  16. package/lib/vtx-cp-modal/index.js +10 -14
  17. package/lib/vtx-default-modal/components/BaseInfo/index.less +1 -0
  18. package/lib/vtx-default-modal/index.js +3 -3
  19. package/lib/vtx-device-modal/index.js +5 -5
  20. package/lib/vtx-df-modal/index.js +5 -6
  21. package/lib/vtx-housing-estate-modal/index.js +1 -1
  22. package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +20 -0
  23. package/lib/vtx-jzlj-gcxm-modal/components/index.js +2 -0
  24. package/lib/vtx-jzlj-gcxm-modal/index.js +77 -0
  25. package/lib/vtx-jzlj-gcxm-modal/style/index.js +1 -0
  26. package/lib/vtx-jzlj-gcxm-modal/style/index.less +1 -0
  27. package/lib/vtx-qyry-modal/index.js +6 -6
  28. package/lib/vtx-restaurant-modal/index.js +6 -6
  29. package/lib/vtx-road-modal/components/BaseInfo/index.less +34 -31
  30. package/lib/vtx-road-modal/index.js +3 -3
  31. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
  32. package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
  33. package/lib/vtx-shxq-modal/components/Tfd/index.less +6 -0
  34. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
  35. package/lib/vtx-shxq-modal/index.js +2 -2
  36. package/lib/vtx-staff-modal/index.js +5 -9
  37. package/lib/vtx-tfd-modal/index.js +2 -2
  38. package/lib/vtx-wr-modal/components/Base/Ptss.js +71 -31
  39. package/lib/vtx-wr-modal/components/Base/assets/alert.png +0 -0
  40. package/lib/vtx-wr-modal/components/Base/index.js +15 -3
  41. package/lib/vtx-wr-modal/components/Base/index.less +14 -1
  42. package/lib/vtx-wr-modal/index.js +3 -1
  43. package/lib/vtx-zf-modal/components/Base/index.js +64 -40
  44. package/lib/vtx-zf-modal/components/Base/index.less +0 -1
  45. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.d.ts +109 -0
  46. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.js +5 -0
  47. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.js.map +1 -0
  48. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/af.js +33 -0
  49. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ar.js +222 -0
  50. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ast.js +109 -0
  51. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/az.js +221 -0
  52. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bg.js +222 -0
  53. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bn.js +222 -0
  54. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bs.js +80 -0
  55. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ca.js +222 -0
  56. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/cs.js +222 -0
  57. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/da.js +222 -0
  58. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/de-ch.js +220 -0
  59. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/de.js +222 -0
  60. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/el.js +222 -0
  61. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en-au.js +222 -0
  62. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en-gb.js +215 -0
  63. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en.js +92 -0
  64. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/eo.js +120 -0
  65. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/es-co.js +36 -0
  66. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/es.js +222 -0
  67. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/et.js +222 -0
  68. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/eu.js +121 -0
  69. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fa.js +222 -0
  70. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fi.js +222 -0
  71. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fr.js +222 -0
  72. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/gl.js +222 -0
  73. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/gu.js +22 -0
  74. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/he.js +222 -0
  75. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hi.js +222 -0
  76. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hr.js +222 -0
  77. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hu.js +222 -0
  78. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/id.js +222 -0
  79. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/it.js +222 -0
  80. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ja.js +222 -0
  81. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/jv.js +106 -0
  82. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/kk.js +13 -0
  83. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/km.js +127 -0
  84. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/kn.js +121 -0
  85. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ko.js +222 -0
  86. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ku.js +219 -0
  87. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/lt.js +222 -0
  88. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/lv.js +222 -0
  89. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ms.js +222 -0
  90. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/nb.js +199 -0
  91. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ne.js +215 -0
  92. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/nl.js +222 -0
  93. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/no.js +222 -0
  94. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/oc.js +21 -0
  95. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pl.js +222 -0
  96. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pt-br.js +222 -0
  97. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pt.js +222 -0
  98. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ro.js +222 -0
  99. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ru.js +222 -0
  100. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/si.js +76 -0
  101. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sk.js +222 -0
  102. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sl.js +78 -0
  103. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sq.js +208 -0
  104. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sr-latn.js +222 -0
  105. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sr.js +222 -0
  106. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sv.js +222 -0
  107. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/th.js +222 -0
  108. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tk.js +220 -0
  109. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tr.js +222 -0
  110. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tt.js +170 -0
  111. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ug.js +205 -0
  112. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/uk.js +222 -0
  113. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ur.js +222 -0
  114. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/uz.js +220 -0
  115. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/vi.js +222 -0
  116. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/zh-cn.js +222 -0
  117. package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/zh.js +222 -0
  118. package/lib/vtx-zf-modal/components/CkEditorCustom/context/Event.js +42 -0
  119. package/lib/vtx-zf-modal/components/CkEditorCustom/context/context.js +98 -0
  120. package/lib/vtx-zf-modal/components/CkEditorCustom/context/index.js +3 -0
  121. package/lib/vtx-zf-modal/components/CkEditorCustom/context/useContextComponent.js +16 -0
  122. package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +294 -0
  123. package/lib/vtx-zf-modal/components/CkEditorCustom/index.less +133 -0
  124. package/lib/vtx-zf-modal/components/CkEditorCustom/utils/util.js +67 -0
  125. package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +216 -0
  126. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +77 -0
  127. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/OpenPanelCommand.js +31 -0
  128. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +146 -0
  129. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +92 -0
  130. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +341 -0
  131. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.less +1 -0
  132. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +94 -0
  133. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +334 -0
  134. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +330 -0
  135. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.less +36 -0
  136. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +93 -0
  137. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +335 -0
  138. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +335 -0
  139. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.less +35 -0
  140. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +94 -0
  141. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +338 -0
  142. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.less +1 -0
  143. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/style.less +92 -0
  144. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +94 -0
  145. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +328 -0
  146. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.less +1 -0
  147. package/lib/vtx-zf-modal/components/Document/index.js +84 -0
  148. package/lib/vtx-zf-modal/components/Document/index.less +47 -0
  149. package/lib/vtx-zf-modal/components/File/index.js +192 -0
  150. package/lib/vtx-zf-modal/components/File/index.less +43 -0
  151. package/lib/vtx-zf-modal/components/Process/index.js +189 -5
  152. package/lib/vtx-zf-modal/components/Process/index.less +69 -15
  153. package/lib/vtx-zf-modal/components/Record/index.js +116 -0
  154. package/lib/vtx-zf-modal/components/Record/index.less +34 -0
  155. package/lib/vtx-zf-modal/components/Right/index.js +6 -7
  156. package/lib/vtx-zf-modal/components/index.js +4 -1
  157. package/lib/vtx-zf-modal/index.js +28 -10
  158. package/lib/vtx-zf-modal/style/index.js +4 -0
  159. package/lib/vtx-zzz-modal/style/index.js +1 -0
  160. package/package.json +2 -1
@@ -0,0 +1,43 @@
1
+ .zf-file-content {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ .zf-file-left {
7
+ width: 866px;
8
+ height: 100%;
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 16px;
12
+ .zf-left-panel {
13
+ flex: 1;
14
+ .zf-file-title {
15
+ padding: 12px 16px;
16
+ font-size: 16px;
17
+ box-sizing: border-box;
18
+ }
19
+ }
20
+ }
21
+ }
22
+
23
+ .vm-modal-dark {
24
+ .zf-file-content {
25
+ color: #fff;
26
+ .zf-left-panel {
27
+ border: 1px solid #1064a7;
28
+ background: rgba(0, 155, 233, 0.1);
29
+ }
30
+ }
31
+ .zf-file-title {
32
+ border-bottom: 1px solid rgba(12, 154, 255, 0.15);
33
+ }
34
+ }
35
+
36
+ .vm-modal-light {
37
+ .zf-left-panel {
38
+ background: #fff;
39
+ }
40
+ .zf-file-title {
41
+ border-bottom: 1px solid #f1f0f0;
42
+ }
43
+ }
@@ -1,12 +1,196 @@
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 { VtxImage } from '@vtx/components';
8
+ import '@vtx/components/lib/vtx-image/style/index';
9
+ import { request } from '@vtx/utils';
10
+ import { useEffect, useState } from 'react';
11
+ import { VmEmpty, VmTabs } from "../../../_components";
1
12
  import Right from "../Right";
2
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ var listTaskInfo = function listTaskInfo(params) {
15
+ return request.get('/cloud/zhzf/api/v101/case/listTaskInfo', {
16
+ data: params
17
+ });
18
+ };
3
19
  export default (function (props) {
4
- var theme = props.theme,
5
- id = props.id;
20
+ var id = props.id,
21
+ detail = props.detail;
22
+ var _useState = useState('1'),
23
+ _useState2 = _slicedToArray(_useState, 2),
24
+ activeKey = _useState2[0],
25
+ setActiveKey = _useState2[1];
26
+ var _useState3 = useState([]),
27
+ _useState4 = _slicedToArray(_useState3, 2),
28
+ list = _useState4[0],
29
+ setList = _useState4[1];
30
+ useEffect(function () {
31
+ id && listTaskInfo({
32
+ caseId: id
33
+ }).then(function (res) {
34
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
35
+ setList(res.data || []);
36
+ }
37
+ });
38
+ }, [id]);
39
+ var legendList = [{
40
+ name: '普通',
41
+ color: '#009DFF'
42
+ }, {
43
+ name: '撤件',
44
+ color: '#FF5861'
45
+ }, {
46
+ name: '退件',
47
+ color: '#934BED'
48
+ }, {
49
+ name: '超时',
50
+ color: '#F89A37'
51
+ }];
52
+ var stepColumn = [{
53
+ name: '来件时间',
54
+ key: 'startTime'
55
+ }, {
56
+ name: '办理人',
57
+ key: 'assignUserName'
58
+ }, {
59
+ name: '办理时间',
60
+ key: 'endTime'
61
+ }, {
62
+ name: '节点用时',
63
+ key: 'taskTimeCost'
64
+ }, {
65
+ name: '节点时限',
66
+ key: 'taskTimeLimitStr'
67
+ }, {
68
+ name: '累计用时',
69
+ key: 'caseTimeCost'
70
+ }, {
71
+ name: '办理意见',
72
+ key: 'comment',
73
+ weights: 2
74
+ }];
75
+ var getColor = function getColor(item) {
76
+ if (item.statusStr === 'scrap') {
77
+ return '#ff1818';
78
+ }
79
+ if (item.statusStr === 'back') {
80
+ return '#8b2dff';
81
+ }
82
+ if (item.overDue) {
83
+ return '#ff9018';
84
+ }
85
+ return '#009DFF';
86
+ };
6
87
  return /*#__PURE__*/_jsxs("div", {
7
88
  className: "zf-process-content",
8
- children: [/*#__PURE__*/_jsx("div", {
9
- className: "zf-process-left"
10
- }), /*#__PURE__*/_jsx(Right, {})]
89
+ children: [/*#__PURE__*/_jsxs("div", {
90
+ className: "zf-process-left",
91
+ children: [/*#__PURE__*/_jsx("div", {
92
+ style: {
93
+ paddingLeft: '16px'
94
+ },
95
+ children: /*#__PURE__*/_jsx(VmTabs, {
96
+ activeKey: activeKey,
97
+ items: [{
98
+ label: '流程节点',
99
+ key: '1'
100
+ }, {
101
+ label: '流程图',
102
+ key: '2'
103
+ }],
104
+ onChange: function onChange(key) {
105
+ setActiveKey(key);
106
+ }
107
+ })
108
+ }), activeKey === '1' && /*#__PURE__*/_jsx("div", {
109
+ className: "zf-process-list",
110
+ children: list.length ? list.map(function (item, index) {
111
+ return /*#__PURE__*/_jsxs("div", {
112
+ className: "zf-process-item",
113
+ children: [/*#__PURE__*/_jsxs("div", {
114
+ className: "zf-item-title",
115
+ children: [/*#__PURE__*/_jsxs("div", {
116
+ className: "zf-item-name",
117
+ children: [/*#__PURE__*/_jsx("div", {
118
+ className: "zf-item-circle",
119
+ style: {
120
+ background: getColor(item)
121
+ }
122
+ }), /*#__PURE__*/_jsxs("div", {
123
+ style: {
124
+ display: 'flex',
125
+ alignItems: 'center',
126
+ gap: '12px',
127
+ color: getColor(item)
128
+ },
129
+ children: [item.name || '--', item.overDue && /*#__PURE__*/_jsx("div", {
130
+ className: "vm-modal-header-wrap-left-tag",
131
+ style: {
132
+ background: 'rgba(248,154,55,0.15)'
133
+ },
134
+ children: "\u8D85\u65F6"
135
+ })]
136
+ })]
137
+ }), index === 0 && /*#__PURE__*/_jsxs("div", {
138
+ className: "zf-process-legend",
139
+ children: [/*#__PURE__*/_jsx("div", {
140
+ className: "zf-legend-title",
141
+ children: "\u989C\u8272\u6807\u8BC6\uFF1A"
142
+ }), legendList.map(function (item) {
143
+ return /*#__PURE__*/_jsxs("div", {
144
+ className: "zf-legend-item",
145
+ children: [/*#__PURE__*/_jsx("div", {
146
+ className: "zf-legend-square",
147
+ style: {
148
+ background: item.color
149
+ }
150
+ }), /*#__PURE__*/_jsx("div", {
151
+ children: item.name
152
+ })]
153
+ }, item.name);
154
+ })]
155
+ })]
156
+ }), /*#__PURE__*/_jsx("div", {
157
+ className: "zf-item-content",
158
+ style: {
159
+ borderLeft: index === list.length - 1 ? 'none' : '2px solid #009dff'
160
+ },
161
+ children: /*#__PURE__*/_jsx("div", {
162
+ className: "zf-item-text",
163
+ children: stepColumn.map(function (each) {
164
+ return /*#__PURE__*/_jsxs("div", {
165
+ className: "zf-item-inner",
166
+ style: {
167
+ width: each.weights === 2 ? '100%' : '45%'
168
+ },
169
+ children: [/*#__PURE__*/_jsxs("span", {
170
+ className: "zf-process-label",
171
+ children: [each.name, "\uFF1A"]
172
+ }), /*#__PURE__*/_jsx("span", {
173
+ children: item[each.key] || '--'
174
+ })]
175
+ }, each.name);
176
+ })
177
+ })
178
+ })]
179
+ }, item.detail);
180
+ }) : /*#__PURE__*/_jsx(VmEmpty, {})
181
+ }), activeKey === '2' && /*#__PURE__*/_jsx("div", {
182
+ className: "zf-process-list",
183
+ children: /*#__PURE__*/_jsx("div", {
184
+ className: "zf-process-img",
185
+ children: /*#__PURE__*/_jsx(VtxImage, {
186
+ aspectFit: true,
187
+ alt: "\u6D41\u7A0B\u56FE",
188
+ src: "/cloud/flowable/processInstance/generateDiagram?id=".concat(detail.processInstanceId)
189
+ })
190
+ })
191
+ })]
192
+ }), /*#__PURE__*/_jsx(Right, {
193
+ detail: detail
194
+ })]
11
195
  });
12
196
  });
@@ -3,15 +3,6 @@
3
3
  height: 100%;
4
4
  display: flex;
5
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
6
  .zf-process-left {
16
7
  width: 866px;
17
8
  height: 100%;
@@ -19,18 +10,81 @@
19
10
  overflow-y: auto;
20
11
  border-radius: 8px;
21
12
  box-sizing: border-box;
13
+ .zf-process-list {
14
+ width: 100%;
15
+ height: calc(100% - 72px);
16
+ overflow: hidden;
17
+ overflow-y: auto;
18
+ padding: 0 16px;
19
+ box-sizing: border-box;
20
+ .zf-process-item {
21
+ .zf-item-title {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ align-items: center;
25
+ .zf-item-name {
26
+ display: flex;
27
+ gap: 16px;
28
+ align-items: center;
29
+ .zf-item-circle {
30
+ width: 10px;
31
+ height: 10px;
32
+ border-radius: 5px;
33
+ }
34
+ }
35
+ .zf-process-legend {
36
+ display: flex;
37
+ gap: 16px;
38
+ align-items: center;
39
+ .zf-legend-title {
40
+ color: #2facff;
41
+ }
42
+ .zf-legend-item {
43
+ display: flex;
44
+ gap: 6px;
45
+ align-items: center;
46
+ .zf-legend-square {
47
+ width: 12px;
48
+ height: 12px;
49
+ border-radius: 2px;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ .zf-item-content {
55
+ width: calc(100% - 4px);
56
+ height: auto;
57
+ padding: 8px 16px;
58
+ margin-left: 4px;
59
+ .zf-item-text {
60
+ width: 100%;
61
+ padding: 16px;
62
+ border-radius: 8px;
63
+ display: flex;
64
+ flex-wrap: wrap;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ .zf-process-img {
70
+ width: 100%;
71
+ height: auto;
72
+ .vtx-image-aspectFit {
73
+ background: #fff;
74
+ }
75
+ }
22
76
  }
23
77
  }
24
78
 
25
79
  .vm-modal-dark {
26
80
  .zf-process-content {
27
81
  color: #fff;
28
- .zf-process-title {
29
- border-bottom: 1px solid rgba(12, 154, 255, 0.15);
30
- }
31
82
  .zf-process-left {
32
83
  border: 1px solid #1064a7;
33
84
  background: rgba(0, 155, 233, 0.1);
85
+ .zf-item-text {
86
+ background: rgba(0, 157, 255, 0.1);
87
+ }
34
88
  }
35
89
  .zf-process-label {
36
90
  color: #2facff;
@@ -40,11 +94,11 @@
40
94
 
41
95
  .vm-modal-light {
42
96
  .zf-process-content {
43
- .zf-process-title {
44
- border-bottom: 1px solid #f1f0f0;
45
- }
46
97
  .zf-process-left {
47
98
  background: #fff;
99
+ .zf-item-text {
100
+ background: rgba(22, 119, 255, 0.05);
101
+ }
48
102
  }
49
103
  .zf-process-label {
50
104
  color: #8c8c8c;
@@ -0,0 +1,116 @@
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 { VmTable } from "../../../_components";
16
+ import Right from "../Right";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
+ var getList = function getList(params) {
19
+ return request.get('/cloud/zhzf/api/v101/case/change/log/page', {
20
+ data: params
21
+ });
22
+ };
23
+ export default (function (props) {
24
+ var id = props.id,
25
+ detail = props.detail;
26
+ var _useState = useState([]),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ list = _useState2[0],
29
+ setList = _useState2[1];
30
+ useEffect(function () {
31
+ id && getList({
32
+ caseId: id,
33
+ page: 0,
34
+ size: 999
35
+ }).then(function (res) {
36
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
37
+ setList(res.data.rows || []);
38
+ }
39
+ });
40
+ }, [id]);
41
+ var tableProps = {
42
+ columns: [{
43
+ title: '序号',
44
+ dataIndex: 'orderIndex',
45
+ key: 'orderIndex',
46
+ width: 40
47
+ }, {
48
+ title: '文书名称',
49
+ dataIndex: 'instrumentTemplateName',
50
+ key: 'instrumentTemplateName',
51
+ width: 120,
52
+ ellipsis: true
53
+ }, {
54
+ title: '环节名称',
55
+ dataIndex: 'taskName',
56
+ key: 'taskName',
57
+ width: 120,
58
+ ellipsis: true
59
+ }, {
60
+ title: '修改字段',
61
+ dataIndex: 'fieldName',
62
+ key: 'fieldName',
63
+ width: 100,
64
+ ellipsis: true
65
+ }, {
66
+ title: '修改前的值',
67
+ dataIndex: 'fromContent',
68
+ key: 'fromContent',
69
+ width: 110,
70
+ ellipsis: true,
71
+ render: function render(text) {
72
+ var value = (text || '').replaceAll('&nbsp;', '');
73
+ return value;
74
+ }
75
+ }, {
76
+ title: '修改后的值',
77
+ dataIndex: 'toContent',
78
+ key: 'toContent',
79
+ width: 110,
80
+ ellipsis: true,
81
+ render: function render(text) {
82
+ var value = (text || '').replaceAll('&nbsp;', '');
83
+ return value;
84
+ }
85
+ }, {
86
+ title: '修改人',
87
+ dataIndex: 'changeStaffName',
88
+ key: 'changeStaffName',
89
+ width: 90,
90
+ ellipsis: true
91
+ }, {
92
+ title: '修改时间',
93
+ dataIndex: 'changeTime',
94
+ key: 'changeTime',
95
+ width: 160,
96
+ ellipsis: true
97
+ }],
98
+ height: 566,
99
+ isIndex: false,
100
+ pagination: false,
101
+ dataSource: list.map(function (item, index) {
102
+ return _objectSpread(_objectSpread({}, item), {}, {
103
+ orderIndex: index + 1
104
+ });
105
+ })
106
+ };
107
+ return /*#__PURE__*/_jsxs("div", {
108
+ className: "zf-record-content",
109
+ children: [/*#__PURE__*/_jsx("div", {
110
+ className: "zf-record-left",
111
+ children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, tableProps))
112
+ }), /*#__PURE__*/_jsx(Right, {
113
+ detail: detail
114
+ })]
115
+ });
116
+ });
@@ -0,0 +1,34 @@
1
+ .zf-record-content {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ .zf-record-left {
7
+ width: 866px;
8
+ height: 100%;
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 16px;
12
+ .zf-record-title {
13
+ padding: 12px 16px;
14
+ font-size: 16px;
15
+ box-sizing: border-box;
16
+ }
17
+ }
18
+ }
19
+
20
+ .vm-modal-dark {
21
+ .zf-record-content {
22
+ color: #fff;
23
+ .zf-record-left {
24
+ border: 1px solid #1064a7;
25
+ background: rgba(0, 155, 233, 0.1);
26
+ }
27
+ }
28
+ }
29
+
30
+ .vm-modal-light {
31
+ .zf-record-left {
32
+ background: #fff;
33
+ }
34
+ }
@@ -2,20 +2,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  //样式定义在Base内
3
3
 
4
4
  export default (function (props) {
5
- var theme = props.theme,
6
- id = props.id;
5
+ var detail = props.detail;
7
6
  var jdxx = [{
8
7
  name: '当前节点',
9
- key: '承办机构立案审批'
8
+ key: 'currentTask'
10
9
  }, {
11
10
  name: '当前节点耗时',
12
- key: '当前节点耗时'
11
+ key: 'currentTaskUseTime'
13
12
  }, {
14
13
  name: '开始时间',
15
- key: '开始时间'
14
+ key: 'currentTaskStartTime'
16
15
  }, {
17
16
  name: '总耗时',
18
- key: '总耗时'
17
+ key: 'caseUseTime'
19
18
  }];
20
19
  return /*#__PURE__*/_jsxs("div", {
21
20
  className: "zf-base-right",
@@ -36,7 +35,7 @@ export default (function (props) {
36
35
  className: "zf-base-label",
37
36
  children: [item.name, "\uFF1A"]
38
37
  }), /*#__PURE__*/_jsx("span", {
39
- children: item.key
38
+ children: detail[item.key] || '--'
40
39
  })]
41
40
  }, item.key);
42
41
  })
@@ -1,3 +1,6 @@
1
1
  import Base from "./Base";
2
+ import Document from "./Document";
3
+ import File from "./File";
2
4
  import Process from "./Process";
3
- export { Base, Process };
5
+ import Record from "./Record";
6
+ export { Base, Document, File, Process, Record };
@@ -14,7 +14,7 @@ import { request } from '@vtx/utils';
14
14
  import { useEffect, useState } from 'react';
15
15
  import VmCustom from "../_components/vm-custom";
16
16
  import VtxBaseModal from "../vtx-base-modal";
17
- import { Base, Process } from "./components";
17
+ import { Base, Document, File, Process, Record } from "./components";
18
18
  import "./style";
19
19
 
20
20
  //弹窗配置
@@ -24,6 +24,11 @@ var getByCode = function getByCode(params) {
24
24
  data: params
25
25
  });
26
26
  };
27
+ var getDetail = function getDetail(params) {
28
+ return request.get('/cloud/zhzf/api/v101/case/get', {
29
+ data: params
30
+ });
31
+ };
27
32
  export default (function (props) {
28
33
  var _config$;
29
34
  var visible = props.visible,
@@ -35,18 +40,11 @@ export default (function (props) {
35
40
  _useState2 = _slicedToArray(_useState, 2),
36
41
  detail = _useState2[0],
37
42
  setDetail = _useState2[1];
38
- var _useState3 = useState([{
39
- title: '基本信息',
40
- key: 'zf-base'
41
- }, {
42
- title: '流程信息',
43
- key: 'zf-process'
44
- }]),
43
+ var _useState3 = useState([]),
45
44
  _useState4 = _slicedToArray(_useState3, 2),
46
45
  config = _useState4[0],
47
46
  setConfig = _useState4[1];
48
47
  useEffect(function () {
49
- return;
50
48
  getByCode({
51
49
  code: 'zhzf'
52
50
  }).then(function (res) {
@@ -62,7 +60,27 @@ export default (function (props) {
62
60
  }
63
61
  });
64
62
  }, []);
65
- var contentList = _defineProperty(_defineProperty({}, 'zf-base', /*#__PURE__*/_jsx(Base, _objectSpread({}, props))), 'zf-process', /*#__PURE__*/_jsx(Process, _objectSpread({}, props)));
63
+ useEffect(function () {
64
+ id && getDetail({
65
+ id: id,
66
+ coordinateType: 'wgs84'
67
+ }).then(function (res) {
68
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
69
+ setDetail(res.data || {});
70
+ }
71
+ });
72
+ }, [id]);
73
+ var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'zf-base', /*#__PURE__*/_jsx(Base, _objectSpread(_objectSpread({}, props), {}, {
74
+ detail: detail
75
+ }))), 'zf-process', /*#__PURE__*/_jsx(Process, _objectSpread(_objectSpread({}, props), {}, {
76
+ detail: detail
77
+ }))), 'zf-file', /*#__PURE__*/_jsx(File, _objectSpread(_objectSpread({}, props), {}, {
78
+ detail: detail
79
+ }))), 'zf-document', /*#__PURE__*/_jsx(Document, _objectSpread(_objectSpread({}, props), {}, {
80
+ detail: detail
81
+ }))), 'zf-record', /*#__PURE__*/_jsx(Record, _objectSpread(_objectSpread({}, props), {}, {
82
+ detail: detail
83
+ })));
66
84
 
67
85
  // 自定义页签可配置多个,
68
86
  if (config !== null && config !== void 0 && config.length) {
@@ -1,3 +1,7 @@
1
+ import '@vtx/components/lib/vtx-image/style/index';
1
2
  import "../components/Base/index.less";
3
+ import "../components/Document/index.less";
4
+ import "../components/File/index.less";
2
5
  import "../components/Process/index.less";
6
+ import "../components/Record/index.less";
3
7
  import "./index.less";
@@ -0,0 +1 @@
1
+ import "../../vtx-df-modal/style/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "5.0.13",
3
+ "version": "5.0.15",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "base-64": "^1.0.0",
27
+ "htmr": "^1.0.2",
27
28
  "number-precision": "^1.6.0",
28
29
  "react-tagcloud": "^2.3.3"
29
30
  },