提交 a706cad3 authored 作者: chscls@163.com's avatar chscls@163.com

修改bug

上级 78c774d5
...@@ -145,7 +145,7 @@ export default class tableCom extends Component { ...@@ -145,7 +145,7 @@ export default class tableCom extends Component {
excludeKeys = ["defaultValues", ""] excludeKeys = ["defaultValues", ""]
equal = (obj1, obj2, formula, sqlContent, depth) => { equal = (obj1, obj2, json, sqlContent, depth) => {
if (obj1 == null && obj2 != null) { if (obj1 == null && obj2 != null) {
...@@ -209,7 +209,9 @@ export default class tableCom extends Component { ...@@ -209,7 +209,9 @@ export default class tableCom extends Component {
break; break;
} }
if (depth == 1 && ((this.props.json.sqlKey==null&&sqlContent == null && formula == null) || (sqlContent != null && sqlContent.indexOf(key) == -1) || (formula != null && formula.indexOf(key) == -1))) { if (depth == 1 && ((this.props.json.sqlKey==null&&sqlContent == null && json.formula == null&& json.funcs == null) || (sqlContent != null && sqlContent.indexOf(key) == -1)
|| ((json.formula != null && json.formula.indexOf(key) == -1)&&(json.funcs != null && json.funcs.indexOf(key) == -1))
)) {
this.excludeKeys.push(key) this.excludeKeys.push(key)
...@@ -241,7 +243,7 @@ export default class tableCom extends Component { ...@@ -241,7 +243,7 @@ export default class tableCom extends Component {
for (var i = 0; i < obj1[key].length; i++) { for (var i = 0; i < obj1[key].length; i++) {
if (!this.equal(obj1[key][i], obj2[key][i], formula, sqlContent, depth + 1)) { if (!this.equal(obj1[key][i], obj2[key][i], json, sqlContent, depth + 1)) {
xx = false xx = false
break; break;
...@@ -256,7 +258,7 @@ export default class tableCom extends Component { ...@@ -256,7 +258,7 @@ export default class tableCom extends Component {
} else if (obj1[key] instanceof Object) { } else if (obj1[key] instanceof Object) {
const x = this.equal(obj1[key], obj2[key], formula, sqlContent, depth + 1) const x = this.equal(obj1[key], obj2[key], json, sqlContent, depth + 1)
if (!x) { if (!x) {
...@@ -425,14 +427,15 @@ export default class tableCom extends Component { ...@@ -425,14 +427,15 @@ export default class tableCom extends Component {
return; return;
} }
const obj2 = props.form.getFieldsValue() const obj2 = props.form.getFieldsValue()
const bb = this.equal(this.obj, obj2, json.formula, this.state.sqlContent, 1) const bb = this.equal(this.obj, obj2, json, this.state.sqlContent, 1)
let bb2 = true let bb2 = true
let childObj2 = {} let childObj2 = {}
if (props.fatherCode) { if (props.fatherCode) {
if (obj2 != null && obj2[props.fatherCode]) { if (obj2 != null && obj2[props.fatherCode]) {
childObj2 = obj2[props.fatherCode][props.index]; childObj2 = obj2[props.fatherCode][props.index];
bb2 = this.equal(this.childObj, childObj2, json.formula, this.state.sqlContent, 1) bb2 = this.equal(this.childObj, childObj2, json, this.state.sqlContent, 1)
} }
...@@ -1051,7 +1054,7 @@ export default class tableCom extends Component { ...@@ -1051,7 +1054,7 @@ export default class tableCom extends Component {
}, },
) )
if (base52) { if (base52) {
if (value != null && value == "norefeshxxxxxxxxxxxxxxxxxxxx") { if (value != null && value == "norefeshxxxxxxxxxxxxxxxxxxxx") {
...@@ -1065,6 +1068,13 @@ export default class tableCom extends Component { ...@@ -1065,6 +1068,13 @@ export default class tableCom extends Component {
if (json.comName == "Button") { if (json.comName == "Button") {
return value return value
} else if(json.optionType&&json.optionType=="func"){
if(value!=null&&!(typeof value === "function")){
this.setState({ options: value , selectDis: false });
}
} else if (json.comName == "Echart" || json.comName == "QRCode") { } else if (json.comName == "Echart" || json.comName == "QRCode") {
this.setState({ option: value }) this.setState({ option: value })
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论