<template>
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
    <label class="control-label">组织机构</label>
    <right-tree :userid.sync='obj.userid'
                :source.sync='obj.source'
                :resobj='obj'
                @re-res="getRes"></right-tree>
  </div>
</template>
<script>
  import { PagedList, HttpResetClass } from 'vue-client'

  export default {
    title: '资源树菜单',
    props: {
    },
    data () {
      return {
        obj: {
          userid: this.$login.f.id,
          source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
          res: this.$login.f.f_fengongsi,
          resids: this.$login.f.f_orgids
        },
      }
    },
    ready () {
      //this.getRes1()
    },
    methods:{
      getRes (obj) {
        this.obj.res = obj.res
        this.obj.resids = obj.resids
      },
    },
    watch: {

    },
  }
</script>
<style media="screen">
</style>
