ydb-components-material 0.1.67 → 0.1.69
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.3e52b00d.js +1 -0
- 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/api.js +4 -1
- package/es/components/file-item/index.js +8 -10
- package/lib/api.js +5 -2
- package/lib/components/file-item/index.js +8 -10
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
- package/build/docs/umi.2387c9e8.js +0 -1
package/es/api.js
CHANGED
|
@@ -9,7 +9,7 @@ export var post = /*#__PURE__*/function () {
|
|
|
9
9
|
if (noJson === void 0) {
|
|
10
10
|
noJson = false;
|
|
11
11
|
}
|
|
12
|
-
console.log('window.env', window.env);
|
|
12
|
+
console.log('window.env', window.env, window.tokenTY);
|
|
13
13
|
if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
|
|
14
14
|
url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
|
|
15
15
|
}
|
|
@@ -139,6 +139,9 @@ export var previewApi = function previewApi(params, config) {
|
|
|
139
139
|
export var getMaterialLib = function getMaterialLib(params, config) {
|
|
140
140
|
return post("https://zwfwpt.sxzwfw.gov.cn/DeclarationAPI/declaration/material/queryFileByCardNo", params, config);
|
|
141
141
|
};
|
|
142
|
+
export var getMaterialPreview = function getMaterialPreview(params, config) {
|
|
143
|
+
return get(window.baseUrl + "/declaration/material/onlinePreview", params, config);
|
|
144
|
+
};
|
|
142
145
|
export var getSignFileApi = function getSignFileApi(params, config) {
|
|
143
146
|
return post(window.baseUrl + "/declaration/center/sign/api/getSignFileList", params, config);
|
|
144
147
|
};
|
|
@@ -267,9 +267,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
267
267
|
pageNum: 1,
|
|
268
268
|
pageSize: 10
|
|
269
269
|
};
|
|
270
|
-
getMaterialLib(params
|
|
271
|
-
token: token
|
|
272
|
-
}).then(function (res) {
|
|
270
|
+
getMaterialLib(params).then(function (res) {
|
|
273
271
|
if (res.code === 200) {
|
|
274
272
|
var records = res.data.records;
|
|
275
273
|
setMaterialLib(records);
|
|
@@ -299,8 +297,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
299
297
|
return getGuideImg({
|
|
300
298
|
id: guideImg,
|
|
301
299
|
effectiveTime: 3600000
|
|
302
|
-
}, {
|
|
303
|
-
tokenTY: tokenTY
|
|
304
300
|
});
|
|
305
301
|
case 2:
|
|
306
302
|
guideImgRes = _context.sent;
|
|
@@ -356,11 +352,13 @@ var FileItem = function FileItem(_ref) {
|
|
|
356
352
|
});
|
|
357
353
|
};
|
|
358
354
|
useEffect(function () {
|
|
359
|
-
if (userInfo && isShowLib) {
|
|
360
|
-
console.log('userInfo', userInfo);
|
|
361
|
-
|
|
355
|
+
if (userInfo && isShowLib && tokenTY) {
|
|
356
|
+
console.log('userInfo', tokenTY, userInfo);
|
|
357
|
+
setTimeout(function () {
|
|
358
|
+
queryFileLibs();
|
|
359
|
+
}, 0);
|
|
362
360
|
}
|
|
363
|
-
}, [userInfo, isShowLib]);
|
|
361
|
+
}, [userInfo, isShowLib, tokenTY]);
|
|
364
362
|
useEffect(function () {
|
|
365
363
|
window.env = env;
|
|
366
364
|
window.baseUrl = baseUrl;
|
|
@@ -368,7 +366,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
368
366
|
window.tokenTY = tokenTY;
|
|
369
367
|
window.isPC = isPC;
|
|
370
368
|
window.accessToken = accessToken;
|
|
371
|
-
}, [env, baseUrl]);
|
|
369
|
+
}, [env, baseUrl, token, tokenTY, isPC, accessToken]);
|
|
372
370
|
return /*#__PURE__*/React.createElement("div", {
|
|
373
371
|
className: "file_item"
|
|
374
372
|
}, /*#__PURE__*/React.createElement("div", {
|
package/lib/api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.signurl = exports.signFileDownApi = exports.qrySealApi = exports.previewApi = exports.post = exports.getSignOrderIdApi = exports.getSignFileApi = exports.getSealUrlApi = exports.getPcSealUrlApi = exports.getMaterialLib = exports.getIcons = exports.getGuideImg = exports.get = exports.fileUploadApi = exports.documentDownload = exports.createbycategory = exports.contractSignUrl = exports.contractFinish = exports.checkSignState = void 0;
|
|
5
|
+
exports.signurl = exports.signFileDownApi = exports.qrySealApi = exports.previewApi = exports.post = exports.getSignOrderIdApi = exports.getSignFileApi = exports.getSealUrlApi = exports.getPcSealUrlApi = exports.getMaterialPreview = exports.getMaterialLib = exports.getIcons = exports.getGuideImg = exports.get = exports.fileUploadApi = exports.documentDownload = exports.createbycategory = exports.contractSignUrl = exports.contractFinish = exports.checkSignState = void 0;
|
|
6
6
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
7
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
8
|
var post = exports.post = /*#__PURE__*/function () {
|
|
@@ -14,7 +14,7 @@ var post = exports.post = /*#__PURE__*/function () {
|
|
|
14
14
|
if (noJson === void 0) {
|
|
15
15
|
noJson = false;
|
|
16
16
|
}
|
|
17
|
-
console.log('window.env', window.env);
|
|
17
|
+
console.log('window.env', window.env, window.tokenTY);
|
|
18
18
|
if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
|
|
19
19
|
url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
|
|
20
20
|
}
|
|
@@ -144,6 +144,9 @@ var previewApi = exports.previewApi = function previewApi(params, config) {
|
|
|
144
144
|
var getMaterialLib = exports.getMaterialLib = function getMaterialLib(params, config) {
|
|
145
145
|
return post("https://zwfwpt.sxzwfw.gov.cn/DeclarationAPI/declaration/material/queryFileByCardNo", params, config);
|
|
146
146
|
};
|
|
147
|
+
var getMaterialPreview = exports.getMaterialPreview = function getMaterialPreview(params, config) {
|
|
148
|
+
return get(window.baseUrl + "/declaration/material/onlinePreview", params, config);
|
|
149
|
+
};
|
|
147
150
|
var getSignFileApi = exports.getSignFileApi = function getSignFileApi(params, config) {
|
|
148
151
|
return post(window.baseUrl + "/declaration/center/sign/api/getSignFileList", params, config);
|
|
149
152
|
};
|
|
@@ -273,9 +273,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
273
273
|
pageNum: 1,
|
|
274
274
|
pageSize: 10
|
|
275
275
|
};
|
|
276
|
-
(0, _api.getMaterialLib)(params
|
|
277
|
-
token: token
|
|
278
|
-
}).then(function (res) {
|
|
276
|
+
(0, _api.getMaterialLib)(params).then(function (res) {
|
|
279
277
|
if (res.code === 200) {
|
|
280
278
|
var records = res.data.records;
|
|
281
279
|
setMaterialLib(records);
|
|
@@ -305,8 +303,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
305
303
|
return (0, _api.getGuideImg)({
|
|
306
304
|
id: guideImg,
|
|
307
305
|
effectiveTime: 3600000
|
|
308
|
-
}, {
|
|
309
|
-
tokenTY: tokenTY
|
|
310
306
|
});
|
|
311
307
|
case 2:
|
|
312
308
|
guideImgRes = _context.sent;
|
|
@@ -362,11 +358,13 @@ var FileItem = function FileItem(_ref) {
|
|
|
362
358
|
});
|
|
363
359
|
};
|
|
364
360
|
(0, _react.useEffect)(function () {
|
|
365
|
-
if (userInfo && isShowLib) {
|
|
366
|
-
console.log('userInfo', userInfo);
|
|
367
|
-
|
|
361
|
+
if (userInfo && isShowLib && tokenTY) {
|
|
362
|
+
console.log('userInfo', tokenTY, userInfo);
|
|
363
|
+
setTimeout(function () {
|
|
364
|
+
queryFileLibs();
|
|
365
|
+
}, 0);
|
|
368
366
|
}
|
|
369
|
-
}, [userInfo, isShowLib]);
|
|
367
|
+
}, [userInfo, isShowLib, tokenTY]);
|
|
370
368
|
(0, _react.useEffect)(function () {
|
|
371
369
|
window.env = env;
|
|
372
370
|
window.baseUrl = baseUrl;
|
|
@@ -374,7 +372,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
374
372
|
window.tokenTY = tokenTY;
|
|
375
373
|
window.isPC = isPC;
|
|
376
374
|
window.accessToken = accessToken;
|
|
377
|
-
}, [env, baseUrl]);
|
|
375
|
+
}, [env, baseUrl, token, tokenTY, isPC, accessToken]);
|
|
378
376
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
379
377
|
className: "file_item"
|
|
380
378
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
package/lowcode_es/meta.js
CHANGED
|
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
89
89
|
packageName = 'ydb-components-material';
|
|
90
90
|
}
|
|
91
91
|
if (version === void 0) {
|
|
92
|
-
version = '0.1.
|
|
92
|
+
version = '0.1.69';
|
|
93
93
|
}
|
|
94
94
|
if (basicLibraryVersion === void 0) {
|
|
95
95
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
94
94
|
packageName = 'ydb-components-material';
|
|
95
95
|
}
|
|
96
96
|
if (version === void 0) {
|
|
97
|
-
version = '0.1.
|
|
97
|
+
version = '0.1.69';
|
|
98
98
|
}
|
|
99
99
|
if (basicLibraryVersion === void 0) {
|
|
100
100
|
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.69",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
},
|
|
98
98
|
"componentConfig": {
|
|
99
99
|
"isComponentLibrary": true,
|
|
100
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
100
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.69/build/lowcode/assets-prod.json"
|
|
101
101
|
},
|
|
102
102
|
"lcMeta": {
|
|
103
103
|
"type": "component"
|
|
104
104
|
},
|
|
105
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
105
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.69/build/index.html"
|
|
106
106
|
}
|