@zgfe/modules-settings 2.1.0-zhongyuan.1 → 2.1.0-zhongyuan.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.
Files changed (30) hide show
  1. package/es/components/importMetaDialog/index.d.ts +11 -0
  2. package/es/components/importMetaDialog/index.js +202 -0
  3. package/es/components/importMetaDialog/styles/index.less +115 -0
  4. package/es/constants/api.d.ts +15 -0
  5. package/es/constants/api.js +18 -0
  6. package/es/modules/demandManage/index.js +2 -2
  7. package/es/modules/pointMap/createMetaDrawer.js +40 -3
  8. package/es/modules/pointMap/pageInfo.js +20 -5
  9. package/es/modules/pointMap/styles/index.less +157 -152
  10. package/es/modules/pointMap/styles/pageInfo.less +439 -426
  11. package/es/modules/pointMap/styles/tree.less +14 -7
  12. package/es/modules/pointMap/tree.js +101 -36
  13. package/es/modules/systemSetting/Dictionary.d.ts +5 -2
  14. package/es/modules/systemSetting/Dictionary.js +54 -370
  15. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
  16. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +239 -0
  17. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +47 -0
  18. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
  19. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +205 -0
  20. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
  21. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
  22. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
  23. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +126 -0
  24. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
  25. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
  26. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +251 -0
  27. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
  28. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
  29. package/es/modules/systemSetting/index.js +3 -1
  30. package/package.json +2 -2
@@ -0,0 +1,11 @@
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
+ }>;
11
+ export default ImportModal;
@@ -0,0 +1,202 @@
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
+ setOpenImportModalResult(false);
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
+ setLoading(true);
96
+ request(props.uploadFile, {
97
+ method: 'post',
98
+ data: formData
99
+ }).then(function (res) {
100
+ if (!res) return;
101
+ message.success('导入成功');
102
+ props.onSuccess && props.onSuccess(res.data);
103
+ }).catch(function (e) {
104
+ console.log(e);
105
+ }).finally(function () {
106
+ setLoading(false);
107
+ });
108
+ };
109
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BizDialog, {
110
+ title: "\u5BFC\u5165\u5C5E\u6027\u503C",
111
+ open: true,
112
+ className: classPrefix,
113
+ onCancel: props.onCancel,
114
+ onOk: onOk,
115
+ confirmLoading: loading,
116
+ okButtonProps: {
117
+ disabled: isDemo
118
+ },
119
+ closable: true,
120
+ closeIcon: /*#__PURE__*/React.createElement(IconFont, {
121
+ type: "qingchu"
122
+ }),
123
+ footer: /*#__PURE__*/React.createElement("div", {
124
+ className: "".concat(classPrefix, "-footer")
125
+ }, /*#__PURE__*/React.createElement("a", {
126
+ className: "".concat(classPrefix, "-export-btn"),
127
+ onClick: onDownloadTemplate
128
+ }, /*#__PURE__*/React.createElement(IconFont, {
129
+ type: "xiazai1",
130
+ className: "".concat(classPrefix, "-icon-export")
131
+ }), "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
132
+ onClick: props.onCancel
133
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
134
+ type: "primary",
135
+ onClick: onOk
136
+ }, "\u786E\u5B9A")))
137
+ }, /*#__PURE__*/React.createElement(Spin, {
138
+ className: "".concat(classPrefix, "-spin"),
139
+ spinning: uploading,
140
+ tip: "\u4E0A\u4F20\u4E2D",
141
+ indicator: /*#__PURE__*/React.createElement(LoadingOutlined, {
142
+ className: "".concat(classPrefix, "-spin-icon"),
143
+ spin: true,
144
+ onPointerEnterCapture: undefined,
145
+ onPointerLeaveCapture: undefined
146
+ })
147
+ }, /*#__PURE__*/React.createElement("div", {
148
+ style: {
149
+ marginBottom: 16
150
+ }
151
+ }, "\u5141\u8BB8\u4ECE\u6587\u4EF6\u6279\u91CF\u521B\u5EFA\u5C5E\u6027\u503C\u3002"), fileData ? (/*#__PURE__*/React.createElement("div", {
152
+ className: "".concat(classPrefix, "-show-container")
153
+ }, /*#__PURE__*/React.createElement("div", {
154
+ className: "".concat(classPrefix, "-show-container-content")
155
+ }, /*#__PURE__*/React.createElement(IconFont, {
156
+ type: "file-excel",
157
+ className: "".concat(classPrefix, "-show-container-content-icon")
158
+ }), /*#__PURE__*/React.createElement("div", {
159
+ className: "".concat(classPrefix, "-show-container-content-file")
160
+ }, /*#__PURE__*/React.createElement("div", {
161
+ className: "".concat(classPrefix, "-show-container-content-file-title")
162
+ }, fileData.name), /*#__PURE__*/React.createElement("div", {
163
+ className: "".concat(classPrefix, "-show-container-content-file-size")
164
+ }, fileData.size ? (fileData.size / 1024).toFixed(1) : '', " kb"))), /*#__PURE__*/React.createElement(Upload, _objectSpread({}, UploadProps), /*#__PURE__*/React.createElement("a", {
165
+ className: "".concat(classPrefix, "-upload-txt")
166
+ }, "\u91CD\u65B0\u4E0A\u4F20")))) : (/*#__PURE__*/React.createElement(Dragger, _objectSpread({
167
+ className: "".concat(classPrefix, "-export-container")
168
+ }, UploadProps), /*#__PURE__*/React.createElement(IconFont, {
169
+ type: "file-add",
170
+ className: "".concat(classPrefix, "-icon-file")
171
+ }), /*#__PURE__*/React.createElement("div", {
172
+ className: "".concat(classPrefix, "-export-container-h1")
173
+ }, "\u5C06\u6570\u636E\u6587\u4EF6\u62D6\u5230\u6B64\u5904 \u6216", /*#__PURE__*/React.createElement("a", null, "\u70B9\u51FB\u4E0A\u4F20")), /*#__PURE__*/React.createElement("div", {
174
+ className: "".concat(classPrefix, "-export-container-h2")
175
+ }, "\u652F\u6301 xls\u3001xlsx \u683C\u5F0F\uFF0C\u6700\u592710M"))))), /*#__PURE__*/React.createElement(Modal, {
176
+ title: "\u5BFC\u5165\u6807\u7B7E",
177
+ open: openImportModalResult,
178
+ className: "exportList-importModal",
179
+ width: 600,
180
+ onOk: handleImportResultOk,
181
+ onCancel: handleImportResultOk,
182
+ footer: [/*#__PURE__*/React.createElement(Button, {
183
+ type: "primary",
184
+ onClick: handleImportResultOk
185
+ }, "\u786E\u5B9A")]
186
+ }, /*#__PURE__*/React.createElement("div", {
187
+ className: "exportList-importModal-content"
188
+ }, /*#__PURE__*/React.createElement("div", {
189
+ className: "exportList-importModal-tip"
190
+ }, /*#__PURE__*/React.createElement(IconFont, {
191
+ type: "tishi1",
192
+ size: 16,
193
+ className: "icon"
194
+ }), "\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", {
195
+ className: "exportList-importModal-list"
196
+ }, errorLoc === null || errorLoc === void 0 ? void 0 : errorLoc.failedLocNames.map(function (o, index) {
197
+ return /*#__PURE__*/React.createElement("div", {
198
+ key: index
199
+ }, o);
200
+ })))));
201
+ };
202
+ 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
+ }
@@ -116,6 +116,21 @@ declare let apis: {
116
116
  getCode: string;
117
117
  queryImgCode: string;
118
118
  };
