|
|
@ -46,6 +46,7 @@ import { bankingProductsList, batchDeletion } from '@/api/bank'; |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
import { getStatus } from '@/store/useProduct'; |
|
|
|
import { getStatus } from '@/store/useProduct'; |
|
|
|
import { getIds } from '@/utils/common'; |
|
|
|
import { getIds } from '@/utils/common'; |
|
|
|
|
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
import Config from './Config.vue'; |
|
|
|
import Config from './Config.vue'; |
|
|
|
import Detail from './Detail.vue'; |
|
|
|
import Detail from './Detail.vue'; |
|
|
|
import Add from './Add.vue'; |
|
|
|
import Add from './Add.vue'; |
|
|
@ -63,23 +64,25 @@ const id = computed(() => +route.query.id); |
|
|
|
const actionKey = ref<number>(1); |
|
|
|
const actionKey = ref<number>(1); |
|
|
|
// 列表 |
|
|
|
// 列表 |
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
loading.value = true; |
|
|
|
if (!Cookies.get('sand-submit')) { |
|
|
|
try { |
|
|
|
loading.value = true; |
|
|
|
const { data } = await bankingProductsList({ |
|
|
|
try { |
|
|
|
...getIds(), |
|
|
|
const { data } = await bankingProductsList({ |
|
|
|
pageNum: 1, |
|
|
|
...getIds(), |
|
|
|
pageSize: 1000, |
|
|
|
pageNum: 1, |
|
|
|
productType: productType.value, |
|
|
|
pageSize: 1000, |
|
|
|
roleId: route.query.role, |
|
|
|
productType: productType.value, |
|
|
|
keyWord: route.query.name ?? '', |
|
|
|
roleId: route.query.role, |
|
|
|
createDateSort: route.query.createDateSort ?? '', |
|
|
|
keyWord: route.query.name ?? '', |
|
|
|
guarantyStyleId: route.query.guarantyStyleId ?? '', |
|
|
|
createDateSort: route.query.createDateSort ?? '', |
|
|
|
status: route.query.status ?? '', |
|
|
|
guarantyStyleId: route.query.guarantyStyleId ?? '', |
|
|
|
}); |
|
|
|
status: route.query.status ?? '', |
|
|
|
list.value = data.message.records; |
|
|
|
}); |
|
|
|
((route.path !== '/product/bank/add' && list.value.length && !id.value) || refresh) && switchProduct(list.value[0], refresh); |
|
|
|
list.value = data.message.records; |
|
|
|
} finally { |
|
|
|
((route.path !== '/product/bank/add' && list.value.length && !id.value) || refresh) && switchProduct(list.value[0], refresh); |
|
|
|
loading.value = false; |
|
|
|
} finally { |
|
|
|
|
|
|
|
loading.value = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
onMounted(getList); |
|
|
|
onMounted(getList); |
|
|
|