1
李凌
2025-09-20 6b754cd28c45741a24e7f7193b894e3e386e4af8
src/components/Transform/history-item/index.vue
@@ -6,8 +6,8 @@
                    handleWordType(entrust.order_price_type) }}</span>
                <span :class="entrust.offset == 'open' ? 'text-green' : 'text-red'"> / </span>
                <span :class="entrust.offset == 'open' ? 'text-green' : 'text-red'">{{ handleWordOffset(entrust.offset)
                }}</span>&nbsp;
                <span>{{ entrust.name }}</span>
                    }}</span>&nbsp;
                <span>{{ strToArr(entrust.name, '/')[0] }}</span>
            </div>
            <div class="text" @click.stop="goDetail(entrust.order_no)">
                <span v-if="state == 'submitted'" @click.stop="cancelSingle(entrust.order_no)">{{ $t('撤单') }}</span>
@@ -19,7 +19,8 @@
        <div class="flex info">
            <div class="data-item ">
                <div class="title">{{ $t('时间') }}</div>
                <div class="text">{{ entrust.create_time ? entrust.create_time.substring(5, entrust.create_time.length) :
                <div class="text">{{ entrust.create_time ? entrust.create_time.substring(5, entrust.create_time.length)
                    :
                    '--' }}</div>
            </div>
            <div class="data-item right-text">
@@ -44,7 +45,7 @@
                <div class="text">{{ entrust.price }}</div>
            </div>
            <div class="data-item right-text">
                <div class="title">{{ $t('成交量') }}({{ entrust.symbol }})</div>
                <div class="title">{{ $t('成交量') }}({{ strToArr(entrust.name, '/')[0] }})</div>
                <div class="text">{{ (entrust.volume / entrust.price).toFixed(6) }}</div>
            </div>
        </div>
@@ -53,6 +54,7 @@
<script>
import { Circle } from 'vant'
import { strToArr } from '@/utils/utis.js'
export default {
    name: 'history-item', // 订单委托项
    components: {
@@ -86,6 +88,7 @@
    watch: {
    },
    methods: {
        strToArr,
        handleWordType(type) {
            return type === 'limit' ? this.$t('限价') : this.$t('市价');
        },
@@ -101,7 +104,7 @@
    }
}
</script>
<style lang="scss"  scoped>
<style lang="scss" scoped>
.history-item {
    border-bottom: 1px solid $inp-b;