119
+ dict: {
120
+ getDictList: string;
121
+ dictSave: string;
122
+ dictUpdate: string;
123
+ dictUpload: string;
124
+ dictDelete: string;
125
+ dictTemplate: string;
126
+ getTagList: string;
127
+ tagSave: string;
128
+ tagUpdate: string;
129
+ tagUpload: string;
130
+ tagDownload: string;
131
+ tagDelete: string;
132
+ tagTemplate: string;
133
+ };
119
134
  queryUserByCompanyId: string;
120
135
  flowSave: string;
121
136
  flowList: string;
@@ -142,6 +142,24 @@ 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
+ dictSave: '/zg/web/v2/systemSettings/attr/dict/save',
149
+ dictUpdate: '/zg/web/v2/systemSettings/attr/dict/update',
150
+ dictUpload: '/zg/web/v2/systemSettings/attr/dict/upload',
151
+ dictDelete: '/zg/web/v2/systemSettings/attr/dict/delete',
152
+ dictTemplate: '/zg/web/v2/systemSettings/attr/dict/template',
153
+ //位置标签管理
154
+ getTagList: '/zg/web/v2/label/eventLabel/list',
155
+ tagSave: '/zg/web/v2/label/eventLabel/save',
156
+ tagUpdate: '/zg/web/v2/label/eventLabel/update',
157
+ tagUpload: '/zg/web/v2/label/eventLabel/upload',
158
+ tagDownload: '/zg/web/v2/label/eventLabel/download',
159
+ tagDelete: '/zg/web/v2/label/eventLabel/delete',
160
+ //标签模板
161
+ tagTemplate: '/zg/web/v2/label/template'
162
+ },
145
163
  // 查询公司下所有用户
146
164
  queryUserByCompanyId: '/zg/web/v2/user/queryUserByCompanyId',
147
165
  // 创建、编辑流程
