attributeList.vue
3.55 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<template>
<div>
<div class="scrm-sub-client-container">
<div class="pageContent">
<GLCombiForm ref="combiForm" :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<!-- Pie Chart Component -->
<AttributePieChart style="margin-top: 20px;" :date-filter="searchForm.purchaseCar" />
</div>
</div>
</div>
</template>
<script>
import AttributePieChart from './components/AttributePieChart.vue'
export default {
name: 'attributeList',
components: {
AttributePieChart
},
data() {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0');
const day = String(now.getDate()).padStart(2, '0');
const todayStr = `${year}-${month}-${day}`;
return {
searchForm: {
addWay: [],
customerName: '',
purchaseCar: todayStr
},
clientManageFormList: [
// {
// type: 'input',
// inputType: 'text',
// name: 'customerName',
// label: '客户名称',
// placeholder: '请输入客户名称'
// },
// {
// type: 'select',
// name: 'addWay',
// label: '事件选择',
// multiple: true,
// collapseTags: true,
// optionLabel: 'label',
// optionId: 'value',
// placeholder: '请选择事件',
// optionList: EVENT_OPTIONS
// },
{
type: 'datePicker',
name: 'purchaseCar',
label: '时间选择',
valueFormat: 'yyyy-MM-dd',
dateType: 'week',
attrs: {
format: 'yyyy 第 WW 周'
},
customPickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
}
]
}
},
methods: {
//搜索表格
searchTable() {
},
//重置表格
resetTable() {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0');
const day = String(now.getDate()).padStart(2, '0');
const todayStr = `${year}-${month}-${day}`;
this.searchForm = {
addWay: [],
customerName: '',
purchaseCar: todayStr
}
},
},
mounted() {}
}
</script>
<style lang="scss" scoped>
@import '@/styles/resetelement.scss';
.scrm-sub-client-container {
.pageTitle {
margin-bottom: 20px;
position: relative;
height: 20px;
font-size: 20px;
font-weight: 700;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
.pageContent {
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #08C489;
border: 1px solid #08C489;
}
}
padding: 20px 20px 30px;
background-color: #fff;
.el-button + .el-button {
margin-left: 10px;
}
.searchTop {
// margin-bottom: 20px;
}
.glsx-table {
// /deep/ .el-table__fixed {
// height: 100% !important; //设置高优先,以覆盖内联样式
// }
/deep/ .el-table__fixed,
/deep/ .el-table__fixed-right {
height: 100% !important; //设置高优先,以覆盖内联样式
}
}
}
}
</style>