@zgfe/modules-settings 2.0.0-zhongyuan.9 → 2.1.0-zhongyuan-set.1

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 (133) hide show
  1. package/README.md +33 -33
  2. package/es/components/card/index.less +87 -87
  3. package/es/components/importMetaDialog/index.d.ts +13 -0
  4. package/es/components/importMetaDialog/index.js +217 -0
  5. package/es/components/importMetaDialog/styles/index.less +115 -0
  6. package/es/components/pageLoading/index.less +7 -7
  7. package/es/components/picCircleSelect/bak/index copy 2.tsx.bak +92 -92
  8. package/es/components/picCircleSelect/bak/index copy 3.tsx.bak +58 -58
  9. package/es/components/picCircleSelect/bak/index copy 4.tsx.bak +66 -66
  10. package/es/components/picCircleSelect/bak/index copy 5.tsx.bak +116 -116
  11. package/es/components/picCircleSelect/bak/index copy 6.tsx.bak +116 -116
  12. package/es/components/picCircleSelect/bak/index copy.tsx.bak +41 -41
  13. package/es/components/picCircleSelect/bak/index.tsx.bak +48 -48
  14. package/es/components/picCircleSelect/bak/index1.tsx.bak +46 -46
  15. package/es/components/picCircleSelect/bak/index2.tsx.bak +104 -104
  16. package/es/components/picCircleSelect/index.less +37 -37
  17. package/es/components/processCanvas/styles/customNode.less +149 -149
  18. package/es/components/processCanvas/styles/index.less +34 -34
  19. package/es/components/settingTabs/index.less +51 -51
  20. package/es/constants/api.d.ts +30 -0
  21. package/es/constants/api.js +43 -1
  22. package/es/constants/icons/demo.css +539 -539
  23. package/es/constants/icons/demo_index.html +9871 -9871
  24. package/es/constants/icons/iconfont.css +1699 -1699
  25. package/es/constants/icons/iconfont.json +2956 -2956
  26. package/es/global.d.ts +4 -4
  27. package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
  28. package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
  29. package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
  30. package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
  31. package/es/modules/companySetting/appList/index.less +126 -126
  32. package/es/modules/companySetting/application/applicationForm.d.ts +1 -0
  33. package/es/modules/companySetting/application/applicationForm.js +34 -4
  34. package/es/modules/companySetting/application/index.d.ts +13 -0
  35. package/es/modules/companySetting/application/index.js +276 -104
  36. package/es/modules/companySetting/application/index.less +144 -126
  37. package/es/modules/companySetting/business/index.less +92 -92
  38. package/es/modules/companySetting/cost/index.less +38 -38
  39. package/es/modules/companySetting/department/index.less +157 -157
  40. package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
  41. package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
  42. package/es/modules/companySetting/edit/styles/authModule.less +82 -82
  43. package/es/modules/companySetting/edit/styles/user.less +54 -54
  44. package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
  45. package/es/modules/companySetting/index.js +37 -33
  46. package/es/modules/companySetting/index.less +90 -90
  47. package/es/modules/companySetting/info/index.less +42 -42
  48. package/es/modules/companySetting/mainPart/images/img2.svg +12 -12
  49. package/es/modules/companySetting/mainPart/index.less +239 -239
  50. package/es/modules/companySetting/operationLog/index.js +22 -5
  51. package/es/modules/companySetting/operationLog/index.less +33 -33
  52. package/es/modules/companySetting/role/index.less +296 -296
  53. package/es/modules/companySetting/role/setDataRangeDialog/index.less +37 -37
  54. package/es/modules/companySetting/style/common.less +79 -79
  55. package/es/modules/companySetting/style/reset.less +117 -117
  56. package/es/modules/companySetting/user/index.js +29 -24
  57. package/es/modules/companySetting/user/index.less +363 -363
  58. package/es/modules/companySetting/user/invite.js +30 -102
  59. package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
  60. package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
  61. package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
  62. package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
  63. package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
  64. package/es/modules/companySetting/wechatBinding/index.less +58 -58
  65. package/es/modules/createDemand/constants.d.ts +15 -2
  66. package/es/modules/createDemand/constants.js +57 -4
  67. package/es/modules/createDemand/demo/selectPoint.js +1 -2
  68. package/es/modules/createDemand/index.d.ts +0 -1
  69. package/es/modules/createDemand/index.js +793 -179
  70. package/es/modules/createDemand/styles/index.less +403 -277
  71. package/es/modules/createDemand_bf/demo/index.js +0 -1
  72. package/es/modules/createDemand_bf/index.js +0 -1
  73. package/es/modules/createDemand_bf/styles/index.less +222 -222
  74. package/es/modules/createProcess/components/index.less +52 -52
  75. package/es/modules/createProcess/index.less +114 -114
  76. package/es/modules/createProcess/title/index.less +53 -53
  77. package/es/modules/dealDemand/demo/index.js +0 -1
  78. package/es/modules/dealDemand/demo/selectPoint.js +1 -1
  79. package/es/modules/dealDemand/index.js +0 -2
  80. package/es/modules/dealDemand/styles/index.less +265 -265
  81. package/es/modules/demandManage/index.js +174 -178
  82. package/es/modules/demandManage/styles/index.less +8 -68
  83. package/es/modules/getPassword/index.less +122 -122
  84. package/es/modules/messageList/index.d.ts +1 -1
  85. package/es/modules/messageList/index.js +6 -6
  86. package/es/modules/messageList/index.less +81 -81
  87. package/es/modules/personalSetting/demo/index.d.ts +3 -0
  88. package/es/modules/personalSetting/demo/index.js +12 -0
  89. package/es/modules/personalSetting/index.js +11 -1
  90. package/es/modules/personalSetting/info/index.js +23 -5
  91. package/es/modules/personalSetting/securityLog/index.less +11 -11
  92. package/es/modules/personalSetting/styles/unbinding.less +73 -73
  93. package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
  94. package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
  95. package/es/modules/pointMap/createMetaDrawer.js +825 -0
  96. package/es/modules/pointMap/editTxt/index.less +55 -55
  97. package/es/modules/pointMap/pageInfo.js +401 -179
  98. package/es/modules/pointMap/record.d.ts +7 -0
  99. package/es/modules/pointMap/record.js +521 -0
  100. package/es/modules/pointMap/styles/index.less +165 -38
  101. package/es/modules/pointMap/styles/pageInfo.less +439 -244
  102. package/es/modules/pointMap/styles/tree.css +164 -145
  103. package/es/modules/pointMap/styles/tree.less +174 -149
  104. package/es/modules/pointMap/tree.js +232 -88
  105. package/es/modules/pointMap/types.d.ts +88 -0
  106. package/es/modules/pointMap/types.js +1 -0
  107. package/es/modules/systemSetting/Dictionary.d.ts +5 -2
  108. package/es/modules/systemSetting/Dictionary.js +54 -370
  109. package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.less +14 -14
  110. package/es/modules/systemSetting/approvalmanage/index.less +5 -5
  111. package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
  112. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
  113. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +245 -0
  114. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -0
  115. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
  116. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +207 -0
  117. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
  118. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
  119. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
  120. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +124 -0
  121. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
  122. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
  123. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +264 -0
  124. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
  125. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
  126. package/es/modules/systemSetting/document-setting/index.js +7 -6
  127. package/es/modules/systemSetting/index.css +161 -161
  128. package/es/modules/systemSetting/index.js +16 -16
  129. package/es/modules/systemSetting/index.less +169 -169
  130. package/es/modules/systemSetting/notice/configItem/index.less +21 -21
  131. package/es/modules/systemSetting/notice/edit/index.less +26 -26
  132. package/es/types/personal.d.ts +1 -0
  133. package/package.json +74 -74
