@zgfe/modules-settings 2.1.0-zhongyuan.1 → 2.1.0-zhongyuan.11
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 +19 -0
- package/es/constants/api.js +23 -0
- package/es/modules/companySetting/application/index.js +5 -6
- package/es/modules/createDemand/demo/selectPoint.js +0 -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/index.js +0 -2
- package/es/modules/demandManage/index.js +2 -2
- package/es/modules/pointMap/createMetaDrawer.js +102 -34
- package/es/modules/pointMap/pageInfo.js +43 -15
- package/es/modules/pointMap/styles/index.less +13 -0
- package/es/modules/pointMap/styles/pageInfo.less +439 -426
- package/es/modules/pointMap/styles/tree.less +174 -149
- package/es/modules/pointMap/tree.js +212 -84
- 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 +244 -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 +263 -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 +2 -2
- package/es/modules/systemSetting/index.js +3 -1
- package/package.json +2 -2
|
@@ -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
|
@@ -116,6 +116,25 @@ declare let apis: {
|
|
|
116
116
|
getCode: string;
|
|
117
117
|
queryImgCode: string;
|
|
118
118
|
};
|
|
119
|
+
dict: {
|
|
120
|
+
getDictList: string;
|
|
121
|
+
getDictPage: string;
|
|
122
|
+
dictSave: string;
|
|
123
|
+
dictUpdate: string;
|
|
124
|
+
dictUpload: string;
|
|
125
|
+
dictDelete: string;
|
|
126
|
+
dictTemplate: string;
|
|
127
|
+
getTagList: string;
|
|
128
|
+
getTagPage: string;
|
|
129
|
+
tagSave: string;
|
|
130
|
+
tagUpdate: string;
|
|
131
|
+
tagUpload: string;
|
|
132
|
+
tagDownload: string;
|
|
133
|
+
tagDelete: string;
|
|
134
|
+
tagTemplate: string;
|
|
135
|
+
addLabelRelation: string;
|
|
136
|
+
delLabelRelation: string;
|
|
137
|
+
};
|
|
119
138
|
queryUserByCompanyId: string;
|
|
120
139
|
flowSave: string;
|
|
121
140
|
flowList: string;
|
package/es/constants/api.js
CHANGED
|
@@ -142,6 +142,29 @@ var apis = {
|
|
|
142
142
|
getCode: '/zg/web/v2/system/getDefaultCode',
|
|
143
143
|
queryImgCode: '/zg/web/v2/system/getImgCode'
|
|
144
144
|
},
|
|
145
|
+
dict: {
|
|
146
|
+
//字典管理
|
|
147
|
+
getDictList: '/zg/web/v2/systemSettings/attr/dict/list',
|
|
148
|
+
getDictPage: '/zg/web/v2/systemSettings/attr/dict/listByPage',
|
|
149
|
+
dictSave: '/zg/web/v2/systemSettings/attr/dict/save',
|
|
150
|
+
dictUpdate: '/zg/web/v2/systemSettings/attr/dict/update',
|
|
151
|
+
dictUpload: '/zg/web/v2/systemSettings/attr/dict/upload',
|
|
152
|
+
dictDelete: '/zg/web/v2/systemSettings/attr/dict/delete',
|
|
153
|
+
dictTemplate: '/zg/web/v2/systemSettings/attr/dict/template',
|
|
154
|
+
//位置标签管理
|
|
155
|
+
getTagList: '/zg/web/v2/eventLabel/list',
|
|
156
|
+
getTagPage: '/zg/web/v2/eventLabel/listByPage',
|
|
157
|
+
tagSave: '/zg/web/v2/eventLabel/save',
|
|
158
|
+
tagUpdate: '/zg/web/v2/eventLabel/update',
|
|
159
|
+
tagUpload: '/zg/web/v2/eventLabel/upload',
|
|
160
|
+
tagDownload: '/zg/web/v2/eventLabel/download',
|
|
161
|
+
tagDelete: '/zg/web/v2/eventLabel/delete',
|
|
162
|
+
//标签模板
|
|
163
|
+
tagTemplate: '/zg/web/v2/eventLabel/template',
|
|
164
|
+
//绑定
|
|
165
|
+
addLabelRelation: '/zg/web/v2/eventLabel/addLabelRelation',
|
|
166
|
+
delLabelRelation: '/zg/web/v2/eventLabel/delLabelRelation'
|
|
167
|
+
},
|
|
145
168
|
// 查询公司下所有用户
|
|
146
169
|
queryUserByCompanyId: '/zg/web/v2/user/queryUserByCompanyId',
|
|
147
170
|
// 创建、编辑流程
|
|
@@ -543,19 +543,18 @@ var Application = function Application(_ref) {
|
|
|
543
543
|
case 12:
|
|
544
544
|
message.success(res === null || res === void 0 ? void 0 : res.msg);
|
|
545
545
|
setShowSetting(false);
|
|
546
|
-
|
|
547
|
-
_context9.next = 21;
|
|
546
|
+
_context9.next = 20;
|
|
548
547
|
break;
|
|
549
|
-
case
|
|
550
|
-
_context9.prev =
|
|
548
|
+
case 16:
|
|
549
|
+
_context9.prev = 16;
|
|
551
550
|
_context9.t0 = _context9["catch"](0);
|
|
552
551
|
console.log(_context9.t0);
|
|
553
552
|
setShowSetting(false);
|
|
554
|
-
case
|
|
553
|
+
case 20:
|
|
555
554
|
case "end":
|
|
556
555
|
return _context9.stop();
|
|
557
556
|
}
|
|
558
|
-
}, _callee9, null, [[0,
|
|
557
|
+
}, _callee9, null, [[0, 16]]);
|
|
559
558
|
}));
|
|
560
559
|
return function handleSettingSave() {
|
|
561
560
|
return _ref7.apply(this, arguments);
|
|
@@ -6,7 +6,6 @@ import { DemoWrapper } from '@zgfe/business-lib';
|
|
|
6
6
|
// import { Button } from 'antd';
|
|
7
7
|
// const classPrefix = 'system-setting-approval-process-create-content';
|
|
8
8
|
export default (function () {
|
|
9
|
-
console.log('window.innerWidth', window.innerWidth);
|
|
10
9
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
11
10
|
defaultApp: 99825
|
|
12
11
|
}, /*#__PURE__*/React.createElement(CreateDemand, null));
|
|
@@ -209,7 +209,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
var gotoPage = function gotoPage(type, data) {
|
|
212
|
-
console.log('data', data);
|
|
213
212
|
switch (type) {
|
|
214
213
|
case 'event':
|
|
215
214
|
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + data, '_blank');
|
|
@@ -389,7 +388,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
389
388
|
}],
|
|
390
389
|
onClick: function onClick(_ref) {
|
|
391
390
|
var key = _ref.key;
|
|
392
|
-
console.log('key', key);
|
|
393
391
|
switch (key) {
|
|
394
392
|
case '0':
|
|
395
393
|
submitDemand(3);
|
|
@@ -84,9 +84,9 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
//跳转后清理query数据
|
|
87
|
-
router.replace({
|
|
87
|
+
router && (router === null || router === void 0 ? void 0 : router.replace({
|
|
88
88
|
name: routes.demandManage
|
|
89
|
-
});
|
|
89
|
+
}));
|
|
90
90
|
};
|
|
91
91
|
var onChangeTable = function onChangeTable(pagination, filters, sorter) {
|
|
92
92
|
setPageData({
|