huangbin 4 years ago
parent
commit
cdc4217e33

+ 2 - 2
src/views/market/spot_trade/components/buy-sell-market/components/buy/index.vue

@@ -51,8 +51,8 @@ export default defineComponent({
     setup(props, context) {
     setup(props, context) {
         // 表格列表数据
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList<WrOrderQuoteDetail>();
         const { loading, tableList, queryTable } = queryTableList<WrOrderQuoteDetail>();
-        function open(item: btnListType) {
-            context.emit('openComponent', item);
+        function open(item: btnListType, record: WrOrderQuote) {
+            context.emit('openComponent', item, record);
         }
         }
         const { wrpricetype, haswr, tableKey } = getBuyMarketParam(props.enumName);
         const { wrpricetype, haswr, tableKey } = getBuyMarketParam(props.enumName);
         // 获取列表数据
         // 获取列表数据

+ 9 - 5
src/views/market/spot_trade/components/buy-sell-market/components/delisting/index.vue

@@ -1,9 +1,11 @@
 <template>
 <template>
-    <!-- 摘牌 -->
-    <Drawer :title="'摘牌'" :placement="'top'" :visible="visible">
-        <!-- 挂牌 -->
-        摘牌
-    </Drawer>
+  <!-- 摘牌 -->
+  <Drawer :title="'摘牌'"
+          :placement="'top'"
+          :visible="visible">
+    <!-- 挂牌 -->
+    摘牌
+  </Drawer>
 </template>
 </template>
 
 
 <script lang="ts">
 <script lang="ts">
@@ -29,6 +31,8 @@ export default defineComponent({
     },
     },
     setup(props) {
     setup(props) {
         const data = props.selectedRow;
         const data = props.selectedRow;
+        console.log('data', data);
+
         const loading = ref<boolean>(false);
         const loading = ref<boolean>(false);
         // console.log(param);
         // console.log(param);
         // requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
         // requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {