fmui-base 2.1.11 → 2.1.13

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 CHANGED
@@ -3,6 +3,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.13:表单选人组件全部类型可选时选不到用户处理
7
+ - 2.1.12:上传组件增加后台类型校验的参数,预算跳转流程表单路径特殊处理
6
8
  - 2.1.11:弹出选择组件双击选项后返回到列表页面
7
9
  - 2.1.10:表单关联字段bug处理
8
10
  - 2.1.9:弹出选择组件双击后返回报错
@@ -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
- if (module.indexOf("_") > 0) {
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];
@@ -620,6 +620,8 @@ var Page = function (_React$Component) {
620
620
  // code = this.props.chooseObj;
621
621
  if (chooseObj.indexOf("userAndOrg") >= 0 && chooseObj.indexOf("org") >= 0) {
622
622
  chooseType = "userAndOrg";
623
+ } else if (chooseObj.indexOf("userNotOrg") >= 0 && chooseObj.indexOf("org") >= 0) {
624
+ chooseType = "userAndOrg";
623
625
  } else if (chooseObj.indexOf("userNotOrg") >= 0 && chooseObj.indexOf("org") < 0) {
624
626
  chooseType = "userNotOrg";
625
627
  } else if (chooseObj.indexOf("org") >= 0 || chooseObj.indexOf("dept") >= 0 || chooseObj.indexOf("inst") >= 0) {
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",