@@ -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({
@@ -114,7 +114,6 @@ var CreateMeta = function CreateMeta(props) {
114
114
  //吧参数传递给主页面
115
115
  if (props.onSubmit) {
116
116
  if (props.data) {
117
- console.log(eventAttrList, 'EventAttrList');
118
117
  props.onSubmit(_objectSpread(_objectSpread({}, props.data), {}, {
119
118
  eventAttrList: eventAttrList
120
119
  }), 'update');
@@ -559,10 +558,31 @@ var CreateMeta = function CreateMeta(props) {
559
558
  })), /*#__PURE__*/React.createElement(Form.Item, {
560
559
  name: "triggeringOccasion",
561
560
  label: "\u89E6\u53D1\u65F6\u673A"
562
- }, /*#__PURE__*/React.createElement(Input, {
561
+ }, /*#__PURE__*/React.createElement(Select, {
562
+ allowClear: true,
563
+ style: {
564
+ border: 0,
565
+ width: '160px',
566
+ marginRight: '10px'
567
+ },
568
+ disabled: homeType == 'update' || homeType == 'get',
569
+ placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u6807\u7B7E",
570
+ options: [{
571
+ label: '业务标签1',
572
+ value: '111'
573
+ }, {
574
+ label: '业务标签2',
575
+ value: 'tagJson'
576
+ }],
577
+ onChange: function onChange() {
578
+ setIsChange(true);
579
+ }
580
+ }), "\u6216", /*#__PURE__*/React.createElement(Input, {
563
581
  disabled: homeType == 'update' || homeType == 'get',
564
582
  style: {
565
- border: 0
583
+ border: 0,
584
+ width: 'calc(100% - 195px)',
585
+ marginLeft: '10px'
566
586
  },
567
587
  placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u65F6\u673A\uFF0C\u4F8B\u5982\uFF1A\u7528\u6237\u70B9\u51FB\u786E\u8BA4\u6309\u94AE",
568
588
  showCount: true,
@@ -570,6 +590,23 @@ var CreateMeta = function CreateMeta(props) {
570
590
  onChange: function onChange(e) {
571
591
  setIsChange(true);
572
592
  }
593
+ })), /*#__PURE__*/React.createElement(Form.Item, {
594
+ name: "triggeringOccasion1",
595
+ label: "\u4E1A\u52A1\u6807\u7B7E"
596
+ }, /*#__PURE__*/React.createElement(Select, {
597
+ allowClear: true,
598
+ disabled: homeType == 'update' || homeType == 'get',
599
+ placeholder: "\u8BF7\u8F93\u5165\u4E1A\u52A1\u6807\u7B7E",
600
+ options: [{
601
+ label: '业务标签1',
602
+ value: '111'
603
+ }, {
604
+ label: '业务标签2',
605
+ value: 'tagJson'
606
+ }],
607
+ onChange: function onChange() {
608
+ setIsChange(true);
609
+ }
573
610
  }))), homeType != 'get' && (/*#__PURE__*/React.createElement("div", {
574
611
  className: "".concat(classPrefix, "-info"),
575
612
  style: {
@@ -18,7 +18,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
18
18
  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; } }
19
19
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
20
  import { BizDialog, BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
21
- import { Input, message, Button, Table, notification, Upload, Image, Checkbox, Empty, Tooltip, Popover, Modal, Drawer, Spin } from 'antd';
21
+ import { Input, message, Button, Table, notification, Upload, Image, Checkbox, Empty, Tooltip, Popover, Modal, Drawer, Spin, Tag } from 'antd';
22
22
  import React, { useContext, useEffect, useState } from 'react';
23
23
  import _ from 'lodash';
24
24
  import './styles/pageInfo.less';
@@ -470,7 +470,7 @@ var PageInfo = function PageInfo(props) {
470
470
  }, [eventAttrList]);
471
471
  }
472
472
  // 表格列表筛选项
473
- var columns = [].concat(_toConsumableArray(!isEdit && !isSelect ? [{
473
+ var columns = [].concat(_toConsumableArray(isSelect ? [{
474
474
  title: (/*#__PURE__*/React.createElement(Checkbox, {
475
475
  checked: checkedAllHandle(),
476
476
  onChange: function onChange(e) {
@@ -512,9 +512,24 @@ var PageInfo = function PageInfo(props) {
512
512
  ellipsis: true,
513
513
  width: 198,
514
514
  render: function render(eventName, record, index) {
515
- return /*#__PURE__*/React.createElement(Tooltip, {
516
- title: eventName || '',
517
- placement: "topLeft"
515
+ var content = /*#__PURE__*/React.createElement("div", {
516
+ className: "".concat(classPrefix, "-content-popoverTag")
517
+ }, /*#__PURE__*/React.createElement("div", {
518
+ className: "".concat(classPrefix, "-content-popoverTag-item")
519
+ }, /*#__PURE__*/React.createElement("span", {
520
+ className: "".concat(classPrefix, "-content-popoverTag-label")
521
+ }, "\u4E1A\u52A1\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Tag, {
522
+ color: "blue"
523
+ }, "\u4E1A\u52A1\u6807\u7B7E1")), /*#__PURE__*/React.createElement("div", {
524
+ className: "".concat(classPrefix, "-content-popoverTag-item")
525
+ }, /*#__PURE__*/React.createElement("span", {
526
+ className: "".concat(classPrefix, "-content-popoverTag-label")
527
+ }, "\u89E6\u53D1\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Tag, {
528
+ color: "orange"
529
+ }, "\u89E6\u53D1\u6807\u7B7E")));
530
+ return /*#__PURE__*/React.createElement(Popover, {
531
+ content: content,
532
+ title: eventName || ''
518
533
  }, /*#__PURE__*/React.createElement("a", {
519
534
  onClick: function onClick() {
520
535
  if (!isSelect) {