xiaohaizhao 2 lat temu
rodzic
commit
1481549c40
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      components/Yl_Filtrate/index.js

+ 6 - 1
components/Yl_Filtrate/index.js

@@ -91,7 +91,12 @@ Component({
             } else if (name == 'confirm') {
                 let obj = {};
                 this.data.list.forEach(v => {
-                    obj[v.valueKey] = v.value;
+                    if (v.type == 'multilevelClass') {
+                        obj[v.valueKey] = getApp().globalData.temporaryId;
+                        delete(getApp().globalData.temporaryId);
+                    } else {
+                        obj[v.valueKey] = v.value;
+                    }
                 });
                 if (this.data.dateRange) {
                     obj.startdate = this.data.startdate;