fix: 修复实体搜索框text模式下点击top后表达式错误的问题、修复分页bug

This commit is contained in:
chenjinsong
2022-02-07 16:11:49 +08:00
parent 1169029406
commit 2ed78bc1f3
6 changed files with 35 additions and 13 deletions

View File

@@ -88,7 +88,7 @@ export default {
return column.name === key
})
let current = this.codeMirror.getValue()
current = `${key}=${(column.type === columnType.string ? stringInQuot(params[key]) : params[key])} ${current ? 'AND' : ''} ${current}`
current = `${current ? current + 'AND ' : ''}${key}=${(column.type === columnType.string ? stringInQuot(params[key]) : params[key])}`
toRaw(this.codeMirror).setValue(current)
})
}