export default {
    data(){
        return {
            visible:false,
            showColumnArr:[
                {label:'id',flag:true,code:'id'},
                {label:'数据类型',flag:true,code:'dataTypeStr'},
                {label:'申请号',flag:true,code:'appNumber'},
                {label:'申请日',flag:true,code:'appDate'},
                //{label:'第一申请人（或专利权人）',flag:true,code:'appli'},
                {label:'专利权人名称',flag:true,code:'patenteeName'},
                {label:'专利权人类型',flag:true,code:'appliTypeSrc'},
                // {label:'申请人类型',flag:true,code:'appliType'},
                {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:'patenteePostcode'},


                {label:'代理机构',flag:true,code:'agencyName'},
                {label:'代理机构代码',flag:true,code:'agencyCode'},
              {label:'高价值类型（出版社）',flag:true,code:'highValue'},
              {label:'授权入库日',flag:true,code:'authInboundDate'},


                //{label:'入库时间',flag:true,code:'createMonth'},
                {label:'地址调整时间',flag:true,code:'addressAdjustmentTime'},
                // {label:'申请人调整时间',flag:true,code:'applyAdjustmentTime'},
                {label:'专利名称',flag:false,code:'title'},
                {label:'公告日',flag:false,code:'pubDate'},
                {label:'当前专利状态',flag:false,code:'currPatentStatus'},
                {label:'当前权利人',flag:false,code:'currPatentHolder'},
                {label:'专利类型',flag:false,code:'patentType'},
                {label:'分类号（主IPC）',flag:false,code:'ipcMain'},
                {label:'分类号（洛迦诺）',flag:false,code:'locStr'},
                {label:'国民经济行业分类',flag:false,code:'nationalEcoStr'},
                {label:'专利转移次数',flag:false,code:'patTranCounts'},
                {label:'申请权转移次数',flag:false,code:'appTranCounts'},
                {label:'许可发生次数',flag:false,code:'licCounts'},
                {label:'质押发生次数',flag:false,code:'pleCounts'},
                {label:'保全发生次数',flag:false,code:'preCounts'},
                {label:'法院判决发生次数',flag:false,code:'curtCounts'},

                //{label:'状态',flag:false,code:'status'}
            ],
            packUp:false
        }
    },
    methods:{
        toggle(){
            this.visible = true
        },
        show(name) {
            // 数组中find方法可以查找到符合条件的对象，并返回该对象。可以通过链式操作点对象里面的属性
            return this.showColumnArr.find(item=> item.code == name ).flag
        }
    }
}
