<template>
  <div class="panel-fieldset">
    <h4 class="panel-legend">系统管理</h4>
    <el-row :gutter="20">
      <el-col :span="10"><span>机构列表树初级加载层级：</span></el-col>
      <el-col :span="14">
        <control-number :value="preferences.branchListTreeLevel" @input="changeNumber" :min="1"></control-number>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import ControlNumber from './control/ControlNumber.vue'

export default {
  data() {
    return {
    }
  },
  components: {
    'control-number': ControlNumber
  },
  methods: {
    changeNumber(val) {
      this.preferences.branchListTreeLevel = val
    }
  },
  props: ['preferences']
}
</script>

<style scoped>
.el-input-number{
  width: 115px;
}
</style>
