riku
2024-10-14 7e1d38f401555ac635c9ce10f63902d9a4c402e0
src/components/SearchBar.vue
@@ -1,6 +1,6 @@
<template>
  <el-row class="layout">
    <el-col :span="16">
    <el-col :span="12">
      <el-form :inline="true" :model="formSearch">
        <el-form-item label="总任务">
          <!-- <el-input v-model="formSearch.topTaskId" placeholder="总任务" /> -->
@@ -28,7 +28,7 @@
        </el-form-item>
      </el-form>
    </el-col>
    <el-col :span="8">
    <el-col :span="12">
      <el-row justify="end">
        <slot name="summary"></slot>
      </el-row>
@@ -49,6 +49,7 @@
      formSearch: {
        topTaskId: '',
        sceneTypeId: '',
        obj: '',
      },
    };
  },
@@ -61,6 +62,7 @@
          list.push({
            value: r.tguid,
            label: r.name,
            obj: r,
            towncode: r.towncode,
            districtCode: r.districtcode,
            month: r.starttime.slice(0, 7),
@@ -68,6 +70,7 @@
        });
        this.topTasks = list;
        this.formSearch.topTaskId = list[0].value;
        this.formSearch.obj = list[0].obj;
        this.$emit('onSubmit', this.formSearch);
      });
    },