mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 04:08:10 +08:00
Merge pull request #4448 from dataease/pr@dev@pages
feat: 修改API 数据集名称时,同步修改数据集里的表名
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user