File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 4545 </template >
4646 <a-select
4747 style =" margin-left : 0 "
48- :value =" addFilterForm.matchtype"
48+ v-model :value =" addFilterForm.matchtype"
4949 placeholder =" Select match type"
5050 allow-clear >
5151 <a-select-option value =" exact" >{{ $t('label.exact') }}</a-select-option >
@@ -187,7 +187,7 @@ export default {
187187 created () {
188188 this .updateColumns ()
189189 this .pageSize = this .pageSizeOptions [0 ] * 1
190- this .resetAddFilterForm ()
190+ this .initAddFilterForm ()
191191 this .fetchData ()
192192 },
193193 watch: {
@@ -253,7 +253,7 @@ export default {
253253 this .columns [this .columns .length - 1 ].customFilterDropdown = true
254254 }
255255 },
256- resetAddFilterForm () {
256+ initAddFilterForm () {
257257 this .addFormRef = ref ()
258258 this .addFilterForm = reactive ({
259259 mode: ' include' ,
@@ -264,6 +264,11 @@ export default {
264264 value: [{ required: true , message: this .$t (' message.error.required.input' ) }]
265265 })
266266 },
267+ resetAddFilterForm () {
268+ if (this .addFormRef .value ) {
269+ this .addFormRef .value .resetFields ()
270+ }
271+ },
267272 addFilter (e ) {
268273 e .preventDefault ()
269274 if (this .tabLoading ) return
You can’t perform that action at this time.
0 commit comments