diff --git a/src/views/AppStoresTable.vue b/src/views/AppStoresTable.vue index d1b9f9d..2ce8ec2 100644 --- a/src/views/AppStoresTable.vue +++ b/src/views/AppStoresTable.vue @@ -4,6 +4,7 @@ export default { label: "多店监控", data() { return { + height: '600px', stores: [ {}, {}, {}, {}, {} ], @@ -26,28 +27,54 @@ export default { ] }, } + }, + computed: { + storeList: v => { + const list = [] + let group = [] + v.stores.map((e, i) => { + if (group.length < 4) { + group.push(e) + if (i + 1 == v.stores.length) { + list.push(group) + } + } else { + list.push(group) + group = [e] + } + }) + return list + } + }, + mounted() { + this.height = `${this.$el.clientHeight}px` } }