NEZ-1666 fix: 新建图表时System选项下输入框效验有误

This commit is contained in:
zhangyu
2022-03-11 11:05:30 +08:00
parent 5a478fbffe
commit 7b356b2603

View File

@@ -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()
}, },