fmui-base 2.1.10 → 2.1.12
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/poppage/check.js +8 -3
- package/lib/process_list/processList.js +7 -1
- package/lib/upload/upload.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/poppage/check.js
CHANGED
|
@@ -172,7 +172,12 @@ var PageHome = function (_React$Component) {
|
|
|
172
172
|
}
|
|
173
173
|
this.props.onChange(returnValue);
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
//防止双击选项时back两次
|
|
176
|
+
if (!location.hash.includes('POPPAGE')) {
|
|
177
|
+
return;
|
|
178
|
+
} else {
|
|
179
|
+
history.back();
|
|
180
|
+
}
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
// 触发弹出选择
|
|
@@ -359,7 +364,7 @@ var PageHome = function (_React$Component) {
|
|
|
359
364
|
} else {
|
|
360
365
|
t.refs.table.initState();
|
|
361
366
|
}
|
|
362
|
-
|
|
367
|
+
// 防止双击字段时间戳加了两次 back一次回不去
|
|
363
368
|
if (!location.hash.includes('POPPAGE')) {
|
|
364
369
|
window.history.pushState({
|
|
365
370
|
Poppage: t.state.historyStamp
|
|
@@ -388,7 +393,7 @@ var PageHome = function (_React$Component) {
|
|
|
388
393
|
historyStamp: 'SearchPanel.index_' + Date.now()
|
|
389
394
|
}, function () {
|
|
390
395
|
t.refs.table.initState();
|
|
391
|
-
|
|
396
|
+
// 防止双击字段时间戳加了两次 back一次回不去
|
|
392
397
|
if (!location.hash.includes('POPPAGE')) {
|
|
393
398
|
window.history.pushState({
|
|
394
399
|
Poppage: t.state.historyStamp
|
|
@@ -133,7 +133,13 @@ var ListItem = function (_React$Component) {
|
|
|
133
133
|
} else {
|
|
134
134
|
var fullUrl = window.location.href;
|
|
135
135
|
var mobilePath = module;
|
|
136
|
-
|
|
136
|
+
//projectPath = modules/mobileoffice
|
|
137
|
+
// 预算模块跳转特殊处理
|
|
138
|
+
if (module == 'bud_cost') {
|
|
139
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('/approval/all')[0];
|
|
140
|
+
} else if (module == 'bud_project') {
|
|
141
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
|
|
142
|
+
} else if (module.indexOf("hoa_") > 0) {
|
|
137
143
|
var category = module.split("_")[0];
|
|
138
144
|
mobilePath = module.substring(module.indexOf("_") + 1);
|
|
139
145
|
fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
|
package/lib/upload/upload.js
CHANGED
|
@@ -188,6 +188,7 @@ var PageHome = function (_React$Component) {
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
var dir = props.dir;
|
|
191
|
+
var businessExt = props.extensions;
|
|
191
192
|
var context = document.getElementById("context").value;
|
|
192
193
|
var token = document.getElementById("token").value;
|
|
193
194
|
_this.state = {
|
|
@@ -202,6 +203,7 @@ var PageHome = function (_React$Component) {
|
|
|
202
203
|
fileAllSizeLimit: fileAllSizeLimit,
|
|
203
204
|
label: label,
|
|
204
205
|
dir: dir,
|
|
206
|
+
businessExt: businessExt,
|
|
205
207
|
limitNo: limitNo,
|
|
206
208
|
context: context,
|
|
207
209
|
uploadUrl: context + '/api/m/plugin/attachment/mobile/createFile?token=' + token,
|
|
@@ -260,6 +262,7 @@ var PageHome = function (_React$Component) {
|
|
|
260
262
|
up.on(_uploadcore.Events.FILE_UPLOAD_PREPARING, function (request) {
|
|
261
263
|
request.setHeader("Authorization", "Bearer " + t.state.token);
|
|
262
264
|
request.setParam('dir', t.state.dir);
|
|
265
|
+
request.setParam('businessExt', t.state.businessExt);
|
|
263
266
|
console.info(request.getParam('token'));
|
|
264
267
|
}).on(_uploadcore.Events.QUEUE_FILE_ADDED, function (file) {
|
|
265
268
|
// return false;
|