Преглед на файлове

修复数据库列表分类筛选无效bug

cfort преди 3 години
родител
ревизия
b41a18ee83
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/views/platform/bo/boDef/list.vue

+ 4 - 4
src/views/platform/bo/boDef/list.vue

@@ -221,9 +221,9 @@ export default {
     /**
      * 加载数据
      */
-    loadData(id = '') {
+    loadData() {
       this.loading = true
-      queryPageList(this.getFormatParams(id)).then(response => {
+      queryPageList(this.getFormatParams()).then(response => {
             response.data.dataResult.forEach((item)=>{
               if(item.typeId && this.typeFiler.length>0){
                   this.typeFiler.forEach((val)=>{
@@ -246,9 +246,9 @@ export default {
     /**
      * 获取格式化参数
      */
-    getFormatParams(id = '') {
+    getFormatParams() {
       const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      params['Q^TYPE_ID_^S'] = id
+      params['Q^TYPE_ID_^S'] = this.typeId
       return ActionUtils.formatParams(
         params,
         this.pagination,