fmui-base 1.0.2 → 1.0.4
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/poppage/check.js
CHANGED
|
@@ -11,23 +11,27 @@ var _react = require('react');
|
|
|
11
11
|
|
|
12
12
|
var _react2 = _interopRequireDefault(_react);
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _Boxs = require('saltui/lib/Boxs');
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _Boxs2 = _interopRequireDefault(_Boxs);
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Button = require('saltui/lib/Button');
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _Button2 = _interopRequireDefault(_Button);
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _Dialog = require('saltui/lib/Dialog');
|
|
23
|
+
|
|
24
|
+
var _Dialog2 = _interopRequireDefault(_Dialog);
|
|
25
|
+
|
|
26
|
+
var _table = require('./table/table');
|
|
23
27
|
|
|
24
28
|
var _table2 = _interopRequireDefault(_table);
|
|
25
29
|
|
|
26
|
-
var _tree = require('./tree');
|
|
30
|
+
var _tree = require('./tree/tree');
|
|
27
31
|
|
|
28
32
|
var _tree2 = _interopRequireDefault(_tree);
|
|
29
33
|
|
|
30
|
-
var _treetable = require('./treetable');
|
|
34
|
+
var _treetable = require('./treetable/treetable');
|
|
31
35
|
|
|
32
36
|
var _treetable2 = _interopRequireDefault(_treetable);
|
|
33
37
|
|
|
@@ -47,8 +51,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
|
47
51
|
|
|
48
52
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
49
53
|
|
|
50
|
-
var HBox =
|
|
51
|
-
Box =
|
|
54
|
+
var HBox = _Boxs2.default.HBox,
|
|
55
|
+
Box = _Boxs2.default.Box;
|
|
52
56
|
|
|
53
57
|
var PageHome = function (_React$Component) {
|
|
54
58
|
_inherits(PageHome, _React$Component);
|
|
@@ -255,7 +259,7 @@ var PageHome = function (_React$Component) {
|
|
|
255
259
|
popType = popData.popType;
|
|
256
260
|
// 显示字段
|
|
257
261
|
if (popType == 'treetable') {
|
|
258
|
-
|
|
262
|
+
_Dialog2.default.alert({
|
|
259
263
|
content: '暂不支持树-列表格式的弹出选择!',
|
|
260
264
|
onConfirm: function onConfirm() {
|
|
261
265
|
$("#App").removeAttr("style");
|
|
@@ -489,7 +493,7 @@ var PageHome = function (_React$Component) {
|
|
|
489
493
|
'div',
|
|
490
494
|
{ className: 'section-content' },
|
|
491
495
|
_react2.default.createElement(
|
|
492
|
-
|
|
496
|
+
_Button2.default,
|
|
493
497
|
{ type: 'primary', onClick: function onClick() {
|
|
494
498
|
_this3.popupFuc();
|
|
495
499
|
} },
|
|
@@ -1265,7 +1265,7 @@ var PageHome = function (_React$Component) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
|
-
buttonList.push({
|
|
1268
|
+
// buttonList.push({name:"邮件转发",type:'secondary',display:'banner',no:18});
|
|
1269
1269
|
if (listType != '0') {
|
|
1270
1270
|
this.setState({
|
|
1271
1271
|
buttonList: buttonList,
|
|
@@ -105,7 +105,7 @@ var ListItem = function (_React$Component) {
|
|
|
105
105
|
var param_list_type = this.props.type; // 列表类型 待办-0,待阅-1,
|
|
106
106
|
var processName = itemInfo.processName; // 流程名称
|
|
107
107
|
var module = itemInfo.module; // 流程名称
|
|
108
|
-
var type =
|
|
108
|
+
var type = this.props.fromType; //self:本应用,all:全模块
|
|
109
109
|
|
|
110
110
|
var taskId = '';
|
|
111
111
|
var processInstanceId = itemInfo.processInstanceId;
|
|
@@ -127,10 +127,13 @@ var ListItem = function (_React$Component) {
|
|
|
127
127
|
location.hash = url;
|
|
128
128
|
} else {
|
|
129
129
|
var fullUrl = window.location.href;
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
var mobilePath = module;
|
|
131
|
+
if (module.indexOf("_") > 0) {
|
|
132
|
+
var category = module.split("_")[0];
|
|
133
|
+
mobilePath = module.substring(module.indexOf("_") + 1);
|
|
134
|
+
fullUrl = fullUrl.replace(/approve/g, mobilePath).replace("/modules/", "/" + category + "/").split('?_')[0].split('/approval/all')[0];
|
|
132
135
|
} else {
|
|
133
|
-
fullUrl = fullUrl.replace(/approve/g,
|
|
136
|
+
fullUrl = fullUrl.replace(/approve/g, mobilePath).split('?_')[0].split('/approval/all')[0];
|
|
134
137
|
}
|
|
135
138
|
//alert(fullUrl);
|
|
136
139
|
var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|