export default {
    data(){
        return {
            visible:false,
            showColumnArr:[
                {label:'id',flag:true,code:'id'},
                {label:'数据类型',flag:true,code:'dataType'},
                {label:'申请号',flag:true,code:'appNumber'},
                {label:'申请日',flag:true,code:'appDate'},
                {label:'第一申请人（原始专利权人）',flag:true,code:'appli'},
                {label:'申请人地址',flag:true,code:'appliAddress'},
                {label:'省份（原始）',flag:true,code:'appliProvince'},
                {label:'州市（原始）',flag:true,code:'appliCity'},
                {label:'区县（原始）',flag:true,code:'appliCounty'},
                {label:'省份',flag:true,code:'modifyAppliProvince'},
                {label:'州市',flag:true,code:'modifyAppliCity'},
                {label:'区县',flag:true,code:'modifyAppliCounty'},
                {label:'当前权利状态',flag:true,code:'status'},
                {label:'高价值（出版社）',flag:true,code:'heightValuePress'},
                {label:'战略性新兴产业',flag:true,code:'hvSeisPress'},
                {label:'在海外有同族专利',flag:true,code:'hvHaveOverseasPress'},
                {label:'维持年限超十年',flag:true,code:'hvKeep10Press'},
                {label:'存在质押记录',flag:true,code:'hvHighPledgePress'},
                {label:'获得国家科技奖或者中国专利奖',flag:true,code:'hvTechnologyAwardPress'},
                {label:'战略性新兴产业(局）',flag:true,code:'hvSeisDept'},
                {label:'在海外有同族专利(局）',flag:true,code:'hvHaveOverseasDept'},
                {label:'维持年限超十年(局）',flag:true,code:'hvKeep10Dept'},
                {label:'存在质押记录(局）',flag:true,code:'hvHighPledgeDept'},
                {label:'获得国家科技奖或者中国专利奖(局）',flag:true,code:'hvTechnologyAwardDept'},
                {label:'高价值（局）',flag:true,code:'heightValueDept'},
                {label:'高价值（局）数据批次',flag:true,code:'licCounts'},
            ],
            packUp:false
        }
    },
    methods:{
        toggle(){
            this.visible = true
        },
        show(name) {
            // 数组中find方法可以查找到符合条件的对象，并返回该对象。可以通过链式操作点对象里面的属性
            return this.showColumnArr.find(item=> item.code == name ).flag
        }
    }
}
