|
@@ -1,7 +1,7 @@
|
|
|
<script setup lang="jsx">
|
|
|
-import { ref } from 'vue';
|
|
|
+import { ref, watch } from 'vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
-import { NTabs, NTab } from 'naive-ui';
|
|
|
+import { NTabs, NTab, NSelect } from 'naive-ui';
|
|
|
import { useChatStore } from '@/stores/modules/chatStore';
|
|
|
import { BaseTable, ChatWelcome, RecodeSquareCardItem, TheSubMenu, TheChatView } from "@/components";
|
|
|
import { useInfinite, useRecommend, useFetchStream, useScroll } from '@/composables';
|
|
@@ -45,6 +45,19 @@ const visible = ref(false);
|
|
|
|
|
|
const modalData = ref({});
|
|
|
|
|
|
+// 菜单水数据类型
|
|
|
+const waterTypeValue = ref('');
|
|
|
+
|
|
|
+const options = [
|
|
|
+ { label: '全部', value: '' },
|
|
|
+ { label: '进水', value: 0 },
|
|
|
+ { label: '出水', value: 1 }
|
|
|
+]
|
|
|
+
|
|
|
+watch(() => waterTypeValue.value, curValue => {
|
|
|
+ onRestore({ warningStatus: warningActive.value, waterType: curValue });
|
|
|
+})
|
|
|
+
|
|
|
const handleModelVisible = () => {
|
|
|
visible.value = true;
|
|
|
}
|
|
@@ -387,6 +400,9 @@ const handleWelcomeRecommend = question => {
|
|
|
<n-tab name="oasis" tab="正在报警" @click="onChangeTabs(0)"></n-tab>
|
|
|
<n-tab name="thebeatles" tab="历史报警" @click="onChangeTabs(1)"></n-tab>
|
|
|
</n-tabs>
|
|
|
+ <div class="select-card">
|
|
|
+ <n-select v-model:value="waterTypeValue" :options="options" size="tiny"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -555,4 +571,7 @@ const handleWelcomeRecommend = question => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.select-card {
|
|
|
+ padding: 15px 10px 0 10px;
|
|
|
+}
|
|
|
</style>
|