|
|
|
@ -46,6 +46,7 @@ import { bankingProductsList, batchDeletion } from '@/api/bank'; |
|
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
import { getStatus } from '@/store/useProduct'; |
|
|
|
|
import { getIds } from '@/utils/common'; |
|
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
|
import Config from './Config.vue'; |
|
|
|
|
import Detail from './Detail.vue'; |
|
|
|
|
import Add from './Add.vue'; |
|
|
|
@ -63,6 +64,7 @@ const id = computed(() => +route.query.id); |
|
|
|
|
const actionKey = ref<number>(1); |
|
|
|
|
// 列表 |
|
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
|
if (!Cookies.get('sand-submit')) { |
|
|
|
|
loading.value = true; |
|
|
|
|
try { |
|
|
|
|
const { data } = await bankingProductsList({ |
|
|
|
@ -81,6 +83,7 @@ const getList = async (refresh?: number) => { |
|
|
|
|
} finally { |
|
|
|
|
loading.value = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
onMounted(getList); |
|
|
|
|
|
|
|
|
|