<template>
    <div style="background-color: #f0f2f5; padding-bottom: 20px; min-height: 100%; " >
      <div style="padding: 20px; background-color: #fff;">
         课堂笔记详情
      </div>
<div class="contentx" v-if="item!=null">
        <div class="desct"> 课堂笔记信息</div>
        <el-descriptions title="" :column="3" border>

          <el-descriptions-item label="订单号"><span v-if="item!=null">{{item.orderCode}}</span></el-descriptions-item>
          <el-descriptions-item label="课程名称"><span v-if="item!=null">{{item.courseName}}</span></el-descriptions-item>
          <el-descriptions-item label="用户id"><span v-if="item!=null">{{item.userId}}</span></el-descriptions-item>
          <el-descriptions-item label="用户电话"><span v-if="item!=null">{{item.integral}}</span></el-descriptions-item>
          <el-descriptions-item label="笔记分类"><span v-if="item!=null">{{item.noteCateId}}</span></el-descriptions-item>
          <el-descriptions-item label="点赞数"><span v-if="item!=null">{{item.likes}}</span></el-descriptions-item>
          <el-descriptions-item label="状态"><span v-if="item!=null"> <dict-tag :options="statusOptions" :value="item.status"/></span></el-descriptions-item>
          <el-descriptions-item label="是否热门"><span v-if="item!=null"><dict-tag :options="isHotOptions" :value="item.isHot"/></span></el-descriptions-item>
          <el-descriptions-item label="是否展示"><span v-if="item!=null"><dict-tag :options="isShowOptions" :value="item.isShow"/></span></el-descriptions-item>
          <el-descriptions-item label="内容"><span v-if="item!=null">{{item.content}}</span></el-descriptions-item>



        </el-descriptions>
    </div>


    </div>
</template>

<script>
import { listUserCourseNote, getUserCourseNote, delUserCourseNote, addUserCourseNote, updateUserCourseNote, exportUserCourseNote } from "@/api/course/userCourseNote";
  export default {
    name: "userCourseNoteDetails",
    data() {
      return {
        item:null,
        isShowOptions:[],
        statusOptions:[],
        isHotOptions:[],
      }
    },
    created() {
      this.getDicts("sys_company_or").then(response => {
        this.isHotOptions = response.data;
        this.isShowOptions = response.data;
      });
      this.getDicts("sys_note_status").then(response => {
        this.statusOptions = response.data;
      });
    },
    methods: {
      getDetails(orderId) {
        this.item=null;
        getUserCourseNote(orderId).then(response => {
            this.item = response.data;

        });
      },
    }
  }
</script>
<style>
  .contentx{
      height: 100%;
      background-color: #fff;
      padding: 0px 20px 20px;


      margin: 20px;
  }
  .el-descriptions-item__label.is-bordered-label{
    font-weight: normal;
  }
  .el-descriptions-item__content {
    max-width: 150px;
    min-width: 100px;
  }
  .desct{
      padding-top: 20px;
      padding-bottom: 20px;
      color: #524b4a;
      font-weight: bold;
    }

</style>
