|
@@ -11,7 +11,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, h, reactive, ref, onMounted } from 'vue';
|
|
|
+import { defineComponent, h, reactive, ref, onMounted, computed } from 'vue';
|
|
|
import GrowCard from '../dashboard/analysis/components/GrowCard.vue';
|
|
|
import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table';
|
|
|
import { PageWrapper } from '/@/components/Page';
|
|
@@ -24,6 +24,8 @@ import { searchForm, columns } from './data';
|
|
|
import AddModal from './InvoiceModal.vue';
|
|
|
import EditModal from './EditModal.vue';
|
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
|
+import { useLocaleStore } from '/@/store/modules/locale';
|
|
|
+
|
|
|
interface apiDataParam {
|
|
|
orderSn?: string;
|
|
|
payTimeStart?: string;
|
|
@@ -57,6 +59,8 @@ export default defineComponent({
|
|
|
const { t } = useI18n();
|
|
|
const loading = ref(true);
|
|
|
const growCardList = ref<GrowCardItem[]>([]);
|
|
|
+ const localeStore = useLocaleStore();
|
|
|
+ const isEn = computed(() => localeStore.getLocale === 'en');
|
|
|
onMounted(async () => {
|
|
|
const {lastDownNum = 0,lastHighNum = 0,lastMajorNum = 0} = await logData({})
|
|
|
loading.value = false
|
|
@@ -103,7 +107,7 @@ export default defineComponent({
|
|
|
const [registerTable, { reload }] = useTable({
|
|
|
api: logList,
|
|
|
title: t('routes.equity.listTitle'),
|
|
|
- titleHelpMessage: ['统计规则:', '1、会员权益:统计当前经销商新授权的记录、以及相关权益ID续费记录,包括经销商授权和续费、平台授权(续费)、官网自购(续费);','2、场景下载:统计当前经销售新授权(除相关用户)的下载次数;'],
|
|
|
+ titleHelpMessage: [t('routes.equity.titleHelpMessage.1'), t('routes.equity.titleHelpMessage.2'),t('routes.equity.titleHelpMessage.3'),],
|
|
|
columns: columns,
|
|
|
useSearchForm: true,
|
|
|
formConfig: searchForm,
|
|
@@ -159,7 +163,10 @@ export default defineComponent({
|
|
|
title: () => h('span', t('common.reminder')),
|
|
|
content: () => h('span', t('routes.equity.excelTitle')),
|
|
|
onOk: async () => {
|
|
|
- await DownExport(apiData);
|
|
|
+ await DownExport({
|
|
|
+ ...apiData,
|
|
|
+ lang:isEn.value?'en':'zh'
|
|
|
+ });
|
|
|
},
|
|
|
});
|
|
|
}
|