@zgfe/modules-settings 2.1.0-zhongyuan.0 → 2.1.0-zhongyuan.2

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 (31) hide show
  1. package/es/components/importMetaDialog/index.d.ts +11 -0
  2. package/es/components/importMetaDialog/index.js +202 -0
  3. package/es/components/importMetaDialog/styles/index.less +115 -0
  4. package/es/constants/api.d.ts +15 -0
  5. package/es/constants/api.js +18 -0
  6. package/es/modules/createDemand/index.js +1 -1
  7. package/es/modules/demandManage/index.js +2 -2
  8. package/es/modules/pointMap/createMetaDrawer.js +40 -3
  9. package/es/modules/pointMap/pageInfo.js +20 -5
  10. package/es/modules/pointMap/styles/index.less +157 -152
  11. package/es/modules/pointMap/styles/pageInfo.less +439 -426
  12. package/es/modules/pointMap/styles/tree.less +14 -7
  13. package/es/modules/pointMap/tree.js +101 -36
  14. package/es/modules/systemSetting/Dictionary.d.ts +5 -2
  15. package/es/modules/systemSetting/Dictionary.js +54 -370
  16. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
  17. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +239 -0
  18. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +47 -0
  19. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
  20. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +205 -0
  21. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
  22. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
  23. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
  24. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +126 -0
  25. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
  26. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
  27. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +251 -0
  28. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
  29. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
  30. package/es/modules/systemSetting/index.js +3 -1
  31. package/package.json +2 -2
@@ -32,9 +32,12 @@
32
32
  position: relative;
33
33
  display: grid;
34
34
  grid-gap: 16px;
35
- grid-template-columns: 1fr 20px;
35
+ grid-template-columns: 88px 1fr 20px;
36
36
  align-items: center;
37
37
  margin-top: 16px;
38
+ &-selectType {
39
+ width: 100px;
40
+ }
38
41
  .qrcode-img {
39
42
  display: inline-flex;
40
43
  flex-direction: column;
@@ -63,12 +66,12 @@
63
66
  padding-top: 138px;
64
67
  }
65
68
  }
66
- .ant-select-selector {
67
- padding-left: 40px !important;
68
- }
69
- .ant-select-selection-search-input {
70
- padding-left: 30px !important;
71
- }
69
+ // .ant-select-selector {
70
+ // padding-left: 40px !important;
71
+ // }
72
+ // .ant-select-selection-search-input {
73
+ // padding-left: 30px !important;
74
+ // }
72
75
  &-popup {
73
76
  .ant-select-item {
74
77
  height: 32px !important;
@@ -79,6 +82,7 @@
79
82
  position: absolute;
80
83
  top: 6px;
81
84
  left: 16px;
85
+ display: none;
82
86
  }
83
87
  }
84
88
  &-tree {
@@ -127,6 +131,9 @@
127
131
  overflow: hidden;
128
132
  white-space: nowrap;
129
133
  text-overflow: ellipsis;
134
+ &-name {
135
+ margin-right: 10px;
136
+ }
130
137
  }
131
138
  }
