<template>
  <base-form :noLabel="false" :data="searchData" ref="ruleForm">
  </base-form>
</template>
<script>
export default {
  props: {
    listLoading: Boolean
  },
  inject: ['parentData'],
  mixins,
  data () {
    return {
      searchData: [
        {label: '类型名称', disabled: true, key: 'dict_name'},
        {label: '类型代号', disabled: true, key: 'dict_type'},
      ]
    }
  },
  mounted () {
    const query = this.parentData.$route.query || {}
    this.setDefaultValue(query, 'searchData')
  },
  methods: {
    searchHandle () {
      const oldform = this.$refs.ruleForm.baseForm
      let newForm = {...oldform}
      this.$emit('change', newForm)
    },
    add () {
      this.$emit('add')
    }
  }
}
</script>
