@zgfe/modules-settings 2.1.0-zhongyuan.4 → 2.1.0-zhongyuan.6
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/constants/api.d.ts +2 -0
- package/es/constants/api.js +5 -2
- package/es/modules/pointMap/createMetaDrawer.js +62 -21
- package/es/modules/pointMap/pageInfo.js +25 -7
- package/es/modules/pointMap/tree.js +91 -62
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +4 -2
- package/package.json +2 -2
package/es/constants/api.d.ts
CHANGED
package/es/constants/api.js
CHANGED
|
@@ -145,7 +145,7 @@ var apis = {
|
|
|
145
145
|
dict: {
|
|
146
146
|
//字典管理
|
|
147
147
|
getDictList: '/zg/web/v2/systemSettings/attr/dict/list',
|
|
148
|
-
getDictPage: '/zg/web/v2/
|
|
148
|
+
getDictPage: '/zg/web/v2/systemSettings/attr/dict/listByPage',
|
|
149
149
|
dictSave: '/zg/web/v2/systemSettings/attr/dict/save',
|
|
150
150
|
dictUpdate: '/zg/web/v2/systemSettings/attr/dict/update',
|
|
151
151
|
dictUpload: '/zg/web/v2/systemSettings/attr/dict/upload',
|
|
@@ -160,7 +160,10 @@ var apis = {
|
|
|
160
160
|
tagDownload: '/zg/web/v2/eventLabel/download',
|
|
161
161
|
tagDelete: '/zg/web/v2/eventLabel/delete',
|
|
162
162
|
//标签模板
|
|
163
|
-
tagTemplate: '/zg/web/v2/eventLabel/template'
|
|
163
|
+
tagTemplate: '/zg/web/v2/eventLabel/template',
|
|
164
|
+
//绑定
|
|
165
|
+
addLabelRelation: '/zg/web/v2/eventLabel/addLabelRelation',
|
|
166
|
+
delLabelRelation: '/zg/web/v2/eventLabel/delLabelRelation'
|
|
164
167
|
},
|
|
165
168
|
// 查询公司下所有用户
|
|
166
169
|
queryUserByCompanyId: '/zg/web/v2/user/queryUserByCompanyId',
|
|
@@ -23,6 +23,8 @@ import React, { useContext, useEffect, useState } from 'react';
|
|
|
23
23
|
import _ from 'lodash';
|
|
24
24
|
import BizEditText from './editTxt';
|
|
25
25
|
import './styles/index.less';
|
|
26
|
+
import request from '../../utils/ajax';
|
|
27
|
+
import apis from '../../constants/api';
|
|
26
28
|
var CreateMeta = function CreateMeta(props) {
|
|
27
29
|
var classPrefix = 'setting-create-meta-drawer';
|
|
28
30
|
var _useContext = useContext(BizGlobalDataContext),
|
|
@@ -123,7 +125,8 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
123
125
|
aliasName: values.aliasName,
|
|
124
126
|
triggeringOccasion: values.triggeringOccasion,
|
|
125
127
|
del: 1,
|
|
126
|
-
eventAttrList: eventAttrList
|
|
128
|
+
eventAttrList: eventAttrList,
|
|
129
|
+
bizTagId: bizTagId
|
|
127
130
|
}, 'create');
|
|
128
131
|
}
|
|
129
132
|
}
|
|
@@ -433,6 +436,8 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
433
436
|
useEffect(function () {
|
|
434
437
|
var _Y = getTableScroll(545, 'dataManageCreateMetaTable');
|
|
435
438
|
setScrollY(_Y);
|
|
439
|
+
getTagList(2);
|
|
440
|
+
getTagList(3);
|
|
436
441
|
}, []);
|
|
437
442
|
var onClose = function onClose() {
|
|
438
443
|
if (isChange) {
|
|
@@ -461,11 +466,58 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
461
466
|
})));
|
|
462
467
|
}
|
|
463
468
|
};
|
|
464
|
-
|
|
465
|
-
var _useState17 = useState(
|
|
469
|
+
//标签列表数据 2:业务标签 3:触发标签
|
|
470
|
+
var _useState17 = useState([]),
|
|
466
471
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
467
|
-
|
|
468
|
-
|
|
472
|
+
bizTag = _useState18[0],
|
|
473
|
+
setBizTag = _useState18[1];
|
|
474
|
+
var _useState19 = useState(),
|
|
475
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
476
|
+
bizTagId = _useState20[0],
|
|
477
|
+
setBizTagId = _useState20[1];
|
|
478
|
+
var _useState21 = useState([]),
|
|
479
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
480
|
+
triTag = _useState22[0],
|
|
481
|
+
setTriTag = _useState22[1];
|
|
482
|
+
var _useState23 = useState(),
|
|
483
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
484
|
+
triTagId = _useState24[0],
|
|
485
|
+
setTriTagId = _useState24[1];
|
|
486
|
+
var getTagList = function getTagList(type) {
|
|
487
|
+
request(apis.dict.getTagList, {
|
|
488
|
+
method: 'post',
|
|
489
|
+
data: {
|
|
490
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
491
|
+
labelType: type
|
|
492
|
+
}
|
|
493
|
+
}).then(function (res) {
|
|
494
|
+
if (res.code == '100000') {
|
|
495
|
+
switch (type) {
|
|
496
|
+
case 2:
|
|
497
|
+
setBizTag(res.data.map(function (res) {
|
|
498
|
+
return {
|
|
499
|
+
label: res.name,
|
|
500
|
+
value: res.id
|
|
501
|
+
};
|
|
502
|
+
}));
|
|
503
|
+
break;
|
|
504
|
+
case 3:
|
|
505
|
+
setTriTag(res.data.map(function (res) {
|
|
506
|
+
return {
|
|
507
|
+
label: res.name,
|
|
508
|
+
value: res.id
|
|
509
|
+
};
|
|
510
|
+
}));
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
// 自定义验证规则
|
|
517
|
+
var _useState25 = useState(''),
|
|
518
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
519
|
+
inputText = _useState26[0],
|
|
520
|
+
setInputText = _useState26[1];
|
|
469
521
|
// true 验证通过
|
|
470
522
|
var validateContainsUnderscore = function validateContainsUnderscore(value) {
|
|
471
523
|
if (!isChange) {
|
|
@@ -567,14 +619,9 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
567
619
|
},
|
|
568
620
|
disabled: homeType == 'update' || homeType == 'get',
|
|
569
621
|
placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u6807\u7B7E",
|
|
570
|
-
options:
|
|
571
|
-
|
|
572
|
-
value
|
|
573
|
-
}, {
|
|
574
|
-
label: '业务标签2',
|
|
575
|
-
value: 'tagJson'
|
|
576
|
-
}],
|
|
577
|
-
onChange: function onChange() {
|
|
622
|
+
options: triTag,
|
|
623
|
+
onChange: function onChange(value) {
|
|
624
|
+
setBizTagId(value);
|
|
578
625
|
setIsChange(true);
|
|
579
626
|
}
|
|
580
627
|
}), "\u6216", /*#__PURE__*/React.createElement(Input, {
|
|
@@ -591,19 +638,13 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
591
638
|
setIsChange(true);
|
|
592
639
|
}
|
|
593
640
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
594
|
-
name: "
|
|
641
|
+
name: "businessLabelId",
|
|
595
642
|
label: "\u4E1A\u52A1\u6807\u7B7E"
|
|
596
643
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
597
644
|
allowClear: true,
|
|
598
645
|
disabled: homeType == 'update' || homeType == 'get',
|
|
599
646
|
placeholder: "\u8BF7\u8F93\u5165\u4E1A\u52A1\u6807\u7B7E",
|
|
600
|
-
options:
|
|
601
|
-
label: '业务标签1',
|
|
602
|
-
value: '111'
|
|
603
|
-
}, {
|
|
604
|
-
label: '业务标签2',
|
|
605
|
-
value: 'tagJson'
|
|
606
|
-
}],
|
|
647
|
+
options: bizTag,
|
|
607
648
|
onChange: function onChange() {
|
|
608
649
|
setIsChange(true);
|
|
609
650
|
}
|
|
@@ -217,7 +217,10 @@ var PageInfo = function PageInfo(props) {
|
|
|
217
217
|
index: index,
|
|
218
218
|
approvalStatus: item.approvalStatus,
|
|
219
219
|
operationType: item.operationType,
|
|
220
|
-
isOnline: item.isOnline || 0
|
|
220
|
+
isOnline: item.isOnline || 0,
|
|
221
|
+
businessLabel: item.businessLabel,
|
|
222
|
+
triggerLabel: item.triggerLabel,
|
|
223
|
+
labels: item.labels
|
|
221
224
|
};
|
|
222
225
|
}) : []);
|
|
223
226
|
//计算出当前上线和下线总合数量
|
|
@@ -518,18 +521,18 @@ var PageInfo = function PageInfo(props) {
|
|
|
518
521
|
className: "".concat(classPrefix, "-content-popoverTag-item")
|
|
519
522
|
}, /*#__PURE__*/React.createElement("span", {
|
|
520
523
|
className: "".concat(classPrefix, "-content-popoverTag-label")
|
|
521
|
-
}, "\u4E1A\u52A1\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Tag, {
|
|
524
|
+
}, "\u4E1A\u52A1\u6807\u7B7E:"), record.businessLabel && /*#__PURE__*/React.createElement(Tag, {
|
|
522
525
|
color: "blue"
|
|
523
|
-
},
|
|
526
|
+
}, record.businessLabel.labelName)), /*#__PURE__*/React.createElement("div", {
|
|
524
527
|
className: "".concat(classPrefix, "-content-popoverTag-item")
|
|
525
528
|
}, /*#__PURE__*/React.createElement("span", {
|
|
526
529
|
className: "".concat(classPrefix, "-content-popoverTag-label")
|
|
527
|
-
}, "\u89E6\u53D1\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Tag, {
|
|
530
|
+
}, "\u89E6\u53D1\u6807\u7B7E:"), record.triggerLabel && /*#__PURE__*/React.createElement(Tag, {
|
|
528
531
|
color: "orange"
|
|
529
|
-
},
|
|
532
|
+
}, record.triggerLabel.labelName)));
|
|
530
533
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
531
534
|
content: content,
|
|
532
|
-
title: eventName || ''
|
|
535
|
+
title: sliceName(eventName) || ''
|
|
533
536
|
}, /*#__PURE__*/React.createElement("a", {
|
|
534
537
|
onClick: function onClick() {
|
|
535
538
|
if (!isSelect) {
|
|
@@ -552,7 +555,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
552
555
|
setMetaDataIndex(index);
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
|
-
}, eventName ?
|
|
558
|
+
}, eventName ? sliceName(record) : '选择元事件', !eventName && /*#__PURE__*/React.createElement(IconFont, {
|
|
556
559
|
type: "zhuanfa",
|
|
557
560
|
style: {
|
|
558
561
|
marginLeft: 8
|
|
@@ -914,6 +917,21 @@ var PageInfo = function PageInfo(props) {
|
|
|
914
917
|
setRecordShow(true);
|
|
915
918
|
setEventData(row);
|
|
916
919
|
};
|
|
920
|
+
//拼接名称
|
|
921
|
+
var sliceName = function sliceName(record) {
|
|
922
|
+
var _record$businessLabel, _record$triggerLabel;
|
|
923
|
+
var point = record.labels && record.labels.filter(function (res) {
|
|
924
|
+
return res.labelType == 1;
|
|
925
|
+
}).map(function (res) {
|
|
926
|
+
return res.labelName;
|
|
927
|
+
}).join('_') || '';
|
|
928
|
+
var biz = record.businessLabel && ((_record$businessLabel = record.businessLabel) === null || _record$businessLabel === void 0 ? void 0 : _record$businessLabel.labelName) || '';
|
|
929
|
+
var trig = record.triggerLabel && ((_record$triggerLabel = record.triggerLabel) === null || _record$triggerLabel === void 0 ? void 0 : _record$triggerLabel.labelName) || '' || '';
|
|
930
|
+
var arr = [biz, point, trig, record.eventName].filter(function (res) {
|
|
931
|
+
return res;
|
|
932
|
+
}).join('-');
|
|
933
|
+
return arr;
|
|
934
|
+
};
|
|
917
935
|
return /*#__PURE__*/React.createElement("div", {
|
|
918
936
|
className: "".concat(classPrefix)
|
|
919
937
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -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);
|
|
@@ -143,12 +145,17 @@ var pointMap = function pointMap(props) {
|
|
|
143
145
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
144
146
|
isShowDel = _useState32[0],
|
|
145
147
|
setIsShowDel = _useState32[1];
|
|
146
|
-
var _useState33 = useState(
|
|
148
|
+
var _useState33 = useState([]),
|
|
147
149
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
pointList = _useState34[0],
|
|
151
|
+
setPointList = _useState34[1];
|
|
152
|
+
var _useState35 = useState(!!props.pageStatusIsEdit),
|
|
153
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
154
|
+
pageStatusIsEdit = _useState36[0],
|
|
155
|
+
setPageStatusIsEdit = _useState36[1];
|
|
150
156
|
useEffect(function () {
|
|
151
157
|
pointGetVersion();
|
|
158
|
+
getPointList();
|
|
152
159
|
}, []);
|
|
153
160
|
useEffect(function () {
|
|
154
161
|
setPageStatusIsEdit(!!props.pageStatusIsEdit);
|
|
@@ -194,7 +201,7 @@ var pointMap = function pointMap(props) {
|
|
|
194
201
|
}
|
|
195
202
|
}).then(function (res) {
|
|
196
203
|
if (res && res.code === '100000') {
|
|
197
|
-
pageNum = res === null || res === void 0 ? void 0 : res.data.length;
|
|
204
|
+
pageNum = (res === null || res === void 0 ? void 0 : res.data.length) + 1;
|
|
198
205
|
setTreeData(formatTreeData((res === null || res === void 0 ? void 0 : res.data) || []));
|
|
199
206
|
setTreeArr(formatTreeArr((res === null || res === void 0 ? void 0 : res.data) || [], [], '') || []);
|
|
200
207
|
if (!selectedKeys) {
|
|
@@ -211,6 +218,25 @@ var pointMap = function pointMap(props) {
|
|
|
211
218
|
console.log(err);
|
|
212
219
|
});
|
|
213
220
|
};
|
|
221
|
+
//查询位置标签
|
|
222
|
+
var getPointList = function getPointList() {
|
|
223
|
+
request(apis.dict.getTagList, {
|
|
224
|
+
method: 'post',
|
|
225
|
+
data: {
|
|
226
|
+
labelType: 1,
|
|
227
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
228
|
+
}
|
|
229
|
+
}).then(function (res) {
|
|
230
|
+
if (res.code == 100000) {
|
|
231
|
+
setPointList(res.data.map(function (res) {
|
|
232
|
+
return {
|
|
233
|
+
label: res.labelName,
|
|
234
|
+
value: res.id
|
|
235
|
+
};
|
|
236
|
+
}));
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
};
|
|
214
240
|
var addPage = function addPage(operationType, parentId, targetPageId) {
|
|
215
241
|
request(apis.createPage, {
|
|
216
242
|
method: 'post',
|
|
@@ -343,6 +369,7 @@ var pointMap = function pointMap(props) {
|
|
|
343
369
|
var titleRender = function titleRender(nodeData) {
|
|
344
370
|
var onItemClick = function onItemClick(_ref) {
|
|
345
371
|
var key = _ref.key;
|
|
372
|
+
console.log(key, 'key');
|
|
346
373
|
switch (key) {
|
|
347
374
|
case '0':
|
|
348
375
|
if (nodeData.storey >= 20) {
|
|
@@ -374,17 +401,16 @@ var pointMap = function pointMap(props) {
|
|
|
374
401
|
// message.info(`Click on item ${key}`);
|
|
375
402
|
};
|
|
376
403
|
//位置标签list
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}, "gold"));
|
|
404
|
+
var color = ['magenta', 'red', 'volcano', 'orange', 'gold', 'lime', 'green', 'cyan', 'blue', 'geekblue', 'purple'];
|
|
405
|
+
var pointContent = /*#__PURE__*/React.createElement(React.Fragment, null, nodeData.labels.map(function (res, index) {
|
|
406
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
407
|
+
key: index,
|
|
408
|
+
color: color[index]
|
|
409
|
+
}, res.labelName);
|
|
410
|
+
}));
|
|
411
|
+
var pointIds = nodeData.labels.map(function (res) {
|
|
412
|
+
return res.id;
|
|
413
|
+
});
|
|
388
414
|
return /*#__PURE__*/React.createElement("div", {
|
|
389
415
|
className: "".concat(classPrefix, "-tree-item")
|
|
390
416
|
}, changeNameId === nodeData.id ? (/*#__PURE__*/React.createElement(Input, {
|
|
@@ -431,21 +457,11 @@ var pointMap = function pointMap(props) {
|
|
|
431
457
|
}
|
|
432
458
|
}, /*#__PURE__*/React.createElement("span", {
|
|
433
459
|
className: "".concat(classPrefix, "-tree-item-title-name")
|
|
434
|
-
}, nodeData.name, " (
|
|
460
|
+
}, nodeData.name, " ", nodeData.pointsum ? "(".concat(nodeData.pointsum, ")") : ''), /*#__PURE__*/React.createElement(Popover, {
|
|
435
461
|
placement: "topLeft",
|
|
436
462
|
title: "\u4F4D\u7F6E\u6807\u7B7E",
|
|
437
463
|
content: pointContent
|
|
438
|
-
}, /*#__PURE__*/React.createElement(
|
|
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, {
|
|
464
|
+
}, pointContent)))), /*#__PURE__*/React.createElement(Dropdown, {
|
|
449
465
|
disabled: !authority[1724922805],
|
|
450
466
|
placement: 'bottomRight',
|
|
451
467
|
menu: {
|
|
@@ -471,23 +487,18 @@ var pointMap = function pointMap(props) {
|
|
|
471
487
|
label: '选择位置标签',
|
|
472
488
|
icon: /*#__PURE__*/React.createElement(EnvironmentOutlined, null),
|
|
473
489
|
key: '5',
|
|
474
|
-
children:
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
onChangeTag(e, 'key');
|
|
487
|
-
}
|
|
488
|
-
}, "\u6807\u7B7E2")),
|
|
489
|
-
disabled: true
|
|
490
|
-
}]
|
|
490
|
+
children: pointList.map(function (res) {
|
|
491
|
+
return {
|
|
492
|
+
key: '5' + res.value,
|
|
493
|
+
label: (/*#__PURE__*/React.createElement(Checkbox, {
|
|
494
|
+
defaultChecked: pointIds.indexOf(res.value) != -1,
|
|
495
|
+
onChange: function onChange(e) {
|
|
496
|
+
onChangeTag(e, nodeData.id, res.value);
|
|
497
|
+
}
|
|
498
|
+
}, res.label)),
|
|
499
|
+
disabled: true
|
|
500
|
+
};
|
|
501
|
+
})
|
|
491
502
|
}, {
|
|
492
503
|
type: 'divider'
|
|
493
504
|
}, {
|
|
@@ -518,31 +529,47 @@ var pointMap = function pointMap(props) {
|
|
|
518
529
|
type: "gengduocaozuo1"
|
|
519
530
|
})));
|
|
520
531
|
};
|
|
521
|
-
var onChangeTag = function onChangeTag(e,
|
|
522
|
-
|
|
532
|
+
var onChangeTag = function onChangeTag(e, nodeId, value) {
|
|
533
|
+
labelRelation(e.target.checked, nodeId, value);
|
|
523
534
|
};
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
535
|
+
//绑定和解绑标签
|
|
536
|
+
var labelRelation = function labelRelation(checked, nodeId, tagId) {
|
|
537
|
+
request(checked ? apis.dict.addLabelRelation : apis.dict.delLabelRelation, {
|
|
538
|
+
method: 'post',
|
|
539
|
+
data: {
|
|
540
|
+
id: tagId,
|
|
541
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
542
|
+
labelType: 1,
|
|
543
|
+
eventId: nodeId
|
|
544
|
+
}
|
|
545
|
+
}).then(function (res) {
|
|
546
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
547
|
+
getPointTree();
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
};
|
|
551
|
+
var _useState37 = useState(false),
|
|
552
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
|
553
|
+
isOpen = _useState38[0],
|
|
554
|
+
setIsOpen = _useState38[1];
|
|
528
555
|
var downloadHelpFile = function downloadHelpFile() {
|
|
529
556
|
window.open("/\u63A8\u8350\u57CB\u70B9\u65B9\u6848.xlsx");
|
|
530
557
|
};
|
|
531
558
|
// 分享看板二维码
|
|
532
|
-
var
|
|
533
|
-
_useState38 = _slicedToArray(_useState37, 2),
|
|
534
|
-
qrCodeShare = _useState38[0],
|
|
535
|
-
setqrCodeShare = _useState38[1];
|
|
536
|
-
// 分享看板二维码-显示控制
|
|
537
|
-
var _useState39 = useState(false),
|
|
559
|
+
var _useState39 = useState(''),
|
|
538
560
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
//
|
|
561
|
+
qrCodeShare = _useState40[0],
|
|
562
|
+
setqrCodeShare = _useState40[1];
|
|
563
|
+
// 分享看板二维码-显示控制
|
|
542
564
|
var _useState41 = useState(false),
|
|
543
565
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
544
|
-
|
|
545
|
-
|
|
566
|
+
qrCodeShareShow = _useState42[0],
|
|
567
|
+
setqrCodeShareShow = _useState42[1];
|
|
568
|
+
// 二维码加载中
|
|
569
|
+
var _useState43 = useState(false),
|
|
570
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
571
|
+
qrCodeLoading = _useState44[0],
|
|
572
|
+
setQrCodeLoading = _useState44[1];
|
|
546
573
|
var onOpenChangeShare = function onOpenChangeShare(open) {
|
|
547
574
|
setqrCodeShareShow(open);
|
|
548
575
|
if (qrCodeShare === '') {
|
|
@@ -645,6 +672,7 @@ var pointMap = function pointMap(props) {
|
|
|
645
672
|
}],
|
|
646
673
|
onChange: function onChange(value) {
|
|
647
674
|
setSearchType(value);
|
|
675
|
+
setValue(undefined);
|
|
648
676
|
}
|
|
649
677
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
650
678
|
value: value,
|
|
@@ -661,6 +689,7 @@ var pointMap = function pointMap(props) {
|
|
|
661
689
|
value: 'id',
|
|
662
690
|
label: 'name'
|
|
663
691
|
},
|
|
692
|
+
allowClear: true,
|
|
664
693
|
options: treeArr,
|
|
665
694
|
popupClassName: "".concat(classPrefix, "-search-popup")
|
|
666
695
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -124,12 +124,13 @@ var locationTagManagement = function locationTagManagement(_ref) {
|
|
|
124
124
|
exportLoading = _useState10[0],
|
|
125
125
|
setExportLoading = _useState10[1];
|
|
126
126
|
var onExport = function onExport() {
|
|
127
|
-
if (
|
|
127
|
+
if (exportLoading) return;
|
|
128
128
|
setExportLoading(true);
|
|
129
129
|
request(apis.dict.tagDownload, {
|
|
130
130
|
method: 'post',
|
|
131
131
|
data: {
|
|
132
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
132
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
133
|
+
labelType: type
|
|
133
134
|
},
|
|
134
135
|
responseType: 'blob'
|
|
135
136
|
}).then(function () {
|
|
@@ -251,6 +252,7 @@ var locationTagManagement = function locationTagManagement(_ref) {
|
|
|
251
252
|
},
|
|
252
253
|
onSuccess: function onSuccess(result) {
|
|
253
254
|
setOpenImportModal(false);
|
|
255
|
+
getList();
|
|
254
256
|
}
|
|
255
257
|
})));
|
|
256
258
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.1.0-zhongyuan.
|
|
3
|
+
"version": "2.1.0-zhongyuan.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "d683909a541176c20d6bc50e315559251fa362a3",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|