diff --git a/AicsKnowledgeBase/qml/page/SearchPage.qml b/AicsKnowledgeBase/qml/page/SearchPage.qml index df66917..69a36e6 100644 --- a/AicsKnowledgeBase/qml/page/SearchPage.qml +++ b/AicsKnowledgeBase/qml/page/SearchPage.qml @@ -61,12 +61,15 @@ FluArea { iconSource:FluentIcons.Search } } + + //按文件类型 RowLayout{ + id:selectFormat width:parent.width FluText{ Layout.alignment: Qt.AlignLeft - text:"格式: " + text:"类型: " } FluCheckBox{ id:selectAllFormat @@ -82,26 +85,30 @@ FluArea { } FluCheckBox{ id:selectPDFAndWord - text:"pdf/word" + text:"Video" onClicked:{ - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectFormat.setAllStatus() } } FluCheckBox{ id:selectPPT - text:"ppt" + text:"Doc" onClicked:{ - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectFormat.setAllStatus() } } FluCheckBox{ id:selectVideo - text:"video" + text:"Audio" onClicked:{ - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectFormat.setAllStatus() } } + + function setAllStatus() { + selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + } } @@ -111,5 +118,7 @@ FluArea { } } + + } }