|
|
@ -47,6 +47,7 @@ |
|
|
|
@getList="getList"></config> |
|
|
|
@getList="getList"></config> |
|
|
|
<detail v-if="action === 'detail'"></detail> |
|
|
|
<detail v-if="action === 'detail'"></detail> |
|
|
|
<add v-else-if="action === 'add'" |
|
|
|
<add v-else-if="action === 'add'" |
|
|
|
|
|
|
|
:key="addKey" |
|
|
|
@getList="getList"></add> |
|
|
|
@getList="getList"></add> |
|
|
|
<approve v-else-if="action === 'approve'" |
|
|
|
<approve v-else-if="action === 'approve'" |
|
|
|
@getList="getList"></approve> |
|
|
|
@getList="getList"></approve> |
|
|
@ -80,6 +81,7 @@ const productType = computed(() => route.query.type); // 个人/企业 |
|
|
|
const role = computed(() => +route.query.role || 41); |
|
|
|
const role = computed(() => +route.query.role || 41); |
|
|
|
const id = computed(() => +route.query.id); |
|
|
|
const id = computed(() => +route.query.id); |
|
|
|
const configKey = ref<number>(1); |
|
|
|
const configKey = ref<number>(1); |
|
|
|
|
|
|
|
const addKey = ref<number>(1); |
|
|
|
// 列表 |
|
|
|
// 列表 |
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
loading.value = true; |
|
|
|
loading.value = true; |
|
|
@ -122,9 +124,11 @@ const switchProduct = (row: any, refresh?: number) => { |
|
|
|
const path = `/product/bank/${toAction}`; |
|
|
|
const path = `/product/bank/${toAction}`; |
|
|
|
router.push(`${path}?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${row.id}&name=${route.query.name ?? ''}`); |
|
|
|
router.push(`${path}?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${row.id}&name=${route.query.name ?? ''}`); |
|
|
|
if (toAction === 'config' && curAction === 'config') configKey.value += 1; |
|
|
|
if (toAction === 'config' && curAction === 'config') configKey.value += 1; |
|
|
|
|
|
|
|
if (toAction === 'add' && curAction === 'add') addKey.value += 1; |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 新增 |
|
|
|
// 新增 |
|
|
|
const toAdd = () => { |
|
|
|
const toAdd = () => { |
|
|
|
|
|
|
|
if (action.value === 'add') addKey.value += 1; |
|
|
|
router.push(`/product/bank/add?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}`); |
|
|
|
router.push(`/product/bank/add?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}`); |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 返回列表 |
|
|
|
// 返回列表 |
|
|
|