Commit 8642dc4a by 郜建宇

chore: 全天分析重跑select添加全选和清空功能

1 parent 11d5e477
......@@ -6,6 +6,14 @@
</a-form-item>
<a-form-item label="广场:">
<a-select v-model:value="queryForm.plaza_id" style="width: 280px" mode="multiple" :maxTagCount="1" :options="plazaList" optionFilterProp="label" show-search>
<template #dropdownRender="{ menuNode: menu }">
<v-nodes :vnodes="menu"/>
<a-divider style="margin: 4px 0"/>
<div @mousedown="e => e.preventDefault()">
<a-button @click="selectPlazaAll()" type="link">全选</a-button>
<a-button @click="clearPlazaAll()" type="link">清空</a-button>
</div>
</template>
</a-select>
</a-form-item>
<a-form-item label="开始日期:">
......@@ -95,6 +103,17 @@
)
}
// 广场全选清空
const selectPlazaAll = function() {
queryForm.plaza_id = []
for (const one in plazaList.value){
queryForm.plaza_id.push(plazaList.value[one].value)
}
}
const clearPlazaAll = function() {
queryForm.plaza_id = []
}
// 新需求:数据重跑
const msgLogList = ref([])
const confirmSearch = function() {
......@@ -139,6 +158,8 @@
onAccountChange,
confirmSearch,
msgLogList,
selectPlazaAll,
clearPlazaAll,
}
}
}
......@@ -168,4 +189,4 @@
margin-bottom: 10px;
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!