Handy_Cao há 1 ano atrás
pai
commit
1286d2a6b5

+ 3 - 1
src/packages/mobile/components/modules/delivery/warehouse-receipt.vue

@@ -36,7 +36,7 @@
                     </Cell>
                 </CellGroup>
             </RadioGroup>
-            <Empty description="暂无数据" v-else />
+            <Empty :description="t('common.nodatas')" v-else />
         </app-view>
     </app-modal>
 </template>
@@ -46,6 +46,7 @@ import { shallowRef } from 'vue'
 import { RadioGroup, Radio, Cell, CellGroup, Empty } from 'vant'
 import { useRequest } from '@/hooks/request'
 import { queryWrDeliveryAvalidHoldLB } from '@/services/api/transfer'
+import { i18n } from "@/stores"
 import AppModal from '@/components/base/modal/index.vue'
 
 const props = defineProps({
@@ -57,6 +58,7 @@ const props = defineProps({
 
 const emit = defineEmits(['update:show', 'change'])
 const checkedRow = shallowRef<Model.WrDeliveryAvalidHoldLBRsp>()
+const { t } = i18n.global
 
 const { dataList } = useRequest(queryWrDeliveryAvalidHoldLB, {
     params: {

+ 5 - 2
src/packages/mobile/components/modules/quote/chart/kline/index.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="app-echats-kline">
-        <div class="app-echats-kline__tip" v-if="loading">正在加载...</div>
-        <div class="app-echats-kline__tip" v-else-if="isEmpty">暂无数据</div>
+        <div class="app-echats-kline__tip" v-if="loading">{{ t('common.loading') }}</div>
+        <div class="app-echats-kline__tip" v-else-if="isEmpty">{{ t('common.nodatas') }}</div>
         <template v-else>
             <div class="app-echats-kline__container">
                 <ul class="legend">
@@ -58,6 +58,7 @@ import { PropType, watch, shallowRef } from 'vue'
 import { echarts } from '@/components/base/echarts/core'
 import { ChartCycleType, ChartSeriesType, getChartSeriesTypeList } from '@/constants/chart'
 import { useCandlestickChart } from '@/hooks/echarts/candlestick'
+import { i18n } from '@/stores'
 import AppEcharts from '@/components/base/echarts/index.vue'
 import AppTabs from '@/components/base/tabs/index.vue'
 
@@ -83,6 +84,8 @@ const activeSeriesType = shallowRef(ChartSeriesType.MACD); // 当前选中的指
 const chartGroup = new Map<string, echarts.ECharts>(); // 图表联动实例组
 const chartSeriesTypeList = getChartSeriesTypeList();
 
+const { t } = i18n.global
+
 // 指标切换
 const tabChange = (index: number) => {
     activeSeriesType.value = chartSeriesTypeList[index].value;

+ 4 - 2
src/packages/pc/components/modules/delivery/index.vue

@@ -40,7 +40,7 @@
                 </template>
             </table>
         </div>
-        <div class="app-delivery__empty" v-else>暂无数据</div>
+        <div class="app-delivery__empty" v-else>{{ t('common.nodatas') }}</div>
         <template #footer>
             <div class="app-delivery__details">
                 <slot name="footer" :discount="discount" :qty="qty" :qtyStep="qtyStep"
@@ -64,7 +64,7 @@ import { useRequest } from '@/hooks/request'
 import { queryWrDeliveryAvalidHoldLB } from '@/services/api/transfer'
 import { deliveryOrder } from '@/services/api/trade'
 import { queryDeliveryRelation } from '@/services/api/goods'
-import { useAccountStore, useFuturesStore } from '@/stores'
+import { useAccountStore, useFuturesStore, i18n } from '@/stores'
 import moment from 'moment'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
@@ -87,6 +87,8 @@ const loading = ref(false)
 const dataList = ref<(Model.WrDeliveryAvalidHoldLBRsp & { deliveryLot: number })[]>([])
 const quote = futuresStore.getGoodsQuote(props.goodsId) // 商品实时盘面
 
+const { t } = i18n.global
+
 useRequest(queryWrDeliveryAvalidHoldLB, {
     params: {
         goodsid: props.goodsId,

+ 5 - 2
src/packages/pc/components/modules/quote/chart/kline/index.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="app-echats-kline">
-        <div class="app-echats-kline__tip" v-if="loading">正在加载...</div>
-        <div class="app-echats-kline__tip" v-else-if="isEmpty">暂无数据</div>
+        <div class="app-echats-kline__tip" v-if="loading">{{ t('common.loading') }}</div>
+        <div class="app-echats-kline__tip" v-else-if="isEmpty">{{ t('common.nodatas') }}</div>
         <template v-else>
             <div class="app-echats-kline__container">
                 <ul class="legend">
@@ -59,6 +59,7 @@ import { PropType, watch, shallowRef } from 'vue'
 import { echarts } from '@/components/base/echarts/core'
 import { ChartCycleType, ChartSeriesType, getChartSeriesTypeList } from '@/constants/chart'
 import { useCandlestickChart } from '@/hooks/echarts/candlestick'
+import { i18n } from '@/stores'
 import AppEcharts from '@/components/base/echarts/index.vue'
 import AppTabs from '@/components/base/tabs/index.vue'
 
@@ -84,6 +85,8 @@ const activeSeriesType = shallowRef(ChartSeriesType.MACD); // 当前选中的指
 const chartGroup = new Map<string, echarts.ECharts>(); // 图表联动实例组
 const chartSeriesTypeList = getChartSeriesTypeList();
 
+const { t } = i18n.global
+
 // 指标切换
 const tabChange = (index: number) => {
     activeSeriesType.value = chartSeriesTypeList[index].value;

+ 5 - 2
src/packages/pc/components/modules/quote/chart/timeline/index.vue

@@ -1,10 +1,10 @@
 <template>
     <div class="app-echats-timeline">
         <template v-if="loading">
-            <div class="app-echats-timeline__tip">正在加载...</div>
+            <div class="app-echats-timeline__tip">{{ t('common.loading') }}</div>
         </template>
         <template v-else-if="isEmpty">
-            <div class="app-echats-timeline__tip">暂无数据</div>
+            <div class="app-echats-timeline__tip">{{ t('common.nodatas') }}</div>
         </template>
         <template v-else>
             <div class="app-echats-timeline__container">
@@ -19,6 +19,7 @@
 
 <script lang="ts" setup>
 import { useTimelineChart } from '@/hooks/echarts/timeline'
+import { i18n } from "@/stores"
 import AppEcharts from '@/components/base/echarts/index.vue'
 
 const props = defineProps({
@@ -29,6 +30,8 @@ const props = defineProps({
 })
 
 const { loading, dataIndex, isEmpty, options, selectedItem, initOptions } = useTimelineChart(props.goodsCode)
+const { t } = i18n.global
+
 </script>
 
 <style lang="less">

+ 1 - 1
src/packages/pc/views/footer/goods/detail/index.vue

@@ -13,7 +13,7 @@
             <span v-else>--</span>
         </template>
         <template #append v-if="showLoadMore">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
         <template #footer>
             <component ref="componentRef" v-bind="{ selectedRow }" :is="componentMap.get(componentId)"

+ 1 - 1
src/packages/pc/views/footer/goods/order/index.vue

@@ -26,7 +26,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="showLoadMore">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
         <template #footer>
             <component ref="componentRef" v-bind="{ dataList, selectedRows }" :is="componentMap.get(componentId)"

+ 1 - 1
src/packages/pc/views/footer/pricing/detail/index.vue

@@ -10,7 +10,7 @@
             <el-button type="danger" size="small" @click="showComponent('transfer', row)">转让</el-button>
         </template>
         <template #append v-if="showLoadMore">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
         <template #footer>
             <component ref="componentRef" v-bind="{ selectedRow }" :is="componentMap.get(componentId)"

+ 1 - 1
src/packages/pc/views/query/order/goods/history/index.vue

@@ -26,7 +26,7 @@
             {{ getWRTradeOrderStatusName(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/order/goods/list/index.vue

@@ -18,7 +18,7 @@
             {{ getWRTradeOrderStatusName(value) }}
         </template>
         <template #append v-if="showLoadMore">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/order/presell/history/index.vue

@@ -34,7 +34,7 @@
             {{ getOrderStatusName(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/order/presell/transferhistory/index.vue

@@ -18,7 +18,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/order/pricing/history/index.vue

@@ -30,7 +30,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/order/spot/history/index.vue

@@ -26,7 +26,7 @@
             {{ getWRTradeOrderStatusName(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/order/swap/history/index.vue

@@ -30,7 +30,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/trade/presell/history/index.vue

@@ -22,7 +22,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/trade/pricing/history/index.vue

@@ -30,7 +30,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/pc/views/query/trade/spot/history/index.vue

@@ -18,7 +18,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore' )}}</el-button>
         </template>
     </app-table>
 </template>

+ 1 - 1
src/packages/thj/views/swap/detail/index.vue

@@ -29,7 +29,7 @@
                 </Button>
             </template>
         </app-list>
-        <Empty description="暂无数据" v-else />
+        <Empty :description="t('common.nodatas')" v-else />
         <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ selectedRow, tabIndex, item }"
             @closed="closeComponent" v-if="componentId" />
     </app-view>