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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| <template>
| <div class="work-place">
| <a-row :gutter="18">
| <a-col :span="6" v-for="(item, key) in totals" :key="'key'+key">
| <total-card :type="item.type" :title="item.title" :num="item.value" @click="changeTotalCard(item)"></total-card>
| </a-col>
| </a-row>
| <a-card style="margin-top: 8px">
| <my-draw></my-draw>
| </a-card>
| </div>
|
| </template>
|
| <script>
| import MyDraw from "./myDraw";
| import TotalCard from "./totalCard";
| export default {
| name: 'WorkPlace',
| components: {
| MyDraw,
| TotalCard
| },
| data() {
| return {
| loading: false,
| totals: [
| {
| title: "我的图纸",
| type: "",
| value: 10
| },
| {
| title: "未审批",
| type: "warning",
| value: 20
| },
| {
| title: "已驳回",
| type: "danger",
| value: 2
| },
| {
| title: "已审批",
| type: "success",
| value: 10
| },
| ],
| columns: [
| {
| title: '图纸编码',
| dataIndex: 'name',
| key: 'name',
| align: "center",
| searchAble: true
| },
| {
| title: '图纸类型',
| dataIndex: 'type',
| key: 'type',
| align: "center",
| searchAble: true,
| dataType: 'select',
| search: {
| selectOptions: []
| }
| },
| ],
| dataSource: [],
| }
| },
| methods: {
| changeTotalCard(info) {
| console.log(info);
| }
| },
| }
| </script>
|
| <style scoped>
| .work-place {
| padding-top: 8px;
| }
| </style>
|
|