li.shaoyi 2 년 전
부모
커밋
a239117134

+ 2 - 3
src/packages/gstj/views/goods/trade/index.vue

@@ -19,7 +19,7 @@
                         <span class="text-small">{{ row.username }}</span>
                     </template>
                     <template #operate="{ row }">
-                        <Button size="small" type="primary" round @click="onDelisting(row)">
+                        <Button size="small" type="primary" round @click="onDelisting(row)" style="width: 1rem;">
                             {{ tabIndex === BuyOrSell.Buy ? '卖出' : '买入' }}
                         </Button>
                     </template>
@@ -57,7 +57,6 @@ const quote = futuresStore.getQuoteInfo(goodsid)
 const tabIndex = shallowRef(buyorsell)
 const selectedRow = shallowRef<Model.WrTradeOrderDetailRsp>()
 const error = shallowRef(false)
-const dataList = shallowRef<Model.WrTradeOrderDetailRsp[]>([])
 
 const columns: Model.TableColumn[] = [
     { prop: 'orderprice', label: '价格' },
@@ -68,7 +67,7 @@ const columns: Model.TableColumn[] = [
 
 const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => onRefresh())
 
-const { pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetail, {
+const { dataList, pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetail, {
     params: {
         goodsid,
         buyorsell: tabIndex.value

+ 2 - 3
src/packages/mobile/views/goods/trade/index.vue

@@ -19,7 +19,7 @@
                         <span class="text-small">{{ row.username }}</span>
                     </template>
                     <template #operate="{ row }">
-                        <Button size="small" type="primary" round @click="onDelisting(row)">
+                        <Button size="small" type="primary" round @click="onDelisting(row)" style="width: 1rem;">
                             {{ tabIndex === BuyOrSell.Buy ? '卖出' : '买入' }}
                         </Button>
                     </template>
@@ -57,7 +57,6 @@ const quote = futuresStore.getQuoteInfo(goodsid)
 const tabIndex = shallowRef(buyorsell)
 const selectedRow = shallowRef<Model.WrTradeOrderDetailRsp>()
 const error = shallowRef(false)
-const dataList = shallowRef<Model.WrTradeOrderDetailRsp[]>([])
 
 const columns: Model.TableColumn[] = [
     { prop: 'orderprice', label: '价格' },
@@ -68,7 +67,7 @@ const columns: Model.TableColumn[] = [
 
 const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => onRefresh())
 
-const { pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetail, {
+const { dataList, pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetail, {
     params: {
         goodsid,
         buyorsell: tabIndex.value

+ 2 - 3
src/packages/qxst/views/goods/trade/index.vue

@@ -19,7 +19,7 @@
                         <span class="text-small">{{ row.username }}</span>
                     </template>
                     <template #operate="{ row }">
-                        <Button size="small" type="primary" round @click="onDelisting(row)">
+                        <Button size="small" type="primary" round @click="onDelisting(row)" style="width: 1rem;">
                             {{ tabIndex === BuyOrSell.Buy ? '卖出' : '买入' }}
                         </Button>
                     </template>
@@ -57,7 +57,6 @@ const quote = futuresStore.getQuoteInfo(goodsid)
 const tabIndex = shallowRef(buyorsell)
 const selectedRow = shallowRef<Model.WrTradeOrderDetailRsp>()
 const error = shallowRef(false)
-const dataList = shallowRef<Model.WrTradeOrderDetailRsp[]>([])
 
 const columns: Model.TableColumn[] = [
     { prop: 'orderprice', label: '价格' },
@@ -68,7 +67,7 @@ const columns: Model.TableColumn[] = [
 
 const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => onRefresh())
 
-const { pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetail, {
+const { dataList, pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetail, {
     params: {
         goodsid,
         buyorsell: tabIndex.value