<!--
  @description:  专家-申请变更
  @Modifier: qrf
  @routerPath: /expert/expertInfoChange
  @date: 2020/10/13-15:56
-->
<template>
  <div>
    <!--标题-->
    <div class="title title_border p0-16">
      <i class="el-icon-s-home" />申请变更
    </div>
    <div class="main p0-16">
      <div class="mb10 mt10">
        <el-button :loading="btnLoding" type="primary" @click="handleCreate">
          申请变更
        </el-button>
      </div>
      <!--变更记录列表-->
      <expertChangeInfoList />
    </div>
  </div>
</template>
<script>
/* api */
import { getExpertApplyData } from '@/api/expert/expertChange' // 获取变更id
/* 组件 */
import expertChangeInfoList from '@/views/expert/expertChangeInfo/expertChangeInfo-list' // 变更记录列表
export default {
  components: {
    expertChangeInfoList // 变更记录列表
  },
  data() {
    return {
      btnLoding: false
    }
  },
  methods: {
    handleCreate() {
      getExpertApplyData().then(res => {
        this.btnLoding = true
        this.$router.push({
          path: 'basicInfo',
          query: {
            type: this.$route.meta.type, // 页面类型
            applyId: res.data // 变更id
          }
        })
      })
    }
  }
}
</script>

<style lang="less" scoped>
</style>

