解决[表单配置inExt]填写无效bug

This commit is contained in:
2019-06-13 18:13:50 +08:00
parent d40676f724
commit b0ae01cc69
2 changed files with 12 additions and 13 deletions

View File

@@ -647,15 +647,15 @@
if (!shows[j]['label']) { if (!shows[j]['label']) {
shows[j]['label'] = this.getFieldLabel(v[i]) shows[j]['label'] = this.getFieldLabel(v[i])
} }
if (!shows[j]['fmt']) { /*if (!shows[j]['fmt']) {
shows[j]['fmt'] = this.getFiledInExt(v[i]) shows[j]['fmt'] = this.getFiledInExt(v[i])
} }*/
continue a continue a
} }
} }
let label = this.getFieldLabel(v[i]) let label = this.getFieldLabel(v[i])
let fmt = this.getFiledInExt(v[i]) //let fmt = this.getFiledInExt(v[i])
shows.push({col: v[i], label: label, fmt: fmt}) shows.push({col: v[i], label: label})
} }
//去除删除的 //去除删除的
@@ -711,15 +711,15 @@
if (!details[j]['label']) { if (!details[j]['label']) {
details[j]['label'] = this.getFieldLabel(v[i]) details[j]['label'] = this.getFieldLabel(v[i])
} }
if (!details[j]['fmt']) { /*if (!details[j]['fmt']) {
details[j]['fmt'] = this.getFiledInExt(v[i]) details[j]['fmt'] = this.getFiledInExt(v[i])
} }*/
continue a continue a
} }
} }
// 新的 // 新的
let label = this.getFieldLabel(v[i]) let label = this.getFieldLabel(v[i])
let fmt = this.getFiledInExt(v[i]) //let fmt = this.getFiledInExt(v[i])
/*c:for (let j in details) { /*c:for (let j in details) {
if (v[i] == details[j]['col']) { if (v[i] == details[j]['col']) {
if (details[j]['label']) { if (details[j]['label']) {
@@ -732,7 +732,7 @@
continue c continue c
} }
}*/ }*/
details.push({col: v[i], label: label, fmt: fmt}) details.push({col: v[i], label: label})
} }
//去除删除的 //去除删除的
@@ -758,16 +758,15 @@
if (!edits[j]['label']) { if (!edits[j]['label']) {
edits[j]['label'] = this.getFieldLabel(v[i]) edits[j]['label'] = this.getFieldLabel(v[i])
} }
if (!edits[j]['fmt']) { /*if (!edits[j]['fmt']) {
edits[j]['fmt'] = this.getFiledInExt(v[i]) edits[j]['fmt'] = this.getFiledInExt(v[i])
} }*/
continue a continue a
} }
} }
// 新的 // 新的
let label = this.getFieldLabel(v[i]) let label = this.getFieldLabel(v[i])
let fmt = this.getFiledInExt(v[i]) || "" edits.push({col: v[i], label: label, cks:[]})
edits.push({col: v[i], label: label, fmt: fmt, cks:[]})
} }
//去除删除的 //去除删除的

View File

@@ -12,7 +12,7 @@ public class FromItem {
private String col; private String col;
private String label; private String label;
private String inType; private String inType;
private String fmt; private String InExt;
private List<String> cks; private List<String> cks;
} }