CN-754 下钻table的一些bug:城市单引号问题

This commit is contained in:
hyx
2022-10-21 21:26:39 +08:00
parent 2e27cd5add
commit 74cbcf0d46
2 changed files with 2 additions and 3 deletions

View File

@@ -429,7 +429,7 @@ export default {
this.urlChangeParams[this.curTabState.queryCondition] = queryCondition.join(' AND ')
} else {
searchProps.forEach(item => {
queryCondition.push(item + "='" + value + "'")
queryCondition.push(item + "='" + value.replaceAll("'", "\\\\'") + "'")
})
this.urlChangeParams[this.curTabState.queryCondition] = queryCondition.join(' OR ')
}