style:业务申请
Showing
3 changed files
with
25 additions
and
14 deletions
... | @@ -25,7 +25,15 @@ export const constantRoutes = [ | ... | @@ -25,7 +25,15 @@ export const constantRoutes = [ |
25 | component: () => import('@/views/error-page/404'), | 25 | component: () => import('@/views/error-page/404'), |
26 | hidden: true | 26 | hidden: true |
27 | }, | 27 | }, |
28 | { path: '*', redirect: '/404', hidden: true } | 28 | { path: '*', redirect: '/404', hidden: true }, |
29 | // 详情 | ||
30 | { | ||
31 | path: '/fqsq', | ||
32 | component: () => import('@/views/ywbl/fqsq/fqsq.vue'), | ||
33 | name: 'fqsq', | ||
34 | hidden: true, | ||
35 | meta: { title: '发起申请' } | ||
36 | } | ||
29 | ] | 37 | ] |
30 | 38 | ||
31 | /** | 39 | /** |
... | @@ -81,15 +89,6 @@ export const asyncRoutes = [ | ... | @@ -81,15 +89,6 @@ export const asyncRoutes = [ |
81 | name: 'ybx', | 89 | name: 'ybx', |
82 | meta: { title: '已办箱' } | 90 | meta: { title: '已办箱' } |
83 | }, | 91 | }, |
84 | { | ||
85 | path: 'fqsq', | ||
86 | id: '24', | ||
87 | parentId: '2', | ||
88 | component: () => import('@/views/ywbl/fqsq/fqsq.vue'), | ||
89 | name: 'fqsq', | ||
90 | hidden: true, | ||
91 | meta: { title: '发起申请' } | ||
92 | } | ||
93 | ] | 92 | ] |
94 | }, | 93 | }, |
95 | { | 94 | { | ... | ... |
... | @@ -2,13 +2,14 @@ | ... | @@ -2,13 +2,14 @@ |
2 | <div class='fqsq'> | 2 | <div class='fqsq'> |
3 | <div class="fqsq-header"> | 3 | <div class="fqsq-header"> |
4 | <ul> | 4 | <ul> |
5 | <li v-for="(item, index) in headerleftList.slice(0, headerleftList.length - 3)" :key="index"> | 5 | <li @click="operation(index)" v-for="(item, index) in headerleftList.slice(0, headerleftList.length - 4)" |
6 | :key="index"> | ||
6 | <svg-icon :icon-class="item.icon" /> | 7 | <svg-icon :icon-class="item.icon" /> |
7 | {{ item.name }} | 8 | {{ item.name }} |
8 | </li> | 9 | </li> |
9 | </ul> | 10 | </ul> |
10 | <ul> | 11 | <ul> |
11 | <li v-for="(item, index) in headerleftList.slice(-3)" :key="index"> | 12 | <li @click="operation(index)" v-for="(item, index) in headerleftList.slice(-4)" :key="index"> |
12 | <svg-icon :icon-class="item.icon" /> | 13 | <svg-icon :icon-class="item.icon" /> |
13 | {{ item.name }} | 14 | {{ item.name }} |
14 | </li> | 15 | </li> |
... | @@ -68,6 +69,10 @@ export default { | ... | @@ -68,6 +69,10 @@ export default { |
68 | { | 69 | { |
69 | name: '转出', | 70 | name: '转出', |
70 | icon: '' | 71 | icon: '' |
72 | }, | ||
73 | { | ||
74 | name: '退出', | ||
75 | icon: '' | ||
71 | } | 76 | } |
72 | ], | 77 | ], |
73 | activeName: '1', | 78 | activeName: '1', |
... | @@ -101,6 +106,11 @@ export default { | ... | @@ -101,6 +106,11 @@ export default { |
101 | } | 106 | } |
102 | }, | 107 | }, |
103 | methods: { | 108 | methods: { |
109 | operation (index) { | ||
110 | if (index == 3) { | ||
111 | window.close() | ||
112 | } | ||
113 | }, | ||
104 | loadView (view) { | 114 | loadView (view) { |
105 | return r => require.ensure([], () => r(require(`./components/${view}.vue`))) | 115 | return r => require.ensure([], () => r(require(`./components/${view}.vue`))) |
106 | }, | 116 | }, |
... | @@ -121,6 +131,8 @@ export default { | ... | @@ -121,6 +131,8 @@ export default { |
121 | .fqsq { | 131 | .fqsq { |
122 | width: 100%; | 132 | width: 100%; |
123 | height: 100%; | 133 | height: 100%; |
134 | padding: 0 10%; | ||
135 | box-sizing: border-box; | ||
124 | background-color: #ffffff; | 136 | background-color: #ffffff; |
125 | 137 | ||
126 | &-header { | 138 | &-header { |
... | @@ -129,7 +141,6 @@ export default { | ... | @@ -129,7 +141,6 @@ export default { |
129 | height: 64px; | 141 | height: 64px; |
130 | background-color: #10CCB8; | 142 | background-color: #10CCB8; |
131 | color: #ffffff; | 143 | color: #ffffff; |
132 | border-radius: 4px; | ||
133 | justify-content: space-between; | 144 | justify-content: space-between; |
134 | padding-left: 15px; | 145 | padding-left: 15px; |
135 | 146 | ... | ... |
... | @@ -95,7 +95,8 @@ export default { | ... | @@ -95,7 +95,8 @@ export default { |
95 | methods: { | 95 | methods: { |
96 | submitForm () { | 96 | submitForm () { |
97 | this.$emit('input', false) | 97 | this.$emit('input', false) |
98 | this.$router.push({ name: 'fqsq', query: { id: '1' } }) | 98 | const { href } = this.$router.resolve('/fqsq') |
99 | window.open(href, '_blank'); | ||
99 | }, | 100 | }, |
100 | closeDialog () { | 101 | closeDialog () { |
101 | this.$emit('input', false) | 102 | this.$emit('input', false) | ... | ... |
-
Please register or sign in to post a comment