|
@@ -11,7 +11,7 @@
|
|
:margin="[10, 10]"
|
|
:margin="[10, 10]"
|
|
:use-css-transforms="true"
|
|
:use-css-transforms="true"
|
|
>
|
|
>
|
|
- <grid-item v-for="item in layout" :key="item.i" :x="item.x" :y="item.y" :w="item.w" :h="item.h" :i="item.i" :class="{'hidden': item.i !== '6'}">
|
|
|
|
|
|
+ <grid-item v-for="item in layout" :key="item.i" :x="item.x" :y="item.y" :w="item.w" :h="item.h" :i="item.i" :class="{'hidden': item.i !== '2'}">
|
|
<component :is="components[item.i]" class="card-box" :page-size="item.i === '4' ? 5 : 10" />
|
|
<component :is="components[item.i]" class="card-box" :page-size="item.i === '4' ? 5 : 10" />
|
|
</grid-item>
|
|
</grid-item>
|
|
</grid-layout>
|
|
</grid-layout>
|
|
@@ -23,6 +23,7 @@ import { mapGetters } from 'vuex'
|
|
import VueGridLayout from 'vue-grid-layout'
|
|
import VueGridLayout from 'vue-grid-layout'
|
|
import Search from './components/Search'
|
|
import Search from './components/Search'
|
|
import Message from './components/Message'
|
|
import Message from './components/Message'
|
|
|
|
+import Business from './components/Business'
|
|
import System from './components/System'
|
|
import System from './components/System'
|
|
// import System from './components/System'
|
|
// import System from './components/System'
|
|
import Specification from './components/Specification'
|
|
import Specification from './components/Specification'
|
|
@@ -38,6 +39,7 @@ export default {
|
|
GridItem: VueGridLayout.GridItem,
|
|
GridItem: VueGridLayout.GridItem,
|
|
Search,
|
|
Search,
|
|
Message,
|
|
Message,
|
|
|
|
+ Business,
|
|
System,
|
|
System,
|
|
Specification,
|
|
Specification,
|
|
Link,
|
|
Link,
|
|
@@ -48,22 +50,22 @@ export default {
|
|
// layout: [
|
|
// layout: [
|
|
// { 'x': 0, 'y': 0, 'w': 14, 'h': 2, 'i': '0' },
|
|
// { 'x': 0, 'y': 0, 'w': 14, 'h': 2, 'i': '0' },
|
|
// { 'x': 0, 'y': 2, 'w': 6, 'h': 12, 'i': '1' },
|
|
// { 'x': 0, 'y': 2, 'w': 6, 'h': 12, 'i': '1' },
|
|
- // { 'x': 0, 'y': 14, 'w': 6, 'h': 8, 'i': '2' },
|
|
|
|
|
|
+ // { 'x': 0, 'y': 14, 'w': 6, 'h': 7, 'i': '2' },
|
|
// { 'x': 6, 'y': 2, 'w': 8, 'h': 8, 'i': '3' },
|
|
// { 'x': 6, 'y': 2, 'w': 8, 'h': 8, 'i': '3' },
|
|
// { 'x': 6, 'y': 10, 'w': 8, 'h': 5, 'i': '4' },
|
|
// { 'x': 6, 'y': 10, 'w': 8, 'h': 5, 'i': '4' },
|
|
- // { 'x': 6, 'y': 16, 'w': 8, 'h': 6, 'i': '5' },
|
|
|
|
- // { 'x': 0, 'y': 22, 'w': 14, 'h': 4, 'i': '6' }
|
|
|
|
|
|
+ // { 'x': 6, 'y': 15, 'w': 8, 'h': 6, 'i': '5' },
|
|
|
|
+ // { 'x': 0, 'y': 21, 'w': 14, 'h': 4, 'i': '6' }
|
|
// ],
|
|
// ],
|
|
layout: [
|
|
layout: [
|
|
{ 'x': 1, 'y': 0, 'w': 14, 'h': 2, 'i': '0' },
|
|
{ 'x': 1, 'y': 0, 'w': 14, 'h': 2, 'i': '0' },
|
|
{ 'x': 1, 'y': 2, 'w': 6, 'h': 12, 'i': '1' },
|
|
{ 'x': 1, 'y': 2, 'w': 6, 'h': 12, 'i': '1' },
|
|
- { 'x': 1, 'y': 14, 'w': 6, 'h': 8, 'i': '2' },
|
|
|
|
|
|
+ { 'x': 0, 'y': 0, 'w': 6, 'h': 7, 'i': '2' },
|
|
{ 'x': 1, 'y': 0, 'w': 8, 'h': 8, 'i': '3' },
|
|
{ 'x': 1, 'y': 0, 'w': 8, 'h': 8, 'i': '3' },
|
|
{ 'x': 1, 'y': 8, 'w': 8, 'h': 5, 'i': '4' },
|
|
{ 'x': 1, 'y': 8, 'w': 8, 'h': 5, 'i': '4' },
|
|
{ 'x': 1, 'y': 0, 'w': 8, 'h': 6, 'i': '5' },
|
|
{ 'x': 1, 'y': 0, 'w': 8, 'h': 6, 'i': '5' },
|
|
- { 'x': 0, 'y': 0, 'w': 14, 'h': 4, 'i': '6' }
|
|
|
|
|
|
+ { 'x': 1, 'y': 0, 'w': 14, 'h': 4, 'i': '6' }
|
|
],
|
|
],
|
|
- components: ['Search', 'Message', 'Test', 'System', 'System', 'Specification', 'Link']
|
|
|
|
|
|
+ components: ['Search', 'Message', 'Business', 'System', 'System', 'Specification', 'Link']
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|