huangbin 4 년 전
부모
커밋
f8cfde1c12

+ 6 - 1
src/views/market/spot_trade/components/buy-sell-market/components/financing_delisting/components/choose-finance/index.vue

@@ -69,11 +69,16 @@ export default defineComponent({
             type: Object as PropType<WrOrderQuoteDetail>,
             default: {},
         },
+        isFloat: {
+            type: Boolean,
+            default: true,
+        },
     },
 
     setup(props, context) {
         const { visible, cancel } = _closeModal(context);
-        const list = getFinacingList();
+        // ,浮动价只支持自动融资产品
+        const list = props.isFloat ? getFinacingList().filter((e) => e.isautoloan === 1) : getFinacingList();
         function update() {
             cancel();
             context.emit('cancel');

+ 1 - 0
src/views/market/spot_trade/components/buy-sell-market/components/financing_delisting/index.vue

@@ -165,6 +165,7 @@
   <component :is="componentId"
              v-if="componentId"
              :selectedRow="selectedRow"
+             :isFloat="isFloat()"
              @update="choose"
              @cancel="closeComponent"></component>
 </template>