fmui-base 2.1.11 → 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 +1 -0
- package/lib/process_list/processList.js +7 -1
- package/lib/upload/upload.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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;
|