ydb-components-material 0.1.136 → 0.1.138
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.d5d2dc1b.js → umi.b1f50a93.js} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/item.js +9 -3
- package/es/components/file-list/signerInfo.js +17 -4
- package/es/components/sign-file/index.js +12 -7
- package/lib/components/file-list/item.js +9 -3
- package/lib/components/file-list/signerInfo.js +17 -4
- package/lib/components/sign-file/index.js +12 -7
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -506,8 +506,11 @@ var FileItem = function FileItem(_ref) {
|
|
|
506
506
|
// 获取签pi结果
|
|
507
507
|
var getRes = function getRes(val) {
|
|
508
508
|
console.log('val---', val);
|
|
509
|
+
if (val.signId) {
|
|
510
|
+
delete val.signId;
|
|
511
|
+
}
|
|
509
512
|
valChange(val, fileIndex, index, subIndex);
|
|
510
|
-
invalidHandle()
|
|
513
|
+
// invalidHandle()
|
|
511
514
|
needOtherSign && setShowSignerInfo(true);
|
|
512
515
|
};
|
|
513
516
|
|
|
@@ -520,8 +523,11 @@ var FileItem = function FileItem(_ref) {
|
|
|
520
523
|
setShowSignPageClose(false); // 签章完之后就不展示签批页面的关闭按钮了。防止用户误点击退出去
|
|
521
524
|
sign();
|
|
522
525
|
} else {
|
|
526
|
+
if (val.signId) {
|
|
527
|
+
delete val.signId;
|
|
528
|
+
}
|
|
523
529
|
valChange(val, fileIndex, index, subIndex);
|
|
524
|
-
invalidHandle()
|
|
530
|
+
// invalidHandle()
|
|
525
531
|
needOtherSign && setShowSignerInfo(true);
|
|
526
532
|
}
|
|
527
533
|
};
|
|
@@ -702,7 +708,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
702
708
|
}
|
|
703
709
|
return _context6.abrupt("return");
|
|
704
710
|
case 1:
|
|
705
|
-
invalidHandle()
|
|
711
|
+
// invalidHandle()
|
|
706
712
|
valChange(undefined, fileIndex, index, subIndex);
|
|
707
713
|
case 2:
|
|
708
714
|
case "end":
|
|
@@ -55,7 +55,7 @@ function SignerInfo(props) {
|
|
|
55
55
|
};
|
|
56
56
|
var next = /*#__PURE__*/function () {
|
|
57
57
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
58
|
-
var i, item, fields, _i, _fields, field, val, fileObj, saveRes, id, workNo;
|
|
58
|
+
var i, item, fields, _i, _fields, field, val, fileObj, saveRes, id, workNo, taskHandleItem;
|
|
59
59
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
60
60
|
while (1) switch (_context.prev = _context.next) {
|
|
61
61
|
case 0:
|
|
@@ -130,15 +130,16 @@ function SignerInfo(props) {
|
|
|
130
130
|
file: fileObj,
|
|
131
131
|
materialName: materialName,
|
|
132
132
|
date: getCurrentTime(),
|
|
133
|
+
time: new Date(),
|
|
133
134
|
initId: file.initId
|
|
134
135
|
});
|
|
135
136
|
case 6:
|
|
136
137
|
saveRes = _context.sent;
|
|
137
138
|
if (saveRes) {
|
|
138
|
-
id = saveRes.id, workNo = saveRes.workNo;
|
|
139
|
+
id = saveRes.id, workNo = saveRes.workNo, taskHandleItem = saveRes.taskHandleItem;
|
|
139
140
|
fileObj.signId = id;
|
|
140
141
|
valChange === null || valChange === void 0 ? void 0 : valChange(fileObj, fileIndex, fileItemIndex, subIndex);
|
|
141
|
-
setUrl("https://zwfw.xzspglj.taiyuan.gov.cn/threeSign?id=" + id + "&draftNo=" + workNo);
|
|
142
|
+
setUrl("https://zwfw.xzspglj.taiyuan.gov.cn/threeSign?id=" + id + "&draftNo=" + workNo + "&taskHandleItem=" + taskHandleItem);
|
|
142
143
|
setShowQRcode(true);
|
|
143
144
|
} else {
|
|
144
145
|
_Message.warning('信息保存失败,请重试');
|
|
@@ -168,7 +169,19 @@ function SignerInfo(props) {
|
|
|
168
169
|
setSignerInfoList(newList);
|
|
169
170
|
};
|
|
170
171
|
var onCopy = function onCopy() {
|
|
171
|
-
|
|
172
|
+
var _navigator$clipboard;
|
|
173
|
+
if ((_navigator$clipboard = navigator.clipboard) !== null && _navigator$clipboard !== void 0 && _navigator$clipboard.writeText) {
|
|
174
|
+
navigator.clipboard.writeText(url);
|
|
175
|
+
} else {
|
|
176
|
+
var textarea = document.createElement('textarea');
|
|
177
|
+
textarea.value = url;
|
|
178
|
+
textarea.style.position = 'fixed';
|
|
179
|
+
textarea.style.opacity = '0';
|
|
180
|
+
document.body.appendChild(textarea);
|
|
181
|
+
textarea.select();
|
|
182
|
+
document.execCommand('copy');
|
|
183
|
+
document.body.removeChild(textarea);
|
|
184
|
+
}
|
|
172
185
|
_Message.success('复制成功');
|
|
173
186
|
};
|
|
174
187
|
useEffect(function () {
|
|
@@ -15,8 +15,8 @@ import { querySeal } from "../file-list/sealUtil";
|
|
|
15
15
|
import { getGuideImg, getUrlById, onlinePreview } from "../../api";
|
|
16
16
|
import { getFileExtension } from "./file.js";
|
|
17
17
|
import "./index.scss";
|
|
18
|
-
var SIGN = 1; // 签名
|
|
19
|
-
var SEAL = 2; // 签章
|
|
18
|
+
var SIGN = '1'; // 签名
|
|
19
|
+
var SEAL = '2'; // 签章
|
|
20
20
|
|
|
21
21
|
var SignFile = function SignFile(_ref) {
|
|
22
22
|
var file = _ref.file,
|
|
@@ -69,6 +69,9 @@ var SignFile = function SignFile(_ref) {
|
|
|
69
69
|
var _useState0 = useState(false),
|
|
70
70
|
hasSigned = _useState0[0],
|
|
71
71
|
setHasSigned = _useState0[1];
|
|
72
|
+
var _useState1 = useState(fileId),
|
|
73
|
+
currentFileId = _useState1[0],
|
|
74
|
+
setCurrentFileId = _useState1[1];
|
|
72
75
|
var fileCopy = useRef(_extends({}, file));
|
|
73
76
|
|
|
74
77
|
// 预览材料
|
|
@@ -78,7 +81,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
78
81
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
79
82
|
while (1) switch (_context.prev = _context.next) {
|
|
80
83
|
case 0:
|
|
81
|
-
if (
|
|
84
|
+
if (currentFileId) {
|
|
82
85
|
_context.next = 1;
|
|
83
86
|
break;
|
|
84
87
|
}
|
|
@@ -86,7 +89,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
86
89
|
case 1:
|
|
87
90
|
_context.next = 2;
|
|
88
91
|
return getUrlById({
|
|
89
|
-
id:
|
|
92
|
+
id: currentFileId,
|
|
90
93
|
effectiveTime: 3600000
|
|
91
94
|
}, {
|
|
92
95
|
token: token,
|
|
@@ -411,6 +414,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
411
414
|
// 获取签批结果
|
|
412
415
|
var getRes = function getRes(val) {
|
|
413
416
|
console.log('signVal---', val);
|
|
417
|
+
setCurrentFileId(val.fileId);
|
|
414
418
|
valChange(val);
|
|
415
419
|
setHasSigned(true);
|
|
416
420
|
};
|
|
@@ -423,17 +427,18 @@ var SignFile = function SignFile(_ref) {
|
|
|
423
427
|
setSealedFile(val);
|
|
424
428
|
sign(true);
|
|
425
429
|
} else {
|
|
430
|
+
setCurrentFileId(val.fileId);
|
|
426
431
|
valChange(val);
|
|
427
432
|
setHasSigned(true);
|
|
428
433
|
}
|
|
429
434
|
};
|
|
430
435
|
useEffect(function () {
|
|
431
|
-
if (
|
|
432
|
-
getViewUrl(
|
|
436
|
+
if (currentFileId) {
|
|
437
|
+
getViewUrl(currentFileId).then(function (url) {
|
|
433
438
|
setThumbnail(url);
|
|
434
439
|
});
|
|
435
440
|
}
|
|
436
|
-
}, [
|
|
441
|
+
}, [currentFileId]);
|
|
437
442
|
return /*#__PURE__*/React.createElement(_Loading, {
|
|
438
443
|
tip: '加载中...',
|
|
439
444
|
fullScreen: true,
|
|
@@ -512,8 +512,11 @@ var FileItem = function FileItem(_ref) {
|
|
|
512
512
|
// 获取签pi结果
|
|
513
513
|
var getRes = function getRes(val) {
|
|
514
514
|
console.log('val---', val);
|
|
515
|
+
if (val.signId) {
|
|
516
|
+
delete val.signId;
|
|
517
|
+
}
|
|
515
518
|
valChange(val, fileIndex, index, subIndex);
|
|
516
|
-
invalidHandle()
|
|
519
|
+
// invalidHandle()
|
|
517
520
|
needOtherSign && setShowSignerInfo(true);
|
|
518
521
|
};
|
|
519
522
|
|
|
@@ -526,8 +529,11 @@ var FileItem = function FileItem(_ref) {
|
|
|
526
529
|
setShowSignPageClose(false); // 签章完之后就不展示签批页面的关闭按钮了。防止用户误点击退出去
|
|
527
530
|
sign();
|
|
528
531
|
} else {
|
|
532
|
+
if (val.signId) {
|
|
533
|
+
delete val.signId;
|
|
534
|
+
}
|
|
529
535
|
valChange(val, fileIndex, index, subIndex);
|
|
530
|
-
invalidHandle()
|
|
536
|
+
// invalidHandle()
|
|
531
537
|
needOtherSign && setShowSignerInfo(true);
|
|
532
538
|
}
|
|
533
539
|
};
|
|
@@ -708,7 +714,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
708
714
|
}
|
|
709
715
|
return _context6.abrupt("return");
|
|
710
716
|
case 1:
|
|
711
|
-
invalidHandle()
|
|
717
|
+
// invalidHandle()
|
|
712
718
|
valChange(undefined, fileIndex, index, subIndex);
|
|
713
719
|
case 2:
|
|
714
720
|
case "end":
|
|
@@ -61,7 +61,7 @@ function SignerInfo(props) {
|
|
|
61
61
|
};
|
|
62
62
|
var next = /*#__PURE__*/function () {
|
|
63
63
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
64
|
-
var i, item, fields, _i, _fields, field, val, fileObj, saveRes, id, workNo;
|
|
64
|
+
var i, item, fields, _i, _fields, field, val, fileObj, saveRes, id, workNo, taskHandleItem;
|
|
65
65
|
return _regenerator["default"].wrap(function (_context) {
|
|
66
66
|
while (1) switch (_context.prev = _context.next) {
|
|
67
67
|
case 0:
|
|
@@ -136,15 +136,16 @@ function SignerInfo(props) {
|
|
|
136
136
|
file: fileObj,
|
|
137
137
|
materialName: materialName,
|
|
138
138
|
date: getCurrentTime(),
|
|
139
|
+
time: new Date(),
|
|
139
140
|
initId: file.initId
|
|
140
141
|
});
|
|
141
142
|
case 6:
|
|
142
143
|
saveRes = _context.sent;
|
|
143
144
|
if (saveRes) {
|
|
144
|
-
id = saveRes.id, workNo = saveRes.workNo;
|
|
145
|
+
id = saveRes.id, workNo = saveRes.workNo, taskHandleItem = saveRes.taskHandleItem;
|
|
145
146
|
fileObj.signId = id;
|
|
146
147
|
valChange === null || valChange === void 0 ? void 0 : valChange(fileObj, fileIndex, fileItemIndex, subIndex);
|
|
147
|
-
setUrl("https://zwfw.xzspglj.taiyuan.gov.cn/threeSign?id=" + id + "&draftNo=" + workNo);
|
|
148
|
+
setUrl("https://zwfw.xzspglj.taiyuan.gov.cn/threeSign?id=" + id + "&draftNo=" + workNo + "&taskHandleItem=" + taskHandleItem);
|
|
148
149
|
setShowQRcode(true);
|
|
149
150
|
} else {
|
|
150
151
|
_message["default"].warning('信息保存失败,请重试');
|
|
@@ -174,7 +175,19 @@ function SignerInfo(props) {
|
|
|
174
175
|
setSignerInfoList(newList);
|
|
175
176
|
};
|
|
176
177
|
var onCopy = function onCopy() {
|
|
177
|
-
|
|
178
|
+
var _navigator$clipboard;
|
|
179
|
+
if ((_navigator$clipboard = navigator.clipboard) !== null && _navigator$clipboard !== void 0 && _navigator$clipboard.writeText) {
|
|
180
|
+
navigator.clipboard.writeText(url);
|
|
181
|
+
} else {
|
|
182
|
+
var textarea = document.createElement('textarea');
|
|
183
|
+
textarea.value = url;
|
|
184
|
+
textarea.style.position = 'fixed';
|
|
185
|
+
textarea.style.opacity = '0';
|
|
186
|
+
document.body.appendChild(textarea);
|
|
187
|
+
textarea.select();
|
|
188
|
+
document.execCommand('copy');
|
|
189
|
+
document.body.removeChild(textarea);
|
|
190
|
+
}
|
|
178
191
|
_message["default"].success('复制成功');
|
|
179
192
|
};
|
|
180
193
|
(0, _react.useEffect)(function () {
|
|
@@ -21,8 +21,8 @@ var _api = require("../../api");
|
|
|
21
21
|
var _file2 = require("./file.js");
|
|
22
22
|
require("./index.scss");
|
|
23
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
24
|
-
var SIGN = 1; // 签名
|
|
25
|
-
var SEAL = 2; // 签章
|
|
24
|
+
var SIGN = '1'; // 签名
|
|
25
|
+
var SEAL = '2'; // 签章
|
|
26
26
|
|
|
27
27
|
var SignFile = function SignFile(_ref) {
|
|
28
28
|
var file = _ref.file,
|
|
@@ -75,6 +75,9 @@ var SignFile = function SignFile(_ref) {
|
|
|
75
75
|
var _useState0 = (0, _react.useState)(false),
|
|
76
76
|
hasSigned = _useState0[0],
|
|
77
77
|
setHasSigned = _useState0[1];
|
|
78
|
+
var _useState1 = (0, _react.useState)(fileId),
|
|
79
|
+
currentFileId = _useState1[0],
|
|
80
|
+
setCurrentFileId = _useState1[1];
|
|
78
81
|
var fileCopy = (0, _react.useRef)((0, _extends2["default"])({}, file));
|
|
79
82
|
|
|
80
83
|
// 预览材料
|
|
@@ -84,7 +87,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
84
87
|
return _regenerator["default"].wrap(function (_context) {
|
|
85
88
|
while (1) switch (_context.prev = _context.next) {
|
|
86
89
|
case 0:
|
|
87
|
-
if (
|
|
90
|
+
if (currentFileId) {
|
|
88
91
|
_context.next = 1;
|
|
89
92
|
break;
|
|
90
93
|
}
|
|
@@ -92,7 +95,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
92
95
|
case 1:
|
|
93
96
|
_context.next = 2;
|
|
94
97
|
return (0, _api.getUrlById)({
|
|
95
|
-
id:
|
|
98
|
+
id: currentFileId,
|
|
96
99
|
effectiveTime: 3600000
|
|
97
100
|
}, {
|
|
98
101
|
token: token,
|
|
@@ -417,6 +420,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
417
420
|
// 获取签批结果
|
|
418
421
|
var getRes = function getRes(val) {
|
|
419
422
|
console.log('signVal---', val);
|
|
423
|
+
setCurrentFileId(val.fileId);
|
|
420
424
|
valChange(val);
|
|
421
425
|
setHasSigned(true);
|
|
422
426
|
};
|
|
@@ -429,17 +433,18 @@ var SignFile = function SignFile(_ref) {
|
|
|
429
433
|
setSealedFile(val);
|
|
430
434
|
sign(true);
|
|
431
435
|
} else {
|
|
436
|
+
setCurrentFileId(val.fileId);
|
|
432
437
|
valChange(val);
|
|
433
438
|
setHasSigned(true);
|
|
434
439
|
}
|
|
435
440
|
};
|
|
436
441
|
(0, _react.useEffect)(function () {
|
|
437
|
-
if (
|
|
438
|
-
getViewUrl(
|
|
442
|
+
if (currentFileId) {
|
|
443
|
+
getViewUrl(currentFileId).then(function (url) {
|
|
439
444
|
setThumbnail(url);
|
|
440
445
|
});
|
|
441
446
|
}
|
|
442
|
-
}, [
|
|
447
|
+
}, [currentFileId]);
|
|
443
448
|
return /*#__PURE__*/_react["default"].createElement(_loading["default"], {
|
|
444
449
|
tip: '加载中...',
|
|
445
450
|
fullScreen: true,
|
package/lowcode_es/meta.js
CHANGED
|
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
98
98
|
packageName = 'ydb-components-material';
|
|
99
99
|
}
|
|
100
100
|
if (version === void 0) {
|
|
101
|
-
version = '0.1.
|
|
101
|
+
version = '0.1.138';
|
|
102
102
|
}
|
|
103
103
|
if (basicLibraryVersion === void 0) {
|
|
104
104
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
103
103
|
packageName = 'ydb-components-material';
|
|
104
104
|
}
|
|
105
105
|
if (version === void 0) {
|
|
106
|
-
version = '0.1.
|
|
106
|
+
version = '0.1.138';
|
|
107
107
|
}
|
|
108
108
|
if (basicLibraryVersion === void 0) {
|
|
109
109
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.138",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
},
|
|
103
103
|
"componentConfig": {
|
|
104
104
|
"isComponentLibrary": true,
|
|
105
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
105
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.138/build/lowcode/assets-prod.json"
|
|
106
106
|
},
|
|
107
107
|
"lcMeta": {
|
|
108
108
|
"type": "component"
|
|
109
109
|
},
|
|
110
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
110
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.138/build/index.html"
|
|
111
111
|
}
|