riku
2025-09-17 4aa86b1ec441c4e358e1cc488d8f021fb80f1355
src/components/SearchBar.vue
@@ -22,7 +22,7 @@
          :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>