Merge pull request #4448 from dataease/pr@dev@pages

feat: 修改API 数据集名称时,同步修改数据集里的表名
This commit is contained in:
taojinlong
2023-02-01 17:11:21 +08:00
committed by GitHub
3 changed files with 32 additions and 8 deletions

View File

@@ -1222,14 +1222,15 @@ export default {
this.edit_api_item = false
if (!this.add_api_item) {
for (let i = 0; i < this.form.apiConfiguration.length; i++) {
if (
this.form.apiConfiguration[i].serialNumber ===
this.apiItem.serialNumber
) {
this.form.apiConfiguration[i] = JSON.parse(
JSON.stringify(this.apiItem)
)
if (this.form.apiConfiguration[i].serialNumber === this.apiItem.serialNumber) {
this.certinKey = !this.certinKey
if(this.form.apiConfiguration[i].name !== this.apiItem.name){
this.apiItem.reName = true
this.apiItem.orgName = this.form.apiConfiguration[i].name
}else {
this.apiItem.reName = false
}
this.form.apiConfiguration[i] = JSON.parse(JSON.stringify(this.apiItem))
}
}
} else {