@zgfe/modules-settings 2.1.0-zhongyuan.3 → 2.1.0-zhongyuan.31
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/es/components/importMetaDialog/index.d.ts +2 -0
- package/es/components/importMetaDialog/index.js +18 -3
- package/es/constants/api.d.ts +6 -0
- package/es/constants/api.js +17 -8
- package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
- package/es/modules/companySetting/application/applicationForm.d.ts +1 -0
- package/es/modules/companySetting/application/applicationForm.js +34 -4
- package/es/modules/companySetting/application/index.js +5 -6
- package/es/modules/companySetting/application/index.less +144 -144
- package/es/modules/companySetting/index.js +37 -33
- package/es/modules/companySetting/operationLog/index.js +22 -5
- package/es/modules/companySetting/user/index.js +29 -24
- package/es/modules/companySetting/user/invite.js +28 -100
- package/es/modules/createDemand/demo/selectPoint.js +1 -2
- package/es/modules/createDemand/index.js +7 -6
- package/es/modules/createDemand/styles/index.less +403 -403
- package/es/modules/createDemand_bf/demo/index.js +0 -1
- package/es/modules/createDemand_bf/index.js +0 -1
- package/es/modules/dealDemand/demo/index.js +0 -1
- package/es/modules/dealDemand/demo/selectPoint.js +1 -1
- package/es/modules/dealDemand/index.js +0 -2
- package/es/modules/demandManage/index.js +0 -1
- package/es/modules/demandManage/styles/index.less +155 -155
- package/es/modules/pointMap/createMetaDrawer.js +166 -84
- package/es/modules/pointMap/pageInfo.js +40 -19
- package/es/modules/pointMap/styles/index.less +8 -0
- package/es/modules/pointMap/styles/tree.css +164 -145
- package/es/modules/pointMap/styles/tree.less +174 -156
- package/es/modules/pointMap/tree.js +196 -118
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +5 -4
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -48
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +3 -2
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +7 -9
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +29 -16
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +1 -1
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.js +13 -15
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
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
18
|
import { Button, Dropdown, Empty, Input, message, Modal, Select, Tree, Popover, Spin, Tag, Checkbox } from 'antd';
|
|
19
|
-
import { QuestionCircleOutlined, EnvironmentOutlined } from '@ant-design/icons';
|
|
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';
|
|
@@ -58,7 +58,9 @@ var formatTreeArr = function formatTreeArr(list, arrTemp, parentName) {
|
|
|
58
58
|
arrTemp.push({
|
|
59
59
|
id: item.id,
|
|
60
60
|
name: parentName ? parentName + ' / ' + item.name : item.name,
|
|
61
|
-
tagJson:
|
|
61
|
+
tagJson: item.labels.map(function (res) {
|
|
62
|
+
return res.labelName;
|
|
63
|
+
}).join('')
|
|
62
64
|
});
|
|
63
65
|
if (item.children.length > 0) {
|
|
64
66
|
formatTreeArr(item.children, arrTemp, item.name);
|
|
@@ -98,7 +100,8 @@ var pointMap = function pointMap(props) {
|
|
|
98
100
|
var _useContext = useContext(BizGlobalDataContext),
|
|
99
101
|
currentApp = _useContext.currentApp,
|
|
100
102
|
route = _useContext.route,
|
|
101
|
-
authority = _useContext.authority
|
|
103
|
+
authority = _useContext.authority,
|
|
104
|
+
showProdDownload = _useContext.showProdDownload;
|
|
102
105
|
var _useState11 = useState([]),
|
|
103
106
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
104
107
|
pointVersionList = _useState12[0],
|
|
@@ -143,12 +146,17 @@ var pointMap = function pointMap(props) {
|
|
|
143
146
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
144
147
|
isShowDel = _useState32[0],
|
|
145
148
|
setIsShowDel = _useState32[1];
|
|
146
|
-
var _useState33 = useState(
|
|
149
|
+
var _useState33 = useState([]),
|
|
147
150
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
148
|
-
|
|
149
|
-
|
|
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];
|
|
150
157
|
useEffect(function () {
|
|
151
158
|
pointGetVersion();
|
|
159
|
+
getPointList();
|
|
152
160
|
}, []);
|
|
153
161
|
useEffect(function () {
|
|
154
162
|
setPageStatusIsEdit(!!props.pageStatusIsEdit);
|
|
@@ -186,6 +194,7 @@ var pointMap = function pointMap(props) {
|
|
|
186
194
|
});
|
|
187
195
|
};
|
|
188
196
|
var getPointTree = function getPointTree() {
|
|
197
|
+
var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
|
|
189
198
|
request(apis.getPointTree, {
|
|
190
199
|
method: 'post',
|
|
191
200
|
data: {
|
|
@@ -194,7 +203,7 @@ var pointMap = function pointMap(props) {
|
|
|
194
203
|
}
|
|
195
204
|
}).then(function (res) {
|
|
196
205
|
if (res && res.code === '100000') {
|
|
197
|
-
pageNum = res === null || res === void 0 ? void 0 : res.data.length;
|
|
206
|
+
pageNum = ((res === null || res === void 0 ? void 0 : res.data.length) || 0) + 1;
|
|
198
207
|
setTreeData(formatTreeData((res === null || res === void 0 ? void 0 : res.data) || []));
|
|
199
208
|
setTreeArr(formatTreeArr((res === null || res === void 0 ? void 0 : res.data) || [], [], '') || []);
|
|
200
209
|
if (!selectedKeys) {
|
|
@@ -206,11 +215,32 @@ var pointMap = function pointMap(props) {
|
|
|
206
215
|
// props.onChangePage(res?.data ? { ...res?.data[0], currentPointVersion } : undefined);
|
|
207
216
|
}
|
|
208
217
|
setChangeNameId(undefined);
|
|
218
|
+
fn();
|
|
209
219
|
}
|
|
210
220
|
}).catch(function (err) {
|
|
211
221
|
console.log(err);
|
|
212
222
|
});
|
|
213
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
|
+
};
|
|
214
244
|
var addPage = function addPage(operationType, parentId, targetPageId) {
|
|
215
245
|
request(apis.createPage, {
|
|
216
246
|
method: 'post',
|
|
@@ -341,8 +371,7 @@ var pointMap = function pointMap(props) {
|
|
|
341
371
|
}
|
|
342
372
|
};
|
|
343
373
|
var titleRender = function titleRender(nodeData) {
|
|
344
|
-
var onItemClick = function onItemClick(
|
|
345
|
-
var key = _ref.key;
|
|
374
|
+
var onItemClick = function onItemClick(key) {
|
|
346
375
|
switch (key) {
|
|
347
376
|
case '0':
|
|
348
377
|
if (nodeData.storey >= 20) {
|
|
@@ -374,18 +403,84 @@ var pointMap = function pointMap(props) {
|
|
|
374
403
|
// message.info(`Click on item ${key}`);
|
|
375
404
|
};
|
|
376
405
|
//位置标签list
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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", {
|
|
389
484
|
className: "".concat(classPrefix, "-tree-item")
|
|
390
485
|
}, changeNameId === nodeData.id ? (/*#__PURE__*/React.createElement(Input, {
|
|
391
486
|
style: {
|
|
@@ -431,118 +526,95 @@ var pointMap = function pointMap(props) {
|
|
|
431
526
|
}
|
|
432
527
|
}, /*#__PURE__*/React.createElement("span", {
|
|
433
528
|
className: "".concat(classPrefix, "-tree-item-title-name")
|
|
434
|
-
}, nodeData.name, " (
|
|
529
|
+
}, nodeData.name, " (", nodeData.pointSum || 0, ")"), /*#__PURE__*/React.createElement(Popover, {
|
|
435
530
|
placement: "topLeft",
|
|
436
531
|
title: "\u4F4D\u7F6E\u6807\u7B7E",
|
|
437
532
|
content: pointContent
|
|
438
|
-
}, /*#__PURE__*/React.createElement(
|
|
439
|
-
|
|
440
|
-
},
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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, {
|
|
449
551
|
disabled: !authority[1724922805],
|
|
450
|
-
|
|
451
|
-
menu: {
|
|
452
|
-
items: [{
|
|
453
|
-
label: '添加子页面',
|
|
454
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
455
|
-
type: "tianjia3"
|
|
456
|
-
}),
|
|
457
|
-
key: '0'
|
|
458
|
-
}, {
|
|
459
|
-
label: '上方添加页面',
|
|
460
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
461
|
-
type: "shangfangtianjia"
|
|
462
|
-
}),
|
|
463
|
-
key: '1'
|
|
464
|
-
}, {
|
|
465
|
-
label: '下方添加页面',
|
|
466
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
467
|
-
type: "xiafangtianjia"
|
|
468
|
-
}),
|
|
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
|
-
}]
|
|
491
|
-
}, {
|
|
492
|
-
type: 'divider'
|
|
493
|
-
}, {
|
|
494
|
-
label: '重命名',
|
|
495
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
496
|
-
type: "bianji1"
|
|
497
|
-
}),
|
|
498
|
-
key: '3'
|
|
499
|
-
}, {
|
|
500
|
-
type: 'divider'
|
|
501
|
-
}, {
|
|
502
|
-
label: '删除',
|
|
503
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
504
|
-
type: "shanchu2"
|
|
505
|
-
}),
|
|
506
|
-
key: '4'
|
|
507
|
-
}],
|
|
508
|
-
onClick: onItemClick
|
|
509
|
-
},
|
|
552
|
+
menu: menu,
|
|
510
553
|
overlayStyle: {
|
|
511
554
|
width: 156
|
|
512
555
|
},
|
|
513
556
|
trigger: ['click']
|
|
514
557
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
558
|
+
type: "gengduocaozuo1",
|
|
515
559
|
onClick: function onClick(e) {
|
|
516
560
|
e.stopPropagation();
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
})));
|
|
561
|
+
}
|
|
562
|
+
})))));
|
|
520
563
|
};
|
|
521
|
-
var onChangeTag = function onChangeTag(e,
|
|
522
|
-
|
|
564
|
+
var onChangeTag = function onChangeTag(e, node, option) {
|
|
565
|
+
labelRelation(e.target.checked, node, option);
|
|
523
566
|
};
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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];
|
|
528
600
|
var downloadHelpFile = function downloadHelpFile() {
|
|
529
601
|
window.open("/\u63A8\u8350\u57CB\u70B9\u65B9\u6848.xlsx");
|
|
530
602
|
};
|
|
531
603
|
// 分享看板二维码
|
|
532
|
-
var
|
|
533
|
-
_useState38 = _slicedToArray(_useState37, 2),
|
|
534
|
-
qrCodeShare = _useState38[0],
|
|
535
|
-
setqrCodeShare = _useState38[1];
|
|
536
|
-
// 分享看板二维码-显示控制
|
|
537
|
-
var _useState39 = useState(false),
|
|
604
|
+
var _useState39 = useState(''),
|
|
538
605
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
//
|
|
606
|
+
qrCodeShare = _useState40[0],
|
|
607
|
+
setqrCodeShare = _useState40[1];
|
|
608
|
+
// 分享看板二维码-显示控制
|
|
542
609
|
var _useState41 = useState(false),
|
|
543
610
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
544
|
-
|
|
545
|
-
|
|
611
|
+
qrCodeShareShow = _useState42[0],
|
|
612
|
+
setqrCodeShareShow = _useState42[1];
|
|
613
|
+
// 二维码加载中
|
|
614
|
+
var _useState43 = useState(false),
|
|
615
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
616
|
+
qrCodeLoading = _useState44[0],
|
|
617
|
+
setQrCodeLoading = _useState44[1];
|
|
546
618
|
var onOpenChangeShare = function onOpenChangeShare(open) {
|
|
547
619
|
setqrCodeShareShow(open);
|
|
548
620
|
if (qrCodeShare === '') {
|
|
@@ -580,8 +652,8 @@ var pointMap = function pointMap(props) {
|
|
|
580
652
|
key: item
|
|
581
653
|
};
|
|
582
654
|
}),
|
|
583
|
-
onClick: function onClick(
|
|
584
|
-
var key =
|
|
655
|
+
onClick: function onClick(_ref) {
|
|
656
|
+
var key = _ref.key;
|
|
585
657
|
setIsOpen(false);
|
|
586
658
|
setValue('');
|
|
587
659
|
setSelectedKeys(undefined);
|
|
@@ -620,7 +692,7 @@ var pointMap = function pointMap(props) {
|
|
|
620
692
|
})))), /*#__PURE__*/React.createElement("a", {
|
|
621
693
|
className: "".concat(classPrefix, "-select-box"),
|
|
622
694
|
onClick: downloadHelpFile
|
|
623
|
-
}, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), /*#__PURE__*/React.createElement("a", {
|
|
695
|
+
}, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), showProdDownload && (/*#__PURE__*/React.createElement("a", {
|
|
624
696
|
className: "".concat(classPrefix, "-select-box"),
|
|
625
697
|
onClick: function onClick() {
|
|
626
698
|
if (!authority[1724922774]) {
|
|
@@ -631,7 +703,7 @@ var pointMap = function pointMap(props) {
|
|
|
631
703
|
}
|
|
632
704
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
633
705
|
type: "xiazai1"
|
|
634
|
-
}), "\u5BFC\u5165\u9875\u9762")), /*#__PURE__*/React.createElement("div", {
|
|
706
|
+
}), "\u5BFC\u5165\u9875\u9762"))), /*#__PURE__*/React.createElement("div", {
|
|
635
707
|
className: "".concat(classPrefix, "-search")
|
|
636
708
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
637
709
|
className: "".concat(classPrefix, "-search-selectType"),
|
|
@@ -645,6 +717,7 @@ var pointMap = function pointMap(props) {
|
|
|
645
717
|
}],
|
|
646
718
|
onChange: function onChange(value) {
|
|
647
719
|
setSearchType(value);
|
|
720
|
+
setValue(undefined);
|
|
648
721
|
}
|
|
649
722
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
650
723
|
value: value,
|
|
@@ -661,6 +734,7 @@ var pointMap = function pointMap(props) {
|
|
|
661
734
|
value: 'id',
|
|
662
735
|
label: 'name'
|
|
663
736
|
},
|
|
737
|
+
allowClear: true,
|
|
664
738
|
options: treeArr,
|
|
665
739
|
popupClassName: "".concat(classPrefix, "-search-popup")
|
|
666
740
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -669,7 +743,11 @@ var pointMap = function pointMap(props) {
|
|
|
669
743
|
open: qrCodeShareShow,
|
|
670
744
|
content: /*#__PURE__*/React.createElement("div", {
|
|
671
745
|
className: "".concat(qrCodeLoading ? 'loading' : '', " qrcode-img")
|
|
672
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
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, {
|
|
673
751
|
spinning: qrCodeLoading
|
|
674
752
|
}, qrCodeShare && /*#__PURE__*/React.createElement("img", {
|
|
675
753
|
src: qrCodeShare
|
|
@@ -22,7 +22,8 @@ var clearDict = function clearDict(_ref) {
|
|
|
22
22
|
onSetclose = _ref.onSetclose,
|
|
23
23
|
currentDictDetail = _ref.currentDictDetail;
|
|
24
24
|
var _useContext = useContext(BizGlobalDataContext),
|
|
25
|
-
currentApp = _useContext.currentApp
|
|
25
|
+
currentApp = _useContext.currentApp,
|
|
26
|
+
showProdDownload = _useContext.showProdDownload;
|
|
26
27
|
var _useState = useState(addDictShow),
|
|
27
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28
29
|
open = _useState2[0],
|
|
@@ -185,7 +186,7 @@ var clearDict = function clearDict(_ref) {
|
|
|
185
186
|
labelAlign: "right"
|
|
186
187
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
187
188
|
label: "\u5C5E\u6027\u5B57\u5178\u540D",
|
|
188
|
-
name: "dictName
|
|
189
|
+
name: "dictName",
|
|
189
190
|
rules: [{
|
|
190
191
|
required: true,
|
|
191
192
|
message: '请输入属性字典名'
|
|
@@ -220,10 +221,10 @@ var clearDict = function clearDict(_ref) {
|
|
|
220
221
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
221
222
|
type: "primary",
|
|
222
223
|
onClick: onHandlePush
|
|
223
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u6DFB\u52A0\u503C"), /*#__PURE__*/React.createElement(Button, {
|
|
224
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u6DFB\u52A0\u503C"), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
224
225
|
type: "primary",
|
|
225
226
|
onClick: onHandleUploading
|
|
226
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u4ECE\u6587\u4EF6\u6DFB\u52A0"))), openImportModal && (/*#__PURE__*/React.createElement(ImportMetaDialog, {
|
|
227
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u4ECE\u6587\u4EF6\u6DFB\u52A0")))), openImportModal && (/*#__PURE__*/React.createElement(ImportMetaDialog, {
|
|
227
228
|
uploadFile: apis.dict.dictUpload,
|
|
228
229
|
downloadTempleUrl: apis.dict.dictTemplate,
|
|
229
230
|
fileName: "\u5C5E\u6027\u503C\u5BFC\u5165\u6A21\u677F",
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
.clearDict {
|
|
2
|
-
height: 100%;
|
|
3
|
-
padding: 24px;
|
|
4
|
-
background: #fff;
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
&-searchTop {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: 1fr;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-items: self-end;
|
|
12
|
-
margin-bottom: 20px;
|
|
13
|
-
}
|
|
14
|
-
&-modal {
|
|
15
|
-
.ant-modal-body {
|
|
16
|
-
height: 350px;
|
|
17
|
-
}
|
|
18
|
-
.ant-picker-dropdown {
|
|
19
|
-
top: 133px !important;
|
|
20
|
-
left: 13px !important;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&-content {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
}
|
|
28
|
-
&-drawerCloseIcon {
|
|
29
|
-
float: right;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
&-addListBtn {
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: space-between;
|
|
36
|
-
margin-top: 20px;
|
|
37
|
-
}
|
|
38
|
-
&-tableContainer {
|
|
39
|
-
margin-top: 10px;
|
|
40
|
-
.ant-table {
|
|
41
|
-
height: calc(100vh - 380px);
|
|
42
|
-
min-height: 410px !important; /* 设置表格最小高度 */
|
|
43
|
-
}
|
|
44
|
-
.ant-empty-normal {
|
|
45
|
-
height: 260px; /* 设置表格最小高度 */
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
.clearDict {
|
|
2
|
+
height: 100%;
|
|
3
|
+
padding: 24px;
|
|
4
|
+
background: #fff;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
&-searchTop {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-items: self-end;
|
|
12
|
+
margin-bottom: 20px;
|
|
13
|
+
}
|
|
14
|
+
&-modal {
|
|
15
|
+
.ant-modal-body {
|
|
16
|
+
height: 350px;
|
|
17
|
+
}
|
|
18
|
+
.ant-picker-dropdown {
|
|
19
|
+
top: 133px !important;
|
|
20
|
+
left: 13px !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
&-drawerCloseIcon {
|
|
29
|
+
float: right;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
&-addListBtn {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
margin-top: 20px;
|
|
37
|
+
}
|
|
38
|
+
&-tableContainer {
|
|
39
|
+
margin-top: 10px;
|
|
40
|
+
.ant-table {
|
|
41
|
+
height: calc(100vh - 380px);
|
|
42
|
+
min-height: 410px !important; /* 设置表格最小高度 */
|
|
43
|
+
}
|
|
44
|
+
.ant-empty-normal {
|
|
45
|
+
height: 260px; /* 设置表格最小高度 */
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -124,7 +124,7 @@ var DictionaryManagement = function DictionaryManagement() {
|
|
|
124
124
|
}, []);
|
|
125
125
|
//分页搜索
|
|
126
126
|
var getList = function getList() {
|
|
127
|
-
request(apis.dict.
|
|
127
|
+
request(apis.dict.getDictPage, {
|
|
128
128
|
method: 'post',
|
|
129
129
|
data: {
|
|
130
130
|
pageNo: tableParams.current,
|
|
@@ -192,7 +192,8 @@ var DictionaryManagement = function DictionaryManagement() {
|
|
|
192
192
|
columns: columns,
|
|
193
193
|
onChange: handlePage,
|
|
194
194
|
scroll: {
|
|
195
|
-
x: 992
|
|
195
|
+
x: 992,
|
|
196
|
+
y: 390
|
|
196
197
|
}
|
|
197
198
|
}), addDictShow && (/*#__PURE__*/React.createElement(CreateDict, {
|
|
198
199
|
addDictShow: addDictShow,
|
|
@@ -33,10 +33,11 @@ var clear = function clear(_ref) {
|
|
|
33
33
|
request((currentDetail === null || currentDetail === void 0 ? void 0 : currentDetail.id) ? apis.dict.tagUpdate : apis.dict.tagSave, {
|
|
34
34
|
method: 'post',
|
|
35
35
|
data: {
|
|
36
|
+
id: currentDetail === null || currentDetail === void 0 ? void 0 : currentDetail.id,
|
|
36
37
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
37
|
-
|
|
38
|
+
labelName: values.labelName,
|
|
38
39
|
remark: values.remark,
|
|
39
|
-
|
|
40
|
+
labelType: type
|
|
40
41
|
}
|
|
41
42
|
}).then(function (res) {
|
|
42
43
|
if (!res) return;
|
|
@@ -58,7 +59,7 @@ var clear = function clear(_ref) {
|
|
|
58
59
|
useEffect(function () {
|
|
59
60
|
if (currentDetail) {
|
|
60
61
|
formRef.setFieldsValue({
|
|
61
|
-
|
|
62
|
+
labelName: currentDetail.labelName,
|
|
62
63
|
remark: currentDetail.remark
|
|
63
64
|
});
|
|
64
65
|
}
|
|
@@ -70,10 +71,7 @@ var clear = function clear(_ref) {
|
|
|
70
71
|
title: /*#__PURE__*/React.createElement("div", null, currentDetail ? '修改' : '创建', "\u6807\u7B7E", /*#__PURE__*/React.createElement("div", {
|
|
71
72
|
className: "clearLoc-drawerCloseIcon",
|
|
72
73
|
onClick: onClose
|
|
73
|
-
}, /*#__PURE__*/React.createElement(CloseOutlined,
|
|
74
|
-
onPointerEnterCapture: undefined,
|
|
75
|
-
onPointerLeaveCapture: undefined
|
|
76
|
-
}))),
|
|
74
|
+
}, /*#__PURE__*/React.createElement(CloseOutlined, null))),
|
|
77
75
|
onClose: onClose,
|
|
78
76
|
closeIcon: false,
|
|
79
77
|
open: open,
|
|
@@ -94,14 +92,14 @@ var clear = function clear(_ref) {
|
|
|
94
92
|
span: 20
|
|
95
93
|
},
|
|
96
94
|
initialValues: {
|
|
97
|
-
|
|
95
|
+
labelName: '',
|
|
98
96
|
desctiption: ''
|
|
99
97
|
},
|
|
100
98
|
onFinish: onFinish,
|
|
101
99
|
labelAlign: "right"
|
|
102
100
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
103
101
|
label: "\u6807\u7B7E\u540D",
|
|
104
|
-
name: "
|
|
102
|
+
name: "labelName",
|
|
105
103
|
rules: [{
|
|
106
104
|
required: true,
|
|
107
105
|
message: '请输入标签名'
|