|
|
@ -43,13 +43,14 @@ |
|
|
|
<!-- <component :is="currentSubApp" |
|
|
|
<!-- <component :is="currentSubApp" |
|
|
|
@getList="getList"></component> --> |
|
|
|
@getList="getList"></component> --> |
|
|
|
<config v-if="action === 'config'" |
|
|
|
<config v-if="action === 'config'" |
|
|
|
:key="configKey" |
|
|
|
:key="actionKey" |
|
|
|
@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" |
|
|
|
:key="actionKey" |
|
|
|
@getList="getList"></add> |
|
|
|
@getList="getList"></add> |
|
|
|
<approve v-else-if="action === 'approve'" |
|
|
|
<approve v-else-if="action === 'approve'" |
|
|
|
|
|
|
|
:key="actionKey" |
|
|
|
@getList="getList"></approve> |
|
|
|
@getList="getList"></approve> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -80,8 +81,7 @@ const loading = ref<boolean>(false); |
|
|
|
const productType = computed(() => route.query.type); // 个人/企业 |
|
|
|
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 actionKey = ref<number>(1); |
|
|
|
const addKey = ref<number>(1); |
|
|
|
|
|
|
|
// 列表 |
|
|
|
// 列表 |
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
const getList = async (refresh?: number) => { |
|
|
|
loading.value = true; |
|
|
|
loading.value = true; |
|
|
@ -123,12 +123,11 @@ const switchProduct = (row: any, refresh?: number) => { |
|
|
|
const curAction = action.value; |
|
|
|
const curAction = action.value; |
|
|
|
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 === curAction) actionKey.value += 1; |
|
|
|
if (toAction === 'add' && curAction === 'add') addKey.value += 1; |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
// 新增 |
|
|
|
// 新增 |
|
|
|
const toAdd = () => { |
|
|
|
const toAdd = () => { |
|
|
|
if (action.value === 'add') addKey.value += 1; |
|
|
|
if (action.value === 'add') actionKey.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}`); |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 返回列表 |
|
|
|
// 返回列表 |
|
|
|