forked from github/dataease
refactor(视图): 数据集字段管理支持全选/全不选
This commit is contained in:
parent
00487979db
commit
7eb4b1a6ba
11
frontend/src/views/dataset/data/utils.js
Normal file
11
frontend/src/views/dataset/data/utils.js
Normal file
@ -0,0 +1,11 @@
|
||||
export function getFieldName(fields, name) {
|
||||
let n = name
|
||||
n = n + '_copy'
|
||||
for (let i = 0; i < fields.length; i++) {
|
||||
const field = fields[i]
|
||||
if (field.name === n) {
|
||||
n = getFieldName(fields, n)
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
Loading…
Reference in New Issue
Block a user