@vtx/modals2 5.0.12 → 5.0.14
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-card-statistics/index.less +27 -27
- package/lib/_components/vm-extra-tab/index.js +8 -0
- package/lib/_components/vm-extra-tab/style/index.less +1 -0
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/_util/http.js +6 -0
- package/lib/index.js +2 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- 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-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +5 -5
- package/lib/vtx-cp-modal/components/SyInfo/index.js +3 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-road-modal/components/BaseInfo/index.less +34 -31
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-wr-modal/components/Base/Ptss.js +0 -6
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +2 -5
- package/lib/vtx-wr-modal/components/Base/index.less +5 -10
- package/lib/vtx-wr-modal/components/Build/index.js +3 -2
- package/lib/vtx-wr-modal/components/Score/index.js +4 -4
- package/lib/vtx-wr-modal/index.js +15 -2
- package/lib/vtx-zf-modal/components/Base/index.js +244 -0
- package/lib/vtx-zf-modal/components/Base/index.less +105 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.d.ts +109 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.js +5 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.js.map +1 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/af.js +33 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ar.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ast.js +109 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/az.js +221 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bg.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bn.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bs.js +80 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ca.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/cs.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/da.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/de-ch.js +220 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/de.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/el.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en-au.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en-gb.js +215 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en.js +92 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/eo.js +120 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/es-co.js +36 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/es.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/et.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/eu.js +121 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fa.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fi.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/gl.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/gu.js +22 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/he.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hi.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hu.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/id.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/it.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ja.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/jv.js +106 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/kk.js +13 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/km.js +127 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/kn.js +121 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ko.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ku.js +219 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/lt.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/lv.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ms.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/nb.js +199 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ne.js +215 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/nl.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/no.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/oc.js +21 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pl.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pt-br.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pt.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ro.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ru.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/si.js +76 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sk.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sl.js +78 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sq.js +208 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sr-latn.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sv.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/th.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tk.js +220 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tt.js +170 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ug.js +205 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/uk.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ur.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/uz.js +220 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/vi.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/zh-cn.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/zh.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/Event.js +42 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/context.js +98 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/index.js +3 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/useContextComponent.js +16 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +294 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.less +133 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/utils/util.js +67 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +216 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +77 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/OpenPanelCommand.js +31 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +146 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +92 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +341 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.less +1 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +94 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +334 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +330 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.less +36 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +93 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +335 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +335 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.less +35 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +94 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +338 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.less +1 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/style.less +92 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +94 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +328 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.less +1 -0
- package/lib/vtx-zf-modal/components/Document/index.js +84 -0
- package/lib/vtx-zf-modal/components/Document/index.less +47 -0
- package/lib/vtx-zf-modal/components/File/index.js +192 -0
- package/lib/vtx-zf-modal/components/File/index.less +43 -0
- package/lib/vtx-zf-modal/components/Process/index.js +196 -0
- package/lib/vtx-zf-modal/components/Process/index.less +107 -0
- package/lib/vtx-zf-modal/components/Record/index.js +108 -0
- package/lib/vtx-zf-modal/components/Record/index.less +34 -0
- package/lib/vtx-zf-modal/components/Right/index.js +45 -0
- package/lib/vtx-zf-modal/components/index.js +6 -0
- package/lib/vtx-zf-modal/index.js +125 -0
- package/lib/vtx-zf-modal/style/index.js +7 -0
- package/lib/vtx-zf-modal/style/index.less +1 -0
- 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
|
+
}
|
|
@@ -0,0 +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";
|
|
12
|
+
import Right from "../Right";
|
|
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
|
+
};
|
|
19
|
+
export default (function (props) {
|
|
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
|
+
};
|
|
87
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
88
|
+
className: "zf-process-content",
|
|
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
|
+
})]
|
|
195
|
+
});
|
|
196
|
+
});
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.zf-process-content {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
.zf-process-left {
|
|
7
|
+
width: 866px;
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
border-radius: 8px;
|
|
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
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.vm-modal-dark {
|
|
80
|
+
.zf-process-content {
|
|
81
|
+
color: #fff;
|
|
82
|
+
.zf-process-left {
|
|
83
|
+
border: 1px solid #1064a7;
|
|
84
|
+
background: rgba(0, 155, 233, 0.1);
|
|
85
|
+
.zf-item-text {
|
|
86
|
+
background: rgba(0, 157, 255, 0.1);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.zf-process-label {
|
|
90
|
+
color: #2facff;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.vm-modal-light {
|
|
96
|
+
.zf-process-content {
|
|
97
|
+
.zf-process-left {
|
|
98
|
+
background: #fff;
|
|
99
|
+
.zf-item-text {
|
|
100
|
+
background: rgba(22, 119, 255, 0.05);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.zf-process-label {
|
|
104
|
+
color: #8c8c8c;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
}, {
|
|
72
|
+
title: '修改后的值',
|
|
73
|
+
dataIndex: 'toContent',
|
|
74
|
+
key: 'toContent',
|
|
75
|
+
width: 110,
|
|
76
|
+
ellipsis: true
|
|
77
|
+
}, {
|
|
78
|
+
title: '修改人',
|
|
79
|
+
dataIndex: 'changeStaffName',
|
|
80
|
+
key: 'changeStaffName',
|
|
81
|
+
width: 90,
|
|
82
|
+
ellipsis: true
|
|
83
|
+
}, {
|
|
84
|
+
title: '修改时间',
|
|
85
|
+
dataIndex: 'changeTime',
|
|
86
|
+
key: 'changeTime',
|
|
87
|
+
width: 160,
|
|
88
|
+
ellipsis: true
|
|
89
|
+
}],
|
|
90
|
+
height: 566,
|
|
91
|
+
isIndex: false,
|
|
92
|
+
pagination: false,
|
|
93
|
+
dataSource: list.map(function (item, index) {
|
|
94
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
95
|
+
orderIndex: index + 1
|
|
96
|
+
});
|
|
97
|
+
})
|
|
98
|
+
};
|
|
99
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
100
|
+
className: "zf-record-content",
|
|
101
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
102
|
+
className: "zf-record-left",
|
|
103
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, tableProps))
|
|
104
|
+
}), /*#__PURE__*/_jsx(Right, {
|
|
105
|
+
detail: detail
|
|
106
|
+
})]
|
|
107
|
+
});
|
|
108
|
+
});
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
//样式定义在Base内
|
|
3
|
+
|
|
4
|
+
export default (function (props) {
|
|
5
|
+
var detail = props.detail;
|
|
6
|
+
var jdxx = [{
|
|
7
|
+
name: '当前节点',
|
|
8
|
+
key: 'currentTask'
|
|
9
|
+
}, {
|
|
10
|
+
name: '当前节点耗时',
|
|
11
|
+
key: 'currentTaskUseTime'
|
|
12
|
+
}, {
|
|
13
|
+
name: '开始时间',
|
|
14
|
+
key: 'currentTaskStartTime'
|
|
15
|
+
}, {
|
|
16
|
+
name: '总耗时',
|
|
17
|
+
key: 'caseUseTime'
|
|
18
|
+
}];
|
|
19
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
20
|
+
className: "zf-base-right",
|
|
21
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
22
|
+
className: "zf-base-title",
|
|
23
|
+
children: "\u8282\u70B9\u4FE1\u606F"
|
|
24
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
25
|
+
className: "zf-base-info",
|
|
26
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
27
|
+
className: "zf-base-list",
|
|
28
|
+
children: jdxx.map(function (item) {
|
|
29
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
30
|
+
className: "zf-base-item",
|
|
31
|
+
style: {
|
|
32
|
+
width: '100%'
|
|
33
|
+
},
|
|
34
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
35
|
+
className: "zf-base-label",
|
|
36
|
+
children: [item.name, "\uFF1A"]
|
|
37
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
38
|
+
children: detail[item.key] || '--'
|
|
39
|
+
})]
|
|
40
|
+
}, item.key);
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
});
|
|
@@ -0,0 +1,125 @@
|
|
|
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, Document, File, Process, Record } 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
|
+
var getDetail = function getDetail(params) {
|
|
28
|
+
return request.get('/cloud/zhzf/api/v101/case/get', {
|
|
29
|
+
data: params
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export default (function (props) {
|
|
33
|
+
var _config$;
|
|
34
|
+
var visible = props.visible,
|
|
35
|
+
theme = props.theme,
|
|
36
|
+
title = props.title,
|
|
37
|
+
id = props.id,
|
|
38
|
+
onCancel = props.onCancel;
|
|
39
|
+
var _useState = useState({}),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
+
detail = _useState2[0],
|
|
42
|
+
setDetail = _useState2[1];
|
|
43
|
+
var _useState3 = useState([{
|
|
44
|
+
title: '基本信息',
|
|
45
|
+
key: 'zf-base'
|
|
46
|
+
}, {
|
|
47
|
+
title: '流程信息',
|
|
48
|
+
key: 'zf-process'
|
|
49
|
+
}, {
|
|
50
|
+
title: '附件信息',
|
|
51
|
+
key: 'zf-file'
|
|
52
|
+
}, {
|
|
53
|
+
title: '文书',
|
|
54
|
+
key: 'zf-document'
|
|
55
|
+
}, {
|
|
56
|
+
title: '修改记录',
|
|
57
|
+
key: 'zf-record'
|
|
58
|
+
}]),
|
|
59
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
+
config = _useState4[0],
|
|
61
|
+
setConfig = _useState4[1];
|
|
62
|
+
useEffect(function () {
|
|
63
|
+
return;
|
|
64
|
+
getByCode({
|
|
65
|
+
code: 'zhzf'
|
|
66
|
+
}).then(function (res) {
|
|
67
|
+
if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
|
|
68
|
+
setConfig((res.data.popupConfigJson || []).filter(function (item) {
|
|
69
|
+
return item.display;
|
|
70
|
+
}).map(function (item) {
|
|
71
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
72
|
+
key: item.code,
|
|
73
|
+
title: item.name
|
|
74
|
+
});
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}, []);
|
|
79
|
+
useEffect(function () {
|
|
80
|
+
id && getDetail({
|
|
81
|
+
id: id,
|
|
82
|
+
coordinateType: 'wgs84'
|
|
83
|
+
}).then(function (res) {
|
|
84
|
+
if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
|
|
85
|
+
setDetail(res.data || {});
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}, [id]);
|
|
89
|
+
var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'zf-base', /*#__PURE__*/_jsx(Base, _objectSpread(_objectSpread({}, props), {}, {
|
|
90
|
+
detail: detail
|
|
91
|
+
}))), 'zf-process', /*#__PURE__*/_jsx(Process, _objectSpread(_objectSpread({}, props), {}, {
|
|
92
|
+
detail: detail
|
|
93
|
+
}))), 'zf-file', /*#__PURE__*/_jsx(File, _objectSpread(_objectSpread({}, props), {}, {
|
|
94
|
+
detail: detail
|
|
95
|
+
}))), 'zf-document', /*#__PURE__*/_jsx(Document, _objectSpread(_objectSpread({}, props), {}, {
|
|
96
|
+
detail: detail
|
|
97
|
+
}))), 'zf-record', /*#__PURE__*/_jsx(Record, _objectSpread(_objectSpread({}, props), {}, {
|
|
98
|
+
detail: detail
|
|
99
|
+
})));
|
|
100
|
+
|
|
101
|
+
// 自定义页签可配置多个,
|
|
102
|
+
if (config !== null && config !== void 0 && config.length) {
|
|
103
|
+
config.forEach(function (ele) {
|
|
104
|
+
if (ele.url) {
|
|
105
|
+
contentList[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
106
|
+
id: id,
|
|
107
|
+
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
113
|
+
children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
114
|
+
type: "zf",
|
|
115
|
+
visible: visible,
|
|
116
|
+
theme: theme,
|
|
117
|
+
title: title,
|
|
118
|
+
id: id,
|
|
119
|
+
onCancel: onCancel,
|
|
120
|
+
tabs: config,
|
|
121
|
+
contents: contentList,
|
|
122
|
+
tabChose: (_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.key
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@vtx/components/lib/vtx-image/style/index';
|
|
2
|
+
import "../components/Base/index.less";
|
|
3
|
+
import "../components/Document/index.less";
|
|
4
|
+
import "../components/File/index.less";
|
|
5
|
+
import "../components/Process/index.less";
|
|
6
|
+
import "../components/Record/index.less";
|
|
7
|
+
import "./index.less";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|