fmui-base 2.1.88 → 2.1.90
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 +2 -0
- package/lib/form/form.js +1 -1
- package/lib/process_info/processInfo.js +20 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -2573,7 +2573,7 @@ var PageHome = function (_React$Component) {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
var formItem = data.formItem;
|
|
2575
2575
|
var mainTblData = data.mainTblData;
|
|
2576
|
-
if (userId) {
|
|
2576
|
+
if (userId && formItem) {
|
|
2577
2577
|
// t.refs[mainTblName+"_"+itemExt.key].reloadItemParam(itemExt.value);
|
|
2578
2578
|
_db2.default.FlowModuleAPI.getUserInfo({ userId: userId }).then(function (content) {
|
|
2579
2579
|
if (content && content.length > 0) {
|
|
@@ -168,6 +168,8 @@ var PageHome = function (_React$Component) {
|
|
|
168
168
|
_inherits(PageHome, _React$Component);
|
|
169
169
|
|
|
170
170
|
function PageHome(props) {
|
|
171
|
+
var _param;
|
|
172
|
+
|
|
171
173
|
_classCallCheck(this, PageHome);
|
|
172
174
|
|
|
173
175
|
/* $(".loading-containter").hide();*/
|
|
@@ -319,7 +321,7 @@ var PageHome = function (_React$Component) {
|
|
|
319
321
|
//自动保存
|
|
320
322
|
var autoSaveApprove = getSystemInfo().autoSaveApprove;
|
|
321
323
|
|
|
322
|
-
var param =
|
|
324
|
+
var param = (_param = {
|
|
323
325
|
bottom: bottom,
|
|
324
326
|
editType: editType,
|
|
325
327
|
isDraft: isDraft,
|
|
@@ -458,7 +460,7 @@ var PageHome = function (_React$Component) {
|
|
|
458
460
|
selectProcessCode: '', //选中的子流程
|
|
459
461
|
subProcessType: '', //子流程类型 0串行 1并行
|
|
460
462
|
urgencyList: [], //紧急程度列表
|
|
461
|
-
urgency: '' }, 'urgent', '');
|
|
463
|
+
urgency: '' }, _defineProperty(_param, 'urgent', ''), _defineProperty(_param, 'backInitiatorEndFlow', '0'), _param);
|
|
462
464
|
FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
|
|
463
465
|
|
|
464
466
|
//处理特有参数
|
|
@@ -806,6 +808,7 @@ var PageHome = function (_React$Component) {
|
|
|
806
808
|
var urgencyList = [];
|
|
807
809
|
var urgency = '50';
|
|
808
810
|
var urgentSelectList = {};
|
|
811
|
+
var backInitiatorEndFlow = '0';
|
|
809
812
|
if (content.readScopeId && typeof content.readScopeId != "undefined") {
|
|
810
813
|
readScopeId = content.readScopeId;
|
|
811
814
|
}
|
|
@@ -837,6 +840,9 @@ var PageHome = function (_React$Component) {
|
|
|
837
840
|
if (content.urgency && typeof content.urgency != "undefined") {
|
|
838
841
|
urgency = content.urgency;
|
|
839
842
|
}
|
|
843
|
+
if (content.backInitiatorEndFlow && typeof content.backInitiatorEndFlow != "undefined") {
|
|
844
|
+
backInitiatorEndFlow = content.backInitiatorEndFlow;
|
|
845
|
+
}
|
|
840
846
|
if (content.urgencyList && typeof content.urgencyList != "undefined") {
|
|
841
847
|
urgencyList = content.urgencyList;
|
|
842
848
|
if (urgencyList.length > 0) {
|
|
@@ -1413,7 +1419,8 @@ var PageHome = function (_React$Component) {
|
|
|
1413
1419
|
dataInherit: dataInherit,
|
|
1414
1420
|
subProcessType: subProcessType,
|
|
1415
1421
|
urgencyList: urgencyList,
|
|
1416
|
-
urgentSelectList: urgentSelectList
|
|
1422
|
+
urgentSelectList: urgentSelectList,
|
|
1423
|
+
backInitiatorEndFlow: backInitiatorEndFlow
|
|
1417
1424
|
}, function () {
|
|
1418
1425
|
t.refs["selectMember_circulate"].initSelectData();
|
|
1419
1426
|
t.refs["selectMember_circulate1"].initSelectData();
|
|
@@ -4172,7 +4179,11 @@ var PageHome = function (_React$Component) {
|
|
|
4172
4179
|
var dataId = t.state.dataId;
|
|
4173
4180
|
//操作回调
|
|
4174
4181
|
if (content.isStart == '1' && typeof FlowCommon.operateCallBack === "function") {
|
|
4175
|
-
|
|
4182
|
+
if (t.state.backInitiatorEndFlow == '1') {
|
|
4183
|
+
FlowCommon.operateCallBack({ type: 2, dataId: dataId, isBatch: 0 }, t.state);
|
|
4184
|
+
} else {
|
|
4185
|
+
FlowCommon.operateCallBack({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
|
|
4186
|
+
}
|
|
4176
4187
|
} else if (typeof FlowCommon.operateCallBack === "function") {
|
|
4177
4188
|
FlowCommon.operateCallBack({ type: 8, dataId: dataId, isBatch: 0 }, t.state);
|
|
4178
4189
|
}
|
|
@@ -4186,7 +4197,11 @@ var PageHome = function (_React$Component) {
|
|
|
4186
4197
|
// alert("exception: "+e.message);
|
|
4187
4198
|
}
|
|
4188
4199
|
if (content.isStart == '1' && typeof mobileExt !== 'undefined' && typeof mobileExt["operateCallBack"] === "function") {
|
|
4189
|
-
|
|
4200
|
+
if (t.state.backInitiatorEndFlow == '1') {
|
|
4201
|
+
mobileExt["operateCallBack"]({ type: 2, dataId: dataId, isBatch: 0 }, t.state);
|
|
4202
|
+
} else {
|
|
4203
|
+
mobileExt["operateCallBack"]({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
|
|
4204
|
+
}
|
|
4190
4205
|
} else if (typeof FlowCommon.operateCallBack === "function") {
|
|
4191
4206
|
FlowCommon.operateCallBack({ type: 8, dataId: dataId, isBatch: 0 }, t.state);
|
|
4192
4207
|
}
|