Commit 5c0fd37c by Tianqing Liu

feat: 聚类结果,搜索弹窗日期,以列表页面为准

1 parent 400b107e
......@@ -208,7 +208,7 @@
<PersonGroupEditor ref='personGroupEditorRef' @refresh="handleRefresh" />
<PersonGroupMover ref='personGroupMoverRef' :data-list="dataList" @refresh="handleRefresh" />
<PersonGroupDialog ref='personGroupDialogRef' @refresh="handleRefresh" />
<PersonGroupDialog ref='personGroupDialogRef' :query-form="queryForm" @refresh="handleRefresh" />
</template>
<script>
......
......@@ -108,6 +108,7 @@ import clusterResultApi from "@/views/SnapshotCluster/ClusterResult/ClusterResul
export default {
name: 'PersonGroupDialog',
props: ['queryForm'],
setup(props, { emit }) {
const isVisible = ref(false);
const personList = ref([])
......@@ -139,7 +140,11 @@ export default {
// 搜索搜索条件默认值
formData.value.startTime = '00:00:00'
formData.value.endTime = '23:59:59'
formData.value.date = moment().format('YYYY-MM-DD')
if (props.queryForm && props.queryForm.date) {
formData.value.date = moment(props.queryForm.date).format('YYYY-MM-DD')
} else {
formData.value.date = moment().format('YYYY-MM-DD')
}
};
const formatImgUrl = (url) => {
return window._baseImgUrl + url
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!