<template>
  <div >
    <div  class="normal-margin">
      <el-descriptions :column="2" labelClassName="my-label" contentClassName="my-content" border>
        <div slot="title" class="my-label__title">基本信息</div>
        <el-descriptions-item label-class-name="my-label" label="编号">{{ basic.sa_competitorid?basic.sa_competitorid:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="品牌名称">{{ basic.brandname?basic.brandname:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="企业名称">{{ basic.enterprisename?basic.enterprisename:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="所属行业">{{ basic.industry?basic.industry:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="优势信息">{{ basic.advantage?basic.advantage:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="劣势信息">{{ basic.inferiority?basic.inferiority:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="备注">{{ basic.remarks?basic.remarks:"--" }}</el-descriptions-item>
      </el-descriptions>
    </div>
    <div>
      <el-descriptions :column="2" labelClassName="my-label" contentClassName="my-content" border>
        <div slot="title" class="my-label__title">系统信息</div>
        <el-descriptions-item label-class-name="my-label" label="创建人">{{ basic.createby?basic.createby:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="创建时间">{{ basic.createdate?basic.createdate:"--" }}</el-descriptions-item>
<!--        <el-descriptions-item label="锁定状态" v-if="system.datastatus === 0">未锁定</el-descriptions-item>
        <el-descriptions-item label="锁定状态" v-else-if="system.datastatus === 2">已锁定</el-descriptions-item>-->
        <el-descriptions-item label-class-name="my-label"  label="编辑人">{{ basic.changeby?basic.changeby:"--" }}</el-descriptions-item>
        <el-descriptions-item label-class-name="my-label" label="编辑时间">{{ basic.changedate?basic.changedate:"--" }}</el-descriptions-item>
      </el-descriptions>
    </div>
  </div>
</template>

<script>
export default {
  name: "detailedData",
  data(){
    return {
      basic:[],
      system:[],
      sa_competitorid:""
    }
  },
  mounted() {
    this.basicData(this.data)
   /* this.systemData(this.data)*/
  },
  methods:{
    /*基本信息*/
    async basicData(id){
      console.log("输出基本信息")
      const res = await this.$api.requested({
        "id": 20221019105802,
        "content": {
          "sa_competitorid": this.$route.query.id
        },
      })
      this.basic = res.data
      console.log("基本信息")
      console.log(this.basic)

    },
    detailedList(data){
      console.log("输出")
      console.log(data)
      this.sa_competitorid = data.sa_competitorid
      this.basicData(this.sa_competitorid)
    }
  }
}
</script>

<style scoped>

</style>