132
139
  .ant-tree-title {
@@ -15,8 +15,8 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
15
15
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
16
16
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
17
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
- import { Button, Dropdown, Empty, Input, message, Modal, Select, Tree, Popover, Spin } from 'antd';
19
- import { QuestionCircleOutlined } from '@ant-design/icons';
18
+ import { Button, Dropdown, Empty, Input, message, Modal, Select, Tree, Popover, Spin, Tag, Checkbox } from 'antd';
19
+ import { QuestionCircleOutlined, EnvironmentOutlined } from '@ant-design/icons';
20
20
  import React, { useContext, useEffect, useRef, useState } from 'react';
21
21
  import './styles/tree.less';
22
22
  import { BizDialog, BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
@@ -57,7 +57,8 @@ var formatTreeArr = function formatTreeArr(list, arrTemp, parentName) {
57
57
  item.key = item.id;
58
58
  arrTemp.push({
59
59
  id: item.id,
60
- name: parentName ? parentName + ' / ' + item.name : item.name
60
+ name: parentName ? parentName + ' / ' + item.name : item.name,
61
+ tagJson: '字典标签1'
61
62
  });
62
63
  if (item.children.length > 0) {
63
64
  formatTreeArr(item.children, arrTemp, item.name);
@@ -130,18 +131,22 @@ var pointMap = function pointMap(props) {
130
131
  _useState26 = _slicedToArray(_useState25, 2),
131
132
  value = _useState26[0],
132
133
  setValue = _useState26[1];
133
- var _useState27 = useState(true),
134
+ var _useState27 = useState('name'),
134
135
  _useState28 = _slicedToArray(_useState27, 2),
135
- isInit = _useState28[0],
136
- setIsInit = _useState28[1];
137
- var _useState29 = useState(false),
136
+ searchType = _useState28[0],
137
+ setSearchType = _useState28[1];
138
+ var _useState29 = useState(true),
138
139
  _useState30 = _slicedToArray(_useState29, 2),
139
- isShowDel = _useState30[0],
140
- setIsShowDel = _useState30[1];
141
- var _useState31 = useState(!!props.pageStatusIsEdit),
140
+ isInit = _useState30[0],
141
+ setIsInit = _useState30[1];
142
+ var _useState31 = useState(false),
142
143
  _useState32 = _slicedToArray(_useState31, 2),
143
- pageStatusIsEdit = _useState32[0],
144
- setPageStatusIsEdit = _useState32[1];
144
+ isShowDel = _useState32[0],
145
+ setIsShowDel = _useState32[1];
146
+ var _useState33 = useState(!!props.pageStatusIsEdit),
147
+ _useState34 = _slicedToArray(_useState33, 2),
148
+ pageStatusIsEdit = _useState34[0],
149
+ setPageStatusIsEdit = _useState34[1];
145
150
  useEffect(function () {
146
151
  pointGetVersion();
147
152
  }, []);
@@ -189,9 +194,9 @@ var pointMap = function pointMap(props) {
189
194
  }
190
195
  }).then(function (res) {
191
196
  if (res && res.code === '100000') {
197
+ pageNum = res === null || res === void 0 ? void 0 : res.data.length;
192
198
  setTreeData(formatTreeData((res === null || res === void 0 ? void 0 : res.data) || []));
193
199
  setTreeArr(formatTreeArr((res === null || res === void 0 ? void 0 : res.data) || [], [], '') || []);
194
- console.log('selectedKeys', selectedKeys);
195
200
  if (!selectedKeys) {
196
201
  setSelectedKeys((res === null || res === void 0 ? void 0 : res.data) ? [res === null || res === void 0 ? void 0 : res.data[0].id] : undefined);
197
202
  props.onChangePage((res === null || res === void 0 ? void 0 : res.data) ? _objectSpread(_objectSpread({}, res === null || res === void 0 ? void 0 : res.data[0]), {}, {
@@ -311,7 +316,6 @@ var pointMap = function pointMap(props) {
311
316
  setAutoExpandParent(false);
312
317
  };
313
318
  var onDrop = function onDrop(info) {
314
- // console.log('onDrop', info, selectedKeys);
315
319
  moveNode({
316
320
  oldParentId: info.dragNode.parentId,
317
321
  newParentId: info.dropToGap ? info.node.parentId : info.node.id,
@@ -337,10 +341,8 @@ var pointMap = function pointMap(props) {
337
341
  }
338
342
  };
339
343
  var titleRender = function titleRender(nodeData) {
340
- // console.log('nodeData', nodeData);
341
344
  var onItemClick = function onItemClick(_ref) {
342
345
  var key = _ref.key;
343
- console.log('key', key);
344
346
  switch (key) {
345
347
  case '0':
346
348
  if (nodeData.storey >= 20) {
@@ -371,6 +373,18 @@ var pointMap = function pointMap(props) {
371
373
  }
372
374
  // message.info(`Click on item ${key}`);
373
375
  };
376
+ //位置标签list
377
+ var pointContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tag, {
378
+ color: "magenta"
379
+ }, "magenta"), /*#__PURE__*/React.createElement(Tag, {
380
+ color: "red"
381
+ }, "red"), /*#__PURE__*/React.createElement(Tag, {
382
+ color: "volcano"
383
+ }, "volcano"), /*#__PURE__*/React.createElement(Tag, {
384
+ color: "orange"
385
+ }, "orange"), /*#__PURE__*/React.createElement(Tag, {
386
+ color: "gold"
387
+ }, "gold"));
374
388
  return /*#__PURE__*/React.createElement("div", {
375
389
  className: "".concat(classPrefix, "-tree-item")
376
390
  }, changeNameId === nodeData.id ? (/*#__PURE__*/React.createElement(Input, {
@@ -415,7 +429,23 @@ var pointMap = function pointMap(props) {
415
429
  setChangeNameId(nodeData.id);
416
430
  setChangeNameString(nodeData.name);
417
431
  }
418
- }, nodeData.name))), /*#__PURE__*/React.createElement(Dropdown, {
432
+ }, /*#__PURE__*/React.createElement("span", {
433
+ className: "".concat(classPrefix, "-tree-item-title-name")
434
+ }, nodeData.name, " (1) "), /*#__PURE__*/React.createElement(Popover, {
435
+ placement: "topLeft",
436
+ title: "\u4F4D\u7F6E\u6807\u7B7E",
437
+ content: pointContent
438
+ }, /*#__PURE__*/React.createElement(Tag, {
439
+ color: "magenta"
440
+ }, "magenta"), /*#__PURE__*/React.createElement(Tag, {
441
+ color: "red"
442
+ }, "red"), /*#__PURE__*/React.createElement(Tag, {
443
+ color: "volcano"
444
+ }, "volcano"), /*#__PURE__*/React.createElement(Tag, {
445
+ color: "orange"
446
+ }, "orange"), /*#__PURE__*/React.createElement(Tag, {
447
+ color: "gold"
448
+ }, "gold"))))), /*#__PURE__*/React.createElement(Dropdown, {
419
449
  disabled: !authority[1724922805],
420
450
  placement: 'bottomRight',
421
451
  menu: {
@@ -437,6 +467,27 @@ var pointMap = function pointMap(props) {
437
467
  type: "xiafangtianjia"
438
468
  }),
439
469
  key: '2'
470
+ }, {
471
+ label: '选择位置标签',
472
+ icon: /*#__PURE__*/React.createElement(EnvironmentOutlined, null),
473
+ key: '5',
474
+ children: [{
475
+ key: '3-1',
476
+ label: (/*#__PURE__*/React.createElement(Checkbox, {
477
+ onChange: function onChange(e) {
478
+ onChangeTag(e, 'key');
479
+ }
480
+ }, "\u6807\u7B7E1")),
481
+ disabled: true
482
+ }, {
483
+ key: '3-2',
484
+ label: (/*#__PURE__*/React.createElement(Checkbox, {
485
+ onChange: function onChange(e) {
486
+ onChangeTag(e, 'key');
487
+ }
488
+ }, "\u6807\u7B7E2")),
489
+ disabled: true
490
+ }]
440
491
  }, {
441
492
  type: 'divider'
442
493
  }, {
@@ -467,28 +518,31 @@ var pointMap = function pointMap(props) {
467
518
  type: "gengduocaozuo1"
468
519
  })));
469
520
  };
470
- var _useState33 = useState(false),
471
- _useState34 = _slicedToArray(_useState33, 2),
472
- isOpen = _useState34[0],
473
- setIsOpen = _useState34[1];
521
+ var onChangeTag = function onChangeTag(e, key) {
522
+ console.log(e, key, 'onChangeTag');
523
+ };
524
+ var _useState35 = useState(false),
525
+ _useState36 = _slicedToArray(_useState35, 2),
526
+ isOpen = _useState36[0],
527
+ setIsOpen = _useState36[1];
474
528
  var downloadHelpFile = function downloadHelpFile() {
475
529
  window.open("/\u63A8\u8350\u57CB\u70B9\u65B9\u6848.xlsx");
476
530
  };
477
531
  // 分享看板二维码
478
- var _useState35 = useState(''),
479
- _useState36 = _slicedToArray(_useState35, 2),
480
- qrCodeShare = _useState36[0],
481
- setqrCodeShare = _useState36[1];
482
- // 分享看板二维码-显示控制
483
- var _useState37 = useState(false),
532
+ var _useState37 = useState(''),
484
533
  _useState38 = _slicedToArray(_useState37, 2),
485
- qrCodeShareShow = _useState38[0],
486
- setqrCodeShareShow = _useState38[1];
487
- // 二维码加载中
534
+ qrCodeShare = _useState38[0],
535
+ setqrCodeShare = _useState38[1];
536
+ // 分享看板二维码-显示控制
488
537
  var _useState39 = useState(false),
489
538
  _useState40 = _slicedToArray(_useState39, 2),
490
- qrCodeLoading = _useState40[0],
491
- setQrCodeLoading = _useState40[1];
539
+ qrCodeShareShow = _useState40[0],
540
+ setqrCodeShareShow = _useState40[1];
541
+ // 二维码加载中
542
+ var _useState41 = useState(false),
543
+ _useState42 = _slicedToArray(_useState41, 2),
544
+ qrCodeLoading = _useState42[0],
545
+ setQrCodeLoading = _useState42[1];
492
546
  var onOpenChangeShare = function onOpenChangeShare(open) {
493
547
  setqrCodeShareShow(open);
494
548
  if (qrCodeShare === '') {
@@ -580,10 +634,23 @@ var pointMap = function pointMap(props) {
580
634
  }), "\u5BFC\u5165\u9875\u9762")), /*#__PURE__*/React.createElement("div", {
581
635
  className: "".concat(classPrefix, "-search")
582
636
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
637
+ className: "".concat(classPrefix, "-search-selectType"),
638
+ value: searchType,
639
+ options: [{
640
+ label: '页面名',
641
+ value: 'name'
642
+ }, {
643
+ label: '位置标签',
644
+ value: 'tagJson'
645
+ }],
646
+ onChange: function onChange(value) {
647
+ setSearchType(value);
648
+ }
649
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
583
650
  value: value,
584
- placeholder: "\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\u641C\u7D22",
651
+ placeholder: searchType == 'name' ? '请输入页面名称搜索' : '请输入位置标签名',
585
652
  // searchValue={value}
586
- optionFilterProp: 'name',
653
+ optionFilterProp: searchType,
587
654
  showArrow: false,
588
655
  showSearch: true,
589
656
  onChange: onTreeSelectChange,
@@ -596,8 +663,6 @@ var pointMap = function pointMap(props) {
596
663
  },
597
664
  options: treeArr,
598
665
  popupClassName: "".concat(classPrefix, "-search-popup")
599
- }), /*#__PURE__*/React.createElement(IconFont, {
600
- type: "sousuo"
601
666
  })), /*#__PURE__*/React.createElement("div", {
602
667
  className: "".concat(classPrefix, "-search-pop")
603
668
  }, /*#__PURE__*/React.createElement(Popover, {
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- declare const Dictionary: React.FC;
3
- export default Dictionary;
2
+ import './index.less';
3
+ declare const CompanySetting: React.FC<{
4
+ onShowProcess: (data?: any, isEdit?: boolean) => void;
5
+ }>;
6
+ export default CompanySetting;