|
@@ -60,6 +60,7 @@
|
|
|
import addModal from './addModal.vue';
|
|
|
import { Time } from '/@/components/Time';
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
+ import { useTabs } from '/@/hooks/web/useTabs';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
export default defineComponent({
|
|
|
components: {
|
|
@@ -79,6 +80,7 @@
|
|
|
shotNum: 0,
|
|
|
});
|
|
|
const { createConfirm, createMessage } = useMessage();
|
|
|
+ const { closeCurrent } = useTabs();
|
|
|
const userStore = useUserStore();
|
|
|
const { getCheckRole } = userStore;
|
|
|
const userinfo = computed(() => userStore.getUserInfo);
|
|
@@ -87,6 +89,7 @@
|
|
|
const { t } = useI18n();
|
|
|
console.log('companyId', companyId);
|
|
|
if (companyId.value) {
|
|
|
+ closeCurrent();
|
|
|
router.replace(`detail/${companyId.value}`);
|
|
|
}
|
|
|
onMounted(() => {
|
|
@@ -160,7 +163,6 @@
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
-
|
|
|
const [registerTable, { reload }] = useTable({
|
|
|
title: t('routes.rightsEnterprises.menuList'),
|
|
|
api: ListApi,
|
|
@@ -169,10 +171,8 @@
|
|
|
formConfig: searchForm,
|
|
|
showTableSetting: true,
|
|
|
tableSetting: { fullScreen: true },
|
|
|
- showIndexColumn: true,
|
|
|
+ showIndexColumn: false,
|
|
|
pagination: { pageSize: 20 },
|
|
|
- clickToRowSelect: false,
|
|
|
- bordered: true,
|
|
|
rowKey: 'companyId',
|
|
|
fetchSetting: {
|
|
|
pageField: 'page',
|
|
@@ -189,10 +189,6 @@
|
|
|
endTime: T.fieldTime?.[1],
|
|
|
};
|
|
|
},
|
|
|
- // sortFn: (sortInfo) => {
|
|
|
- // let order = sortInfo.order && sortInfo.order.replace('end', '');
|
|
|
- // return { ...sortInfo, sidx: sortInfo.field, order: order };
|
|
|
- // },
|
|
|
});
|
|
|
|
|
|
function renderRoleType(type: number): string {
|