|
@@ -91,7 +91,7 @@
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
- import { defineComponent, provide, nextTick } from 'vue';
|
|
|
+ import { defineComponent, provide, nextTick, computed } from 'vue';
|
|
|
import { BasicTable, useTable, BasicColumn, FormProps, TableAction } from '/@/components/Table';
|
|
|
// import { CollapseContainer } from '/@/components/Container';
|
|
|
import { CropperAvatar } from '/@/components/Cropper';
|
|
@@ -108,7 +108,9 @@
|
|
|
import { Time } from '/@/components/Time';
|
|
|
import { Tag } from 'ant-design-vue';
|
|
|
import type { Result } from '/#/axios';
|
|
|
+ import { useLocaleStore } from '/@/store/modules/locale';
|
|
|
|
|
|
+ const localeStore = useLocaleStore();
|
|
|
export default defineComponent({
|
|
|
components: {
|
|
|
BasicTable,
|
|
@@ -128,6 +130,7 @@
|
|
|
const [registerSubaccountModal, { openModal: openSubaccountModal }] = useModal();
|
|
|
const [registerCameraModal, { openModal: openCameraModal }] = useModal();
|
|
|
const { t } = useI18n();
|
|
|
+ const isJA = computed(() => localeStore.getLocale === 'ja');
|
|
|
const columns: BasicColumn[] = [
|
|
|
// {
|
|
|
// title: 'ID',
|
|
@@ -239,7 +242,7 @@
|
|
|
totalField: 'totalCount',
|
|
|
},
|
|
|
actionColumn: {
|
|
|
- width: 160,
|
|
|
+ width: isJA.value ? 280 : 160,
|
|
|
title: t('common.operation'),
|
|
|
dataIndex: 'action',
|
|
|
slots: { customRender: 'action' },
|