From e8e11376be8a3bc0bbb5eeb6b5e4d5b12258bce5 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 7 Feb 2024 15:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B4=B7=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/systemInput/个人贷款.svg | 1 + src/assets/img/systemInput/公司贷款.svg | 1 + src/pages/counter/list/index.vue | 25 +- src/pages/index/list/index.vue | 12 +- src/pages/manage/index/index.vue | 531 +++++++-------- src/pages/manage/list/agent/agent.vue | 7 - .../manage/list/personalLoans/detail.vue | 619 ++++++++++++++++++ src/pages/manage/list/personalLoans/index.vue | 198 ++++++ src/pages/manage/list/personalLoans/list.js | 7 + src/pages/manage/list/personalLoans/list.vue | 313 +++++++++ src/pages/manage/navbar/index.vue | 32 +- src/router/modules/counter.js | 13 + src/store/modules/system.js | 5 + 13 files changed, 1473 insertions(+), 291 deletions(-) create mode 100644 src/assets/img/systemInput/个人贷款.svg create mode 100644 src/assets/img/systemInput/公司贷款.svg create mode 100644 src/pages/manage/list/personalLoans/detail.vue create mode 100644 src/pages/manage/list/personalLoans/index.vue create mode 100644 src/pages/manage/list/personalLoans/list.js create mode 100644 src/pages/manage/list/personalLoans/list.vue diff --git a/src/assets/img/systemInput/个人贷款.svg b/src/assets/img/systemInput/个人贷款.svg new file mode 100644 index 0000000..9127256 --- /dev/null +++ b/src/assets/img/systemInput/个人贷款.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/img/systemInput/公司贷款.svg b/src/assets/img/systemInput/公司贷款.svg new file mode 100644 index 0000000..25ccf24 --- /dev/null +++ b/src/assets/img/systemInput/公司贷款.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index 5cfc507..3590379 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -92,7 +92,8 @@ -
@@ -110,7 +111,8 @@ -
@@ -127,7 +129,8 @@ -
-
-
@@ -222,7 +227,8 @@
-
@@ -611,9 +617,8 @@
- -
- +
信贷部
@@ -132,7 +134,8 @@ export default { methods: { ...mapMutations({ setBusinessKey: 'system/setBusinessKey', - setShowBusiness: 'system/setShowBusiness' + setShowBusiness: 'system/setShowBusiness', + setCredit: 'system/setCredit', }), getQueryVariable (name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)') @@ -145,7 +148,8 @@ export default { } } }, - toPart (path) { + toPart (path, isCredit = false) { + this.setCredit(isCredit) this.$router.push(path) }, showComing () { diff --git a/src/pages/manage/index/index.vue b/src/pages/manage/index/index.vue index 271e6ae..0a050b1 100644 --- a/src/pages/manage/index/index.vue +++ b/src/pages/manage/index/index.vue @@ -1,156 +1,310 @@ \ No newline at end of file diff --git a/src/pages/manage/list/agent/agent.vue b/src/pages/manage/list/agent/agent.vue index fd46117..c5f3ec0 100644 --- a/src/pages/manage/list/agent/agent.vue +++ b/src/pages/manage/list/agent/agent.vue @@ -12,13 +12,6 @@
- diff --git a/src/pages/manage/list/personalLoans/detail.vue b/src/pages/manage/list/personalLoans/detail.vue new file mode 100644 index 0000000..7b53315 --- /dev/null +++ b/src/pages/manage/list/personalLoans/detail.vue @@ -0,0 +1,619 @@ + + + + \ No newline at end of file diff --git a/src/pages/manage/list/personalLoans/index.vue b/src/pages/manage/list/personalLoans/index.vue new file mode 100644 index 0000000..4438394 --- /dev/null +++ b/src/pages/manage/list/personalLoans/index.vue @@ -0,0 +1,198 @@ + + + + + + diff --git a/src/pages/manage/list/personalLoans/list.js b/src/pages/manage/list/personalLoans/list.js new file mode 100644 index 0000000..13ccbed --- /dev/null +++ b/src/pages/manage/list/personalLoans/list.js @@ -0,0 +1,7 @@ +export default [ + { + id: 1, + name: '刘亚东', + serial: 'F10628012', + } +] \ No newline at end of file diff --git a/src/pages/manage/list/personalLoans/list.vue b/src/pages/manage/list/personalLoans/list.vue new file mode 100644 index 0000000..27cbb7b --- /dev/null +++ b/src/pages/manage/list/personalLoans/list.vue @@ -0,0 +1,313 @@ + + + + + \ No newline at end of file diff --git a/src/pages/manage/navbar/index.vue b/src/pages/manage/navbar/index.vue index f090cd0..bead728 100644 --- a/src/pages/manage/navbar/index.vue +++ b/src/pages/manage/navbar/index.vue @@ -59,11 +59,17 @@ export default { // required: true // } // }, + computed: { + ...mapState({ + isCredit: state => state.system.isCredit + }) + }, data () { return { // onRoutes:'/counter/list/manage/consumerClient', onRoutes: '', - menus: [ + menus: [], + defaultMenus: [ { icon: 'menu-icon icon-index', index: '/index/list', @@ -238,29 +244,35 @@ export default { logo: require('@/assets/img/systemInput/外汇业务.svg'), }, ], + creditMenus: [ + { + icon: 'menu-icon icon-index', + index: '/counter/list/manage/personalLoans', + title: '个人贷款', + logo: require('@/assets/img/systemInput/个人贷款.svg'), + }, + { + icon: 'menu-icon icon-index', + index: '/counter/list/manage/onlineBank', + title: '公司贷款', + logo: require('@/assets/img/systemInput/公司贷款.svg'), + }, + ] } }, watch: { - // '$route.path':function (val) { - // this.onRoutes = val - // }, needIndex (newVal) { this.onRoutes = newVal } }, created () { + this.menus = this.isCredit ? this.creditMenus : this.defaultMenus const path = sessionStorage.getItem('computerPath') if (path) { this.onRoutes = path } else { this.onRoutes = this.$route.path } - // this.onRoutes = this.$route.path - - // this.onRoutes = this.needIndex; - // console.log(this.onRoutes) - // console.log(this.needIndex) - // this.onRoutes = this.$route.path }, methods: { select (path) { diff --git a/src/router/modules/counter.js b/src/router/modules/counter.js index 74acc65..d502400 100644 --- a/src/router/modules/counter.js +++ b/src/router/modules/counter.js @@ -196,6 +196,19 @@ export default { component: () => import('@/pages/manage/list/foreignExchange/foreignExchange.vue'), meta: { title: '外汇业务' }, }, + // 个人贷款列表 + { + name: `${pre}personalLoans`, + path: `personalLoans`, + component: () => import('@/pages/manage/list/personalLoans'), + meta: { title: '个人贷款' }, + }, + // 个人贷款详情 + { + path: `personalLoansDetail`, + component: () => import('@/pages/manage/list/personalLoans/detail'), + meta: { title: '个人贷款' }, + }, ] } diff --git a/src/store/modules/system.js b/src/store/modules/system.js index 705f292..c9908ad 100644 --- a/src/store/modules/system.js +++ b/src/store/modules/system.js @@ -2549,6 +2549,7 @@ export default { }, // 初始化公共数据 allDataFlow: { ...allDataFlow }, + isCredit: false, }, mutations: { // 设置tipDialog组件提示的信息。这个组件是根据UI设计的。 @@ -2998,6 +2999,10 @@ export default { changeShowGoods(state, judge) { state.showGoods = judge }, + // 信贷部的标识(综合柜台跟信贷部是同一个页面,通过该标识去区分是否信贷部) + setCredit(state, val) { + state.isCredit = val + }, }, actions: { },