style:申请业务规则配置
Showing
2 changed files
with
56 additions
and
5 deletions
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | <i class="el-icon-full-screen" v-else @click="handleFullscreen" /> | 10 | <i class="el-icon-full-screen" v-else @click="handleFullscreen" /> |
11 | </div> | 11 | </div> |
12 | </div> | 12 | </div> |
13 | <div class="dialogBox-content" :style="{ height: scrollerHeight ? scrollerHeight : 'auto' }" :key="key"> | 13 | <div class="dialogBox-content" :style="{ minHeight: scrollerHeight ? scrollerHeight : 'auto' }" :key="key"> |
14 | <slot></slot> | 14 | <slot></slot> |
15 | </div> | 15 | </div> |
16 | <div slot="footer" class="dialog_footer" v-if="isButton"> | 16 | <div slot="footer" class="dialog_footer" v-if="isButton"> | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox title="申请业务规则配置" @submitForm="submitForm" @closeDialog="closeDialog" v-model="value"> | 2 | <dialogBox title="申请业务规则配置" @submitForm="submitForm" @closeDialog="closeDialog" v-model="value"> |
3 | <ul class="edit-title-list"> | ||
4 | <li v-for="(item, index) in titleList" @click="handleTitleSelct(item)" :key="index" | ||
5 | :class="{ active: item.select }">{{ | ||
6 | item.name | ||
7 | }}</li> | ||
8 | </ul> | ||
3 | <div class="sqywgz-edit"> | 9 | <div class="sqywgz-edit"> |
4 | <ul class="sqywgz-edit-left"> | 10 | <ul class="sqywgz-edit-left"> |
5 | <li v-for="(item, index) in leftList" :key="index" :class="{ active: index == n }" @click="hanldeItem(index)">{{ | 11 | <li v-for="(item, index) in leftList" :key="index" :class="{ active: index == n }" @click="hanldeItem(index)">{{ |
... | @@ -131,6 +137,21 @@ export default { | ... | @@ -131,6 +137,21 @@ export default { |
131 | }, | 137 | }, |
132 | data () { | 138 | data () { |
133 | return { | 139 | return { |
140 | titleList: [ | ||
141 | { | ||
142 | name: '第一次登记', | ||
143 | select: true | ||
144 | }, | ||
145 | { | ||
146 | name: '转移登记' | ||
147 | }, | ||
148 | { | ||
149 | name: '变更登记' | ||
150 | }, | ||
151 | { | ||
152 | name: '注销登记' | ||
153 | } | ||
154 | ], | ||
134 | imgUploadUrl: fileController.uploadUrl(), | 155 | imgUploadUrl: fileController.uploadUrl(), |
135 | n: 0, | 156 | n: 0, |
136 | leftList: [ | 157 | leftList: [ |
... | @@ -213,6 +234,15 @@ export default { | ... | @@ -213,6 +234,15 @@ export default { |
213 | }; | 234 | }; |
214 | }, | 235 | }, |
215 | methods: { | 236 | methods: { |
237 | handleTitleSelct (obj) { | ||
238 | this.titleList.forEach(item => { | ||
239 | if (item.select) { | ||
240 | item.select = false | ||
241 | } | ||
242 | }) | ||
243 | this.n = 0 | ||
244 | this.$set(obj, 'select', true) | ||
245 | }, | ||
216 | getValue (val) { | 246 | getValue (val) { |
217 | console.log(val); | 247 | console.log(val); |
218 | }, | 248 | }, |
... | @@ -270,6 +300,29 @@ export default { | ... | @@ -270,6 +300,29 @@ export default { |
270 | <style scoped lang="scss"> | 300 | <style scoped lang="scss"> |
271 | @import "~@/styles/mixin.scss"; | 301 | @import "~@/styles/mixin.scss"; |
272 | 302 | ||
303 | .active { | ||
304 | background: $light-blue !important; | ||
305 | color: #fff; | ||
306 | } | ||
307 | |||
308 | .edit-title-list { | ||
309 | @include flex; | ||
310 | |||
311 | li { | ||
312 | flex: 1; | ||
313 | @include flex-center; | ||
314 | border: 1px solid $borderColor; | ||
315 | line-height: 36px; | ||
316 | margin-bottom: 10px; | ||
317 | cursor: pointer; | ||
318 | transition: all 0.3s; | ||
319 | |||
320 | &:hover { | ||
321 | @extend .active; | ||
322 | } | ||
323 | } | ||
324 | } | ||
325 | |||
273 | .sqywgz-edit { | 326 | .sqywgz-edit { |
274 | @include flex; | 327 | @include flex; |
275 | width: 100%; | 328 | width: 100%; |
... | @@ -277,10 +330,7 @@ export default { | ... | @@ -277,10 +330,7 @@ export default { |
277 | &-left { | 330 | &-left { |
278 | width: 26px; | 331 | width: 26px; |
279 | 332 | ||
280 | .active { | 333 | |
281 | background: $light-blue; | ||
282 | color: #fff; | ||
283 | } | ||
284 | 334 | ||
285 | li { | 335 | li { |
286 | @include flex-center; | 336 | @include flex-center; |
... | @@ -288,6 +338,7 @@ export default { | ... | @@ -288,6 +338,7 @@ export default { |
288 | border-bottom-right-radius: 5px; | 338 | border-bottom-right-radius: 5px; |
289 | padding: 15px; | 339 | padding: 15px; |
290 | cursor: pointer; | 340 | cursor: pointer; |
341 | transition: all 0.3s; | ||
291 | 342 | ||
292 | &:hover { | 343 | &:hover { |
293 | @extend .active; | 344 | @extend .active; | ... | ... |
-
Please register or sign in to post a comment