@kmkf-fe-packages/services-components 2.0.19-beta.61 → 2.0.19-beta.65
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.
|
@@ -3,6 +3,7 @@ declare type OperationLogProps = {
|
|
|
3
3
|
content: string;
|
|
4
4
|
operation: string;
|
|
5
5
|
componentDtoList: any[];
|
|
6
|
+
plat: any;
|
|
6
7
|
};
|
|
7
|
-
declare const OperationLog: ({ content, operation, componentDtoList, }: OperationLogProps) => React.JSX.Element | null;
|
|
8
|
+
declare const OperationLog: ({ content, operation, componentDtoList, plat, }: OperationLogProps) => React.JSX.Element | null;
|
|
8
9
|
export default OperationLog;
|
|
@@ -10,7 +10,8 @@ import { isNull, unTransField } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
10
10
|
var OperationLog = function OperationLog(_ref) {
|
|
11
11
|
var content = _ref.content,
|
|
12
12
|
operation = _ref.operation,
|
|
13
|
-
componentDtoList = _ref.componentDtoList
|
|
13
|
+
componentDtoList = _ref.componentDtoList,
|
|
14
|
+
plat = _ref.plat;
|
|
14
15
|
if (!content) return null;
|
|
15
16
|
try {
|
|
16
17
|
//todo过滤一些固定字段 展示不确定
|
|
@@ -77,7 +78,10 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
77
78
|
id: item.uniqueKey,
|
|
78
79
|
name: item.name,
|
|
79
80
|
componentConfig: item.componentConfig,
|
|
80
|
-
type: item.workOrderComponentType
|
|
81
|
+
type: item.workOrderComponentType,
|
|
82
|
+
effects: {
|
|
83
|
+
env: plat.platform
|
|
84
|
+
}
|
|
81
85
|
});
|
|
82
86
|
if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
|
|
83
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -17,7 +17,7 @@ import BsHeaderPic from "../BS/common/BsHeaderPic";
|
|
|
17
17
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import "./index.less";
|
|
19
19
|
import { Image, Tooltip, message } from "antd";
|
|
20
|
-
import { DownloadOutlined } from "@ant-design/icons";
|
|
20
|
+
import { DownloadOutlined, CopyOutlined } from "@ant-design/icons";
|
|
21
21
|
import copy from "copy-to-clipboard";
|
|
22
22
|
var hostUrl = "https://kefu.kuaimai.com";
|
|
23
23
|
var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options) {
|
|
@@ -42,6 +42,7 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
42
42
|
return pictures ? pictures.split(",") : [];
|
|
43
43
|
});
|
|
44
44
|
_defineProperty(this, "render", function (value) {
|
|
45
|
+
var _document;
|
|
45
46
|
if (!(value !== null && value !== void 0 && value.length)) {
|
|
46
47
|
return null;
|
|
47
48
|
}
|
|
@@ -54,6 +55,10 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
54
55
|
};
|
|
55
56
|
return /*#__PURE__*/React.createElement("div", {
|
|
56
57
|
className: "pictureProClient"
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
59
|
+
preview: _this.currenEnv === "ks" ? {
|
|
60
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById("root")
|
|
61
|
+
} : true
|
|
57
62
|
}, value.map(function (item) {
|
|
58
63
|
var finalImage = "".concat(/^pic\/[\s\S]*$/.test(item.url) ? "".concat(hostUrl, "/").concat(item.url) : item.url, "?x-oss-process=image/resize,h_60,w_60");
|
|
59
64
|
var showImage = /^pic\/[\s\S]*$/.test(item.url) ? "".concat(hostUrl, "/").concat(item.url) : item.url;
|
|
@@ -99,11 +104,14 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
99
104
|
className: "pictureProText"
|
|
100
105
|
}, item.name)), /*#__PURE__*/React.createElement("div", {
|
|
101
106
|
className: "pictureProOperate"
|
|
102
|
-
}, /*#__PURE__*/React.createElement(DownloadOutlined, {
|
|
107
|
+
}, _this.currenEnv === "pc" ? /*#__PURE__*/React.createElement(DownloadOutlined, {
|
|
108
|
+
className: "downloadIcon",
|
|
109
|
+
onClick: downloadHandle
|
|
110
|
+
}) : /*#__PURE__*/React.createElement(CopyOutlined, {
|
|
103
111
|
className: "downloadIcon",
|
|
104
112
|
onClick: downloadHandle
|
|
105
113
|
}))));
|
|
106
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
114
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
107
115
|
className: "copyText",
|
|
108
116
|
onClick: onCopy
|
|
109
117
|
}, "\u590D\u5236"));
|
|
@@ -148,7 +156,6 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
148
156
|
_defineProperty(this, "filterConfig", function () {
|
|
149
157
|
return [];
|
|
150
158
|
});
|
|
151
|
-
console.log("options", options);
|
|
152
159
|
this.name = options.name;
|
|
153
160
|
this.id = options.id;
|
|
154
161
|
this.sortField = "".concat(options.id, "_pictureProList");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.19-beta.
|
|
3
|
+
"version": "2.0.19-beta.65",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.0.19-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.19-beta.65",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.64",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "96311b7d9394507c63970bc1e5f0685cf1e1411b",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|