Browse Source

fix

درس‌ها و چارت آموزشی >> جزئیات (ویرایش دسته بندی) >> آزمون

وقتی جلسه‌ای را فیلتر کردیم، امکان حذف فیلتر نبود.
hgh 2 năm trước cách đây
mục cha
commit
0b101e2c87

+ 5 - 1
src/components/FormBuilderCustumComponents/QuestionsSelector/QuestionsSelector.vue

@@ -15,7 +15,8 @@
                       :loading="sessions.loading"
                       emit-value
                       clearable
-                      map-options />
+                      map-options
+                      @clear="clearFn()" />
           </div>
         </div>
         <div class="col-md-4 flex items-end">
@@ -396,6 +397,9 @@ export default {
           this.sessions.loading = false
         })
     },
+    clearFn () {
+      FormBuilderAssist.setAttributeByName(this.inputs, 'session_template_questions__session_template', 'value', null)
+    },
     onChangeQuestionListPage (response) {
       this.updateloadedQuestionsByArray(response.data.results)
     },