ecinc-cloud-mappaio 9.6.92 → 9.6.94

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.
@@ -268,9 +268,6 @@ defaultText:默认文本
268
268
  */
269
269
  function $tx(expression, variables, defaultText) {
270
270
  var $scope = this && this.$vnode ? this.$vnode.context : window.$wapp || window.$mapp;
271
- if (expression === 'ecwapp.Wflowform.WfTaskNode.designatedDepartment') {
272
- debugger;
273
- }
274
271
  if (!$scope.$i18n) {
275
272
  console.log(expression);
276
273
  debugger;
@@ -293,9 +290,6 @@ function $tx(expression, variables, defaultText) {
293
290
 
294
291
  // translate router.meta.title, be used in breadcrumb sidebar tagsview
295
292
  function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
296
- if (meta.i18nCode === 'keepAttend' || moduleCode === 'submitHandle') {
297
- // debugger
298
- }
299
293
  $scope = $scope || this;
300
294
  if ($scope.$i18n && $scope.$i18n.locale === 'zhCN') {
301
295
  //中文,按钮,忽略语言包
@@ -303,7 +297,7 @@ function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
303
297
  return meta.btnName;
304
298
  }
305
299
  }
306
- if (meta.i18nCode && $scope.$te(meta.i18nCode)) {
300
+ if (meta.i18nCode && meta.i18nCode.indexOf('.') !== -1 && $scope.$te(meta.i18nCode)) {
307
301
  return $scope.$t(meta.i18nCode, variables);
308
302
  }
309
303
  var moduleInfo = $scope.moduleInfo || $scope.$vnode.context.moduleInfo || $scope.$vnode.context.$vnode.context.moduleInfo;
@@ -40340,6 +40334,7 @@ var wfengine_install = function install(Vue) {
40340
40334
  $scope.canEditBodyfile = canEditBodyfile;
40341
40335
  },
40342
40336
  getWfJsonData: function getWfJsonData($scope, wfInstance, params) {
40337
+ var _this2 = this;
40343
40338
  return new Promise(function (resolve) {
40344
40339
  var wfEngineUrl = params.wfEngineUrl || $scope.wfEngineUrl || 'workflow/wfInstance';
40345
40340
  wfEngineUrl += '/getWfJsonData';
@@ -40416,13 +40411,16 @@ var wfengine_install = function install(Vue) {
40416
40411
  }
40417
40412
  // $scope.submitTemplateList.unshift({ templateName: '---选择办理模板---', valid: true })
40418
40413
  $scope.submitTemplate = $scope.submitTemplateList[0];
40414
+ _this2.$nextTick(function () {
40415
+ $scope.$bus.emit('initSubmitHandle');
40416
+ });
40419
40417
  }
40420
40418
  resolve(res);
40421
40419
  });
40422
40420
  });
40423
40421
  },
