fmui-base 1.0.18 → 1.0.20

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 ADDED
@@ -0,0 +1,9 @@
1
+ ## 移动端组件
2
+
3
+ ---
4
+
5
+ ## 更新日志
6
+
7
+ - 1.0.20:修改推送打开作废流程提示
8
+ - 1.0.19:修改流程图请求参数,增加流程实例id
9
+
@@ -61,7 +61,7 @@ var Page = function (_React$Component) {
61
61
  if (listType == "0") {
62
62
  dealwhithId = taskId;
63
63
  }
64
- _db2.default.FlowModuleAPI.queryFlowChart({ taskId: dealwhithId, listType: listType }).then(function (content) {
64
+ _db2.default.FlowModuleAPI.queryFlowChart({ taskId: dealwhithId, listType: listType, processInstanceId: processInstanceId }).then(function (content) {
65
65
  // var allActivityList = content.allActivityList;//所有的流程节点
66
66
  // var processLogList = content.processLogList;//流程日志
67
67
  //var processLogList = content.processLogList;//流程已办节点
@@ -644,6 +644,7 @@ var PageHome = function (_React$Component) {
644
644
  });
645
645
  }
646
646
  var messageType = '';
647
+ var isPush = this.state.isPush;
647
648
  //查询流程详情
648
649
  if (typeof FlowCommon.dealwithCommonFolowInfo === "function") {
649
650
  FlowCommon.dealwithCommonFolowInfo(param, t.state, function (content) {
@@ -651,6 +652,32 @@ var PageHome = function (_React$Component) {
651
652
  var evoRemind1=content['evoRemind'];
652
653
  var shortMessageList1=[];
653
654
  var readShortMessageList1=[];*/
655
+ if (!content.code) {
656
+ _Dialog2.default.alert({
657
+ title: '',
658
+ content: '此文件已作废'
659
+ });
660
+ if (isPush == '1') {
661
+ if (_thirdMenuType == 'WX') {
662
+ wx.ready(function () {
663
+ wx.closeWindow();
664
+ });
665
+ } else if (_thirdMenuType == 'MH' && typeof emp != "undefined") {
666
+ emp.window.close({
667
+ id: 'this' //指定被关闭窗口标识,如果id=‘this‘,则关闭当前窗口
668
+ });
669
+ } else {
670
+ setTimeout(function () {
671
+
672
+ backPage();
673
+ }, 1500);
674
+ }
675
+ } else {
676
+ setTimeout(function () {
677
+ history.back();
678
+ }, 1500);
679
+ }
680
+ }
654
681
  var markValue = getSysMarkConfigValue('approve');
655
682
  var markValueJson = JSON.parse(markValue);
656
683
  messageType = content.message;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "title": "fmui-base",
5
- "description": "批量办理报错修改",
5
+ "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",
7
7
  "files": [
8
8
  "dist",