| | |
| | | <div>{{ $t("message.home.jiaogeshijian") }}</div> |
| | | <div>{{ $t("message.home.goumaijia") }}</div> |
| | | <div>{{ $t("message.home.jiesuanjia") }}</div> |
| | | <div>{{ $t("message.home.yingkui") }}</div> |
| | | <div v-if="type == 'hisorders'">{{ $t("message.home.yingkui") }}</div> |
| | | <div class="flex-2"> |
| | | {{ $t("message.home.daoqishijian") }} |
| | | </div> |
| | |
| | | > |
| | | <div>{{ item.name }}</div> |
| | | <div class="flex-2"> |
| | | {{ getFormatTime(item.open_time) }} |
| | | {{ item.open_time}} |
| | | </div> |
| | | <div v-if="item.direction == 'buy'" class="green"> |
| | | {{ $t("message.jiaoyi.zuoduomairu") }} |
| | |
| | | <div>{{ item.time_num }} {{ item.time_unit }}</div> |
| | | <div>{{ item.open_price }}</div> |
| | | <div>{{ item.close_price }}</div> |
| | | <div v-if="item.profit < 0" class="red"> |
| | | <div v-if="type == 'hisorders' && item.profit < 0" class="red"> |
| | | {{ item.profit }} |
| | | </div> |
| | | <div v-else class="green"> |
| | | <div v-if="type == 'hisorders' && item.profit >= 0" class="green"> |
| | | {{ item.profit }} |
| | | </div> |
| | | |
| | |
| | | <div v-if="item.state=='created'">已完成</div> --> |
| | | <!-- <div>{{ item.settlement_time }}</div>--> |
| | | <div class="flex-2"> |
| | | {{ getFormatTime(item.settlement_time) }} |
| | | {{ item.settlement_time}} |
| | | </div> |
| | | <div |
| | | v-if="type == 'orders'" |
| | |
| | | :typeValue="2" |
| | | :dialogVisible="dialogVisible" |
| | | @closeDialog="handleCloseDetailDialog" |
| | | :showDetail="showDetail" |
| | | ></delivery-detail-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import { useUserStore } from "@/store/user"; |
| | | import AxiosCurrency from "@/api/currency.js"; |
| | | import { handleSymbolImg } from "@/utils"; |
| | | import {initDate} from '@/utils/utils' |
| | | |
| | | export default { |
| | | name: "deliveryDelegateList", |
| | |
| | | orderNumber: 0, |
| | | isNext: false, |
| | | isTop: false, |
| | | showDetail: {} |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | if (this.type == "orders") { |
| | | this.orderNumber = res?.total || res.data.length; |
| | | } |
| | | let result = res.data.sort(this.sortData) |
| | | // result.forEach(m => {// |
| | | // m.open_time = m.open_time.split(' ')[0] + ' ' + initDate(m.open_time.split(' ')[1]) |
| | | // m.settlement_time = m.settlement_time.split(' ')[0] + ' ' + initDate(m.settlement_time.split(' ')[1]) |
| | | // }); |
| | | this.currencyData = res.data.sort(this.sortData); |
| | | this.currencyDataLength = res.data.length; |
| | | if (this.currencyDataLength == 0 || this.currencyDataLength < 10) { |
| | |
| | | order_no: item.order_no, |
| | | symbol: item.symbol, |
| | | }; |
| | | bus.emit("showDetail", obj); |
| | | // bus.emit("showDetail", obj); |
| | | this.showDetail = obj |
| | | this.dialogVisible = true; |
| | | }, |
| | | //分页 |