forked from github/dataease
fix(仪表板): 下拉过滤器排序字段出现sql注入参数后依然能够点击确认
This commit is contained in:
parent
da9d8d19ae
commit
7aa833d048
@ -128,6 +128,8 @@ export default {
|
|||||||
this.element.options.attrs.fieldId.length > 0 &&
|
this.element.options.attrs.fieldId.length > 0 &&
|
||||||
method(param).then(res => {
|
method(param).then(res => {
|
||||||
this.datas = this.optionDatas(res.data)
|
this.datas = this.optionDatas(res.data)
|
||||||
|
}).catch(e => {
|
||||||
|
bus.$emit('valid-values-change', false)
|
||||||
}) || (this.element.options.value = '')
|
}) || (this.element.options.value = '')
|
||||||
},
|
},
|
||||||
'element.options.attrs.multiple': function(value, old) {
|
'element.options.attrs.multiple': function(value, old) {
|
||||||
@ -167,6 +169,8 @@ export default {
|
|||||||
this.show = true
|
this.show = true
|
||||||
this.handleCoustomStyle()
|
this.handleCoustomStyle()
|
||||||
})
|
})
|
||||||
|
}).catch(e => {
|
||||||
|
bus.$emit('valid-values-change', false)
|
||||||
}) || (this.element.options.value = '')
|
}) || (this.element.options.value = '')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,6 +226,8 @@ export default {
|
|||||||
}
|
}
|
||||||
method({ fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }).then(res => {
|
method({ fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }).then(res => {
|
||||||
this.datas = this.optionDatas(res.data)
|
this.datas = this.optionDatas(res.data)
|
||||||
|
}).catch(e => {
|
||||||
|
bus.$emit('valid-values-change', false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.element.options.value) {
|
if (this.element.options.value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user