Main.vue
11.1 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<template>
<el-container>
<el-header style="background: black">
<el-row style="height: 100%">
<el-col :span="2">
<div class="flex-vertical-center" style="height: 100%">
<img :src="require('./Icons/logo.svg')" style="height: auto;width:210px"/>
</div>
</el-col>
<el-col :span="22">
<div class="flex-vertical-center" style="font-size: 17px;display: flex;height: 100%;color: white; justify-content: flex-end">
<span style="margin: 0 20px">{{ currentTime }}</span>
<span>{{ getWeek() }}</span>
</div>
</el-col>
</el-row>
</el-header>
<el-main style="padding: 0">
<el-container>
<el-aside style="background: #001529" width="200px">
<a-menu v-model:openKeys="openKeys" mode="inline" theme="dark" v-model:selectedKeys="selectedKeys" @click="onClick">
<a-sub-menu title="聚类结果" key="clusteringResults">
<template #icon>
<ClusterOutlined />
</template>
<a-menu-item :key="'/Main/SnapshotCluster'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/6.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">抓拍聚类</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/batchesResult'">
<div class="flex-vertical-center">
<span style="padding: 0 5px">批次客流</span>
</div>
</a-menu-item>
</a-sub-menu>
<a-sub-menu title="数据验证" key="dataValidation">
<template #icon>
<ProfileOutlined />
</template>
<a-menu-item :key="'/Main/TestDriveHospitality'">
<div class="flex-vertical-center">
<span style="padding: 0 5px">试乘接待</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/EquipmentTimeErrorVerification'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/7.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">设备时间错误校验</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/FeatureComparisonVerification'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/7.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">特征对比验证</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/ComparisonCapturedPictures'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/7.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">抓拍图片对比</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/MinutePassenger'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/7.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">分钟客流数据</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/Featurematching'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/2.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">特征搜图</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/FeatureMatchingAccuracy'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/2.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">聚类精度</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/newMenu'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/2.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">停留时长检索</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/SnapshotCluster1'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/6.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">抓拍聚类删除</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/SourceTrajectoryAnalysis'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/6.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">店铺客流来源轨迹分析</span>
</div>
</a-menu-item>
</a-sub-menu>
<a-sub-menu title="数据修补" key="dataRepair">
<template #icon>
<SnippetsOutlined />
</template>
<a-menu-item :key="'/Main/DataRerun'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/1.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">数据重跑</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/dayAnalysisRerun'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/1.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">全天分析重跑</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/batchAnalysisRerun'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/1.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">接待批次重跑</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/DataRepair'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/2.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">数据修补</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/DataReplay'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/2.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">数据重放</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/equipmentDataRetransmission'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/2.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">设备数据重传</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/FeatureReExtract'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/3.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">特征重提</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/FeatureLibraryRebuild'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/4.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">特征库重建</span>
</div>
</a-menu-item>
<a-menu-item :key="'/Main/PeopleReContrast'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/5.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">人员重新比对</span>
</div>
</a-menu-item>
</a-sub-menu>
<a-sub-menu title="其他" key="other">
<template #icon>
<SettingOutlined />
</template>
<a-menu-item :key="'/Main/SystemLog'">
<div class="flex-vertical-center">
<!-- <img :src="require('./Icons/7.svg')" style="height: auto;width:20px"/> -->
<span style="padding: 0 5px">系统日志</span>
</div>
</a-menu-item>
</a-sub-menu>
</a-menu>
</el-aside>
<el-main style="padding: 10px 20px;">
<router-view :key="$route.fullPath"></router-view>
</el-main>
</el-container>
</el-main>
</el-container>
</template>
<script>
import { ClusterOutlined, ProfileOutlined, SnippetsOutlined, SettingOutlined } from '@ant-design/icons-vue';
import {defineComponent, getCurrentInstance, ref} from 'vue'
import {useRouter} from 'vue-router'
import moment from "moment"
export default defineComponent({
setup() {
const {proxy} = getCurrentInstance()
const selectedKeys = ref([proxy.$root.$route.path])
const openKeys = ref(['clusteringResults'])
const router = useRouter()
const currentTime = ref(moment().format("YYYY-MM-DD HH:mm:ss"))
const goto = function(path) {
router.push(path)
}
const getOpeneds = function() {
let result = []
for (let i = 0; i < 1000; i++)
{
result.push(i)
}
return result
}
const onClick = function({key}) {
router.push(
`${key}`
)
}
const getWeek = function(date) {
let week = moment(date).day()
switch (week)
{
case 1:
return '星期一'
case 2:
return '星期二'
case 3:
return '星期三'
case 4:
return '星期四'
case 5:
return '星期五'
case 6:
return '星期六'
case 0:
return '星期天'
}
}
const __main = function() {
setInterval(() => {
currentTime.value = moment().format("YYYY-MM-DD HH:mm:ss")
}, 1000)
}
__main()
return {
// scalar
currentTime,
selectedKeys,
openKeys,
// sequence
// mapping
// function
goto,
getOpeneds,
onClick,
getWeek,
}
},
components: {
ClusterOutlined,
ProfileOutlined,
SnippetsOutlined,
SettingOutlined,
},
})
</script>
<style>
.ant-menu-submenu-title{
padding-left: 20px!important;
}
.ant-menu-item{
padding-left: 40px!important;
}
</style>