riku
2024-03-21 5f20f4bba739f0f81101a2c1d99f494647125e05
src/views/fysp/config/ProblemType.vue
@@ -1,5 +1,21 @@
<template>
  <div>ProblemType</div>
  <FYSearchBar @search="onSearch">
    <template #options>
      <!-- 区县 -->
      <FYOptionLocation
        :allOption="false"
        :level="3"
        :checkStrictly="false"
        v-model:value="formSearch.locations"
      ></FYOptionLocation>
      <!-- 场景类型 -->
      <FYOptionScene
        :allOption="false"
        :type="2"
        v-model:value="formSearch.scenetype"
      ></FYOptionScene>
    </template>
  </FYSearchBar>
</template>
<script>
@@ -7,7 +23,15 @@
  name: 'ProblemType',
  data() {
    return {
      formSearch: {
        locations: {},
        scenetype: {}
      }
    };
  },
  methods: {
    onSearch() {
      this.loading = true;
    }
  }
};