<template>
  <div class="head-input flex-center">
    <div class=" content flex-between">
       <div class="head-input-title">捷安采</div>
       <div class="search flex-item">
         <el-input
           placeholder="请输入您要搜索的公告"
           v-model="input"
           clearable class="el-input" style="height:.42rem;">
         </el-input>
         <el-button type="primary" @click="toSearch">搜索</el-button>
        <!-- <div class="search-title flex-center t1">搜索</div> -->
       </div>
    </div>
  </div>

</template>

<script>
import {getAllList} from '@/common/list.js'
  export default {
    methods:{
      async toSearch(){
         this.$router.push('notice/all')
         window.sessionStorage.setItem("content",this.input)
      }
    },
    data() {
      return {
       input:""
      }
    },
  }
</script>

<style>
  .head-input{
     height: 100px;
   }
  .search>.search-title{
     width:.74rem;
     height:.42rem;
     background:rgba(4,134,254,1);
     border-radius:0px 4px 4px 0px;
     color:rgba(255,255,255,1);
   }
   .search>.el-input{
     width: 2.62rem;
   }
   .head-input-title{
     font-size:.28rem;
     color:rgba(0,0,0,1);
     font-weight: bold;
   }
</style>
