Commit 837331fb by Tianqing Liu

feat: 聚类结果,增加刷新功能

1 parent 1efe7e37
...@@ -206,9 +206,9 @@ ...@@ -206,9 +206,9 @@
<DetailDialogComparison ref="DetailDialogComparisonRef" /> <DetailDialogComparison ref="DetailDialogComparisonRef" />
<singleImgComparisonDialog ref="singleImgComparisonRef"></singleImgComparisonDialog> <singleImgComparisonDialog ref="singleImgComparisonRef"></singleImgComparisonDialog>
<PersonGroupEditor ref='personGroupEditorRef' @refresh="confirmSearch" /> <PersonGroupEditor ref='personGroupEditorRef' @refresh="handleRefresh" />
<PersonGroupMover ref='personGroupMoverRef' :data-list="dataList" @refresh="confirmSearch" /> <PersonGroupMover ref='personGroupMoverRef' :data-list="dataList" @refresh="handleRefresh" />
<PersonGroupDialog ref='personGroupDialogRef' @refresh="confirmSearch" /> <PersonGroupDialog ref='personGroupDialogRef' @refresh="handleRefresh" />
</template> </template>
<script> <script>
...@@ -456,6 +456,10 @@ export default { ...@@ -456,6 +456,10 @@ export default {
pageNum.value = 1 pageNum.value = 1
confirmSearch() confirmSearch()
} }
const handleRefresh = function() {
selectedPersonList.value = []
confirmSearch()
}
const confirmSearch = function() { const confirmSearch = function() {
isLoading.value = true isLoading.value = true
const rawData = toRaw(queryForm) const rawData = toRaw(queryForm)
...@@ -667,6 +671,7 @@ export default { ...@@ -667,6 +671,7 @@ export default {
} }
const handleClick = function(data, event){ const handleClick = function(data, event){
console.log('handleClick', event) console.log('handleClick', event)
// 多选
if (event.metaKey || event.altKey) { if (event.metaKey || event.altKey) {
selectedPersonList.value.push(data) selectedPersonList.value.push(data)
} else { } else {
...@@ -847,6 +852,7 @@ export default { ...@@ -847,6 +852,7 @@ export default {
formatGender, formatGender,
downloadTrajectoryFile, downloadTrajectoryFile,
clickSearch, clickSearch,
handleRefresh,
// ref // ref
// imgModelRef, // imgModelRef,
DetailDialogRef, DetailDialogRef,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!