dlt-for-react 1.0.15 → 1.0.16
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 +1 -1
- package/lib/components/HqSelector/HqRySelector/index.js +4 -4
- package/lib/index.js +37 -1
- package/lib/utils/toProcessApplyPage.js +26 -0
- package/lib/utils/toProcessDesignPage.js +35 -0
- package/lib/utils/toProcessVerifyPage.js +26 -0
- package/lib/utils/toProcessViewPage.js +26 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -125,7 +125,7 @@ var HqRySelector = exports.HqRySelector = function (_React$Component) {
|
|
|
125
125
|
var columns = [{
|
|
126
126
|
key: "gh",
|
|
127
127
|
title: "工号",
|
|
128
|
-
width: "
|
|
128
|
+
width: "60",
|
|
129
129
|
ellipsis: true,
|
|
130
130
|
render: function render(text, record) {
|
|
131
131
|
return record.GH || record.gh;
|
|
@@ -133,7 +133,7 @@ var HqRySelector = exports.HqRySelector = function (_React$Component) {
|
|
|
133
133
|
}, {
|
|
134
134
|
key: "xm",
|
|
135
135
|
title: "姓名",
|
|
136
|
-
|
|
136
|
+
width: "100",
|
|
137
137
|
sorted: false,
|
|
138
138
|
ellipsis: true,
|
|
139
139
|
render: function render(text, record) {
|
|
@@ -142,7 +142,7 @@ var HqRySelector = exports.HqRySelector = function (_React$Component) {
|
|
|
142
142
|
}, {
|
|
143
143
|
key: "xb",
|
|
144
144
|
title: "性别",
|
|
145
|
-
|
|
145
|
+
width: "80",
|
|
146
146
|
sorted: false,
|
|
147
147
|
ellipsis: true,
|
|
148
148
|
render: function render(text, record) {
|
|
@@ -209,7 +209,7 @@ var HqRySelector = exports.HqRySelector = function (_React$Component) {
|
|
|
209
209
|
{
|
|
210
210
|
key: "bmmc",
|
|
211
211
|
title: "所属部门",
|
|
212
|
-
|
|
212
|
+
width: "140",
|
|
213
213
|
sorted: false,
|
|
214
214
|
render: function render(text, record, index) {
|
|
215
215
|
var temp = record.BMMC || record.bmmc;
|
package/lib/index.js
CHANGED
|
@@ -337,6 +337,42 @@ Object.defineProperty(exports, 'createUuid', {
|
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
|
|
340
|
+
var _toProcessDesignPage = require('./utils/toProcessDesignPage.js');
|
|
341
|
+
|
|
342
|
+
Object.defineProperty(exports, 'toProcessDesignPage', {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function get() {
|
|
345
|
+
return _interopRequireDefault(_toProcessDesignPage).default;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
var _toProcessApplyPage = require('./utils/toProcessApplyPage.js');
|
|
350
|
+
|
|
351
|
+
Object.defineProperty(exports, 'toProcessApplyPage', {
|
|
352
|
+
enumerable: true,
|
|
353
|
+
get: function get() {
|
|
354
|
+
return _interopRequireDefault(_toProcessApplyPage).default;
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
var _toProcessVerifyPage = require('./utils/toProcessVerifyPage.js');
|
|
359
|
+
|
|
360
|
+
Object.defineProperty(exports, 'toProcessVerifyPage', {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function get() {
|
|
363
|
+
return _interopRequireDefault(_toProcessVerifyPage).default;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
var _toProcessViewPage = require('./utils/toProcessViewPage.js');
|
|
368
|
+
|
|
369
|
+
Object.defineProperty(exports, 'toProcessViewPage', {
|
|
370
|
+
enumerable: true,
|
|
371
|
+
get: function get() {
|
|
372
|
+
return _interopRequireDefault(_toProcessViewPage).default;
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
|
|
340
376
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
341
377
|
|
|
342
378
|
/*
|
|
@@ -344,7 +380,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
344
380
|
* @Description:
|
|
345
381
|
* @Author: jiangzhongxin
|
|
346
382
|
* @LastEditors: jiangzhongxin
|
|
347
|
-
* @LastEditTime: 2023-10-
|
|
383
|
+
* @LastEditTime: 2023-10-30 18:04:35
|
|
348
384
|
* @Copyright: 2023 LIANYI TECHNOLOGY CO.,LTD. All Rights Reserved. 联奕科技有限公司
|
|
349
385
|
*/
|
|
350
386
|
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 toProcessApplyPage = function toProcessApplyPage(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] + "/#/formRender/run?processId=" + processId + "&key=" + key);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
exports.default = toProcessApplyPage;
|
|
@@ -0,0 +1,35 @@
|
|
|
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 {*} categoryId 服务分类的标志
|
|
16
|
+
* @param {*} processId 流程的ID
|
|
17
|
+
* @param {*} type 流程类型,可以通过该类型拿到一些初始化的配置信息
|
|
18
|
+
*/
|
|
19
|
+
var toProcessDesignPage = function toProcessDesignPage(categoryId, processId, type) {
|
|
20
|
+
var flag = "XTGL_BPM_URL";
|
|
21
|
+
(0, _NHFetch2.default)(window.xtglUrl + "/common/parameters/get", "POST", [flag]).then(function (res) {
|
|
22
|
+
if (res) {
|
|
23
|
+
var url = res.data[flag];
|
|
24
|
+
(0, _NHFetch2.default)(window.xtglUrl + "/schoolMng/queryDqxx", "GET").then(function (res) {
|
|
25
|
+
if (res) {
|
|
26
|
+
console.info(res);
|
|
27
|
+
var xxdm = res.data.xxdm;
|
|
28
|
+
if (xxdm == undefined || xxdm == "" || xxdm == null) xxdm = 10000;
|
|
29
|
+
window.open(url + "/#/flow/" + categoryId + "-" + xxdm + "/" + processId + "?type=" + type);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
exports.default = toProcessDesignPage;
|
|
@@ -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 toProcessVerifyPage = function toProcessVerifyPage(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 = toProcessVerifyPage;
|
|
@@ -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 toProcessViewPage = function toProcessViewPage(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 = toProcessViewPage;
|