@kmkf-fe-packages/kmkf-work-order-service-component 2.2.5-beta.19 → 2.2.5-beta.20
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.
|
@@ -56,23 +56,21 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
56
56
|
flowWorkOrderId: info.flowWorkOrderId,
|
|
57
57
|
flowNodeId: info.flowNodeId
|
|
58
58
|
}).then(function (res) {
|
|
59
|
-
var _res$data;
|
|
59
|
+
var _res$data, _res$data2;
|
|
60
60
|
setUrl((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.link);
|
|
61
|
-
|
|
61
|
+
setShortUrl((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.shortShareLink);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
|
|
65
64
|
if (info.type === 'create' && info.companyKey && info.flowTemplateKey) {
|
|
66
65
|
createLink({
|
|
67
66
|
companyKey: info.companyKey,
|
|
68
67
|
flowTemplateKey: info.flowTemplateKey
|
|
69
68
|
}).then(function (res) {
|
|
70
|
-
var _res$
|
|
71
|
-
setUrl((_res$
|
|
72
|
-
|
|
69
|
+
var _res$data3, _res$data4;
|
|
70
|
+
setUrl((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.link);
|
|
71
|
+
setShortUrl((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.shortShareLink);
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
|
-
|
|
76
74
|
if (info.url) {
|
|
77
75
|
var regex = /^(https?:\/\/)/;
|
|
78
76
|
var formatUrl = info.url.match(regex) ? info.url : "".concat(window.location.protocol, "//").concat(info.url);
|
|
@@ -96,7 +94,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
96
94
|
var handleDownload = function handleDownload(id) {
|
|
97
95
|
var canvasImg = document.getElementById(id); // 获取canvas类型的二维码
|
|
98
96
|
var a = document.createElement('a');
|
|
99
|
-
a.download = info === null || info === void 0 ? void 0 : info.name;
|
|
97
|
+
a.download = (info === null || info === void 0 ? void 0 : info.name) || '数据分享二维码';
|
|
100
98
|
a.href = canvasImg.toDataURL('image/png');
|
|
101
99
|
document.body.appendChild(a);
|
|
102
100
|
a.click();
|
|
@@ -596,6 +596,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
598
|
(_ShareLinkModalRef$cu = ShareLinkModalRef.current) === null || _ShareLinkModalRef$cu === void 0 ? void 0 : _ShareLinkModalRef$cu.open({
|
|
599
|
+
title: '单条流程数据分享',
|
|
599
600
|
type: 'edit',
|
|
600
601
|
companyKey: plat.companyKey,
|
|
601
602
|
flowTemplateKey: flowTemplateKey,
|
|
@@ -224,7 +224,8 @@ export var getH5SharePermission = function getH5SharePermission() {
|
|
|
224
224
|
return request({
|
|
225
225
|
url: "/qy/gdfw/official/queryWorkOrderShareTemplate",
|
|
226
226
|
method: 'post',
|
|
227
|
-
data: {}
|
|
227
|
+
data: {},
|
|
228
|
+
infoLevel: 'quiet'
|
|
228
229
|
});
|
|
229
230
|
};
|
|
230
231
|
export var shortLink = function shortLink(data) {
|
|
@@ -43,7 +43,7 @@ var requestApi = function requestApi(_ref) {
|
|
|
43
43
|
} else if (infoLevel === 'error') {
|
|
44
44
|
message.error("path: ".concat(url, " ").concat(res.message, " traceId: ").concat(res.traceId));
|
|
45
45
|
} else {
|
|
46
|
-
console.log(res.message);
|
|
46
|
+
console.log("".concat(url).concat(res.message));
|
|
47
47
|
}
|
|
48
48
|
reject(res);
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "2.2.5-beta.
|
|
3
|
+
"version": "2.2.5-beta.20",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
35
|
"@kmkf-fe-packages/basic-components": "2.2.5-beta.18",
|
|
36
36
|
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.18",
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.2.5-beta.
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.5-beta.20",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ab426f7e72facb55899562d5c4fab5baba8f597d",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|