<template>
  <div class="row">
    <map-criteria-data :data="data" :filiale="f_fengongsi"  @input="getData" :outerurl="url" style="height: 8%"> </map-criteria-data>
    <amap :singlepoint="single" :outerlinedata="data" :points="points" :curuser="curuser" style="height: 90%"> </amap>
  </div>
</template>

<script>
  import co from 'co'
  let select = function * (self) {
    let getGasman = yield self.$resetpost('/rs/search', {
      source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
      userid: self.$login.f.id
    }, {resolveMsg: null, rejectMsg: null})
  }
    export default {
        title: "安检轨迹",
      data(){
        return {
          curuser:{},
          points:{url:"api/af-safecheck/sql/SafeCheckGetAllCurrentPosition",data: {subcompany:this.$login.f.f_fengongsi}},
          single:{},
          data:{},
          url:'api/af-safecheck/logic/SafecheckFetchFootprint',
          f_fengongsi:this.$login.f.f_fengongsi
        }
      },
      methods:{
        getData(val){
          this.data = val
        },
      },
      ready(){
          console.log('安检轨迹+++++',this.$login.f)
        let gen = select(this)
        return co(gen)
      },
      watch:{
      }
    }
</script>

<style>

</style>
