parent
7bf000925b
commit
6e20d501d6
|
@ -32,6 +32,7 @@
|
||||||
accept=".json"
|
accept=".json"
|
||||||
:showUploadList="false"
|
:showUploadList="false"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
|
:disabled="!permission"
|
||||||
>
|
>
|
||||||
<PermissionButton
|
<PermissionButton
|
||||||
hasPermission="device/Product:import"
|
hasPermission="device/Product:import"
|
||||||
|
@ -197,6 +198,7 @@ import { useMenuStore } from 'store/menu';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { useRouterParams } from '@/utils/hooks/useParams';
|
import { useRouterParams } from '@/utils/hooks/useParams';
|
||||||
import { accessConfigTypeFilter } from '@/utils/setting';
|
import { accessConfigTypeFilter } from '@/utils/setting';
|
||||||
|
import { usePermissionStore } from '@/store/permission';
|
||||||
/**
|
/**
|
||||||
* 表格数据
|
* 表格数据
|
||||||
*/
|
*/
|
||||||
|
@ -258,7 +260,9 @@ const columns = [
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
const permission = usePermissionStore().hasPermission(
|
||||||
|
`device/Product:import`,
|
||||||
|
);
|
||||||
const _selectedRowKeys = ref<string[]>([]);
|
const _selectedRowKeys = ref<string[]>([]);
|
||||||
const currentForm = ref({});
|
const currentForm = ref({});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue