diff --git a/src/api/bank.ts b/src/api/bank.ts index b05769d..40dde5f 100644 --- a/src/api/bank.ts +++ b/src/api/bank.ts @@ -13,3 +13,7 @@ export const productElement = async (id: number): Promise => (await axios.p export const findById = async (id: number): Promise => (await axios.post(`/product/product/bank/products/findById?id=${id}`)).data; export const save = async (data: Record): Promise => (await axios.post(`/product/product/bank/products/save`, data)).data; export const riskSave = async (data: Record): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/save`, data)).data; +export const riskUpdate = async (data: Record): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/update`, data)).data; +export const riskById = async (id: number): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/findById?id=${id}`)).data; +export const examineAndApprove = async (id: number | string, opinionDescription: string, status: number, approvalTime: string): Promise => + (await axios.post(`/product/product/bank/products/examineAndApprove?id=${id}&opinionDescription=${opinionDescription}&status=${status}&approvalTime=${approvalTime}`)).data; diff --git a/src/assets/images/icon7-1.png b/src/assets/images/icon7-1.png new file mode 100644 index 0000000..e391538 Binary files /dev/null and b/src/assets/images/icon7-1.png differ diff --git a/src/layout/components/AppHeader.vue b/src/layout/components/AppHeader.vue index f020df3..c895b3c 100644 --- a/src/layout/components/AppHeader.vue +++ b/src/layout/components/AppHeader.vue @@ -2,8 +2,9 @@
- 切换产品经理 - 切换风控经理 + 切换产品经理 + 切换风控经理 + 切换专家委员会
    - { let val = ''; - if (route.query.role == 2) { - if (productTypes.value.length === 1) val = productTypes.value[0]; - return val; + if (params.roleId == 42 && productTypes.value.length === 1) { + val = productTypes.value[0]; + } else if (params.roleId == 41) { + val = +route.query.type; } - return +route.query.type; + return val; }), status: '', + roleId: computed(() => +route.query.role || 41), }); -// params.productType = computed(() => (route.query.role == 2 ? '' : +route.query.type)); -const role = computed(() => route.query.role || 1); // 1产品经理,2风控经理 const currentPage = ref(1); const pageSize = ref(10); const total = ref(0); const table = ref(); const guarantees = ref>([]); -const paces = ref>([ - { - id: '', - name: '产品进度', - }, - { - id: 1, - name: '配置风控', - }, - { - id: 2, - name: '待审批', - }, - { - id: 3, - name: '审批通过', - }, - { - id: 4, - name: '审批不通过', - }, - { - id: 5, - name: '审批打回', - }, -]); const list = ref>([]); const loading = ref(false); // 担保方式 @@ -215,10 +202,6 @@ onMounted(() => { }); watch([params, () => route.query], initList); -// watch(productTypes, (val) => { -// console.log('🚀 ~ file: List.vue:207 ~ watch ~ val:', val); -// params.productType = val.length === 2 ? '' : -// }); const handleSort = ({ column, prop, order }: { column: any; prop: string; order: string }) => { params.createDateSort = order === 'descending' ? 'desc' : order === 'ascending' ? 'asc' : ''; getList(); @@ -236,13 +219,17 @@ const toDetail = async (path: string, id: number) => { path, query: { ...route.query, + type: params.productType, id, }, }); }; // 卡片模式 const toCardList = () => { - router.push('/product/cardList/config'); + router.push({ + path: '/product/cardList/config', + query: route.query, + }); }; const handleDelete = async (id: number) => { @@ -271,7 +258,6 @@ const handleDelete = async (id: number) => { @apply inline-flex items-center h-[36px] px-[24px] text-sm text-white rounded-[18px] cursor-pointer; background: linear-gradient(-36deg, #006bff, #2ab1ff); border: 1px solid #ffffff; - cursor: pointer; .icon { @apply mr-[8px]; }