@zgfe/modules-dm 1.0.56-zhongyuan.8 → 1.0.57-alpha.0
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 +29 -0
- package/es/constants/api.js +34 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/modules/CutsModal.d.ts +81 -34
- package/es/modules/clear-rule/addRule.d.ts +10 -0
- package/es/modules/clear-rule/addRule.js +614 -0
- package/es/modules/clear-rule/css/index.css +256 -0
- package/es/modules/clear-rule/css/index.less +270 -0
- package/es/modules/clear-rule/demo/index.d.ts +3 -0
- package/es/modules/clear-rule/demo/index.js +6 -0
- package/es/modules/clear-rule/importMetaDialog/demo/index.d.ts +3 -0
- package/es/modules/clear-rule/importMetaDialog/demo/index.js +28 -0
- package/es/modules/clear-rule/importMetaDialog/index.d.ts +7 -0
- package/es/modules/clear-rule/importMetaDialog/index.js +165 -0
- package/es/modules/clear-rule/importMetaDialog/styles/index.less +91 -0
- package/es/modules/clear-rule/index.d.ts +4 -0
- package/es/modules/clear-rule/index.js +529 -0
- package/es/modules/dataManage/collectionAttributeList.js +424 -43
- package/es/modules/dataManage/collectionEventList.js +1 -1
- package/es/modules/dataManage/components/createMetaDrawer.js +5 -6
- package/es/modules/dataManage/components/eventGroupingDrawer.js +13 -4
- package/es/modules/dataManage/components/panelList.d.ts +6 -0
- package/es/modules/dataManage/components/panelList.js +172 -0
- package/es/modules/dataManage/components/tablePlus.d.ts +1 -0
- package/es/modules/dataManage/components/tablePlus.js +160 -46
- package/es/modules/dataManage/components/virtualTablePlus.js +4 -0
- package/es/modules/dataManage/demo/index.js +1 -2
- package/es/modules/dataManage/styles/index.less +10 -0
- package/es/modules/dataMap/component/drawerAdd.js +2 -0
- package/es/modules/dataMap/component/leftTree.js +7 -3
- package/es/modules/dataMap/component/rightDetail.js +59 -93
- package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
- package/es/modules/dataMap/component/selectAttr.js +91 -0
- package/es/modules/dataMap/component/viewMapSetting.d.ts +24 -0
- package/es/modules/dataMap/component/viewMapSetting.js +161 -0
- package/es/modules/dataMap/css/index.css +196 -168
- package/es/modules/dataMap/css/index.less +213 -185
- package/es/modules/dataMap/mapSetting.js +21 -4
- package/es/modules/dataReal/css/index.css +50 -48
- package/es/modules/dataReal/css/index.less +53 -51
- package/es/modules/dataReal/index1.js +84 -57
- package/es/modules/dataReal/table.js +40 -7
- package/es/modules/formulate-rule/addFormulate.d.ts +20 -0
- package/es/modules/formulate-rule/addFormulate.js +328 -0
- package/es/modules/formulate-rule/addRule.d.ts +19 -0
- package/es/modules/formulate-rule/addRule.js +553 -0
- package/es/modules/formulate-rule/data.d.ts +16 -0
- package/es/modules/formulate-rule/data.js +46 -0
- package/es/modules/formulate-rule/demo/index.d.ts +3 -0
- package/es/modules/formulate-rule/demo/index.js +6 -0
- package/es/modules/formulate-rule/index.d.ts +4 -0
- package/es/modules/formulate-rule/index.js +448 -0
- package/package.json +2 -2
|
@@ -19,6 +19,8 @@ import React, { Fragment, useCallback, useContext, useEffect, useState } from 'r
|
|
|
19
19
|
import _ from 'lodash';
|
|
20
20
|
import EventItem from './eventItem';
|
|
21
21
|
var requestMove = false;
|
|
22
|
+
var dmEventGroupId = undefined;
|
|
23
|
+
var dmEventMoveChangeId = -1;
|
|
22
24
|
import { DmContext } from '../../../store';
|
|
23
25
|
import { SortableContainer, SortableElement, SortableHandle } from 'react-sortable-hoc';
|
|
24
26
|
import { arrayMoveImmutable } from 'array-move';
|
|
@@ -157,9 +159,12 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
157
159
|
setEventMoveIds(data.ids);
|
|
158
160
|
if (data.length > 0) {
|
|
159
161
|
setEventMoveShow(groupId);
|
|
162
|
+
dmEventGroupId = groupId;
|
|
160
163
|
eventMoveChangeId = data.groupingOption[0].value;
|
|
164
|
+
dmEventMoveChangeId = data.groupingOption[0].value;
|
|
161
165
|
} else {
|
|
162
166
|
setEventMoveShow(undefined);
|
|
167
|
+
dmEventGroupId = undefined;
|
|
163
168
|
}
|
|
164
169
|
};
|
|
165
170
|
var eventMoveChange = function eventMoveChange() {
|
|
@@ -174,8 +179,8 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
174
179
|
platform: 0,
|
|
175
180
|
hasPublicAttrView: true,
|
|
176
181
|
eventIds: eventMoveIds,
|
|
177
|
-
eventGroupId:
|
|
178
|
-
oldEventGroupId:
|
|
182
|
+
eventGroupId: dmEventMoveChangeId,
|
|
183
|
+
oldEventGroupId: dmEventGroupId
|
|
179
184
|
}
|
|
180
185
|
}).then(function (res) {
|
|
181
186
|
if (res.code == '00') {
|
|
@@ -188,6 +193,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
188
193
|
requestMove = false;
|
|
189
194
|
}, 1000);
|
|
190
195
|
setEventMoveShow(undefined);
|
|
196
|
+
dmEventGroupId = undefined;
|
|
191
197
|
});
|
|
192
198
|
};
|
|
193
199
|
var moveContent = function moveContent() {
|
|
@@ -207,7 +213,8 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
207
213
|
type: "text",
|
|
208
214
|
size: "small",
|
|
209
215
|
onClick: function onClick() {
|
|
210
|
-
|
|
216
|
+
dmEventGroupId = undefined;
|
|
217
|
+
setEventMoveShow(false);
|
|
211
218
|
}
|
|
212
219
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
213
220
|
type: "primary",
|
|
@@ -314,7 +321,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
314
321
|
}, "\u5168\u9009"), /*#__PURE__*/React.createElement(Popover, {
|
|
315
322
|
overlayClassName: "move-popover ".concat(eventMoveLength ? 'show' : 'hidden'),
|
|
316
323
|
placement: "bottomRight",
|
|
317
|
-
open:
|
|
324
|
+
open: dmEventGroupId === item.groupId,
|
|
318
325
|
title: null,
|
|
319
326
|
content: moveContent
|
|
320
327
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -389,6 +396,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
389
396
|
placement: "right",
|
|
390
397
|
onClose: function onClose() {
|
|
391
398
|
setEventGroupingShow(false);
|
|
399
|
+
dmEventGroupId = undefined;
|
|
392
400
|
setEventMoveShow(undefined);
|
|
393
401
|
},
|
|
394
402
|
destroyOnClose: true,
|
|
@@ -397,6 +405,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
397
405
|
type: "qingchu",
|
|
398
406
|
onClick: function onClick() {
|
|
399
407
|
setEventGroupingShow(false);
|
|
408
|
+
dmEventGroupId = undefined;
|
|
400
409
|
setEventMoveShow(undefined);
|
|
401
410
|
}
|
|
402
411
|
})
|
|
@@ -0,0 +1,172 @@
|
|
|
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 React, { useState, useEffect, useContext } from 'react';
|
|
14
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
15
|
+
import { Table, Tooltip, Button } from 'antd';
|
|
16
|
+
import request from '../../../utils/ajax';
|
|
17
|
+
import apis from '../../../constants/api';
|
|
18
|
+
import { getAppID, getTableScroll } from '../../../utils';
|
|
19
|
+
import '../styles/index.less';
|
|
20
|
+
var classPrefix = 'data-manage';
|
|
21
|
+
var panelList = function panelList(props) {
|
|
22
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
23
|
+
currentApp = _useContext.currentApp,
|
|
24
|
+
router = _useContext.router,
|
|
25
|
+
routes = _useContext.routes;
|
|
26
|
+
var _useState = useState(false),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
loading = _useState2[0],
|
|
29
|
+
setLoading = _useState2[1];
|
|
30
|
+
var _useState3 = useState(props === null || props === void 0 ? void 0 : props.eventId),
|
|
31
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
32
|
+
eventId = _useState4[0];
|
|
33
|
+
// 表格列
|
|
34
|
+
var columns = [{
|
|
35
|
+
title: '序号',
|
|
36
|
+
dataIndex: 'index',
|
|
37
|
+
key: 'index',
|
|
38
|
+
width: 64,
|
|
39
|
+
sorter: function sorter(a, b) {
|
|
40
|
+
return a.index - b.index;
|
|
41
|
+
},
|
|
42
|
+
render: function render(text) {
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, text + 1);
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
title: '看板名称',
|
|
47
|
+
dataIndex: 'name',
|
|
48
|
+
width: 200,
|
|
49
|
+
render: function render(text) {
|
|
50
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
51
|
+
title: text || '',
|
|
52
|
+
placement: "top"
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "".concat(classPrefix, "-text")
|
|
55
|
+
}, text));
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
title: '创建人',
|
|
59
|
+
dataIndex: 'userName',
|
|
60
|
+
width: 150,
|
|
61
|
+
render: function render(text) {
|
|
62
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
63
|
+
type: "link",
|
|
64
|
+
style: {
|
|
65
|
+
padding: 0
|
|
66
|
+
}
|
|
67
|
+
}, text);
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
title: '引用时间',
|
|
71
|
+
dataIndex: 'createDateTime',
|
|
72
|
+
width: 180,
|
|
73
|
+
render: function render(text) {
|
|
74
|
+
return text;
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
title: '看板类型',
|
|
78
|
+
dataIndex: 'chartType',
|
|
79
|
+
width: 150,
|
|
80
|
+
render: function render(text) {
|
|
81
|
+
return text;
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
title: '看板链接',
|
|
85
|
+
dataIndex: 'id',
|
|
86
|
+
width: 150,
|
|
87
|
+
render: function render(text) {
|
|
88
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
89
|
+
type: "link",
|
|
90
|
+
style: {
|
|
91
|
+
padding: 0
|
|
92
|
+
},
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
routerPanel(text);
|
|
95
|
+
}
|
|
96
|
+
}, ' ', "\u94FE\u63A5", ' ');
|
|
97
|
+
}
|
|
98
|
+
}];
|
|
99
|
+
// 用户属性列表
|
|
100
|
+
var _useState5 = useState([]),
|
|
101
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
102
|
+
userAttrData = _useState6[0],
|
|
103
|
+
setUserAttrData = _useState6[1];
|
|
104
|
+
var _useState7 = useState(''),
|
|
105
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
106
|
+
scrollY = _useState8[0],
|
|
107
|
+
setScrollY = _useState8[1];
|
|
108
|
+
//页面加载完成后才能获取到对应的元素及其位置
|
|
109
|
+
useEffect(function () {
|
|
110
|
+
var _Y = getTableScroll(60, 'dataManageAttrTable');
|
|
111
|
+
setScrollY(_Y);
|
|
112
|
+
}, []);
|
|
113
|
+
useEffect(function () {
|
|
114
|
+
//列表查询
|
|
115
|
+
eventCiteEvent();
|
|
116
|
+
}, [eventId]);
|
|
117
|
+
var chartTypeName = {
|
|
118
|
+
line: '折线图',
|
|
119
|
+
bar: '柱形图',
|
|
120
|
+
pie: '饼图',
|
|
121
|
+
number: '数值',
|
|
122
|
+
grid: '表格',
|
|
123
|
+
funnelBar: '漏斗图'
|
|
124
|
+
};
|
|
125
|
+
//查询看板列表
|
|
126
|
+
var eventCiteEvent = function eventCiteEvent() {
|
|
127
|
+
request(apis.eventCite, {
|
|
128
|
+
method: 'post',
|
|
129
|
+
data: {
|
|
130
|
+
eventId: eventId,
|
|
131
|
+
appId: getAppID(currentApp),
|
|
132
|
+
platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0
|
|
133
|
+
}
|
|
134
|
+
}).then(function (res) {
|
|
135
|
+
if (res.code == '100000' && res.data) {
|
|
136
|
+
var data = res.data.map(function (res, index) {
|
|
137
|
+
var list = res.chartType.split(',');
|
|
138
|
+
var text = '';
|
|
139
|
+
list.map(function (item) {
|
|
140
|
+
text += chartTypeName[item] + ',';
|
|
141
|
+
});
|
|
142
|
+
return _objectSpread(_objectSpread({}, res), {}, {
|
|
143
|
+
chartType: text.slice(0, text.length - 1),
|
|
144
|
+
index: index
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
setUserAttrData(data || []);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
var routerPanel = function routerPanel(id) {
|
|
152
|
+
router.push({
|
|
153
|
+
name: routes.panel,
|
|
154
|
+
params: {
|
|
155
|
+
panelId: id
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
160
|
+
className: "".concat(classPrefix, "-record-table"),
|
|
161
|
+
columns: columns,
|
|
162
|
+
id: 'dataManageAttrTable',
|
|
163
|
+
rowKey: "name",
|
|
164
|
+
loading: loading,
|
|
165
|
+
scroll: {
|
|
166
|
+
y: scrollY
|
|
167
|
+
},
|
|
168
|
+
dataSource: userAttrData,
|
|
169
|
+
pagination: false
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
export default panelList;
|
|
@@ -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 { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
21
|
-
import { Input, Table, Select, message, Modal, Popover, Space, Radio, Checkbox, Form, Button, notification, Typography, Tag } from 'antd';
|
|
21
|
+
import { Input, Table, Select, message, Modal, Popover, Space, Radio, Checkbox, Form, Button, notification, Typography, Tag, Drawer } from 'antd';
|
|
22
22
|
import request from '../../../utils/ajax';
|
|
23
23
|
import apis from '../../../constants/api';
|
|
24
24
|
import React, { useEffect, useState, useContext } from 'react';
|
|
@@ -26,9 +26,10 @@ import '../styles/index.less';
|
|
|
26
26
|
import _ from 'lodash';
|
|
27
27
|
import { getAppID, getTableScroll } from '../../../utils';
|
|
28
28
|
import { DmContext } from '../../../store';
|
|
29
|
+
import PanelList from './panelList';
|
|
30
|
+
import UseModal from '../../CutsModal';
|
|
29
31
|
var Text = Typography.Text;
|
|
30
32
|
var TablePlus = function TablePlus(props) {
|
|
31
|
-
console.log(props, 'kkk');
|
|
32
33
|
var classPrefix = 'table-plus';
|
|
33
34
|
var tableHandleData = props.tableHandleData,
|
|
34
35
|
queryPlanData = props.queryPlanData,
|
|
@@ -141,6 +142,10 @@ var TablePlus = function TablePlus(props) {
|
|
|
141
142
|
setEventNameData = _useState18[1];
|
|
142
143
|
// 修改分组名
|
|
143
144
|
var eventNameEdit = function eventNameEdit() {
|
|
145
|
+
if (!eventNameInput || eventNameInput.trim() === '') {
|
|
146
|
+
message.error('分组名称不能为空!');
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
144
149
|
if (eventNameInput.length > 20) {
|
|
145
150
|
message.error('名称不可超过20字符');
|
|
146
151
|
return;
|
|
@@ -195,6 +200,16 @@ var TablePlus = function TablePlus(props) {
|
|
|
195
200
|
};
|
|
196
201
|
// 删除事件
|
|
197
202
|
var eventItemDel = function eventItemDel(record) {
|
|
203
|
+
// 新加逻辑--在数据清洗自定义规则中绑定有此原事件不可删除。canDel:false 不允许删除
|
|
204
|
+
if (!record.canDel) {
|
|
205
|
+
UseModal({
|
|
206
|
+
onOk: function onOk() {},
|
|
207
|
+
okText: '确定',
|
|
208
|
+
title: '警告',
|
|
209
|
+
content: "\u8BE5\u539F\u4E8B\u4EF6\u6216\u5C5E\u6027\u542F\u7528\u4E86\u81EA\u5B9A\u4E49\u6821\u9A8C\u89C4\u5219\uFF0C\u8BF7\u5173\u95ED\u81EA\u5B9A\u4E49\u6821\u9A8C\u89C4\u5219\u540E\u5728\u8FDB\u884C\u64CD\u4F5C"
|
|
210
|
+
});
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
198
213
|
if (record.owner !== 'zg_abp') {
|
|
199
214
|
request(apis.getPanelUseEvent, {
|
|
200
215
|
method: 'POST',
|
|
@@ -694,10 +709,6 @@ var TablePlus = function TablePlus(props) {
|
|
|
694
709
|
}, record.alias_name)), /*#__PURE__*/React.createElement(IconFont, {
|
|
695
710
|
className: "edit-alias-name",
|
|
696
711
|
onClick: function onClick() {
|
|
697
|
-
if (!authority[1000003]) {
|
|
698
|
-
message.error('无操作权限');
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
712
|
setAliasNameInput(record.alias_name);
|
|
702
713
|
setAliasNameId(record.event_id);
|
|
703
714
|
setaliasNameShow(true);
|
|
@@ -724,7 +735,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
724
735
|
placement: "top"
|
|
725
736
|
}, /*#__PURE__*/React.createElement("div", {
|
|
726
737
|
className: "alias_name_text"
|
|
727
|
-
}, record.triggeringOccasion)), /*#__PURE__*/React.createElement(IconFont, {
|
|
738
|
+
}, record.triggeringOccasion)), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
|
|
728
739
|
className: "edit-alias-name",
|
|
729
740
|
onClick: function onClick() {
|
|
730
741
|
setTriggeringInput(record.triggeringOccasion);
|
|
@@ -732,7 +743,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
732
743
|
setTriggeringShow(true);
|
|
733
744
|
},
|
|
734
745
|
type: "zhongmingming"
|
|
735
|
-
}));
|
|
746
|
+
})));
|
|
736
747
|
}
|
|
737
748
|
},
|
|
738
749
|
// {
|
|
@@ -750,30 +761,23 @@ var TablePlus = function TablePlus(props) {
|
|
|
750
761
|
key: 'platformStr',
|
|
751
762
|
width: 260,
|
|
752
763
|
render: function render(text, record) {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
setCurrentMaidian(text.split(','));
|
|
771
|
-
setCurrentRow(record);
|
|
772
|
-
}
|
|
773
|
-
}));
|
|
774
|
-
} else {
|
|
775
|
-
return text;
|
|
776
|
-
}
|
|
764
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
765
|
+
className: "event_attrs"
|
|
766
|
+
}, text && text.split(',').map(function (item, index) {
|
|
767
|
+
var _maidianList$filter$;
|
|
768
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
769
|
+
key: index
|
|
770
|
+
}, (_maidianList$filter$ = maidianList.filter(function (obj) {
|
|
771
|
+
return obj.value == item;
|
|
772
|
+
})[0]) === null || _maidianList$filter$ === void 0 ? void 0 : _maidianList$filter$.label);
|
|
773
|
+
}), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
|
|
774
|
+
type: "bianji1",
|
|
775
|
+
onClick: function onClick() {
|
|
776
|
+
setIsMaidianModal(true);
|
|
777
|
+
text && setCurrentMaidian(text.split(','));
|
|
778
|
+
setCurrentRow(record);
|
|
779
|
+
}
|
|
780
|
+
})));
|
|
777
781
|
}
|
|
778
782
|
}, {
|
|
779
783
|
title: '末次上报时间',
|
|
@@ -796,10 +800,10 @@ var TablePlus = function TablePlus(props) {
|
|
|
796
800
|
}).length, /*#__PURE__*/React.createElement(IconFont, {
|
|
797
801
|
type: "bianji1",
|
|
798
802
|
onClick: function onClick() {
|
|
799
|
-
if (!authority[1000003]) {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
+
// if (!authority[1000003]) {
|
|
804
|
+
// message.error('无修改权限');
|
|
805
|
+
// return;
|
|
806
|
+
// }
|
|
803
807
|
props.eventAttrDataHandle(record);
|
|
804
808
|
}
|
|
805
809
|
}));
|
|
@@ -898,7 +902,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
898
902
|
color: '#5f6085'
|
|
899
903
|
}
|
|
900
904
|
}),
|
|
901
|
-
disabled: rowClassNameHandle(record) == 'error-row' || isDemo
|
|
905
|
+
disabled: rowClassNameHandle(record) == 'error-row' || isDemo || !authority[10000017],
|
|
902
906
|
onChange: function onChange(e) {
|
|
903
907
|
return eventHiddenChange(e, 'is_stop', record);
|
|
904
908
|
},
|
|
@@ -921,6 +925,22 @@ var TablePlus = function TablePlus(props) {
|
|
|
921
925
|
className: "insert_time"
|
|
922
926
|
}, text);
|
|
923
927
|
}
|
|
928
|
+
}, {
|
|
929
|
+
title: '看板引用次数',
|
|
930
|
+
dataIndex: 'panelCount',
|
|
931
|
+
width: 150,
|
|
932
|
+
render: function render(panelCount, record) {
|
|
933
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
934
|
+
type: "link",
|
|
935
|
+
style: {
|
|
936
|
+
padding: 0
|
|
937
|
+
},
|
|
938
|
+
onClick: function onClick() {
|
|
939
|
+
setPanelShow(true);
|
|
940
|
+
setCurrentRow(record);
|
|
941
|
+
}
|
|
942
|
+
}, ' ', panelCount || 0, ' ');
|
|
943
|
+
}
|
|
924
944
|
}, {
|
|
925
945
|
title: '创建时间',
|
|
926
946
|
dataIndex: 'create_date_time',
|
|
@@ -945,7 +965,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
945
965
|
ellipsis: {
|
|
946
966
|
tooltip: text
|
|
947
967
|
}
|
|
948
|
-
}, text), /*#__PURE__*/React.createElement(IconFont, {
|
|
968
|
+
}, text), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
|
|
949
969
|
type: "bianji1",
|
|
950
970
|
onClick: function onClick() {
|
|
951
971
|
if (!authority[1000003]) {
|
|
@@ -956,13 +976,13 @@ var TablePlus = function TablePlus(props) {
|
|
|
956
976
|
setCurrentRemark(text);
|
|
957
977
|
setCurrentRow(record);
|
|
958
978
|
}
|
|
959
|
-
}));
|
|
979
|
+
})));
|
|
960
980
|
}
|
|
961
981
|
}, {
|
|
962
982
|
title: '操作',
|
|
963
983
|
dataIndex: 'set',
|
|
964
984
|
key: 'set',
|
|
965
|
-
width:
|
|
985
|
+
width: 150,
|
|
966
986
|
fixed: 'right',
|
|
967
987
|
render: function render(_, record) {
|
|
968
988
|
if (record.groupId) {
|
|
@@ -999,8 +1019,13 @@ var TablePlus = function TablePlus(props) {
|
|
|
999
1019
|
onClick: function onClick() {
|
|
1000
1020
|
eventTextHandle(record);
|
|
1001
1021
|
}
|
|
1002
|
-
}, "\u6D4B\u8BD5")) : null, /*#__PURE__*/React.createElement(
|
|
1003
|
-
|
|
1022
|
+
}, "\u6D4B\u8BD5")) : null, /*#__PURE__*/React.createElement(Button, {
|
|
1023
|
+
type: "link",
|
|
1024
|
+
style: {
|
|
1025
|
+
padding: 0
|
|
1026
|
+
},
|
|
1027
|
+
disabled: isDemo || !authority[1000004],
|
|
1028
|
+
// className={`set ${record.owner == 'zg_abp' ? 'set-error' : ''}`}
|
|
1004
1029
|
onClick: function onClick() {
|
|
1005
1030
|
if (isDemo || !authority[1000004]) {
|
|
1006
1031
|
message.error('无修改权限');
|
|
@@ -1008,14 +1033,67 @@ var TablePlus = function TablePlus(props) {
|
|
|
1008
1033
|
}
|
|
1009
1034
|
eventItemDel(record);
|
|
1010
1035
|
}
|
|
1011
|
-
}, "\u5220\u9664")
|
|
1036
|
+
}, "\u5220\u9664"), /*#__PURE__*/React.createElement(Button, {
|
|
1037
|
+
type: "link",
|
|
1038
|
+
style: {
|
|
1039
|
+
padding: 0
|
|
1040
|
+
},
|
|
1041
|
+
disabled: isDemo || !authority[1000004],
|
|
1042
|
+
// className={`set ${record.owner == 'zg_abp' ? 'set-error' : ''}`}
|
|
1043
|
+
onClick: function onClick() {
|
|
1044
|
+
if (isDemo || !authority[1000004]) {
|
|
1045
|
+
message.error('无修改权限');
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
setCurrentRow(record);
|
|
1049
|
+
setOfflineShow(true);
|
|
1050
|
+
}
|
|
1051
|
+
}, "\u4E0B\u7EBF")));
|
|
1012
1052
|
}
|
|
1013
1053
|
}
|
|
1014
1054
|
}];
|
|
1015
|
-
|
|
1055
|
+
//看板引用次数
|
|
1056
|
+
var _useState41 = useState(false),
|
|
1016
1057
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
1017
|
-
|
|
1018
|
-
|
|
1058
|
+
panelShow = _useState42[0],
|
|
1059
|
+
setPanelShow = _useState42[1];
|
|
1060
|
+
//下线功能
|
|
1061
|
+
var _useState43 = useState(false),
|
|
1062
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
1063
|
+
offlineShow = _useState44[0],
|
|
1064
|
+
setOfflineShow = _useState44[1];
|
|
1065
|
+
var _useState45 = useState(''),
|
|
1066
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
1067
|
+
offlineText = _useState46[0],
|
|
1068
|
+
setOfflineText = _useState46[1];
|
|
1069
|
+
//功能下线
|
|
1070
|
+
var offlineEvent = function offlineEvent() {
|
|
1071
|
+
request(apis.offlineEvent, {
|
|
1072
|
+
method: 'post',
|
|
1073
|
+
data: {
|
|
1074
|
+
eventId: currentRow === null || currentRow === void 0 ? void 0 : currentRow.event_id,
|
|
1075
|
+
appId: getAppID(currentApp),
|
|
1076
|
+
reason: offlineText
|
|
1077
|
+
}
|
|
1078
|
+
}).then(function (res) {
|
|
1079
|
+
if (res.code == '100000') {
|
|
1080
|
+
notification.success({
|
|
1081
|
+
message: '下线成功'
|
|
1082
|
+
});
|
|
1083
|
+
setOfflineText('');
|
|
1084
|
+
setOfflineShow(false);
|
|
1085
|
+
props.Refresh();
|
|
1086
|
+
return;
|
|
1087
|
+
}
|
|
1088
|
+
notification.error({
|
|
1089
|
+
message: res === null || res === void 0 ? void 0 : res.msg
|
|
1090
|
+
});
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
var _useState47 = useState(''),
|
|
1094
|
+
_useState48 = _slicedToArray(_useState47, 2),
|
|
1095
|
+
scrollY = _useState48[0],
|
|
1096
|
+
setScrollY = _useState48[1];
|
|
1019
1097
|
//页面加载完成后才能获取到对应的元素及其位置
|
|
1020
1098
|
useEffect(function () {
|
|
1021
1099
|
var _Y = getTableScroll(102, 'dataManageTablePlus');
|
|
@@ -1202,6 +1280,42 @@ var TablePlus = function TablePlus(props) {
|
|
|
1202
1280
|
onChange: function onChange(e) {
|
|
1203
1281
|
setTriggeringInput(e.target.value);
|
|
1204
1282
|
}
|
|
1283
|
+
})), /*#__PURE__*/React.createElement(Drawer, {
|
|
1284
|
+
className: "".concat(classPrefix, "-drawer"),
|
|
1285
|
+
width: '65%',
|
|
1286
|
+
title: /*#__PURE__*/React.createElement("div", null, "\u770B\u677F\u5F15\u7528\u6B21\u6570"),
|
|
1287
|
+
placement: "right",
|
|
1288
|
+
destroyOnClose: true,
|
|
1289
|
+
onClose: function onClose() {
|
|
1290
|
+
return setPanelShow(false);
|
|
1291
|
+
},
|
|
1292
|
+
open: panelShow
|
|
1293
|
+
}, /*#__PURE__*/React.createElement(PanelList, {
|
|
1294
|
+
eventId: currentRow === null || currentRow === void 0 ? void 0 : currentRow.event_id
|
|
1295
|
+
})), /*#__PURE__*/React.createElement(Modal, {
|
|
1296
|
+
title: "\u8BF7\u586B\u5199\u4E0B\u7EBF\u539F\u56E0",
|
|
1297
|
+
centered: true,
|
|
1298
|
+
okText: "\u786E\u5B9A",
|
|
1299
|
+
open: offlineShow,
|
|
1300
|
+
onOk: offlineEvent,
|
|
1301
|
+
onCancel: function onCancel() {
|
|
1302
|
+
setOfflineText('');
|
|
1303
|
+
setOfflineShow(false);
|
|
1304
|
+
},
|
|
1305
|
+
width: 520,
|
|
1306
|
+
destroyOnClose: true
|
|
1307
|
+
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
1308
|
+
value: offlineText,
|
|
1309
|
+
showCount: true,
|
|
1310
|
+
maxLength: 100,
|
|
1311
|
+
onChange: function onChange(val) {
|
|
1312
|
+
setOfflineText(val.currentTarget.value);
|
|
1313
|
+
},
|
|
1314
|
+
placeholder: "\u4E0B\u7EBF\u539F\u56E0.....",
|
|
1315
|
+
style: {
|
|
1316
|
+
height: 120,
|
|
1317
|
+
resize: 'none'
|
|
1318
|
+
}
|
|
1205
1319
|
})));
|
|
1206
1320
|
};
|
|
1207
1321
|
export default TablePlus;
|
|
@@ -42,6 +42,10 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
42
42
|
eventNameData = _useState8[0],
|
|
43
43
|
setEventNameData = _useState8[1];
|
|
44
44
|
var eventNameEdit = function eventNameEdit() {
|
|
45
|
+
if (!eventNameInput || eventNameInput.trim() === '') {
|
|
46
|
+
message.error('分组名称不能为空!');
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
45
49
|
request(apis.upsertEventGroup, {
|
|
46
50
|
method: 'post',
|
|
47
51
|
data: {
|
|
@@ -80,11 +80,10 @@ export default (function () {
|
|
|
80
80
|
return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement(DataManage
|
|
81
81
|
// isSelect={true}
|
|
82
82
|
// isSelectTab={'1'}
|
|
83
|
-
// selectTreeName="新页面_点击"
|
|
84
83
|
, {
|
|
85
84
|
// isSelect={true}
|
|
86
85
|
// isSelectTab={'1'}
|
|
87
|
-
|
|
86
|
+
selectTreeName: "\u65B0\u9875\u9762_\u70B9\u51FB",
|
|
88
87
|
onChangeSelectObj: setSelectObj,
|
|
89
88
|
selectObj: selectObj
|
|
90
89
|
}));
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
.ant-select {
|
|
22
22
|
border-radius: 4px !important;
|
|
23
23
|
}
|
|
24
|
+
&-text {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
}
|
|
24
29
|
.loading {
|
|
25
30
|
position: fixed;
|
|
26
31
|
top: 70%;
|
|
@@ -1193,3 +1198,8 @@
|
|
|
1193
1198
|
}
|
|
1194
1199
|
}
|
|
1195
1200
|
}
|
|
1201
|
+
.button-add {
|
|
1202
|
+
position: absolute;
|
|
1203
|
+
right: 0;
|
|
1204
|
+
bottom: -50px;
|
|
1205
|
+
}
|
|
@@ -40,6 +40,7 @@ var DrawerAdd = function DrawerAdd(props) {
|
|
|
40
40
|
}, [props.open]);
|
|
41
41
|
var closeDrawer = function closeDrawer() {
|
|
42
42
|
setIsOpen(false);
|
|
43
|
+
setEvent({});
|
|
43
44
|
form.resetFields(); // 表单重置
|
|
44
45
|
conditionRef.current.deleteAll(); // 重置固定筛选数组
|
|
45
46
|
props.handleClose();
|
|
@@ -183,6 +184,7 @@ var DrawerAdd = function DrawerAdd(props) {
|
|
|
183
184
|
placement: "right",
|
|
184
185
|
onClose: onClose,
|
|
185
186
|
open: isOpen,
|
|
187
|
+
destroyOnClose: true,
|
|
186
188
|
width: "800px",
|
|
187
189
|
footer: /*#__PURE__*/React.createElement("div", {
|
|
188
190
|
className: "".concat(pageClassName, "_footer")
|