huangbin 4 gadi atpakaļ
vecāks
revīzija
859de3c1d5

+ 2 - 13
src/views/market/spot_trade/components/filter/index.vue

@@ -144,6 +144,8 @@ export default defineComponent({
                         if (el.key === id) {
                             //  品种id
                             result.deliverygoodsid = +(item.key as string).replace('--', '');
+                            result.enumdicname = el.enumdicname;
+                            result.minivalue = el.minivalue;
                         }
                     });
                 });
@@ -207,19 +209,6 @@ export default defineComponent({
                 }
                 const result = search(false);
 
-                const obj = {
-                    enumdicname: '',
-                    minivalue: 0,
-                };
-                FtDeliveryGoods.value.forEach((el) => {
-                    el.children?.forEach((e) => {
-                        e.key === selectedFT.value;
-                        obj.enumdicname = e.enumdicname;
-                        obj.minivalue = e.minivalue;
-                    });
-                });
-                Object.assign(result, obj);
-
                 context.emit('buy', result, selectedGoods.value);
             }
         }