feiyu02
2025-09-17 b330e57051e54789eb83d10dc58c4d9d10c608e1
src/components/SearchBar.vue
@@ -18,11 +18,11 @@
          </el-select>
        </el-form-item>
        <FYOptionScene
          :allOption="true"
          :allOption="false"
          :type="2"
          v-model:value="formSearch.scenetype"
        ></FYOptionScene>
        <el-form-item>
        <el-form-item v-show="btnShow">
          <el-button type="primary" @click="onSubmit">查询</el-button>
        </el-form-item>
      </el-form>
@@ -40,6 +40,17 @@
export default {
  emits: ['onSubmit'],
  props: {
    btnShow: {
      type: Boolean,
      default: true
    },
    init: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      topTasks: [],
@@ -62,7 +73,9 @@
        });
        this.topTasks = list;
        this.formSearch.topTaskId = list[0].value;
        this.onSubmit();
        if (this.init) {
          this.onSubmit();
        }
      });
    },
    //查询子任务统计信息
@@ -81,7 +94,8 @@
  },
  mounted() {
    this.getOptions();
  }
  },
  expose: ['onSubmit']
};
</script>