40424
40422
  saveWfInstance: function saveWfInstance($scope, submitType, params) {
40425
- var _this2 = this;
40423
+ var _this3 = this;
40426
40424
  return new Promise(function (resolve) {
40427
40425
  $scope.submitHandle.submitType = submitType;
40428
40426
  delete $scope.submitHandle.selectedNodes;
@@ -40466,7 +40464,7 @@ var wfengine_install = function install(Vue) {
40466
40464
  $scope.submitHandle.busiContent = $scope.vo.flContent;
40467
40465
  }
40468
40466
  var submitHandle = JSON.parse(JSON.stringify($scope.submitHandle));
40469
- if (submitType.indexOf('Save') !== -1 && submitType !== 'AutoSave') {
40467
+ if (submitType.indexOf('Save') !== -1) {
40470
40468
  js_cookie_default().set('route-index-' + $scope.wfInstance.id, submitHandle.route.index);
40471
40469
  var route = $scope.wfJsonData == null || $scope.wfJsonData.routes == null || $scope.wfJsonData.routes.length === 0 ? {
40472
40470
  taskNodes: []
@@ -40528,7 +40526,7 @@ var wfengine_install = function install(Vue) {
40528
40526
  delete wfNode.users;
40529
40527
  submitHandle.nextTNProp.push(wfNode);
40530
40528
  submitHandle.nextTNUser.push(nextUsers);
40531
- js_cookie_default().set('route-wfuser-' + $scope.wfInstance.id + '-' + wfNode.id, '', {
40529
+ js_cookie_default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, '', {
40532
40530
  expires: 0
40533
40531
  });
40534
40532
  }
@@ -40599,7 +40597,7 @@ var wfengine_install = function install(Vue) {
40599
40597
  }
40600
40598
  if (res.body.wfInstance.passenger.commandBar) {
40601
40599
  var commandBar = JSON.parse(JSON.stringify(res.body.wfInstance.passenger.commandBar));
40602
- _this2.setCommandBar($scope, commandBar);
40600
+ _this3.setCommandBar($scope, commandBar);
40603
40601
  $scope.commandBar = commandBar;
40604
40602
  }
40605
40603
  $scope.vo = $scope.vobak;
@@ -40626,7 +40624,7 @@ var wfengine_install = function install(Vue) {
40626
40624
  if (typeof $scope.onWflowFormSubmited === 'function') {
40627
40625
  $scope.onWflowFormSubmited($scope);
40628
40626
  }
40629
- _this2.$nextTick(function () {
40627
+ _this3.$nextTick(function () {
40630
40628
  $scope.$bus.emit('initSubmitHandle');
40631
40629
  });
40632
40630
  } else {
@@ -40757,7 +40755,7 @@ var wfengine_install = function install(Vue) {
40757
40755
  };
40758
40756
  },
40759
40757
  checkOuterDeputy: function checkOuterDeputy($scope, params) {
40760
- var _this3 = this;
40758
+ var _this4 = this;
40761
40759
  return new Promise(function (resole) {
40762
40760
  if ($scope.submitHandle.needCheckOuterDeputy && $scope.submitHandle.needCheckOuterDeputy.length > 0) {
40763
40761
  var nextTNUsers = $scope.submitHandle.needCheckOuterDeputy;
@@ -40807,7 +40805,7 @@ var wfengine_install = function install(Vue) {
40807
40805
  message: '已选择外出代理人。'
40808
40806
  });
40809
40807
  } else {
40810
- _this3.$bus.emit('selectOuterDeputys', outerDeputys, $scope.submitHandle.route, resole);
40808
+ _this4.$bus.emit('selectOuterDeputys', outerDeputys, $scope.submitHandle.route, resole);
40811
40809
  }
40812
40810
  } else {
40813
40811
  resole({
@@ -40828,7 +40826,7 @@ var wfengine_install = function install(Vue) {
40828
40826
  });
40829
40827
  },
40830
40828
  applySubmitTemplate: function applySubmitTemplate($scope, submitTemplate) {
40831
- var _this4 = this;
40829
+ var _this5 = this;
40832
40830
  if ($scope.curTN.tnIdeaLabelID) {
40833
40831
  $scope.submitHandle.curUserIdea = submitTemplate.curUserIdea;
40834
40832
  }
@@ -40871,7 +40869,7 @@ var wfengine_install = function install(Vue) {
40871
40869
  self: asyncOrgId.split(',').length > 1
40872
40870
  } // 查询条件
40873
40871
  };
40874
- _this4.$http(reqParams).then(function (res) {
40872
+ _this5.$http(reqParams).then(function (res) {
40875
40873
  if (res.code === 'success') {
40876
40874
  submitTemplate.route[nodeName].users.forEach(function (user) {
40877
40875
  for (var j = 0; j < res.body.listdata.length; j++) {
@@ -65600,7 +65598,9 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().directive('form-title', {
65600
65598
  */
65601
65599
  function txtLblI18nFunc(el, binding, vnode) {
65602
65600
  var field = binding.value;
65603
- if (field && vnode.context.$i18n.locale !== 'zhCN') {
65601
+
65602
+ //非中文版、流程类文本标签,使用语言包中的配置
65603
+ if (field && (vnode.context.$i18n.locale !== 'zhCN' || field.indexOf('Wflowform') !== -1 || field.indexOf('ModifyWfNodelog') !== -1 || field.indexOf('SubmitHandle') !== -1 || field.indexOf('WfdProcess') !== -1)) {
65604
65604
  var attrs = vnode.data.attrs || {};
65605
65605
  var label = vnode.context.$i18n.generateTitle({
65606
65606
  i18nCode: binding.value
@@ -278,9 +278,6 @@ defaultText:默认文本
278
278
  */
279
279
  function $tx(expression, variables, defaultText) {
280
280
  var $scope = this && this.$vnode ? this.$vnode.context : window.$wapp || window.$mapp;
281
- if (expression === 'ecwapp.Wflowform.WfTaskNode.designatedDepartment') {
282
- debugger;
283
- }
284
281
  if (!$scope.$i18n) {
285
282
  console.log(expression);
286
283
  debugger;
@@ -303,9 +300,6 @@ function $tx(expression, variables, defaultText) {
303
300
 
304
301
  // translate router.meta.title, be used in breadcrumb sidebar tagsview
305
302
  function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
306
- if (meta.i18nCode === 'keepAttend' || moduleCode === 'submitHandle') {
307
- // debugger
308
- }
309
303
  $scope = $scope || this;
310
304
  if ($scope.$i18n && $scope.$i18n.locale === 'zhCN') {
311
305
  //中文,按钮,忽略语言包
@@ -313,7 +307,7 @@ function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
313
307
  return meta.btnName;
314
308
  }
315
309
  }
316
- if (meta.i18nCode && $scope.$te(meta.i18nCode)) {
310
+ if (meta.i18nCode && meta.i18nCode.indexOf('.') !== -1 && $scope.$te(meta.i18nCode)) {
317
311
  return $scope.$t(meta.i18nCode, variables);
318
312
  }
319
313
  var moduleInfo = $scope.moduleInfo || $scope.$vnode.context.moduleInfo || $scope.$vnode.context.$vnode.context.moduleInfo;
@@ -40350,6 +40344,7 @@ var wfengine_install = function install(Vue) {
40350
40344
  $scope.canEditBodyfile = canEditBodyfile;
40351
40345
  },
40352
40346
  getWfJsonData: function getWfJsonData($scope, wfInstance, params) {
40347
+ var _this2 = this;
40353
40348
  return new Promise(function (resolve) {
40354
40349
  var wfEngineUrl = params.wfEngineUrl || $scope.wfEngineUrl || 'workflow/wfInstance';
40355
40350
  wfEngineUrl += '/getWfJsonData';
@@ -40426,13 +40421,16 @@ var wfengine_install = function install(Vue) {
40426
40421
  }
40427
40422
  // $scope.submitTemplateList.unshift({ templateName: '---选择办理模板---', valid: true })
40428
40423
  $scope.submitTemplate = $scope.submitTemplateList[0];
40424
+ _this2.$nextTick(function () {
40425
+ $scope.$bus.emit('initSubmitHandle');
40426
+ });
40429
40427
  }
40430
40428
  resolve(res);
40431
40429
  });
40432
40430
  });
40433
40431
  },
40434
40432
  saveWfInstance: function saveWfInstance($scope, submitType, params) {
40435
- var _this2 = this;
40433
+ var _this3 = this;
40436
40434
  return new Promise(function (resolve) {
40437
40435
  $scope.submitHandle.submitType = submitType;
40438
40436
  delete $scope.submitHandle.selectedNodes;
@@ -40476,7 +40474,7 @@ var wfengine_install = function install(Vue) {
40476
40474
  $scope.submitHandle.busiContent = $scope.vo.flContent;
40477
40475
  }
40478
40476
  var submitHandle = JSON.parse(JSON.stringify($scope.submitHandle));
40479
- if (submitType.indexOf('Save') !== -1 && submitType !== 'AutoSave') {
40477
+ if (submitType.indexOf('Save') !== -1) {
40480
40478
  js_cookie_default().set('route-index-' + $scope.wfInstance.id, submitHandle.route.index);
40481
40479
  var route = $scope.wfJsonData == null || $scope.wfJsonData.routes == null || $scope.wfJsonData.routes.length === 0 ? {
40482
40480
  taskNodes: []
@@ -40538,7 +40536,7 @@ var wfengine_install = function install(Vue) {
40538
40536
  delete wfNode.users;
40539
40537
  submitHandle.nextTNProp.push(wfNode);
40540
40538
  submitHandle.nextTNUser.push(nextUsers);
40541
- js_cookie_default().set('route-wfuser-' + $scope.wfInstance.id + '-' + wfNode.id, '', {
40539
+ js_cookie_default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, '', {
40542
40540
  expires: 0
40543
40541
  });
40544
40542
  }
@@ -40609,7 +40607,7 @@ var wfengine_install = function install(Vue) {
40609
40607
  }
40610
40608
  if (res.body.wfInstance.passenger.commandBar) {
40611
40609
  var commandBar = JSON.parse(JSON.stringify(res.body.wfInstance.passenger.commandBar));
40612
- _this2.setCommandBar($scope, commandBar);
40610
+ _this3.setCommandBar($scope, commandBar);
40613
40611
  $scope.commandBar = commandBar;
40614
40612
  }
40615
40613
  $scope.vo = $scope.vobak;
@@ -40636,7 +40634,7 @@ var wfengine_install = function install(Vue) {
40636
40634
  if (typeof $scope.onWflowFormSubmited === 'function') {
40637
40635
  $scope.onWflowFormSubmited($scope);
40638
40636
  }
40639
- _this2.$nextTick(function () {
40637
+ _this3.$nextTick(function () {
40640
40638
  $scope.$bus.emit('initSubmitHandle');
40641
40639
  });
40642
40640
  } else {
@@ -40767,7 +40765,7 @@ var wfengine_install = function install(Vue) {
40767
40765
  };
40768
40766
  },
40769
40767
  checkOuterDeputy: function checkOuterDeputy($scope, params) {
40770
- var _this3 = this;
40768
+ var _this4 = this;
40771
40769
  return new Promise(function (resole) {
40772
40770
  if ($scope.submitHandle.needCheckOuterDeputy && $scope.submitHandle.needCheckOuterDeputy.length > 0) {
40773
40771
  var nextTNUsers = $scope.submitHandle.needCheckOuterDeputy;
@@ -40817,7 +40815,7 @@ var wfengine_install = function install(Vue) {
40817
40815
  message: '已选择外出代理人。'
40818
40816
  });
40819
40817
  } else {
40820
- _this3.$bus.emit('selectOuterDeputys', outerDeputys, $scope.submitHandle.route, resole);
40818
+ _this4.$bus.emit('selectOuterDeputys', outerDeputys, $scope.submitHandle.route, resole);
40821
40819
  }
40822
40820
  } else {
40823
40821
  resole({
@@ -40838,7 +40836,7 @@ var wfengine_install = function install(Vue) {
40838
40836
  });
40839
40837
  },
40840
40838
  applySubmitTemplate: function applySubmitTemplate($scope, submitTemplate) {
40841
- var _this4 = this;
40839
+ var _this5 = this;
40842
40840
  if ($scope.curTN.tnIdeaLabelID) {
40843
40841
  $scope.submitHandle.curUserIdea = submitTemplate.curUserIdea;
40844
40842
  }
@@ -40881,7 +40879,7 @@ var wfengine_install = function install(Vue) {
40881
40879
  self: asyncOrgId.split(',').length > 1
40882
40880
  } // 查询条件
40883
40881
  };
40884
- _this4.$http(reqParams).then(function (res) {
40882
+ _this5.$http(reqParams).then(function (res) {
40885
40883
  if (res.code === 'success') {
40886
40884
  submitTemplate.route[nodeName].users.forEach(function (user) {
40887
40885
  for (var j = 0; j < res.body.listdata.length; j++) {
@@ -65610,7 +65608,9 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().directive('form-title', {
65610
65608
  */
65611
65609
  function txtLblI18nFunc(el, binding, vnode) {
65612
65610
  var field = binding.value;
65613
- if (field && vnode.context.$i18n.locale !== 'zhCN') {
65611
+
65612
+ //非中文版、流程类文本标签,使用语言包中的配置
65613
+ if (field && (vnode.context.$i18n.locale !== 'zhCN' || field.indexOf('Wflowform') !== -1 || field.indexOf('ModifyWfNodelog') !== -1 || field.indexOf('SubmitHandle') !== -1 || field.indexOf('WfdProcess') !== -1)) {
65614
65614
  var attrs = vnode.data.attrs || {};
65615
65615
  var label = vnode.context.$i18n.generateTitle({
65616
65616
  i18nCode: binding.value