@zgfe/modules-settings 2.0.0-zhongyuan.9 → 2.1.0-zhongyuan-set.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.
- package/es/components/importMetaDialog/index.d.ts +13 -0
- package/es/components/importMetaDialog/index.js +217 -0
- package/es/components/importMetaDialog/styles/index.less +115 -0
- package/es/constants/api.d.ts +30 -0
- package/es/constants/api.js +43 -1
- 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.d.ts +13 -0
- package/es/modules/companySetting/application/index.js +276 -104
- package/es/modules/companySetting/application/index.less +32 -14
- 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 +30 -102
- package/es/modules/createDemand/constants.d.ts +15 -2
- package/es/modules/createDemand/constants.js +57 -4
- package/es/modules/createDemand/demo/selectPoint.js +1 -2
- package/es/modules/createDemand/index.d.ts +0 -1
- package/es/modules/createDemand/index.js +793 -179
- package/es/modules/createDemand/styles/index.less +127 -1
- 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 +174 -178
- package/es/modules/demandManage/styles/index.less +155 -215
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +6 -6
- package/es/modules/personalSetting/demo/index.d.ts +3 -0
- package/es/modules/personalSetting/demo/index.js +12 -0
- package/es/modules/personalSetting/index.js +11 -1
- package/es/modules/personalSetting/info/index.js +23 -5
- package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
- package/es/modules/pointMap/createMetaDrawer.js +827 -0
- package/es/modules/pointMap/pageInfo.js +401 -179
- package/es/modules/pointMap/record.d.ts +7 -0
- package/es/modules/pointMap/record.js +521 -0
- package/es/modules/pointMap/styles/index.less +127 -0
- package/es/modules/pointMap/styles/pageInfo.less +195 -0
- package/es/modules/pointMap/styles/tree.css +164 -145
- package/es/modules/pointMap/styles/tree.less +174 -149
- package/es/modules/pointMap/tree.js +232 -88
- package/es/modules/pointMap/types.d.ts +88 -0
- package/es/modules/pointMap/types.js +1 -0
- package/es/modules/systemSetting/Dictionary.d.ts +5 -2
- package/es/modules/systemSetting/Dictionary.js +54 -370
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +245 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +207 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +124 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +264 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.js +16 -16
- package/es/types/personal.d.ts +1 -0
- package/package.json +74 -74
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
declare const ImportModal: React.FC<{
|
|
4
|
+
onCancel?: () => void;
|
|
5
|
+
onSuccess?: (result: any) => void;
|
|
6
|
+
isExportList?: Boolean;
|
|
7
|
+
downloadTempleUrl: string;
|
|
8
|
+
uploadFile: string;
|
|
9
|
+
fileName?: string;
|
|
10
|
+
params?: any;
|
|
11
|
+
showHistory?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export default ImportModal;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
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; } }
|
|
10
|
+
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; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
import { BizDialog, BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
|
+
import React, { useContext, useState } from 'react';
|
|
15
|
+
import { Upload, Spin, message, Button, Modal } from 'antd';
|
|
16
|
+
import { LoadingOutlined } from '@ant-design/icons';
|
|
17
|
+
import './styles/index.less';
|
|
18
|
+
import request from '../../utils/ajax';
|
|
19
|
+
var Dragger = Upload.Dragger;
|
|
20
|
+
var classPrefix = 'import-meta-modal';
|
|
21
|
+
var ImportModal = function ImportModal(props) {
|
|
22
|
+
//导入详情
|
|
23
|
+
var _useState = useState(false),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
openImportModalResult = _useState2[0],
|
|
26
|
+
setOpenImportModalResult = _useState2[1];
|
|
27
|
+
var _useState3 = useState(),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
errorLoc = _useState4[0],
|
|
30
|
+
setErrorLoc = _useState4[1];
|
|
31
|
+
var handleImportResultOk = function handleImportResultOk() {
|
|
32
|
+
props.onSuccess && props.onSuccess({});
|
|
33
|
+
setErrorLoc(undefined);
|
|
34
|
+
};
|
|
35
|
+
var _useState5 = useState(),
|
|
36
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
37
|
+
fileData = _useState6[0],
|
|
38
|
+
setFileData = _useState6[1];
|
|
39
|
+
var _useState7 = useState(false),
|
|
40
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
41
|
+
uploading = _useState8[0],
|
|
42
|
+
setUploading = _useState8[1];
|
|
43
|
+
var _useState9 = useState(false),
|
|
44
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
45
|
+
loading = _useState10[0],
|
|
46
|
+
setLoading = _useState10[1];
|
|
47
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
48
|
+
currentApp = _useContext.currentApp,
|
|
49
|
+
isDemo = _useContext.isDemo;
|
|
50
|
+
var UploadProps = {
|
|
51
|
+
name: 'file',
|
|
52
|
+
maxCount: 1,
|
|
53
|
+
accept: '.xls,.xlsx',
|
|
54
|
+
showUploadList: false,
|
|
55
|
+
onChange: function onChange(info) {
|
|
56
|
+
var _info$file = info.file,
|
|
57
|
+
status = _info$file.status,
|
|
58
|
+
size = _info$file.size;
|
|
59
|
+
var isLt10M = size / 1024 / 1024 < 10;
|
|
60
|
+
setUploading(status === 'uploading');
|
|
61
|
+
if (status !== 'uploading') {
|
|
62
|
+
if (info.fileList.length > 0 && isLt10M) {
|
|
63
|
+
setFileData(info.fileList[0].originFileObj);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (status === 'removed') {} else if (status === 'error') {}
|
|
67
|
+
},
|
|
68
|
+
beforeUpload: function beforeUpload(file) {
|
|
69
|
+
var isLt10M = file.size / 1024 / 1024 < 10;
|
|
70
|
+
if (!isLt10M) {
|
|
71
|
+
message.error('支持 xls、xlsx 格式,最大10M');
|
|
72
|
+
}
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
// 下载模板
|
|
77
|
+
var onDownloadTemplate = function onDownloadTemplate() {
|
|
78
|
+
// window.open(`/元数据-批量上传事件模板.xlsx`);
|
|
79
|
+
request(props.downloadTempleUrl, {
|
|
80
|
+
method: 'post',
|
|
81
|
+
data: {},
|
|
82
|
+
responseType: 'blob',
|
|
83
|
+
fileName: props.fileName || '导入模板'
|
|
84
|
+
}).then(function (res) {});
|
|
85
|
+
};
|
|
86
|
+
// 上传文件
|
|
87
|
+
var onOk = function onOk() {
|
|
88
|
+
if (!fileData) {
|
|
89
|
+
message.warning('请选择文件');
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
var formData = new FormData();
|
|
93
|
+
formData.append('appId', currentApp.appId);
|
|
94
|
+
formData.append('file', fileData);
|
|
95
|
+
if (props.params) {
|
|
96
|
+
for (var key in props.params) {
|
|
97
|
+
formData.append(key, props.params[key]);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
setLoading(true);
|
|
101
|
+
request(props.uploadFile, {
|
|
102
|
+
method: 'post',
|
|
103
|
+
data: formData
|
|
104
|
+
}).then(function (res) {
|
|
105
|
+
if (!res) return;
|
|
106
|
+
//进入历史记录
|
|
107
|
+
if (props.showHistory && res.data) {
|
|
108
|
+
setOpenImportModalResult(true);
|
|
109
|
+
setErrorLoc({
|
|
110
|
+
successLocCount: res.data['导入成功条数'],
|
|
111
|
+
failedLocCount: res.data['导入失败条数'],
|
|
112
|
+
failedLocNames: res.data['导入失败标签名']
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
message.success('导入成功');
|
|
116
|
+
props.onSuccess && props.onSuccess(res.data);
|
|
117
|
+
}
|
|
118
|
+
}).catch(function (e) {
|
|
119
|
+
console.log(e);
|
|
120
|
+
}).finally(function () {
|
|
121
|
+
setLoading(false);
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BizDialog, {
|
|
125
|
+
title: "\u5BFC\u5165\u5C5E\u6027\u503C",
|
|
126
|
+
open: true,
|
|
127
|
+
className: classPrefix,
|
|
128
|
+
onCancel: props.onCancel,
|
|
129
|
+
onOk: onOk,
|
|
130
|
+
confirmLoading: loading,
|
|
131
|
+
okButtonProps: {
|
|
132
|
+
disabled: isDemo
|
|
133
|
+
},
|
|
134
|
+
closable: true,
|
|
135
|
+
closeIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
136
|
+
type: "qingchu"
|
|
137
|
+
}),
|
|
138
|
+
footer: /*#__PURE__*/React.createElement("div", {
|
|
139
|
+
className: "".concat(classPrefix, "-footer")
|
|
140
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
141
|
+
className: "".concat(classPrefix, "-export-btn"),
|
|
142
|
+
onClick: onDownloadTemplate
|
|
143
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
144
|
+
type: "xiazai1",
|
|
145
|
+
className: "".concat(classPrefix, "-icon-export")
|
|
146
|
+
}), "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
147
|
+
onClick: props.onCancel
|
|
148
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
149
|
+
type: "primary",
|
|
150
|
+
onClick: onOk
|
|
151
|
+
}, "\u786E\u5B9A")))
|
|
152
|
+
}, /*#__PURE__*/React.createElement(Spin, {
|
|
153
|
+
className: "".concat(classPrefix, "-spin"),
|
|
154
|
+
spinning: uploading,
|
|
155
|
+
tip: "\u4E0A\u4F20\u4E2D",
|
|
156
|
+
indicator: /*#__PURE__*/React.createElement(LoadingOutlined, {
|
|
157
|
+
className: "".concat(classPrefix, "-spin-icon"),
|
|
158
|
+
spin: true,
|
|
159
|
+
onPointerEnterCapture: undefined,
|
|
160
|
+
onPointerLeaveCapture: undefined
|
|
161
|
+
})
|
|
162
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
163
|
+
style: {
|
|
164
|
+
marginBottom: 16
|
|
165
|
+
}
|
|
166
|
+
}, "\u5141\u8BB8\u4ECE\u6587\u4EF6\u6279\u91CF\u521B\u5EFA\u5C5E\u6027\u503C\u3002"), fileData ? (/*#__PURE__*/React.createElement("div", {
|
|
167
|
+
className: "".concat(classPrefix, "-show-container")
|
|
168
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
169
|
+
className: "".concat(classPrefix, "-show-container-content")
|
|
170
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
171
|
+
type: "file-excel",
|
|
172
|
+
className: "".concat(classPrefix, "-show-container-content-icon")
|
|
173
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
174
|
+
className: "".concat(classPrefix, "-show-container-content-file")
|
|
175
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
176
|
+
className: "".concat(classPrefix, "-show-container-content-file-title")
|
|
177
|
+
}, fileData.name), /*#__PURE__*/React.createElement("div", {
|
|
178
|
+
className: "".concat(classPrefix, "-show-container-content-file-size")
|
|
179
|
+
}, fileData.size ? (fileData.size / 1024).toFixed(1) : '', " kb"))), /*#__PURE__*/React.createElement(Upload, _objectSpread({}, UploadProps), /*#__PURE__*/React.createElement("a", {
|
|
180
|
+
className: "".concat(classPrefix, "-upload-txt")
|
|
181
|
+
}, "\u91CD\u65B0\u4E0A\u4F20")))) : (/*#__PURE__*/React.createElement(Dragger, _objectSpread({
|
|
182
|
+
className: "".concat(classPrefix, "-export-container")
|
|
183
|
+
}, UploadProps), /*#__PURE__*/React.createElement(IconFont, {
|
|
184
|
+
type: "file-add",
|
|
185
|
+
className: "".concat(classPrefix, "-icon-file")
|
|
186
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
187
|
+
className: "".concat(classPrefix, "-export-container-h1")
|
|
188
|
+
}, "\u5C06\u6570\u636E\u6587\u4EF6\u62D6\u5230\u6B64\u5904 \u6216", /*#__PURE__*/React.createElement("a", null, "\u70B9\u51FB\u4E0A\u4F20")), /*#__PURE__*/React.createElement("div", {
|
|
189
|
+
className: "".concat(classPrefix, "-export-container-h2")
|
|
190
|
+
}, "\u652F\u6301 xls\u3001xlsx \u683C\u5F0F\uFF0C\u6700\u592710M"))))), /*#__PURE__*/React.createElement(Modal, {
|
|
191
|
+
title: "\u5BFC\u5165\u6807\u7B7E",
|
|
192
|
+
open: openImportModalResult,
|
|
193
|
+
className: "exportList-importModal",
|
|
194
|
+
width: 600,
|
|
195
|
+
onOk: handleImportResultOk,
|
|
196
|
+
onCancel: handleImportResultOk,
|
|
197
|
+
footer: [/*#__PURE__*/React.createElement(Button, {
|
|
198
|
+
type: "primary",
|
|
199
|
+
onClick: handleImportResultOk
|
|
200
|
+
}, "\u786E\u5B9A")]
|
|
201
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
202
|
+
className: "exportList-importModal-content"
|
|
203
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
204
|
+
className: "exportList-importModal-tip"
|
|
205
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
206
|
+
type: "tishi1",
|
|
207
|
+
size: 16,
|
|
208
|
+
className: "icon"
|
|
209
|
+
}), "\u5BFC\u5165\u6210\u529F", errorLoc && errorLoc.successLocCount, "\u6761\uFF0C\u5BFC\u5165\u5931\u8D25", errorLoc && errorLoc.failedLocCount, "\u6761"), /*#__PURE__*/React.createElement("p", null, "\u5BFC\u5165\u5931\u8D25\u6807\u7B7E\u540D\uFF1A"), /*#__PURE__*/React.createElement("div", {
|
|
210
|
+
className: "exportList-importModal-list"
|
|
211
|
+
}, errorLoc === null || errorLoc === void 0 ? void 0 : errorLoc.failedLocNames.map(function (o, index) {
|
|
212
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
213
|
+
key: index
|
|
214
|
+
}, o);
|
|
215
|
+
})))));
|
|
216
|
+
};
|
|
217
|
+
export default ImportModal;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.import-meta-modal {
|
|
4
|
+
&-icon-file {
|
|
5
|
+
color: @primary-color;
|
|
6
|
+
font-size: 48px !important;
|
|
7
|
+
}
|
|
8
|
+
&-icon-export {
|
|
9
|
+
margin-right: @margin-xss;
|
|
10
|
+
}
|
|
11
|
+
&-export-btn {
|
|
12
|
+
display: block;
|
|
13
|
+
width: fit-content;
|
|
14
|
+
// margin-top: @margin-md;
|
|
15
|
+
}
|
|
16
|
+
.ant-upload.ant-upload-drag {
|
|
17
|
+
background: #fafafb;
|
|
18
|
+
/* io/中性/N2-置灰信息 */
|
|
19
|
+
border: 1px dashed #ccd0d4;
|
|
20
|
+
}
|
|
21
|
+
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
+
padding: 40px 0;
|
|
23
|
+
}
|
|
24
|
+
&-export-container {
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
&-h1 {
|
|
27
|
+
margin-top: -8px;
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
&-h2 {
|
|
31
|
+
color: @text-color-secondary;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-show-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
padding: 24px;
|
|
41
|
+
background: #fafafb;
|
|
42
|
+
/* io/中性/N1-按钮边框 线色 */
|
|
43
|
+
border: 1px solid #e6e7ea;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
&-content {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
&-icon {
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
color: @primary-color;
|
|
51
|
+
font-size: 40px !important;
|
|
52
|
+
}
|
|
53
|
+
&-file {
|
|
54
|
+
&-title {
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
}
|
|
57
|
+
&-size {
|
|
58
|
+
color: @text-color-secondary;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-spin {
|
|
66
|
+
background: #fafafb;
|
|
67
|
+
border: 1px solid #e6e7ea;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
&-icon.anticon {
|
|
70
|
+
color: @primary-color;
|
|
71
|
+
font-size: 24px;
|
|
72
|
+
}
|
|
73
|
+
.ant-spin-text {
|
|
74
|
+
margin-top: @margin-xs;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-upload-txt {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-modal-body {
|
|
83
|
+
padding-top: 8px !important;
|
|
84
|
+
}
|
|
85
|
+
&-footer {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.exportList {
|
|
93
|
+
&-importModal {
|
|
94
|
+
&-content {
|
|
95
|
+
}
|
|
96
|
+
&-tip {
|
|
97
|
+
margin: 0px 0px 10px;
|
|
98
|
+
padding: 5px 0px 5px 15px;
|
|
99
|
+
background-color: #e7f3fe;
|
|
100
|
+
border: 1px solid #b8e4ff;
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
.icon {
|
|
103
|
+
margin: 0px 10px;
|
|
104
|
+
color: #165dff;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&-list {
|
|
108
|
+
height: 160px;
|
|
109
|
+
padding: 10px;
|
|
110
|
+
overflow-y: scroll;
|
|
111
|
+
border: 1px solid #e5e5e5;
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
package/es/constants/api.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ declare let apis: {
|
|
|
14
14
|
editVirtualSourceApp: string;
|
|
15
15
|
};
|
|
16
16
|
setting: {
|
|
17
|
+
queryRealTimeData: string;
|
|
18
|
+
updateStatus: string;
|
|
17
19
|
updateCompanyName: string;
|
|
18
20
|
updateLicense: string;
|
|
19
21
|
groupInfos: string;
|
|
@@ -28,6 +30,11 @@ declare let apis: {
|
|
|
28
30
|
inviteUserByPhone: string;
|
|
29
31
|
updateCompanyAdmin: string;
|
|
30
32
|
updateUserAuthCEP: string;
|
|
33
|
+
disableDemand: string;
|
|
34
|
+
getComments: string;
|
|
35
|
+
addComments: string;
|
|
36
|
+
operateList: string;
|
|
37
|
+
designateProcessor: string;
|
|
31
38
|
updateGroupAuth: string;
|
|
32
39
|
deleteGroup: string;
|
|
33
40
|
wxSubscribeUserList: string;
|
|
@@ -102,6 +109,7 @@ declare let apis: {
|
|
|
102
109
|
operationLog: string;
|
|
103
110
|
securityLog: string;
|
|
104
111
|
getLogTime: string;
|
|
112
|
+
exportLog: string;
|
|
105
113
|
};
|
|
106
114
|
getPassword: {
|
|
107
115
|
validateCode: string;
|
|
@@ -109,6 +117,25 @@ declare let apis: {
|
|
|
109
117
|
getCode: string;
|
|
110
118
|
queryImgCode: string;
|
|
111
119
|
};
|
|
120
|
+
dict: {
|
|
121
|
+
getDictList: string;
|
|
122
|
+
getDictPage: string;
|
|
123
|
+
dictSave: string;
|
|
124
|
+
dictUpdate: string;
|
|
125
|
+
dictUpload: string;
|
|
126
|
+
dictDelete: string;
|
|
127
|
+
dictTemplate: string;
|
|
128
|
+
getTagList: string;
|
|
129
|
+
getTagPage: string;
|
|
130
|
+
tagSave: string;
|
|
131
|
+
tagUpdate: string;
|
|
132
|
+
tagUpload: string;
|
|
133
|
+
tagDownload: string;
|
|
134
|
+
tagDelete: string;
|
|
135
|
+
tagTemplate: string;
|
|
136
|
+
addLabelRelation: string;
|
|
137
|
+
delLabelRelation: string;
|
|
138
|
+
};
|
|
112
139
|
queryUserByCompanyId: string;
|
|
113
140
|
flowSave: string;
|
|
114
141
|
flowList: string;
|
|
@@ -135,6 +162,7 @@ declare let apis: {
|
|
|
135
162
|
createPage: string;
|
|
136
163
|
updatePointPageInfo: string;
|
|
137
164
|
moveNode: string;
|
|
165
|
+
getEventAttributes: string;
|
|
138
166
|
getPageConfig: string;
|
|
139
167
|
addPageConfig: string;
|
|
140
168
|
updatePageConfig: string;
|
|
@@ -143,6 +171,8 @@ declare let apis: {
|
|
|
143
171
|
uploadTree: string;
|
|
144
172
|
downloadHelpFile: string;
|
|
145
173
|
getAppAutoEvent: string;
|
|
174
|
+
getEventLog: string;
|
|
175
|
+
addEvent: string;
|
|
146
176
|
getMenuCode: string;
|
|
147
177
|
addMenuCode: string;
|
|
148
178
|
updateMenuCode: string;
|
package/es/constants/api.js
CHANGED
|
@@ -16,6 +16,8 @@ var apis = {
|
|
|
16
16
|
editVirtualSourceApp: '/user/editSourceApp.jsp' // 修改虚拟应用的来源应用配置
|
|
17
17
|
},
|
|
18
18
|
setting: {
|
|
19
|
+
queryRealTimeData: '/zg/web/v2/newapp/delay',
|
|
20
|
+
updateStatus: '/zg/web/v2/newapp/status',
|
|
19
21
|
updateCompanyName: '/company/v2updateInfo.jsp',
|
|
20
22
|
updateLicense: apiPrefix + '/system/license',
|
|
21
23
|
groupInfos: '/auth/groupInfos.jsp',
|
|
@@ -30,6 +32,15 @@ var apis = {
|
|
|
30
32
|
inviteUserByPhone: '/company/v2invitation.jsp',
|
|
31
33
|
updateCompanyAdmin: '/company/updateCompanyAdmin.jsp',
|
|
32
34
|
updateUserAuthCEP: '/cep-console/api/v1/permission/updateUserAuth',
|
|
35
|
+
//禁用接口
|
|
36
|
+
disableDemand: '/zg/web/v2/approve/demand/disableDemand',
|
|
37
|
+
//评论接口
|
|
38
|
+
getComments: '/zg/web/v2/approve/demand/getComments',
|
|
39
|
+
//添加评论接口
|
|
40
|
+
addComments: '/zg/web/v2/approve/demand/addComments',
|
|
41
|
+
//历史记录
|
|
42
|
+
operateList: '/zg/web/v2/approve/demand/operateList',
|
|
43
|
+
designateProcessor: '/zg/web/v2/approve/demand/designateProcessor',
|
|
33
44
|
updateGroupAuth: '/auth/updateGroupAuth.jsp',
|
|
34
45
|
deleteGroup: '/auth/deleteGroup.jsp',
|
|
35
46
|
wxSubscribeUserList: '/wx_subscribe/getWxSubscribeUserInfoList.jsp',
|
|
@@ -123,7 +134,9 @@ var apis = {
|
|
|
123
134
|
// 安全日志
|
|
124
135
|
securityLog: '/zg/web/v2/system/securityLog',
|
|
125
136
|
// 时间范围查询
|
|
126
|
-
getLogTime: '/zg/web/v2/system/getLogTime'
|
|
137
|
+
getLogTime: '/zg/web/v2/system/getLogTime',
|
|
138
|
+
// 导出日志
|
|
139
|
+
exportLog: '/zg/web/v2/system/exportOperationLog'
|
|
127
140
|
},
|
|
128
141
|
getPassword: {
|
|
129
142
|
validateCode: '/zg/web/v2/system/validateCode',
|
|
@@ -131,6 +144,29 @@ var apis = {
|
|
|
131
144
|
getCode: '/zg/web/v2/system/getDefaultCode',
|
|
132
145
|
queryImgCode: '/zg/web/v2/system/getImgCode'
|
|
133
146
|
},
|
|
147
|
+
dict: {
|
|
148
|
+
//字典管理
|
|
149
|
+
getDictList: '/zg/web/v2/systemSettings/attr/dict/list',
|
|
150
|
+
getDictPage: '/zg/web/v2/systemSettings/attr/dict/listByPage',
|
|
151
|
+
dictSave: '/zg/web/v2/systemSettings/attr/dict/save',
|
|
152
|
+
dictUpdate: '/zg/web/v2/systemSettings/attr/dict/update',
|
|
153
|
+
dictUpload: '/zg/web/v2/systemSettings/attr/dict/upload',
|
|
154
|
+
dictDelete: '/zg/web/v2/systemSettings/attr/dict/delete',
|
|
155
|
+
dictTemplate: '/zg/web/v2/systemSettings/attr/dict/template',
|
|
156
|
+
//位置标签管理
|
|
157
|
+
getTagList: '/zg/web/v2/eventLabel/list',
|
|
158
|
+
getTagPage: '/zg/web/v2/eventLabel/listByPage',
|
|
159
|
+
tagSave: '/zg/web/v2/eventLabel/save',
|
|
160
|
+
tagUpdate: '/zg/web/v2/eventLabel/update',
|
|
161
|
+
tagUpload: '/zg/web/v2/eventLabel/upload',
|
|
162
|
+
tagDownload: '/zg/web/v2/eventLabel/download',
|
|
163
|
+
tagDelete: '/zg/web/v2/eventLabel/delete',
|
|
164
|
+
//标签模板
|
|
165
|
+
tagTemplate: '/zg/web/v2/eventLabel/template',
|
|
166
|
+
//绑定
|
|
167
|
+
addLabelRelation: '/zg/web/v2/eventLabel/addLabelRelation',
|
|
168
|
+
delLabelRelation: '/zg/web/v2/eventLabel/delLabelRelation'
|
|
169
|
+
},
|
|
134
170
|
// 查询公司下所有用户
|
|
135
171
|
queryUserByCompanyId: '/zg/web/v2/user/queryUserByCompanyId',
|
|
136
172
|
// 创建、编辑流程
|
|
@@ -183,6 +219,8 @@ var apis = {
|
|
|
183
219
|
updatePointPageInfo: '/zg/web/v2/approve/point/updatePointPageInfo',
|
|
184
220
|
// 拖拽移动页面
|
|
185
221
|
moveNode: '/zg/web/v2/approve/point/move',
|
|
222
|
+
// 根据事件id查询属性
|
|
223
|
+
getEventAttributes: '/zg/web/v2/data/queryEventAttrMetas',
|
|
186
224
|
// 查询页面管理详情
|
|
187
225
|
getPageConfig: '/zg/web/v2/approve/pageConfig/getDetail',
|
|
188
226
|
// 新增页面管理
|
|
@@ -199,6 +237,10 @@ var apis = {
|
|
|
199
237
|
downloadHelpFile: '/zg/web/v2/approve/point/template/recommend-scheme',
|
|
200
238
|
// 查询应用埋点控制开关
|
|
201
239
|
getAppAutoEvent: '/zg/web/v2/approve/getAppAutoEvent',
|
|
240
|
+
//埋点日志
|
|
241
|
+
getEventLog: '/zg/web/v2/approve/point/event/log',
|
|
242
|
+
// 事件新增
|
|
243
|
+
addEvent: '/zg/web/v2/event/addEvent',
|
|
202
244
|
// menuCode
|
|
203
245
|
getMenuCode: '/zg/web/v2/systemSettings/query-menu-list',
|
|
204
246
|
addMenuCode: '/zg/web/v2/systemSettings/save-menu',
|
|
@@ -8,6 +8,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
8
8
|
import { Button, Form, Input, notification } from 'antd';
|
|
9
9
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
10
10
|
import { urlRequest } from '../../../utils/ajax';
|
|
11
|
+
import request from '../../../utils/ajax';
|
|
11
12
|
import apis from '../../../constants/api';
|
|
12
13
|
import { useContext } from 'react';
|
|
13
14
|
var TextArea = Input.TextArea;
|
|
@@ -50,7 +51,7 @@ var AppDataAccessFilter = function AppDataAccessFilter() {
|
|
|
50
51
|
var onSubmit = function onSubmit(value) {
|
|
51
52
|
var ip = value.ip,
|
|
52
53
|
ua = value.ua;
|
|
53
|
-
|
|
54
|
+
request(apis.setting.createFilter, {
|
|
54
55
|
method: 'post',
|
|
55
56
|
data: {
|
|
56
57
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect, forwardRef, useState, useImperativeHandle } from 'react';
|
|
8
|
-
import { Form, Input, Alert, Radio } from 'antd';
|
|
8
|
+
import { Form, Input, Alert, Radio, Select } from 'antd';
|
|
9
9
|
import './index.less';
|
|
10
10
|
import { classPrefix } from './index';
|
|
11
11
|
export var AppVersion;
|
|
@@ -25,7 +25,9 @@ export var AppVersion;
|
|
|
25
25
|
})(AppVersion || (AppVersion = {}));
|
|
26
26
|
var ApplicationForm = function ApplicationForm(props, ref) {
|
|
27
27
|
var name = props.name,
|
|
28
|
-
currentUser = props.currentUser
|
|
28
|
+
currentUser = props.currentUser,
|
|
29
|
+
_props$category = props.category,
|
|
30
|
+
category = _props$category === void 0 ? '1' : _props$category;
|
|
29
31
|
var _useState = useState(true),
|
|
30
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
33
|
showChunk = _useState2[0],
|
|
@@ -55,9 +57,13 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
55
57
|
name: 'name',
|
|
56
58
|
value: name
|
|
57
59
|
}]);
|
|
60
|
+
form.setFields([{
|
|
61
|
+
name: 'category',
|
|
62
|
+
value: category
|
|
63
|
+
}]);
|
|
58
64
|
setShowchunk(false);
|
|
59
65
|
}
|
|
60
|
-
}, [name]);
|
|
66
|
+
}, [name, category]);
|
|
61
67
|
return /*#__PURE__*/React.createElement(Form, {
|
|
62
68
|
form: form,
|
|
63
69
|
labelCol: {
|
|
@@ -65,7 +71,8 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
65
71
|
},
|
|
66
72
|
layout: "horizontal",
|
|
67
73
|
initialValues: {
|
|
68
|
-
appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion
|
|
74
|
+
appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion,
|
|
75
|
+
category: '1'
|
|
69
76
|
}
|
|
70
77
|
}, showChunk && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Alert, {
|
|
71
78
|
className: "".concat(classPrefix, "-alert-info"),
|
|
@@ -81,6 +88,29 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
81
88
|
}, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
|
|
82
89
|
value: AppVersion.bank
|
|
83
90
|
}, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
91
|
+
name: "category",
|
|
92
|
+
className: "app-list-form-item"
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
94
|
+
options: [{
|
|
95
|
+
value: '1',
|
|
96
|
+
label: '零售'
|
|
97
|
+
}, {
|
|
98
|
+
value: '2',
|
|
99
|
+
label: '公司'
|
|
100
|
+
}, {
|
|
101
|
+
value: '3',
|
|
102
|
+
label: '同业'
|
|
103
|
+
}, {
|
|
104
|
+
value: '4',
|
|
105
|
+
label: '风险'
|
|
106
|
+
}, {
|
|
107
|
+
value: '5',
|
|
108
|
+
label: '内部管理'
|
|
109
|
+
}, {
|
|
110
|
+
value: '6',
|
|
111
|
+
label: '其他'
|
|
112
|
+
}]
|
|
113
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
84
114
|
name: "name",
|
|
85
115
|
required: true,
|
|
86
116
|
rules: [{
|
|
@@ -7,6 +7,19 @@ export interface ApplicationItem {
|
|
|
7
7
|
appVersion: number;
|
|
8
8
|
appVersionName: string;
|
|
9
9
|
platform: number[];
|
|
10
|
+
children?: ApplicationListChildren[];
|
|
11
|
+
status?: number;
|
|
12
|
+
joinDatabaseDelay: string;
|
|
13
|
+
realTimeDelay: string;
|
|
14
|
+
startTime: string;
|
|
15
|
+
stopTime: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ApplicationListChildren {
|
|
18
|
+
label: string;
|
|
19
|
+
key: 'appVersionName' | 'name' | 'platform' | 'status' | 'realTimeDelay' | 'joinDatabaseDelay' | 'startTime' | 'stopTime';
|
|
20
|
+
type: string;
|
|
21
|
+
style?: any;
|
|
22
|
+
list?: number[];
|
|
10
23
|
}
|
|
11
24
|
declare const Application: React.FC<{
|
|
12
25
|
companyId: number;
|