@kmkf-fe-packages/kmkf-work-order-service-component 2.2.5-beta.21 → 2.2.5-beta.25
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.
|
@@ -21,7 +21,8 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21
21
|
name: '',
|
|
22
22
|
mongoId: '',
|
|
23
23
|
url: '',
|
|
24
|
-
shortUrl: ''
|
|
24
|
+
shortUrl: '',
|
|
25
|
+
platform: ''
|
|
25
26
|
}),
|
|
26
27
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
27
28
|
info = _useState4[0],
|
|
@@ -89,6 +90,8 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
89
90
|
}
|
|
90
91
|
};
|
|
91
92
|
var onCancel = function onCancel() {
|
|
93
|
+
setUrl('');
|
|
94
|
+
setShortUrl('');
|
|
92
95
|
setVisible(false);
|
|
93
96
|
};
|
|
94
97
|
var handleDownload = function handleDownload(id) {
|
|
@@ -119,7 +122,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
119
122
|
}
|
|
120
123
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
121
124
|
type: "primary"
|
|
122
|
-
}, "\u590D\u5236")), /*#__PURE__*/React.createElement(Button, {
|
|
125
|
+
}, "\u590D\u5236")), info.platform === 'pc' && /*#__PURE__*/React.createElement(Button, {
|
|
123
126
|
type: "primary",
|
|
124
127
|
onClick: function onClick() {
|
|
125
128
|
window.open(url);
|
|
@@ -135,10 +138,10 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
135
138
|
}
|
|
136
139
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
137
140
|
type: "primary"
|
|
138
|
-
}, "\u590D\u5236")), /*#__PURE__*/React.createElement(Button, {
|
|
141
|
+
}, "\u590D\u5236")), info.platform === 'pc' && /*#__PURE__*/React.createElement(Button, {
|
|
139
142
|
type: "primary",
|
|
140
143
|
onClick: function onClick() {
|
|
141
|
-
window.open(shortUrl);
|
|
144
|
+
window.open("https://".concat(shortUrl));
|
|
142
145
|
}
|
|
143
146
|
}, "\u6253\u5F00"))), /*#__PURE__*/React.createElement(Text, null, shortUrl))), /*#__PURE__*/React.createElement("li", {
|
|
144
147
|
className: styles.shareLi
|
|
@@ -148,7 +151,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
148
151
|
className: styles.shareCodeBox
|
|
149
152
|
}, ['url', 'all'].includes(showType) && !!url && /*#__PURE__*/React.createElement("div", {
|
|
150
153
|
className: styles.codeOutBox
|
|
151
|
-
}, /*#__PURE__*/React.createElement("p", null, "\u5E38\u7528\u94FE\u63A5"), /*#__PURE__*/React.createElement(Button, {
|
|
154
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u5E38\u7528\u94FE\u63A5"), info.platform === 'pc' && /*#__PURE__*/React.createElement(Button, {
|
|
152
155
|
type: "primary",
|
|
153
156
|
className: styles.codeBtn,
|
|
154
157
|
onClick: function onClick() {
|
|
@@ -163,7 +166,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
163
166
|
fgColor: "#000000"
|
|
164
167
|
}))), ['shortUrl', 'all'].includes(showType) && !!shortUrl && /*#__PURE__*/React.createElement("div", {
|
|
165
168
|
className: styles.codeOutBox
|
|
166
|
-
}, /*#__PURE__*/React.createElement("p", null, "\u77ED\u94FE\u63A5"), /*#__PURE__*/React.createElement(Button, {
|
|
169
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u77ED\u94FE\u63A5"), info.platform === 'pc' && /*#__PURE__*/React.createElement(Button, {
|
|
167
170
|
type: "primary",
|
|
168
171
|
className: styles.codeBtn,
|
|
169
172
|
onClick: function onClick() {
|
|
@@ -601,7 +601,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
601
601
|
companyKey: plat.companyKey,
|
|
602
602
|
flowTemplateKey: flowTemplateKey,
|
|
603
603
|
flowWorkOrderId: flowWorkOrderId,
|
|
604
|
-
flowNodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no4 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no4 === void 0 ? void 0 : _currentNodeDetail$no4.id
|
|
604
|
+
flowNodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no4 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no4 === void 0 ? void 0 : _currentNodeDetail$no4.id,
|
|
605
|
+
platform: plat.platform
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
608
|
};
|
|
@@ -1123,13 +1124,12 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1123
1124
|
}, [flowTemplateKey, flowWorkOrderIdState]);
|
|
1124
1125
|
useEffect(function () {
|
|
1125
1126
|
var _currentNodeDetail$no12;
|
|
1126
|
-
if (flowTemplateKey && !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$no12 = currentNodeDetail.nodeInfo) !== null && _currentNodeDetail$no12 !== void 0 && _currentNodeDetail$no12.id) && !privilege) {
|
|
1127
|
+
if (flowTemplateKey && !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$no12 = currentNodeDetail.nodeInfo) !== null && _currentNodeDetail$no12 !== void 0 && _currentNodeDetail$no12.id) && !privilege && !!plat.companyKey) {
|
|
1127
1128
|
var _currentNodeDetail$no13;
|
|
1128
1129
|
dispatch(fetchShareNodeConfig({
|
|
1129
1130
|
companyKey: plat.companyKey,
|
|
1130
1131
|
flowTemplateKey: flowTemplateKey,
|
|
1131
|
-
flowNodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no13 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no13 === void 0 ? void 0 : _currentNodeDetail$no13.id
|
|
1132
|
-
userKey: plat.userKey
|
|
1132
|
+
flowNodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no13 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no13 === void 0 ? void 0 : _currentNodeDetail$no13.id
|
|
1133
1133
|
}));
|
|
1134
1134
|
dispatch(fetchH5SharePermission());
|
|
1135
1135
|
}
|
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.25",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "2.2.5-beta.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.2.5-beta.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.2.5-beta.25",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.24",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.5-beta.25",
|
|
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": "b32079adba4b6bbd9e1b9ed355162e72e85170e4",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|