dlt-for-react 1.0.16 → 1.0.17

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/README.md CHANGED
@@ -8,7 +8,7 @@ npm publish
8
8
 
9
9
  ## 前端 dlt-for-react 依赖包版本更新记录
10
10
 
11
- ##### 当前最新版本:1.0.16
11
+ ##### 当前最新版本:1.0.17
12
12
 
13
13
  ##### 安装依赖
14
14
 
package/lib/index.js CHANGED
@@ -337,6 +337,24 @@ Object.defineProperty(exports, 'createUuid', {
337
337
  }
338
338
  });
339
339
 
340
+ var _toFormDesignPage = require('./utils/toFormDesignPage.js');
341
+
342
+ Object.defineProperty(exports, 'toFormDesignPage', {
343
+ enumerable: true,
344
+ get: function get() {
345
+ return _interopRequireDefault(_toFormDesignPage).default;
346
+ }
347
+ });
348
+
349
+ var _toFormFillingPage = require('./utils/toFormFillingPage.js');
350
+
351
+ Object.defineProperty(exports, 'toFormFillingPage', {
352
+ enumerable: true,
353
+ get: function get() {
354
+ return _interopRequireDefault(_toFormFillingPage).default;
355
+ }
356
+ });
357
+
340
358
  var _toProcessDesignPage = require('./utils/toProcessDesignPage.js');
341
359
 
342
360
  Object.defineProperty(exports, 'toProcessDesignPage', {
@@ -380,7 +398,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
380
398
  * @Description:
381
399
  * @Author: jiangzhongxin
382
400
  * @LastEditors: jiangzhongxin
383
- * @LastEditTime: 2023-10-30 18:04:35
401
+ * @LastEditTime: 2023-10-31 15:45:15
384
402
  * @Copyright: 2023 LIANYI TECHNOLOGY CO.,LTD. All Rights Reserved. 联奕科技有限公司
385
403
  */
386
404
  var ENV = process.env.NODE_ENV;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _NHFetch = require("./NHFetch");
8
+
9
+ var _NHFetch2 = _interopRequireDefault(_NHFetch);
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ /**
14
+ * 跳转流程申请界面
15
+ * @param {*} processId 流程的ID
16
+ * @param {*} key 传值用
17
+ */
18
+ var toFormDesignPage = function toFormDesignPage(processId, key) {
19
+ var flag = "XTGL_BPM_URL";
20
+ (0, _NHFetch2.default)(window.xtglUrl + "/common/parameters/get", "POST", [flag]).then(function (res) {
21
+ if (res) {
22
+ window.open(res.data[flag] + "/#/formGenerator?formNumber=" + processId + "&key=" + key);
23
+ }
24
+ });
25
+ };
26
+ exports.default = toFormDesignPage;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _NHFetch = require("./NHFetch");
8
+
9
+ var _NHFetch2 = _interopRequireDefault(_NHFetch);
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ /**
14
+ * 跳转流程查看界面
15
+ * @param {*} docUnid 流程申请实例ID
16
+ * @param {*} processId 流程的ID
17
+ */
18
+ var toFormFillingPage = function toFormFillingPage(processId, docUnid) {
19
+ var flag = "XTGL_BPM_URL";
20
+ (0, _NHFetch2.default)(window.xtglUrl + "/common/parameters/get", "POST", [flag]).then(function (res) {
21
+ if (res) {
22
+ window.open(res.data[flag] + "/#/formRender/run?processId=" + processId + "&docUnid=" + docUnid);
23
+ }
24
+ });
25
+ };
26
+ exports.default = toFormFillingPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlt-for-react",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "dlt for react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {