1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
| <template>
| <div class="dashboard-container global-content">
| <wms-stat />
| <!-- <component v-for="(item, index) in widgetFormData.fields" :key="index" :is="item.type">
|
| </component> -->
| </div>
| </template>
|
| <script>
| import WmsStat from './wms/wms-stat'
| import WmsRingStat from './wms/wms-ring-stat'
| import WmsMonthStat from './wms/wms-month-stat'
| import WmsEverydayStat from './wms/wms-everyday-stat'
| import WmsStorageArea from '@/views/dashboard/wms/wms-storageArea'
|
| import WaybillStat from './tms/waybill-stat'
| import WaybillreceiveStat from './tms/waybillreceive-stat'
| import WaybillMonthStat from './tms/waybill-month-stat'
| import WaybillEverydayStat from './tms/waybill-everyday-stat'
|
| export default {
| name: 'dashboard',
| components: {
| WmsStat,
| WmsRingStat,
| WmsMonthStat,
| WmsEverydayStat,
| WmsStorageArea,
|
| WaybillStat,
| WaybillreceiveStat,
| WaybillMonthStat,
| WaybillEverydayStat
| },
| data() {
| return {
| widgetFormData: {}
| }
| },
| mounted() {
| this.init()
| },
| methods: {
| // 加载数据
| init() {
| const url = '/api/sys/designer/initLayout'
| const params = {}
| this.common.ajax(
| url,
| params,
| res => {
| this.widgetFormData = res.data
| },
| true
| )
| }
| }
| }
| </script>
| <style lang="scss" scoped>
| .dashboard-container {
| height: 100vh;
| }
| </style>
|
|