<template>
    <div>
        <!-- <div class="btn" v-if="showBtn">
            <el-button size="small" type="primary" @click="submit(0)">开卷审核</el-button>
            <el-button size="small" type="primary" @click="submit(1)">完成</el-button>
        </div> -->
        <Patent-Details :publicNo="patentNo" :reportId="reportId"></Patent-Details>
    </div>
</template>
<script>
import PatentDetails from '../../articles/ContrastIndex.vue'
// import PatentDetails from '@/views/components/articles/ContrastIndex.vue'
export default{
    components:{
        PatentDetails
    },
    // props:{
    //     //是否显示按钮
    //     showBtn:{
    //         type: Boolean,       
    //         default: ()=>{ return false }
    //     },
    // },
    data() {
        return {
            form:[],
            showBtn:false
        }
    },
    computed:{
        patentNo(){
            return this.$route.query.patentNo
        },
        reportId(){
            return this.$route.query.reportId
        },
  },
  created() {
      // console.log(this.$route.query.patentNo);
    },
  mounted() {
        // this.form =this.$route.params.form
        // this.showBtn = this.$route.params.showBtn
        // console.log(this.$route.params)
    },
    methods: {
        // submit(id){
        //     this.form.status = id
        //     this.$api.AddReport(this.form).then(response=>{
        //         if(response.code == 200){
        //             this.$message.success('报告创建成功')
        //             this.$router.push({
        //                 path:'admin/rManage'
        //             })
        //         }
        //     })
        // }
    },
}
</script>

<style lang="scss" scoped>
.btn{
    display: flex;
    justify-content: flex-end;
}

</style>