@zgfe/modules-dm 1.0.33 → 1.0.34-qirui.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.
package/es/constants/api.d.ts
CHANGED
package/es/constants/api.js
CHANGED
|
@@ -48,7 +48,9 @@ var apis = {
|
|
|
48
48
|
// 更新 埋点方案控制开关状态
|
|
49
49
|
updateControlSwitch: '/zg/web/v2/managementPlan/updateControlSwitch',
|
|
50
50
|
// 导出方案模板
|
|
51
|
-
exportPlanTmp: '/zg/web/v2/managementPlan/downloadPlanTemplate'
|
|
51
|
+
exportPlanTmp: '/zg/web/v2/managementPlan/downloadPlanTemplate',
|
|
52
|
+
// 导出别名模板
|
|
53
|
+
exportAliasTmp: '/zg/web/v2/utm/template'
|
|
52
54
|
};
|
|
53
55
|
// for (const api in apis) {
|
|
54
56
|
// if (api != 'propUpload') {
|
|
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
13
|
+
import { BizGlobalDataContext, IconFont, ajax } from '@zgfe/business-lib';
|
|
14
14
|
import { Input, Button, Select, Table, message, Modal, Upload, Popover } from 'antd';
|
|
15
15
|
import React, { useEffect, useState, useContext } from 'react';
|
|
16
16
|
import './styles/index.less';
|
|
@@ -22,8 +22,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
22
22
|
var classPrefix = 'attr-list';
|
|
23
23
|
var _useContext = useContext(BizGlobalDataContext),
|
|
24
24
|
currentApp = _useContext.currentApp,
|
|
25
|
-
isDemo = _useContext.isDemo
|
|
26
|
-
authority = _useContext.authority;
|
|
25
|
+
isDemo = _useContext.isDemo;
|
|
27
26
|
var isOpen = props.isOpen,
|
|
28
27
|
queryPlanData = props.queryPlanData,
|
|
29
28
|
source = props.source,
|
|
@@ -340,6 +339,10 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
340
339
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
341
340
|
batchId = _useState16[0],
|
|
342
341
|
setBatchId = _useState16[1];
|
|
342
|
+
var _useState17 = useState(false),
|
|
343
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
344
|
+
exportAliasTmp = _useState18[0],
|
|
345
|
+
setExportAliasTmp = _useState18[1];
|
|
343
346
|
var uploadProps = {
|
|
344
347
|
maxCount: 1,
|
|
345
348
|
showUploadList: false,
|
|
@@ -369,10 +372,10 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
369
372
|
}
|
|
370
373
|
};
|
|
371
374
|
// 清空属性值别名excel数据
|
|
372
|
-
var
|
|
373
|
-
|
|
374
|
-
clearFlag =
|
|
375
|
-
setClearFlag =
|
|
375
|
+
var _useState19 = useState(false),
|
|
376
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
377
|
+
clearFlag = _useState20[0],
|
|
378
|
+
setClearFlag = _useState20[1];
|
|
376
379
|
var clearData = function clearData() {
|
|
377
380
|
setAttrExcelData([]);
|
|
378
381
|
setClearFlag(true);
|
|
@@ -455,12 +458,24 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
455
458
|
type: "daochu1"
|
|
456
459
|
})
|
|
457
460
|
}, "\u4E0A\u4F20 excel \u6587\u4EF6")), /*#__PURE__*/React.createElement(Button, {
|
|
461
|
+
loading: exportAliasTmp,
|
|
458
462
|
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
459
463
|
type: "xiazai1"
|
|
460
464
|
}),
|
|
461
465
|
size: "small",
|
|
462
466
|
onClick: function onClick() {
|
|
463
|
-
|
|
467
|
+
setExportAliasTmp(true);
|
|
468
|
+
ajax(apis.exportAliasTmp, {
|
|
469
|
+
method: 'get',
|
|
470
|
+
responseType: 'blob',
|
|
471
|
+
fileName: "".concat(source == 'user' ? '用户' : '事件', "\u5C5E\u6027\u503C\u6A21\u677F"),
|
|
472
|
+
getResponse: true,
|
|
473
|
+
params: {
|
|
474
|
+
fileName: '事件属性值模板.xlsx'
|
|
475
|
+
}
|
|
476
|
+
}).finally(function () {
|
|
477
|
+
setExportAliasTmp(false);
|
|
478
|
+
});
|
|
464
479
|
}
|
|
465
480
|
}, "\u6A21\u677F\u4E0B\u8F7D")), attrExcelData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
466
481
|
className: "clearData",
|
|
@@ -307,7 +307,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
307
307
|
dataIndex: 'event_name',
|
|
308
308
|
key: 'event_name',
|
|
309
309
|
fixed: 'left',
|
|
310
|
-
width:
|
|
310
|
+
width: 380,
|
|
311
311
|
render: function render(text, record, index) {
|
|
312
312
|
if (record.groupId) {
|
|
313
313
|
var _groupCheckedData$rec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34-qirui.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/lodash": "^4.14.182",
|
|
38
38
|
"@umijs/fabric": "^2.8.1",
|
|
39
39
|
"@umijs/test": "^3.0.5",
|
|
40
|
-
"@zgfe/business-lib": "1.1.
|
|
40
|
+
"@zgfe/business-lib": "1.1.96-qirui.0",
|
|
41
41
|
"antd": "4.24.10",
|
|
42
42
|
"dumi": "^1.1.0",
|
|
43
43
|
"father-build": "^1.17.2",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"umi-request": "^1.4.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4bb72f2f78a3b969c52e8ac1dc8a0fd96cebc5ed",
|
|
53
53
|
"gitHooks": {
|
|
54
54
|
"pre-commit": "lint-staged"
|
|
55
55
|
}
|