@@ -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, PlusCircleOutlined, MinusCircleOutlined, EditOutlined } 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,10 @@ 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: item.labels.map(function (res) {
62
+ return res.labelName;
63
+ }).join('')
61
64
  });
62
65
  if (item.children.length > 0) {
63
66
  formatTreeArr(item.children, arrTemp, item.name);
@@ -97,7 +100,8 @@ var pointMap = function pointMap(props) {
97
100
  var _useContext = useContext(BizGlobalDataContext),
98
101
  currentApp = _useContext.currentApp,
99
102
  route = _useContext.route,
100
- authority = _useContext.authority;
103
+ authority = _useContext.authority,
104
+ showProdDownload = _useContext.showProdDownload;
101
105
  var _useState11 = useState([]),
102
106
  _useState12 = _slicedToArray(_useState11, 2),
103
107
  pointVersionList = _useState12[0],
@@ -130,20 +134,29 @@ var pointMap = function pointMap(props) {
130
134
  _useState26 = _slicedToArray(_useState25, 2),
131
135
  value = _useState26[0],
132
136
  setValue = _useState26[1];
133
- var _useState27 = useState(true),
137
+ var _useState27 = useState('name'),
134
138
  _useState28 = _slicedToArray(_useState27, 2),
135
- isInit = _useState28[0],
136
- setIsInit = _useState28[1];
137
- var _useState29 = useState(false),
139
+ searchType = _useState28[0],
140
+ setSearchType = _useState28[1];
141
+ var _useState29 = useState(true),
138
142
  _useState30 = _slicedToArray(_useState29, 2),
139
- isShowDel = _useState30[0],
140
- setIsShowDel = _useState30[1];
141
- var _useState31 = useState(!!props.pageStatusIsEdit),
143
+ isInit = _useState30[0],
144
+ setIsInit = _useState30[1];
145
+ var _useState31 = useState(false),
142
146
  _useState32 = _slicedToArray(_useState31, 2),
143
- pageStatusIsEdit = _useState32[0],
144
- setPageStatusIsEdit = _useState32[1];
147
+ isShowDel = _useState32[0],
148
+ setIsShowDel = _useState32[1];
149
+ var _useState33 = useState([]),
150
+ _useState34 = _slicedToArray(_useState33, 2),
151
+ pointList = _useState34[0],
152
+ setPointList = _useState34[1];
153
+ var _useState35 = useState(!!props.pageStatusIsEdit),
154
+ _useState36 = _slicedToArray(_useState35, 2),
155
+ pageStatusIsEdit = _useState36[0],
156
+ setPageStatusIsEdit = _useState36[1];
145
157
  useEffect(function () {
146
158
  pointGetVersion();
159
+ getPointList();
147
160
  }, []);
148
161
  useEffect(function () {
149
162
  setPageStatusIsEdit(!!props.pageStatusIsEdit);
@@ -181,6 +194,7 @@ var pointMap = function pointMap(props) {
181
194
  });
182
195
  };
183
196
  var getPointTree = function getPointTree() {
197
+ var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
184
198
  request(apis.getPointTree, {
185
199
  method: 'post',
186
200
  data: {
@@ -189,9 +203,9 @@ var pointMap = function pointMap(props) {
189
203
  }
190
204
  }).then(function (res) {
191
205
  if (res && res.code === '100000') {
206
+ pageNum = ((res === null || res === void 0 ? void 0 : res.data.length) || 0) + 1;
192
207
  setTreeData(formatTreeData((res === null || res === void 0 ? void 0 : res.data) || []));
193
208
  setTreeArr(formatTreeArr((res === null || res === void 0 ? void 0 : res.data) || [], [], '') || []);
194
- console.log('selectedKeys', selectedKeys);
195
209
  if (!selectedKeys) {
196
210
  setSelectedKeys((res === null || res === void 0 ? void 0 : res.data) ? [res === null || res === void 0 ? void 0 : res.data[0].id] : undefined);
197
211
  props.onChangePage((res === null || res === void 0 ? void 0 : res.data) ? _objectSpread(_objectSpread({}, res === null || res === void 0 ? void 0 : res.data[0]), {}, {
@@ -201,11 +215,32 @@ var pointMap = function pointMap(props) {
201
215
  // props.onChangePage(res?.data ? { ...res?.data[0], currentPointVersion } : undefined);
202
216
  }
203
217
  setChangeNameId(undefined);
218
+ fn();
204
219
  }
205
220
  }).catch(function (err) {
206
221
  console.log(err);
207
222
  });
208
223
  };
224
+ //查询位置标签
225
+ var getPointList = function getPointList() {
226
+ request(apis.dict.getTagList, {
227
+ method: 'post',
228
+ data: {
229
+ labelType: 1,
230
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
231
+ }
232
+ }).then(function (res) {
233
+ if (res && res.code == 100000) {
234
+ setPointList(res.data.map(function (res) {
235
+ return {
236
+ label: res.labelName,
237
+ value: res.id,
238
+ labelType: 1
239
+ };
240
+ }));
241
+ }
242
+ });
243
+ };
209
244
  var addPage = function addPage(operationType, parentId, targetPageId) {
210
245
  request(apis.createPage, {
211
246
  method: 'post',
@@ -242,6 +277,7 @@ var pointMap = function pointMap(props) {
242
277
  });
243
278
  getPointTree();
244
279
  } else if (selectedKeys && param.id === selectedKeys[0] && param.isDel) {
280
+ getPointTree();
245
281
  setSelectedKeys(undefined);
246
282
  props.onChangePage(undefined);
247
283
  props.refreshPage && props.refreshPage();
@@ -310,7 +346,6 @@ var pointMap = function pointMap(props) {
310
346
  setAutoExpandParent(false);
311
347
  };
312
348
  var onDrop = function onDrop(info) {
313
- // console.log('onDrop', info, selectedKeys);
314
349
  moveNode({
315
350
  oldParentId: info.dragNode.parentId,
316
351
  newParentId: info.dropToGap ? info.node.parentId : info.node.id,
@@ -336,10 +371,7 @@ var pointMap = function pointMap(props) {
336
371
  }
337
372
  };
338
373
  var titleRender = function titleRender(nodeData) {
339
- // console.log('nodeData', nodeData);
340
- var onItemClick = function onItemClick(_ref) {
341
- var key = _ref.key;
342
- console.log('key', key);
374
+ var onItemClick = function onItemClick(key) {
343
375
  switch (key) {
344
376
  case '0':
345
377
  if (nodeData.storey >= 20) {
@@ -370,7 +402,85 @@ var pointMap = function pointMap(props) {
370
402
  }
371
403
  // message.info(`Click on item ${key}`);
372
404
  };
373
- return /*#__PURE__*/React.createElement("div", {
405
+ //位置标签list
406
+ var color = ['magenta', 'red', 'volcano', 'orange', 'gold', 'lime', 'green', 'cyan', 'blue', 'geekblue', 'purple'];
407
+ var pointContent = /*#__PURE__*/React.createElement(React.Fragment, null, nodeData.labels && nodeData.labels.map(function (res, index) {
408
+ return /*#__PURE__*/React.createElement(Tag, {
409
+ key: index,
410
+ color: color[index]
411
+ }, res.labelName);
412
+ }));
413
+ var pointIds = nodeData.labels && nodeData.labels.map(function (res) {
414
+ return res.id;
415
+ }) || [];
416
+ var menu = {
417
+ items: [{
418
+ label: '添加子页面',
419
+ icon: /*#__PURE__*/React.createElement(IconFont, {
420
+ type: "tianjia3"
421
+ }),
422
+ key: '0'
423
+ }, {
424
+ label: '上方添加页面',
425
+ icon: /*#__PURE__*/React.createElement(IconFont, {
426
+ type: "shangfangtianjia"
427
+ }),
428
+ key: '1'
429
+ }, {
430
+ label: '下方添加页面',
431
+ icon: /*#__PURE__*/React.createElement(IconFont, {
432
+ type: "xiafangtianjia"
433
+ }),
434
+ key: '2'
435
+ }, {
436
+ label: '选择位置标签',
437
+ icon: /*#__PURE__*/React.createElement(EnvironmentOutlined, null),
438
+ key: '5',
439
+ children: pointList.map(function (res) {
440
+ return {
441
+ key: '5' + res.value,
442
+ label: (/*#__PURE__*/React.createElement(Checkbox, {
443
+ defaultChecked: pointIds.indexOf(res.value) != -1,
444
+ onChange: function onChange(e) {
445
+ onChangeTag(e, nodeData, res);
446
+ },
447
+ onClick: function onClick(e) {
448
+ e.stopPropagation();
449
+ }
450
+ }, res.label)),
451
+ disabled: true
452
+ };
453
+ })
454
+ }, {
455
+ type: 'divider'
456
+ }, {
457
+ label: '重命名',
458
+ icon: /*#__PURE__*/React.createElement(IconFont, {
459
+ type: "bianji1"
460
+ }),
461
+ key: '3'
462
+ }, {
463
+ type: 'divider'
464
+ }, {
465
+ label: '删除',
466
+ icon: /*#__PURE__*/React.createElement(IconFont, {
467
+ type: "shanchu2"
468
+ }),
469
+ key: '4'
470
+ }],
471
+ onClick: function onClick(item) {
472
+ item.domEvent.stopPropagation();
473
+ onItemClick(item.key);
474
+ }
475
+ };
476
+ return /*#__PURE__*/React.createElement(Dropdown, {
477
+ disabled: !authority[1724922805],
478
+ menu: menu,
479
+ overlayStyle: {
480
+ width: 156
481
+ },
482
+ trigger: ['contextMenu']
483
+ }, /*#__PURE__*/React.createElement("div", {
374
484
  className: "".concat(classPrefix, "-tree-item")
375
485
  }, changeNameId === nodeData.id ? (/*#__PURE__*/React.createElement(Input, {
376
486
  style: {
@@ -414,80 +524,97 @@ var pointMap = function pointMap(props) {
414
524
  setChangeNameId(nodeData.id);
415
525
  setChangeNameString(nodeData.name);
416
526
  }
417
- }, nodeData.name))), /*#__PURE__*/React.createElement(Dropdown, {
527
+ }, /*#__PURE__*/React.createElement("span", {
528
+ className: "".concat(classPrefix, "-tree-item-title-name")
529
+ }, nodeData.name, " (", nodeData.pointSum || 0, ")"), /*#__PURE__*/React.createElement(Popover, {
530
+ placement: "topLeft",
531
+ title: "\u4F4D\u7F6E\u6807\u7B7E",
532
+ content: pointContent
533
+ }, pointContent)))), /*#__PURE__*/React.createElement("div", {
534
+ className: "".concat(classPrefix, "-tree-item-iconList")
535
+ }, /*#__PURE__*/React.createElement(EditOutlined, {
536
+ onClick: function onClick(e) {
537
+ e.stopPropagation();
538
+ onItemClick('3');
539
+ }
540
+ }), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
541
+ onClick: function onClick(e) {
542
+ e.stopPropagation();
543
+ onItemClick('4');
544
+ }
545
+ }), /*#__PURE__*/React.createElement(PlusCircleOutlined, {
546
+ onClick: function onClick(e) {
547
+ e.stopPropagation();
548
+ onItemClick('2');
549
+ }
550
+ }), /*#__PURE__*/React.createElement(Dropdown, {
418
551
  disabled: !authority[1724922805],
419
- placement: 'bottomRight',
420
- menu: {
421
- items: [{
422
- label: '添加子页面',
423
- icon: /*#__PURE__*/React.createElement(IconFont, {
424
- type: "tianjia3"
425
- }),
426
- key: '0'
427
- }, {
428
- label: '上方添加页面',
429
- icon: /*#__PURE__*/React.createElement(IconFont, {
430
- type: "shangfangtianjia"
431
- }),
432
- key: '1'
433
- }, {
434
- label: '下方添加页面',
435
- icon: /*#__PURE__*/React.createElement(IconFont, {
436
- type: "xiafangtianjia"
437
- }),
438
- key: '2'
439
- }, {
440
- type: 'divider'
441
- }, {
442
- label: '重命名',
443
- icon: /*#__PURE__*/React.createElement(IconFont, {
444
- type: "bianji1"
445
- }),
446
- key: '3'
447
- }, {
448
- type: 'divider'
449
- }, {
450
- label: '删除',
451
- icon: /*#__PURE__*/React.createElement(IconFont, {
452
- type: "shanchu2"
453
- }),
454
- key: '4'
455
- }],
456
- onClick: onItemClick
457
- },
552
+ menu: menu,
458
553
  overlayStyle: {
459
554
  width: 156
460
555
  },
461
556
  trigger: ['click']
462
557
  }, /*#__PURE__*/React.createElement(IconFont, {
558
+ type: "gengduocaozuo1",
463
559
  onClick: function onClick(e) {
464
560
  e.stopPropagation();
465
- },
466
- type: "gengduocaozuo1"
467
- })));
561
+ }
562
+ })))));
468
563
  };
469
- var _useState33 = useState(false),
470
- _useState34 = _slicedToArray(_useState33, 2),
471
- isOpen = _useState34[0],
472
- setIsOpen = _useState34[1];
564
+ var onChangeTag = function onChangeTag(e, node, option) {
565
+ labelRelation(e.target.checked, node, option);
566
+ };
567
+ //绑定和解绑标签
568
+ var labelRelation = function labelRelation(checked, node, option) {
569
+ request(checked ? apis.dict.addLabelRelation : apis.dict.delLabelRelation, {
570
+ method: 'post',
571
+ data: {
572
+ id: option.value,
573
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
574
+ labelType: 1,
575
+ eventId: node.id
576
+ }
577
+ }).then(function (res) {
578
+ if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
579
+ getPointTree(function () {
580
+ var labels = node.labels;
581
+ if (checked) {
582
+ labels.push(option);
583
+ } else {
584
+ labels = labels.filter(function (res) {
585
+ return res.id != option.value;
586
+ });
587
+ }
588
+ node.labels = labels;
589
+ props.onChangePage(_objectSpread(_objectSpread({}, node), {}, {
590
+ currentPointVersion: currentPointVersion
591
+ }));
592
+ });
593
+ }
594
+ });
595
+ };
596
+ var _useState37 = useState(false),
597
+ _useState38 = _slicedToArray(_useState37, 2),
598
+ isOpen = _useState38[0],
599
+ setIsOpen = _useState38[1];
473
600
  var downloadHelpFile = function downloadHelpFile() {
474
601
  window.open("/\u63A8\u8350\u57CB\u70B9\u65B9\u6848.xlsx");
475
602
  };
476
603
  // 分享看板二维码
477
- var _useState35 = useState(''),
478
- _useState36 = _slicedToArray(_useState35, 2),
479
- qrCodeShare = _useState36[0],
480
- setqrCodeShare = _useState36[1];
604
+ var _useState39 = useState(''),
605
+ _useState40 = _slicedToArray(_useState39, 2),
606
+ qrCodeShare = _useState40[0],
607
+ setqrCodeShare = _useState40[1];
481
608
  // 分享看板二维码-显示控制
482
- var _useState37 = useState(false),
483
- _useState38 = _slicedToArray(_useState37, 2),
484
- qrCodeShareShow = _useState38[0],
485
- setqrCodeShareShow = _useState38[1];
609
+ var _useState41 = useState(false),
610
+ _useState42 = _slicedToArray(_useState41, 2),
611
+ qrCodeShareShow = _useState42[0],
612
+ setqrCodeShareShow = _useState42[1];
486
613
  // 二维码加载中
487
- var _useState39 = useState(false),
488
- _useState40 = _slicedToArray(_useState39, 2),
489
- qrCodeLoading = _useState40[0],
490
- setQrCodeLoading = _useState40[1];
614
+ var _useState43 = useState(false),
615
+ _useState44 = _slicedToArray(_useState43, 2),
616
+ qrCodeLoading = _useState44[0],
617
+ setQrCodeLoading = _useState44[1];
491
618
  var onOpenChangeShare = function onOpenChangeShare(open) {
492
619
  setqrCodeShareShow(open);
493
620
  if (qrCodeShare === '') {
@@ -525,8 +652,8 @@ var pointMap = function pointMap(props) {
525
652
  key: item
526
653
  };
527
654
  }),
528
- onClick: function onClick(_ref2) {
529
- var key = _ref2.key;
655
+ onClick: function onClick(_ref) {
656
+ var key = _ref.key;
530
657
  setIsOpen(false);
531
658
  setValue('');
532
659
  setSelectedKeys(undefined);
@@ -565,7 +692,7 @@ var pointMap = function pointMap(props) {
565
692
  })))), /*#__PURE__*/React.createElement("a", {
566
693
  className: "".concat(classPrefix, "-select-box"),
567
694
  onClick: downloadHelpFile
568
- }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), /*#__PURE__*/React.createElement("a", {
695
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), showProdDownload && (/*#__PURE__*/React.createElement("a", {
569
696
  className: "".concat(classPrefix, "-select-box"),
570
697
  onClick: function onClick() {
571
698
  if (!authority[1724922774]) {
@@ -576,13 +703,27 @@ var pointMap = function pointMap(props) {
576
703
  }
577
704
  }, /*#__PURE__*/React.createElement(IconFont, {
578
705
  type: "xiazai1"
579
- }), "\u5BFC\u5165\u9875\u9762")), /*#__PURE__*/React.createElement("div", {
706
+ }), "\u5BFC\u5165\u9875\u9762"))), /*#__PURE__*/React.createElement("div", {
580
707
  className: "".concat(classPrefix, "-search")
581
708
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
709
+ className: "".concat(classPrefix, "-search-selectType"),
710
+ value: searchType,
711
+ options: [{
712
+ label: '页面名',
713
+ value: 'name'
714
+ }, {
715
+ label: '位置标签',
716
+ value: 'tagJson'
717
+ }],
718
+ onChange: function onChange(value) {
719
+ setSearchType(value);
720
+ setValue(undefined);
721
+ }
722
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
582
723
  value: value,
583
- placeholder: "\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\u641C\u7D22",
724
+ placeholder: searchType == 'name' ? '请输入页面名称搜索' : '请输入位置标签名',
584
725
  // searchValue={value}
585
- optionFilterProp: 'name',
726
+ optionFilterProp: searchType,
586
727
  showArrow: false,
587
728
  showSearch: true,
588
729
  onChange: onTreeSelectChange,
@@ -593,17 +734,20 @@ var pointMap = function pointMap(props) {
593
734
  value: 'id',
594
735
  label: 'name'
595
736
  },
737
+ allowClear: true,
596
738
  options: treeArr,
597
739
  popupClassName: "".concat(classPrefix, "-search-popup")
598
- }), /*#__PURE__*/React.createElement(IconFont, {
599
- type: "sousuo"
600
740
  })), /*#__PURE__*/React.createElement("div", {
601
741
  className: "".concat(classPrefix, "-search-pop")
602
742
  }, /*#__PURE__*/React.createElement(Popover, {
603
743
  open: qrCodeShareShow,
604
744
  content: /*#__PURE__*/React.createElement("div", {
605
745
  className: "".concat(qrCodeLoading ? 'loading' : '', " qrcode-img")
606
- }, /*#__PURE__*/React.createElement("div", null, "\u624B\u673A\u626B\u7801\u67E5\u770B\u57CB\u70B9\u5730\u56FE"), /*#__PURE__*/React.createElement(Spin, {
746
+ }, /*#__PURE__*/React.createElement("div", {
747
+ style: {
748
+ fontSize: '14px'
749
+ }
750
+ }, "\u624B\u673A\u626B\u7801\u67E5\u770B\u81EA\u5B9A\u4E49\u57CB\u70B9\u5730\u56FE"), /*#__PURE__*/React.createElement(Spin, {
607
751
  spinning: qrCodeLoading
608
752
  }, qrCodeShare && /*#__PURE__*/React.createElement("img", {
609
753
  src: qrCodeShare
@@ -0,0 +1,88 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * 虚拟事件基础属性
4
+ */
5
+ export interface VirtualEventBase {
6
+ aliasName: string;
7
+ bindEvent: string;
8
+ createUser: string;
9
+ description: string;
10
+ eventName: string;
11
+ insertTime: number;
12
+ updateTime: number;
13
+ lastInsertTime: number;
14
+ isStop: number;
15
+ markType: number;
16
+ owner: string;
17
+ }
18
+ export interface eventJsonProps {
19
+ eventId: number;
20
+ eventName: string;
21
+ owner: string;
22
+ }
23
+ export interface VirtualEventProps extends VirtualEventBase {
24
+ eventGroupId: number;
25
+ groupId?: number;
26
+ eventJson: eventJsonProps[];
27
+ id: number;
28
+ }
29
+ export interface DataType extends VirtualEventBase {
30
+ key: React.Key;
31
+ groupId?: number;
32
+ groupName?: string;
33
+ _groupId?: number;
34
+ }
35
+ export interface TableItemType {
36
+ groupId: number;
37
+ groupName: string;
38
+ eventList: [];
39
+ }
40
+ export interface GroupOptionsType {
41
+ value?: number;
42
+ label?: string;
43
+ }
44
+ export interface TablePlusType {
45
+ tableRenderData: DataType[];
46
+ editOrSeeVirtualEvent: Function;
47
+ refresh: Function;
48
+ markTypeFilter: Function;
49
+ loading: boolean;
50
+ }
51
+ export interface CreateVirtualDrawerProps {
52
+ createVirtualShow: boolean;
53
+ setCreateVirtualShow: Function;
54
+ editVirtualEventData: VirtualEventProps;
55
+ virtualDrawerType: 'create' | 'edit' | 'see';
56
+ groupOptions: GroupOptionsType[];
57
+ refresh: Function;
58
+ }
59
+ export interface DelectAttributesDataProps {
60
+ name: string;
61
+ id: number;
62
+ attrList: {
63
+ ofEventId: number[];
64
+ }[];
65
+ }
66
+ export interface SubmitDataProps {
67
+ aliasName: string;
68
+ desc: string;
69
+ eventGroupId: number;
70
+ eventName: string;
71
+ eventJson: eventJsonProps[];
72
+ }
73
+ export interface EventGroupingDrawerProps {
74
+ eventGroupingShow: boolean;
75
+ setEventGroupingShow: Function;
76
+ refresh: Function;
77
+ source: 'virtual' | 'collection';
78
+ }
79
+ export interface CreateMetaDrawerProps {
80
+ isShow: boolean;
81
+ onClose: Function;
82
+ onSubmit?: Function;
83
+ selectTreeName?: string;
84
+ data: any;
85
+ isEdit: Boolean;
86
+ }
87
+ export interface DevelopModelProps {
88
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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;