NEZ-1666 fix: 新建图表时System选项下输入框效验有误
This commit is contained in:
@@ -804,12 +804,12 @@ export default {
|
|||||||
},
|
},
|
||||||
systemNameChange (index) {
|
systemNameChange (index) {
|
||||||
if (this.systemNameShow[index].error) {
|
if (this.systemNameShow[index].error) {
|
||||||
this.expressionName[index] = this.systemNameShow[index].oldName
|
this.chartConfig.param.datasource[index].name = this.systemNameShow[index].oldName
|
||||||
this.systemNameShow[index].error = ''
|
this.systemNameShow[index].error = ''
|
||||||
} else if (!this.expressionName[index]) {
|
} else if (!this.chartConfig.param.datasource[index].name) {
|
||||||
this.expressionName[index] = this.systemNameShow[index].oldName
|
this.chartConfig.param.datasource[index].name = this.systemNameShow[index].oldName
|
||||||
} else {
|
} else {
|
||||||
this.systemNameShow[index].oldName = this.expressionName[index]
|
this.systemNameShow[index].oldName = this.chartConfig.param.datasource[index].name
|
||||||
}
|
}
|
||||||
this.change()
|
this.change()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user