ecinc-cloud-mappaio 9.6.92 → 9.6.93
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/lib/ecmappaio.common.js +14 -10
- package/lib/ecmappaio.umd.js +14 -10
- package/lib/ecmappaio.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -303,7 +303,7 @@ function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
|
|
|
303
303
|
return meta.btnName;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
if (meta.i18nCode && $scope.$te(meta.i18nCode)) {
|
|
306
|
+
if (meta.i18nCode && meta.i18nCode.indexOf('.') !== -1 && $scope.$te(meta.i18nCode)) {
|
|
307
307
|
return $scope.$t(meta.i18nCode, variables);
|
|
308
308
|
}
|
|
309
309
|
var moduleInfo = $scope.moduleInfo || $scope.$vnode.context.moduleInfo || $scope.$vnode.context.$vnode.context.moduleInfo;
|
|
@@ -40340,6 +40340,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40340
40340
|
$scope.canEditBodyfile = canEditBodyfile;
|
|
40341
40341
|
},
|
|
40342
40342
|
getWfJsonData: function getWfJsonData($scope, wfInstance, params) {
|
|
40343
|
+
var _this2 = this;
|
|
40343
40344
|
return new Promise(function (resolve) {
|
|
40344
40345
|
var wfEngineUrl = params.wfEngineUrl || $scope.wfEngineUrl || 'workflow/wfInstance';
|
|
40345
40346
|
wfEngineUrl += '/getWfJsonData';
|
|
@@ -40416,13 +40417,16 @@ var wfengine_install = function install(Vue) {
|
|
|
40416
40417
|
}
|
|
40417
40418
|
// $scope.submitTemplateList.unshift({ templateName: '---选择办理模板---', valid: true })
|
|
40418
40419
|
$scope.submitTemplate = $scope.submitTemplateList[0];
|
|
40420
|
+
_this2.$nextTick(function () {
|
|
40421
|
+
$scope.$bus.emit('initSubmitHandle');
|
|
40422
|
+
});
|
|
40419
40423
|
}
|
|
40420
40424
|
resolve(res);
|
|
40421
40425
|
});
|
|
40422
40426
|
});
|
|
40423
40427
|
},
|
|
40424
40428
|
saveWfInstance: function saveWfInstance($scope, submitType, params) {
|
|
40425
|
-
var
|
|
40429
|
+
var _this3 = this;
|
|
40426
40430
|
return new Promise(function (resolve) {
|
|
40427
40431
|
$scope.submitHandle.submitType = submitType;
|
|
40428
40432
|
delete $scope.submitHandle.selectedNodes;
|
|
@@ -40466,7 +40470,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40466
40470
|
$scope.submitHandle.busiContent = $scope.vo.flContent;
|
|
40467
40471
|
}
|
|
40468
40472
|
var submitHandle = JSON.parse(JSON.stringify($scope.submitHandle));
|
|
40469
|
-
if (submitType.indexOf('Save') !== -1
|
|
40473
|
+
if (submitType.indexOf('Save') !== -1) {
|
|
40470
40474
|
js_cookie_default().set('route-index-' + $scope.wfInstance.id, submitHandle.route.index);
|
|
40471
40475
|
var route = $scope.wfJsonData == null || $scope.wfJsonData.routes == null || $scope.wfJsonData.routes.length === 0 ? {
|
|
40472
40476
|
taskNodes: []
|
|
@@ -40528,7 +40532,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40528
40532
|
delete wfNode.users;
|
|
40529
40533
|
submitHandle.nextTNProp.push(wfNode);
|
|
40530
40534
|
submitHandle.nextTNUser.push(nextUsers);
|
|
40531
|
-
js_cookie_default().set('route-wfuser-' + $scope.
|
|
40535
|
+
js_cookie_default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, '', {
|
|
40532
40536
|
expires: 0
|
|
40533
40537
|
});
|
|
40534
40538
|
}
|
|
@@ -40599,7 +40603,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40599
40603
|
}
|
|
40600
40604
|
if (res.body.wfInstance.passenger.commandBar) {
|
|
40601
40605
|
var commandBar = JSON.parse(JSON.stringify(res.body.wfInstance.passenger.commandBar));
|
|
40602
|
-
|
|
40606
|
+
_this3.setCommandBar($scope, commandBar);
|
|
40603
40607
|
$scope.commandBar = commandBar;
|
|
40604
40608
|
}
|
|
40605
40609
|
$scope.vo = $scope.vobak;
|
|
@@ -40626,7 +40630,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40626
40630
|
if (typeof $scope.onWflowFormSubmited === 'function') {
|
|
40627
40631
|
$scope.onWflowFormSubmited($scope);
|
|
40628
40632
|
}
|
|
40629
|
-
|
|
40633
|
+
_this3.$nextTick(function () {
|
|
40630
40634
|
$scope.$bus.emit('initSubmitHandle');
|
|
40631
40635
|
});
|
|
40632
40636
|
} else {
|
|
@@ -40757,7 +40761,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40757
40761
|
};
|
|
40758
40762
|
},
|
|
40759
40763
|
checkOuterDeputy: function checkOuterDeputy($scope, params) {
|
|
40760
|
-
var
|
|
40764
|
+
var _this4 = this;
|
|
40761
40765
|
return new Promise(function (resole) {
|
|
40762
40766
|
if ($scope.submitHandle.needCheckOuterDeputy && $scope.submitHandle.needCheckOuterDeputy.length > 0) {
|
|
40763
40767
|
var nextTNUsers = $scope.submitHandle.needCheckOuterDeputy;
|
|
@@ -40807,7 +40811,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40807
40811
|
message: '已选择外出代理人。'
|
|
40808
40812
|
});
|
|
40809
40813
|
} else {
|
|
40810
|
-
|
|
40814
|
+
_this4.$bus.emit('selectOuterDeputys', outerDeputys, $scope.submitHandle.route, resole);
|
|
40811
40815
|
}
|
|
40812
40816
|
} else {
|
|
40813
40817
|
resole({
|
|
@@ -40828,7 +40832,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40828
40832
|
});
|
|
40829
40833
|
},
|
|
40830
40834
|
applySubmitTemplate: function applySubmitTemplate($scope, submitTemplate) {
|
|
40831
|
-
var
|
|
40835
|
+
var _this5 = this;
|
|
40832
40836
|
if ($scope.curTN.tnIdeaLabelID) {
|
|
40833
40837
|
$scope.submitHandle.curUserIdea = submitTemplate.curUserIdea;
|
|
40834
40838
|
}
|
|
@@ -40871,7 +40875,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40871
40875
|
self: asyncOrgId.split(',').length > 1
|
|
40872
40876
|
} // 查询条件
|
|
40873
40877
|
};
|
|
40874
|
-
|
|
40878
|
+
_this5.$http(reqParams).then(function (res) {
|
|
40875
40879
|
if (res.code === 'success') {
|
|
40876
40880
|
submitTemplate.route[nodeName].users.forEach(function (user) {
|
|
40877
40881
|
for (var j = 0; j < res.body.listdata.length; j++) {
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -313,7 +313,7 @@ function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
|
|
|
313
313
|
return meta.btnName;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
if (meta.i18nCode && $scope.$te(meta.i18nCode)) {
|
|
316
|
+
if (meta.i18nCode && meta.i18nCode.indexOf('.') !== -1 && $scope.$te(meta.i18nCode)) {
|
|
317
317
|
return $scope.$t(meta.i18nCode, variables);
|
|
318
318
|
}
|
|
319
319
|
var moduleInfo = $scope.moduleInfo || $scope.$vnode.context.moduleInfo || $scope.$vnode.context.$vnode.context.moduleInfo;
|
|
@@ -40350,6 +40350,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40350
40350
|
$scope.canEditBodyfile = canEditBodyfile;
|
|
40351
40351
|
},
|
|
40352
40352
|
getWfJsonData: function getWfJsonData($scope, wfInstance, params) {
|
|
40353
|
+
var _this2 = this;
|
|
40353
40354
|
return new Promise(function (resolve) {
|
|
40354
40355
|
var wfEngineUrl = params.wfEngineUrl || $scope.wfEngineUrl || 'workflow/wfInstance';
|
|
40355
40356
|
wfEngineUrl += '/getWfJsonData';
|
|
@@ -40426,13 +40427,16 @@ var wfengine_install = function install(Vue) {
|
|
|
40426
40427
|
}
|
|
40427
40428
|
// $scope.submitTemplateList.unshift({ templateName: '---选择办理模板---', valid: true })
|
|
40428
40429
|
$scope.submitTemplate = $scope.submitTemplateList[0];
|
|
40430
|
+
_this2.$nextTick(function () {
|
|
40431
|
+
$scope.$bus.emit('initSubmitHandle');
|
|
40432
|
+
});
|
|
40429
40433
|
}
|
|
40430
40434
|
resolve(res);
|
|
40431
40435
|
});
|
|
40432
40436
|
});
|
|
40433
40437
|
},
|
|
40434
40438
|
saveWfInstance: function saveWfInstance($scope, submitType, params) {
|
|
40435
|
-
var
|
|
40439
|
+
var _this3 = this;
|
|
40436
40440
|
return new Promise(function (resolve) {
|
|
40437
40441
|
$scope.submitHandle.submitType = submitType;
|
|
40438
40442
|
delete $scope.submitHandle.selectedNodes;
|
|
@@ -40476,7 +40480,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40476
40480
|
$scope.submitHandle.busiContent = $scope.vo.flContent;
|
|
40477
40481
|
}
|
|
40478
40482
|
var submitHandle = JSON.parse(JSON.stringify($scope.submitHandle));
|
|
40479
|
-
if (submitType.indexOf('Save') !== -1
|
|
40483
|
+
if (submitType.indexOf('Save') !== -1) {
|
|
40480
40484
|
js_cookie_default().set('route-index-' + $scope.wfInstance.id, submitHandle.route.index);
|
|
40481
40485
|
var route = $scope.wfJsonData == null || $scope.wfJsonData.routes == null || $scope.wfJsonData.routes.length === 0 ? {
|
|
40482
40486
|
taskNodes: []
|
|
@@ -40538,7 +40542,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40538
40542
|
delete wfNode.users;
|
|
40539
40543
|
submitHandle.nextTNProp.push(wfNode);
|
|
40540
40544
|
submitHandle.nextTNUser.push(nextUsers);
|
|
40541
|
-
js_cookie_default().set('route-wfuser-' + $scope.
|
|
40545
|
+
js_cookie_default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, '', {
|
|
40542
40546
|
expires: 0
|
|
40543
40547
|
});
|
|
40544
40548
|
}
|
|
@@ -40609,7 +40613,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40609
40613
|
}
|
|
40610
40614
|
if (res.body.wfInstance.passenger.commandBar) {
|
|
40611
40615
|
var commandBar = JSON.parse(JSON.stringify(res.body.wfInstance.passenger.commandBar));
|
|
40612
|
-
|
|
40616
|
+
_this3.setCommandBar($scope, commandBar);
|
|
40613
40617
|
$scope.commandBar = commandBar;
|
|
40614
40618
|
}
|
|
40615
40619
|
$scope.vo = $scope.vobak;
|
|
@@ -40636,7 +40640,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40636
40640
|
if (typeof $scope.onWflowFormSubmited === 'function') {
|
|
40637
40641
|
$scope.onWflowFormSubmited($scope);
|
|
40638
40642
|
}
|
|
40639
|
-
|
|
40643
|
+
_this3.$nextTick(function () {
|
|
40640
40644
|
$scope.$bus.emit('initSubmitHandle');
|
|
40641
40645
|
});
|
|
40642
40646
|
} else {
|
|
@@ -40767,7 +40771,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40767
40771
|
};
|
|
40768
40772
|
},
|
|
40769
40773
|
checkOuterDeputy: function checkOuterDeputy($scope, params) {
|
|
40770
|
-
var
|
|
40774
|
+
var _this4 = this;
|
|
40771
40775
|
return new Promise(function (resole) {
|
|
40772
40776
|
if ($scope.submitHandle.needCheckOuterDeputy && $scope.submitHandle.needCheckOuterDeputy.length > 0) {
|
|
40773
40777
|
var nextTNUsers = $scope.submitHandle.needCheckOuterDeputy;
|
|
@@ -40817,7 +40821,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40817
40821
|
message: '已选择外出代理人。'
|
|
40818
40822
|
});
|
|
40819
40823
|
} else {
|
|
40820
|
-
|
|
40824
|
+
_this4.$bus.emit('selectOuterDeputys', outerDeputys, $scope.submitHandle.route, resole);
|
|
40821
40825
|
}
|
|
40822
40826
|
} else {
|
|
40823
40827
|
resole({
|
|
@@ -40838,7 +40842,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40838
40842
|
});
|
|
40839
40843
|
},
|
|
40840
40844
|
applySubmitTemplate: function applySubmitTemplate($scope, submitTemplate) {
|
|
40841
|
-
var
|
|
40845
|
+
var _this5 = this;
|
|
40842
40846
|
if ($scope.curTN.tnIdeaLabelID) {
|
|
40843
40847
|
$scope.submitHandle.curUserIdea = submitTemplate.curUserIdea;
|
|
40844
40848
|
}
|
|
@@ -40881,7 +40885,7 @@ var wfengine_install = function install(Vue) {
|
|
|
40881
40885
|
self: asyncOrgId.split(',').length > 1
|
|
40882
40886
|
} // 查询条件
|
|
40883
40887
|
};
|
|
40884
|
-
|
|
40888
|
+
_this5.$http(reqParams).then(function (res) {
|
|
40885
40889
|
if (res.code === 'success') {
|
|
40886
40890
|
submitTemplate.route[nodeName].users.forEach(function (user) {
|
|
40887
40891
|
for (var j = 0; j < res.body.listdata.length; j++) {
|