@vtx/modals2 5.0.12 → 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.
@@ -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";
@@ -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) || '',
@@ -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",
@@ -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.12",
3
+ "version": "5.0.13",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",