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: { },