@zgfe/modules-dm 1.0.56-zhongyuan.5 → 1.0.56-zhongyuan.7
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.
|
@@ -945,7 +945,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
945
945
|
ellipsis: {
|
|
946
946
|
tooltip: text
|
|
947
947
|
}
|
|
948
|
-
}, text),
|
|
948
|
+
}, text), /*#__PURE__*/React.createElement(IconFont, {
|
|
949
949
|
type: "bianji1",
|
|
950
950
|
onClick: function onClick() {
|
|
951
951
|
if (!authority[1000003]) {
|
|
@@ -956,7 +956,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
956
956
|
setCurrentRemark(text);
|
|
957
957
|
setCurrentRow(record);
|
|
958
958
|
}
|
|
959
|
-
}))
|
|
959
|
+
}));
|
|
960
960
|
}
|
|
961
961
|
}, {
|
|
962
962
|
title: '操作',
|
|
@@ -64,13 +64,19 @@ var DataRealView = function DataRealView() {
|
|
|
64
64
|
};
|
|
65
65
|
// 监听消息事件
|
|
66
66
|
socket.onmessage = function (event) {
|
|
67
|
-
var _message$detail, _message$detail$0$pr, _message$detail2, _message$detail2$, _message$detail2$$pr;
|
|
67
|
+
var _message$detail, _message$detail$0$pr, _message$detail2, _message$detail2$, _message$detail2$$pr, _message$detail3, _message$detail3$, _message$detail3$$pr;
|
|
68
68
|
var message = JSON.parse(event.data);
|
|
69
69
|
var obj = {
|
|
70
|
-
time:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
// time:
|
|
71
|
+
// moment(message?.detail?.[0].pr?.$ct).format('YYYY-MM-DD HH:mm:ss') ||
|
|
72
|
+
// filterPro('$ct', event),
|
|
73
|
+
// eventName: filterPro('$eid', event),
|
|
74
|
+
// userId: message?.detail?.[0]?.pr?.$cuid || filterPro('$cuid', event),
|
|
75
|
+
// data: event.data,
|
|
76
|
+
time: moment(message === null || message === void 0 ? void 0 : (_message$detail = message.detail) === null || _message$detail === void 0 ? void 0 : (_message$detail$0$pr = _message$detail[0].pr) === null || _message$detail$0$pr === void 0 ? void 0 : _message$detail$0$pr.$ct).format('YYYY-MM-DD HH:mm:ss'),
|
|
77
|
+
eventName: (message === null || message === void 0 ? void 0 : (_message$detail2 = message.detail) === null || _message$detail2 === void 0 ? void 0 : (_message$detail2$ = _message$detail2[0]) === null || _message$detail2$ === void 0 ? void 0 : (_message$detail2$$pr = _message$detail2$.pr) === null || _message$detail2$$pr === void 0 ? void 0 : _message$detail2$$pr.$eid) || filterPro('$eid', event),
|
|
78
|
+
userId: (message === null || message === void 0 ? void 0 : (_message$detail3 = message.detail) === null || _message$detail3 === void 0 ? void 0 : (_message$detail3$ = _message$detail3[0]) === null || _message$detail3$ === void 0 ? void 0 : (_message$detail3$$pr = _message$detail3$.pr) === null || _message$detail3$$pr === void 0 ? void 0 : _message$detail3$$pr.$cuid) || filterPro('$cuid', event),
|
|
79
|
+
data: "".concat(JSON.stringify(message))
|
|
74
80
|
};
|
|
75
81
|
// 最多为500条 超出去掉第一条
|
|
76
82
|
// setOldList((prev: any) => {
|
|
@@ -121,7 +127,8 @@ var DataRealView = function DataRealView() {
|
|
|
121
127
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
122
128
|
var match = _step.value;
|
|
123
129
|
if (match && match[1]) {
|
|
124
|
-
|
|
130
|
+
// 事件名去重
|
|
131
|
+
!eidValues.includes(match[1]) && eidValues.push(match[1]);
|
|
125
132
|
}
|
|
126
133
|
}
|
|
127
134
|
} catch (err) {
|
|
@@ -139,6 +139,7 @@ var DataRealViewTable = function DataRealViewTable(_ref) {
|
|
|
139
139
|
maxCharactersNumber: 1000000,
|
|
140
140
|
autoWrapText: true,
|
|
141
141
|
defaultHeaderRowHeight: 70,
|
|
142
|
+
// defaultRowHeight: 'auto', // 默认单元格行高
|
|
142
143
|
defaultRowHeight: 470,
|
|
143
144
|
enableLineBreak: true,
|
|
144
145
|
rowSeriesNumber: {
|
package/package.json
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.56-zhongyuan.
|
|
4
|
-
"license": "ISC",
|
|
5
|
-
"module": "es/index.js",
|
|
6
|
-
"typings": "es/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"es"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "father-build",
|
|
12
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
-
"docs:build": "dumi build",
|
|
14
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
-
"prepublishOnly": "npm run build",
|
|
16
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
-
"pub": "lerna publish",
|
|
18
|
-
"start": "dumi dev",
|
|
19
|
-
"test": "umi-test",
|
|
20
|
-
"test:coverage": "umi-test --coverage"
|
|
21
|
-
},
|
|
22
|
-
"lint-staged": {
|
|
23
|
-
"*.{js,jsx,less,md,json}": [
|
|
24
|
-
"prettier --write"
|
|
25
|
-
],
|
|
26
|
-
"*.ts?(x)": [
|
|
27
|
-
"prettier --parser=typescript --write"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@types/lodash-es": "^4.17.12",
|
|
32
|
-
"@visactor/react-vtable": "^1.12.0",
|
|
33
|
-
"@visactor/vtable": "^1.12.0",
|
|
34
|
-
"array-move": "^4.0.0",
|
|
35
|
-
"echarts": "^5.6.0",
|
|
36
|
-
"echarts-for-react": "^3.0.2",
|
|
37
|
-
"lodash-es": "^4.17.21",
|
|
38
|
-
"moment": "^2.30.1",
|
|
39
|
-
"react": "^16.12.0 || ^17.0.0",
|
|
40
|
-
"react-sortable-hoc": "^2.0.0"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@testing-library/jest-dom": "^5.15.1",
|
|
44
|
-
"@testing-library/react": "^12.1.2",
|
|
45
|
-
"@types/jest": "^27.0.3",
|
|
46
|
-
"@types/lodash": "^4.14.182",
|
|
47
|
-
"@umijs/fabric": "^2.8.1",
|
|
48
|
-
"@umijs/test": "^3.0.5",
|
|
49
|
-
"@zgfe/business-lib": "1.2.70-hxd.1",
|
|
50
|
-
"antd": "4.24.10",
|
|
51
|
-
"dumi": "^1.1.0",
|
|
52
|
-
"father-build": "^1.17.2",
|
|
53
|
-
"gh-pages": "^3.0.0",
|
|
54
|
-
"lerna": "^4.0.0",
|
|
55
|
-
"lint-staged": "^10.0.7",
|
|
56
|
-
"prettier": "^2.2.1",
|
|
57
|
-
"umi-request": "^1.4.0",
|
|
58
|
-
"yorkie": "^2.0.0"
|
|
59
|
-
},
|
|
60
|
-
"gitHead": "
|
|
61
|
-
"gitHooks": {
|
|
62
|
-
"pre-commit": "lint-staged"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@zgfe/modules-dm",
|
|
3
|
+
"version": "1.0.56-zhongyuan.7",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"typings": "es/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"es"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "father-build",
|
|
12
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
+
"docs:build": "dumi build",
|
|
14
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
+
"pub": "lerna publish",
|
|
18
|
+
"start": "dumi dev",
|
|
19
|
+
"test": "umi-test",
|
|
20
|
+
"test:coverage": "umi-test --coverage"
|
|
21
|
+
},
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"*.{js,jsx,less,md,json}": [
|
|
24
|
+
"prettier --write"
|
|
25
|
+
],
|
|
26
|
+
"*.ts?(x)": [
|
|
27
|
+
"prettier --parser=typescript --write"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/lodash-es": "^4.17.12",
|
|
32
|
+
"@visactor/react-vtable": "^1.12.0",
|
|
33
|
+
"@visactor/vtable": "^1.12.0",
|
|
34
|
+
"array-move": "^4.0.0",
|
|
35
|
+
"echarts": "^5.6.0",
|
|
36
|
+
"echarts-for-react": "^3.0.2",
|
|
37
|
+
"lodash-es": "^4.17.21",
|
|
38
|
+
"moment": "^2.30.1",
|
|
39
|
+
"react": "^16.12.0 || ^17.0.0",
|
|
40
|
+
"react-sortable-hoc": "^2.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@testing-library/jest-dom": "^5.15.1",
|
|
44
|
+
"@testing-library/react": "^12.1.2",
|
|
45
|
+
"@types/jest": "^27.0.3",
|
|
46
|
+
"@types/lodash": "^4.14.182",
|
|
47
|
+
"@umijs/fabric": "^2.8.1",
|
|
48
|
+
"@umijs/test": "^3.0.5",
|
|
49
|
+
"@zgfe/business-lib": "1.2.70-hxd.1",
|
|
50
|
+
"antd": "4.24.10",
|
|
51
|
+
"dumi": "^1.1.0",
|
|
52
|
+
"father-build": "^1.17.2",
|
|
53
|
+
"gh-pages": "^3.0.0",
|
|
54
|
+
"lerna": "^4.0.0",
|
|
55
|
+
"lint-staged": "^10.0.7",
|
|
56
|
+
"prettier": "^2.2.1",
|
|
57
|
+
"umi-request": "^1.4.0",
|
|
58
|
+
"yorkie": "^2.0.0"
|
|
59
|
+
},
|
|
60
|
+
"gitHead": "8bef9419d665a3427e4d8ddbf2ab05bdd2aaafa4",
|
|
61
|
+
"gitHooks": {
|
|
62
|
+
"pre-commit": "lint-staged"
|
|
63
|
+
}
|
|
64
|
+
}
|