fmui-base 1.0.19 → 1.0.21
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/process_info/processInfo.js +27 -0
- package/lib/process_list/processList.js +11 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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;
|
|
@@ -106,6 +106,7 @@ var ListItem = function (_React$Component) {
|
|
|
106
106
|
var processName = itemInfo.processName; // 流程名称
|
|
107
107
|
var module = itemInfo.module; // 流程名称
|
|
108
108
|
var type = this.props.fromType; //self:本应用,all:全模块
|
|
109
|
+
var projectPath = this.props.projectPath; //项目路径
|
|
109
110
|
|
|
110
111
|
var taskId = '';
|
|
111
112
|
var processInstanceId = itemInfo.processInstanceId;
|
|
@@ -131,9 +132,9 @@ var ListItem = function (_React$Component) {
|
|
|
131
132
|
if (module.indexOf("_") > 0) {
|
|
132
133
|
var category = module.split("_")[0];
|
|
133
134
|
mobilePath = module.substring(module.indexOf("_") + 1);
|
|
134
|
-
fullUrl = fullUrl.replace(/
|
|
135
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + +"/").split('?_')[0].split('/approval/all')[0];
|
|
135
136
|
} else {
|
|
136
|
-
fullUrl = fullUrl.replace(/
|
|
137
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
|
|
137
138
|
}
|
|
138
139
|
//alert(fullUrl);
|
|
139
140
|
var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
@@ -404,6 +405,8 @@ var PageHome = function (_React$Component2) {
|
|
|
404
405
|
var type = props.type ? props.type : "self"; //self:本应用,all:全模块
|
|
405
406
|
var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //标签页
|
|
406
407
|
var searchVal = props.search;
|
|
408
|
+
|
|
409
|
+
var projectPath = props.projectPath ? props.projectPath : "modules/mobileoffice";
|
|
407
410
|
if (constIndex == '') {
|
|
408
411
|
if (!activeIndex) {
|
|
409
412
|
activeIndex = '0';
|
|
@@ -435,6 +438,7 @@ var PageHome = function (_React$Component2) {
|
|
|
435
438
|
type: type,
|
|
436
439
|
activeTabIndex: activeIndex, // 待办-0;待阅-1;已办-2;已阅-3;我的-4
|
|
437
440
|
winHeight: winHeight,
|
|
441
|
+
projectPath: projectPath,
|
|
438
442
|
page: 0,
|
|
439
443
|
search0: searchVal,
|
|
440
444
|
search1: searchVal,
|
|
@@ -1015,7 +1019,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1015
1019
|
noDataTip: this.state.noDataTip0,
|
|
1016
1020
|
onLoad: this.onLoad.bind(this)
|
|
1017
1021
|
},
|
|
1018
|
-
_react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1022
|
+
_react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1019
1023
|
)
|
|
1020
1024
|
)
|
|
1021
1025
|
) : "",
|
|
@@ -1052,7 +1056,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1052
1056
|
currentPageKey: 'page',
|
|
1053
1057
|
noDataTip: this.state.noDataTip1
|
|
1054
1058
|
},
|
|
1055
|
-
_react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1059
|
+
_react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1056
1060
|
)
|
|
1057
1061
|
)
|
|
1058
1062
|
) : "",
|
|
@@ -1084,7 +1088,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1084
1088
|
currentPageKey: 'page',
|
|
1085
1089
|
noDataTip: this.state.noDataTip2
|
|
1086
1090
|
},
|
|
1087
|
-
_react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1091
|
+
_react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1088
1092
|
)
|
|
1089
1093
|
)
|
|
1090
1094
|
) : "",
|
|
@@ -1116,7 +1120,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1116
1120
|
currentPageKey: 'page',
|
|
1117
1121
|
noDataTip: this.state.noDataTip3
|
|
1118
1122
|
},
|
|
1119
|
-
_react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1123
|
+
_react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1120
1124
|
)
|
|
1121
1125
|
)
|
|
1122
1126
|
) : "",
|
|
@@ -1148,7 +1152,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1148
1152
|
currentPageKey: 'page',
|
|
1149
1153
|
noDataTip: this.state.noDataTip4
|
|
1150
1154
|
},
|
|
1151
|
-
_react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1155
|
+
_react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1152
1156
|
)
|
|
1153
1157
|
)
|
|
1154
1158
|
) : ""
|