|
|
@ -18,8 +18,8 @@ |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="right flex-1 px-5 pt-2"> |
|
|
|
<div class="right flex-1 px-5 pt-2"> |
|
|
|
<component v-if="id" |
|
|
|
<Com1 v-if="id == 150" /> |
|
|
|
:is="defineAsyncComponent(() => import('./' + id + '.vue'))"></component> |
|
|
|
<Com2 v-else-if="id == 151" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
@ -36,15 +36,13 @@ import { computed, onMounted, ref, watch, defineAsyncComponent } from 'vue'; |
|
|
|
import type { TabsPaneContext } from 'element-plus'; |
|
|
|
import type { TabsPaneContext } from 'element-plus'; |
|
|
|
import { getProcessInformationBasedOnRoles } from '@/api/judgment'; |
|
|
|
import { getProcessInformationBasedOnRoles } from '@/api/judgment'; |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
|
|
|
import Com1 from './150.vue'; |
|
|
|
|
|
|
|
import Com2 from './151.vue'; |
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter(); |
|
|
|
const router = useRouter(); |
|
|
|
const route = useRoute(); |
|
|
|
const route = useRoute(); |
|
|
|
const curTab = ref<string>('tab1'); |
|
|
|
const curTab = ref<string>('tab1'); |
|
|
|
const action = ref<any>(''); |
|
|
|
|
|
|
|
const list = ref<Array<any>>([]); |
|
|
|
const list = ref<Array<any>>([]); |
|
|
|
const loading = ref<boolean>(false); |
|
|
|
|
|
|
|
const productType = computed(() => route.query.type); // 个人/企业 |
|
|
|
|
|
|
|
const role = computed(() => +route.query.role || 41); |
|
|
|
|
|
|
|
const id = computed(() => +route.query.id); |
|
|
|
const id = computed(() => +route.query.id); |
|
|
|
|
|
|
|
|
|
|
|
// 列表 |
|
|
|
// 列表 |
|
|
@ -52,7 +50,7 @@ const getList = async () => { |
|
|
|
const { process } = await getProcessInformationBasedOnRoles(67); |
|
|
|
const { process } = await getProcessInformationBasedOnRoles(67); |
|
|
|
id.value || |
|
|
|
id.value || |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
path: `/product/strategy/config`, |
|
|
|
path: `/product/strategy`, |
|
|
|
query: { |
|
|
|
query: { |
|
|
|
...route.query, |
|
|
|
...route.query, |
|
|
|
id: process[0].recordChildren[0].id, |
|
|
|
id: process[0].recordChildren[0].id, |
|
|
@ -64,19 +62,10 @@ onMounted(() => { |
|
|
|
getList(); |
|
|
|
getList(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
|
|
|
route, |
|
|
|
|
|
|
|
(route: any) => { |
|
|
|
|
|
|
|
action.value = route.params.action; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
immediate: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
// 产品切换 |
|
|
|
// 产品切换 |
|
|
|
const switchProduct = (id: number) => { |
|
|
|
const switchProduct = (id: number) => { |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
path: `/product/strategy/config`, |
|
|
|
path: `/product/strategy`, |
|
|
|
query: { |
|
|
|
query: { |
|
|
|
...route.query, |
|
|
|
...route.query, |
|
|
|
id, |
|
|
|
id, |
|
|
|