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