<template>
  <div id="applymmForm">
    <el-row>
      <el-col :span="24" class="form">
        <el-form :model="ruleForm" ref="ruleForm" label-width="200px" class="demo-ruleForm">
          <el-form-item label="理财产品标题：">
            <span>{{ ruleForm[0].mmtitle }}</span>
          </el-form-item>
          <el-form-item label="理财产品起购价格（元）">
            <span>{{ ruleForm[0].buymin }}</span>
          </el-form-item>
          <el-form-item label="理财产品期限(个月)：">
            <span>{{ ruleForm[0].min_time }}个月~{{ ruleForm[0].max_time }}个月</span>
          </el-form-item>
          <el-form-item label="理财产品收益率：">
            <span>{{ ruleForm[0].rate }}%</span>
          </el-form-item>
          <el-form-item label="申请来源企业名称：">
            <span>{{ ruleForm[0].companyname }}</span>
          </el-form-item>
          <el-form-item v-if="ruleForm[0].status == '0'">
            <el-button type="success" size="small" @click="fallow(ruleForm[0]._id, ruleForm[0].status)">关注</el-button>
          </el-form-item>
          <el-form-item v-else>
            <el-button type="warning" size="small" @click="fallow(ruleForm[0]._id, ruleForm[0].status)">取消关注</el-button>
          </el-form-item>
        </el-form>
        <!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'applymmForm',
  props: {
    ruleForm: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    fallow(id, finstatus) {
      this.$emit('fallow', { id: id, status: finstatus });
    },
  },
};
</script>

<style lang="less" scoped>
.form {
  padding: 0 200px 0 0;
}
</style>
