|
@@ -51,7 +51,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
- import { defineComponent } from 'vue';
|
|
|
|
|
|
+ import { defineComponent, computed } from 'vue';
|
|
import {
|
|
import {
|
|
BasicTable,
|
|
BasicTable,
|
|
useTable,
|
|
useTable,
|
|
@@ -84,6 +84,8 @@
|
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import DownloadModal from './downloadModal.vue';
|
|
import DownloadModal from './downloadModal.vue';
|
|
|
|
+ import { useLocaleStore } from '/@/store/modules/locale';
|
|
|
|
+ const localeStore = useLocaleStore();
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: { BasicTable, TableAction, TableImg, DownloadModal },
|
|
components: { BasicTable, TableAction, TableImg, DownloadModal },
|
|
@@ -91,7 +93,7 @@
|
|
const { createMessage } = useMessage();
|
|
const { createMessage } = useMessage();
|
|
const [registerDownloadModal, { openModal: openDownloadModal }] = useModal();
|
|
const [registerDownloadModal, { openModal: openDownloadModal }] = useModal();
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
-
|
|
|
|
|
|
+ const isJA = computed(() => localeStore.getLocale === 'ja');
|
|
const columns: BasicColumn[] = [
|
|
const columns: BasicColumn[] = [
|
|
{
|
|
{
|
|
title: 'ID',
|
|
title: 'ID',
|
|
@@ -157,7 +159,7 @@
|
|
title: t('common.operation'),
|
|
title: t('common.operation'),
|
|
dataIndex: '',
|
|
dataIndex: '',
|
|
slots: { customRender: 'action' },
|
|
slots: { customRender: 'action' },
|
|
- width: 200,
|
|
|
|
|
|
+ width: isJA.value ? 300 : 180,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
},
|
|
},
|
|
];
|
|
];
|