<template>
  <div class="f-main">
    <div class="content-top">
      <p>更换管理员</p>
    </div>
    <template v-if="stepLast === 'success'">
      <div class="page-part page-last">
        <h4><img src="/images/all/pass.png"><span>重置成功</span></h4>
        <p>恭喜您，企业管理员已更换完毕！</p>
      </div>
      <div class="page-part">
        <mt-button size="large" type="primary" @click="sureAccount()">完 成</mt-button>
      </div>
    </template>
    <template v-if="stepLast === 'appeal'">
      <div class="page-part page-last">
        <h4><img src="/images/all/await.png"><span>申诉已提交</span></h4>
        <p>申诉内容已提交，请耐心等待审核</p>
      </div>
      <div class="page-part">
        <mt-button size="large" type="primary" @click="sureAccount()">确 认</mt-button>
      </div>
    </template>
  </div>
</template>

<script>
  export default {
    name: 'step-success',
    props: ['stepLast'],
    methods: {
      sureAccount () {
        this.$router.push('/cloudcenter')
      }
    }
  }
</script>
