fmui-base 2.1.24 → 2.1.26

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.26:子表必填字段没校验
7
+ - 2.1.25:上传组件参数加密
6
8
  - 2.1.24:表单字段下拉多选字段有默认值时报错
7
9
  - 2.1.23:上传组件参数加密
8
10
  - 2.1.22:上传组件去token
@@ -136,6 +136,7 @@ var PageHome = function (_React$Component) {
136
136
  }, {
137
137
  key: 'loadComponet',
138
138
  value: function loadComponet() {
139
+ console.log("sub===loadComponet===");
139
140
  var t = this;
140
141
  var module = this.props.module;
141
142
  var formKey = this.props.formKey; //表单code
@@ -224,6 +225,18 @@ var PageHome = function (_React$Component) {
224
225
  console.log("===dealwithSubForm===");
225
226
  var subFormList = [];
226
227
  var itemCode = itemParam.key;
228
+ var fieldControll = itemParam.fieldControll;
229
+ var mustFields = "";
230
+ if (fieldControll) {
231
+ mustFields = fieldControll.mustFields;
232
+ if (mustFields && mustFields != "") {
233
+ for (var i = 0; i < subForm.length; i++) {
234
+ if (mustFields.split(",").indexOf(subForm[i].uniqueName) != -1) {
235
+ subForm[i].valid = "true";
236
+ }
237
+ }
238
+ }
239
+ }
227
240
  var value = [];
228
241
  if (relatedTbl && relatedTbl.length > 0) {
229
242
  for (var i = 0; i < relatedTbl.length; i++) {
@@ -142,7 +142,9 @@ var ListItem = function (_React$Component) {
142
142
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('/approval/all')[0];
143
143
  } else if (module == 'bud_project') {
144
144
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
145
- } else if (module.indexOf("hoa_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("dj_") != '-1') {
145
+ } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1') {
146
+ fullUrl = fullUrl.split('?_')[0].split('/approval/all')[0];
147
+ } else if (module.indexOf("hoa_") != '-1') {
146
148
  var category = module.split("_")[0];
147
149
  mobilePath = module.substring(module.indexOf("_") + 1);
148
150
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
@@ -188,7 +188,7 @@ var PageHome = function (_React$Component) {
188
188
 
189
189
 
190
190
  var dir = props.dir;
191
- var businessExt = props.extensions;
191
+ var businessExt = props.extensions ? props.extensions : "";
192
192
  var context = document.getElementById("context").value;
193
193
  var token = getLoginUserInfo().token;
194
194
  _this.state = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.24",
3
+ "version": "2.1.26",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",