{
    template: '${tmpl}',
        data: function() {
            return {
                echartsArr:[
                    {   
                        echartsRef: 'echarts0',
                        desc:'',
                        echarts:{}
                    },
                    {
                        echartsRef: 'echarts1',
                        desc:'',
                        echarts:{}
                    },
                    {
                        echartsRef: 'echarts2',
                        desc:'',
                        echarts:{}
                    },
                    {
                        echartsRef: 'echarts3',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts4',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts5',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts6',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts7',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts8',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts9',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts10',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts11',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts12',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts13',
                        desc:'',
                        echarts:{
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: [{
                                data: [820, 932, 901, 934, 1290, 1330, 1320],
                                type: 'line'
                            }]
                        }
                    },{
                        echartsRef: 'echarts14',
                        desc:'',
                        echarts:{
                            title : {
                                text: '某站点用户访问来源',
                                subtext: '纯属虚构',
                                x:'center'
                            },
                            tooltip : {
                                trigger: 'item',
                                formatter: "{a} <br/>{b} : {c} ({d}%)"
                            },
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            legend: {
                                orient: 'vertical',
                                left: 'left',
                                data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
                            },
                            series : [
                                {
                                    name: '访问来源',
                                    type: 'pie',
                                    radius : '55%',
                                    center: ['50%', '60%'],
                                    data:[
                                        {value:335, name:'直接访问'},
                                        {value:310, name:'邮件营销'},
                                        {value:234, name:'联盟广告'},
                                        {value:135, name:'视频广告'},
                                        {value:1548, name:'搜索引擎'}
                                    ],
                                    itemStyle: {
                                        emphasis: {
                                            shadowBlur: 10,
                                            shadowOffsetX: 0,
                                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                                        }
                                    }
                                }
                            ]
                        }
                    },
                ],
                echarts:true,
                chooseKey:null,
                activeMenu8Arr:[
                    {name:"申请人分析",
                     code:'tree',
                     data: [{
                        id: 0,
                        label: '申请人排名',
                      }, {
                        id: 2,
                        label: '申请人归属国分布',
                      }, {
                        id: 0,
                        label: '申请人IPC分布',
                    }, {
                        id: 0,
                        label: '申请人专利类型分布',
                    }, {
                        id: 4,
                        label: '申请人专利法律效力',
                    }, {
                        id: 0,
                        label: '申请人发明授权率',
                    }, {
                        id: 3,
                        label: '申请人申请趋势分析',
                    }]},
                    {name:"发明人分析",
                    code:'tree1',
                     data: [{
                        id: 0,
                        label: '发明人排名',
                      }, {
                        id: 0,
                        label: '主要发明人技术构成',
                      }, {
                        id: 0,
                        label: '主要发明人专利类型分布',
                    }, {
                        id: 0,
                        label: '主要发明人专利法律效力',
                    }, {
                        id: 3,
                        label: '主要发明人申请趋势',
                    }, {
                        id: 3,
                        label: '主要发明人公开趋势',
                    }]},
                    {name:"区域分析",
                     code:'tree2',
                     data: [{
                        id: 2,
                        label: '全国专利分布',
                      }, {
                        id: 2,
                        label: '各国专利分布',
                    }, {
                        id: 2,
                        label: '外国在华申请分布',
                    }, {
                        id: 0,
                        label: '主要国家IPC分布',
                    }, {
                        id: 3,
                        label: '主要国家申请趋势',
                    }]},
                    {name:"技术结构分析",
                     code:'tree3',
                     data: [{
                        id: 0,
                        label: '专利IPC分析',
                      }, {
                        id: 0,
                        label: '外观设计分类分析',
                      }, {
                        id: 0,
                        label: '外国在华专利IPC分布',
                      }, {
                        id: 0,
                        label: '技术领先国家IPC分布',
                      }, {
                        id: 0,
                        label: '发明专利IPC分布',
                      }, {
                        id: 0,
                        label: '主要IPC趋势分析',
                      }]
                    },
                    {name:"趋势分析",
                     code:'tree4',
                     data: [{
                        id: 3,
                        label: '申请趋势',
                      }, {
                        id: 3,
                        label: '公开趋势',
                      }, {
                        id: 3,
                        label: '授权趋势',
                    }]},
                    {name:"法律状态分析",
                     code:'tree5',
                     data: [{
                        id: 1,
                        label: '各专利类型分布',
                      }, {
                        id: 1,
                        label: '法律效力分布',
                      }, {
                        id: 0,
                        label: '当前法律状态分布',
                    }, {
                        id: 1,
                        label: '授权状态分布',
                    }, {
                        id: 3,
                        label: '各专利类型申请趋势',
                    }, {
                        id: 3,
                        label: '各专利类型公开趋势',
                    }]},
                    {name:"代理人/机构分析",
                     code:'tree6',
                     data: [{
                        id: 0,
                        label: '代理机构排名',
                      }, {
                        id: 3,
                        label: '代理机构专利申请趋势',
                      }, {
                        id: 0,
                        label: '代理机构专利类型分布',
                    }, {
                        id: 0,
                        label: '代理机构发明授权率',
                    }, {
                        id: 0,
                        label: '代理机构IPC分布',
                    }, {
                        id: 0,
                        label: '代理人排名',
                    }, {
                        id: 0,
                        label: '主要代理人专利类型分布',
                    }]},{name:""}
                ],
                chosenItemArr:[],
                chosenData:[],
                echartColor:[
                  "rgb(33,150,243)","rgb(76,175,80)","rgb(205,220,57)","rgb(255,235,59)","rgb(255,193,7)",
                  "rgb(255,152,0)","rgb(255,87,34)","rgb(121,85,72)","rgb(158,158,158)","rgb(96,125,139)"
                ],
                dimensionList: [
                    {
                        name: "首页",
                    },
                    {
                        name: "申请人分析",
                        list: [
                            { code: "", name: "申请人排名" },
                            { code: "", name: "申请人归属国分布" },
                            { code: "", name: "申请人IPC分布" },
                            { code: "", name: "申请人专利类型分布" },
                            { code: "", name: "申请人专利法律效力" },
                            { code: "", name: "申请人发明授权率" },
                            { code: "", name: "申请人申请趋势分析" }
                        ]
                    },
                    {
                        name: "发明人分析",
                        list: [
                            { code: "", name: "发明人排名" },
                            { code: "", name: "主要发明人技术构成" },
                            { code: "", name: "主要发明人专利类型分布" },
                            { code: "", name: "主要发明人专利法律效力" },
                            { code: "", name: "主要发明人申请趋势" },
                            { code: "", name: "主要发明人公开趋势" },
                        ]
                    },
                    {
                        name: "区域分析",
                        list: [
                            { code: "", name: "申请人归属国分布" },
                            { code: "", name: "全国专利分布" },
                            { code: "", name: "各国专利分布" },
                            { code: "", name: "外国在华申请分布" },
                            { code: "", name: "主要国家IPC分布" },
                            { code: "", name: "主要国家申请趋势" },
                        ]
                    },
                    {
                        name: "技术结构分析",
                        list: [
                            { code: "", name: "专利IPC分析" },
                            { code: "", name: "外观设计分类分析" },
                            { code: "", name: "外国在华专利IPC分布" },
                            { code: "", name: "技术领先国家IPC分布" },
                            { code: "", name: "发明专利IPC分布" },
                            { code: "", name: "主要IPC趋势分析" },
                        ]
                    },
                    {
                        name: "趋势分析",
                        list: [
                            { code: "", name: "申请趋势" },
                            { code: "", name: "公开趋势" },
                            { code: "", name: "授权趋势" },
                        ]
                    },
                    {
                        name: "法律状态分析",
                        list: [
                            { code: "", name: "各专利类型分布" },
                            { code: "", name: "法律效力分布" },
                            { code: "", name: "当前法律状态分布" },
                            { code: "", name: "授权状态分布" },
                            { code: "", name: "各专利类型申请趋势" },
                            { code: "", name: "各专利类型公开趋势" },
                        ]
                    },
                    {
                        name: "代理人/机构分析",
                        list: [
                            { code: "", name: "代理机构排名" },
                            { code: "", name: "代理机构专利申请趋势" },
                            { code: "", name: "代理机构专利类型分布" },
                            { code: "", name: "代理机构发明授权率" },
                            { code: "", name: "代理机构IPC分布" },
                            { code: "", name: "代理人排名" },
                            { code: "", name: "主要代理人专利类型分布" },
                        ]
                    },
                    {
                        name: "生成报告",
                    }
                ],
                activeMenu: 0,
                menuItem: "0",
                echartActive: "0",
                ipcActive: "3",
                search: "",
                obj: {},
                /*申请人分析-申请人排名*/
                applierRankShow: true,
                applierRankTabledata: [],
                applierRankEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            },
                            axisTick: {
                                alignWithLabel: true
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            },
                        }
                    ],
                    series: []
                },
                applierRankEchartDesc: "",
                /*申请人分析-申请人归属国*/
                applierCityShow: true,
                applierCityDesc: "",
                applierCityEchart: {},
                applierCityEchartdata: {
                  tooltip: {
                      trigger: 'axis',
                      axisPointer: {
                          type: 'shadow'
                      }
                  },
                  legend: {
                      data: []
                  },
                  grid: {
                      left: '6%',
                      right: '6%',
                      bottom: '3%',
                      containLabel: true
                  },
                  yAxis: {
                      type: 'value',
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  xAxis: {
                      type: 'category',
                      data: [],
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  series: []
                },
                applierCityTabledata: [],
                /*申请人分析-申请人IPC分布*/
                applierIpcShow: true,
                applierIpcEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: [{
                        type: 'category',
                        data: [],
                        axisLabel: {
                            interval: 0,
                            rotate: 60,
                        },
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    }],
                    series: []
                },
                applierIpcTabledata: { company: [], data: [] },
                /*申请人分析-申请人专利类型分布*/
                applierPatenttypeShow: true,
                applierPatenttypeEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLabel: {
                            interval: 0,
                            rotate: 60,
                        },
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                applierPatenttypeTabledata: { company: [], data: [] },
                /*申请人分析-申请人专利法律效力*/
                applierPatentStatusShow: true,
                applierPatentStatusEchart: {},
                applierPatentStatusEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: [{
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    }],
                    xAxis: [{
                        type: 'category',
                        data: [],
                        axisLabel: {
                            interval: 0,
                            rotate: 60,
                        },
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    }],
                    series: []
                },
                applierPatentStatusTabledata: { company: [], data: [] },
                /*申请人分析-申请人发明授权率*/
                applierAuthRateShow: true,
                applierAuthRateEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: [
                        {
                            type: 'value',
                            name: '专利数量',
                            axisLabel: {
                                formatter: '{value} '
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            },
                        },
                        {
                            type: 'value',
                            name: '授权率',
                            axisLabel: {
                                formatter: '{value} %'
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            },
                        }
                    ],
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLabel: {
                            interval: 0,
                            rotate: 60,
                        },
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                applierAuthRateTabledata: { company: [], data: [] },
                /*申请人分析-申请人申请趋势分析*/
                applierTrendShow: true,
                applierTrendEchart: {},
                applierTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: {
                        type: 'category',
                        boundaryGap: true,
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                applierTrendTabledata: { year: [], data: [] },
                /*发明人分析-发明人排名*/
                inventorRankShow:true,
                inventorRankEchartDesc: "",
                inventorRankTabledata: [],
                inventorRankEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            },
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            },
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            },
                        }
                    ],
                    series: []
                },
                /*发明人分析-主要发明人技术构成*/
                mainInventorIpcShow:true,
                mainInventorIpcEchart:{},
                mainInventorIpcEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                mainInventorIpcTabledata: {inventor: [],data: []},
                /*发明人分析-主要发明人专利类型分布*/
                mainInventorPatenttypeShow:true,
                mainInventorPatenttypeEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                mainInventorPatenttypeTabledata: {inventor: [],data: []},
                /*发明人分析-主要发明人专利法律效力*/
                mainInventorPatentstatusShow:true,
                mainInventorPatentstatusEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                mainInventorPatentstatusTabledata: {inventor: [],data: []},
                /*发明人分析-主要发明人申请趋势*/
                mainInventorApplyTrendShow:true,
                mainInventorApplyTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                mainInventorApplyTrendTabledata: {year: [],data: []},
                /*发明人分析-主要发明人公开趋势*/
                mainInventorPublicTrendShow:true,
                mainInventorPublicTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        },
                    },
                    series: []
                },
                mainInventorPublicTrendTabledata: {year: [],data: []},
                /*区域分析-申请人归属国分布*/
                applierCountryShow:true,
                applierCountryDesc:"",
                applierCountryEchart: {},
                applierCountryEchartdata: {
                  tooltip: {
                      trigger: 'axis',
                      axisPointer: {
                          type: 'shadow'
                      }
                  },
                  legend: {
                      data: []
                  },
                  grid: {
                      left: '6%',
                      right: '6%',
                      bottom: '3%',
                      containLabel: true
                  },
                  yAxis: {
                      type: 'value',
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  xAxis: {
                      type: 'category',
                      data: [],
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  series: []
                },
                applierCountryTabledata: [],
                /*区域分析-全国专利分布*/
                countrywidePatentShow:true,
                countrywidePatentDesc:"",
                countrywidePatentEchart:{},
                countrywidePatentEchartdata: {
                  tooltip: {
                      trigger: 'axis',
                      axisPointer: {
                          type: 'shadow'
                      }
                  },
                  legend: {
                      data: []
                  },
                  grid: {
                      left: '6%',
                      right: '6%',
                      bottom: '3%',
                      containLabel: true
                  },
                  yAxis: {
                      type: 'value',
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  xAxis: {
                      type: 'category',
                      data: [],
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  series: []
                },
                countrywidePatentTabledata: [],
                /*区域分析-各国专利分布*/
                everyCountryPatentShow:true,
                everyCountryPatentDesc:"",
                everyCountryPatentEchart:{},
                everyCountryPatentEchartdata: {
                  tooltip: {
                      trigger: 'axis',
                      axisPointer: {
                          type: 'shadow'
                      }
                  },
                  legend: {
                      data: []
                  },
                  grid: {
                      left: '6%',
                      right: '6%',
                      bottom: '3%',
                      containLabel: true
                  },
                  yAxis: {
                      type: 'value',
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  xAxis: {
                      type: 'category',
                      data: [],
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  series: []
                },
                everyCountryPatentTabledata: [],
                /*区域分析-外国在华申请分布*/
                foreignApplyInChinaShow:true,
                foreignApplyInChinaDesc:"",
                foreignApplyInChinaEchart:{},
                foreignApplyInChinaEchartdata: {
                  tooltip: {
                      trigger: 'axis',
                      axisPointer: {
                          type: 'shadow'
                      }
                  },
                  legend: {
                      data: []
                  },
                  grid: {
                      left: '6%',
                      right: '6%',
                      bottom: '3%',
                      containLabel: true
                  },
                  yAxis: {
                      type: 'value',
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  xAxis: {
                      type: 'category',
                      data: [],
                      axisLine:{
                        lineStyle:{color:"#ffffff"}
                      },
                  },
                  series: []
                },
                foreignApplyInChinaTabledata: [],
                /*区域分析-主要国家IPC分布*/
                mainCountryIpcShow:true,
                mainCountryIpcEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                mainCountryIpcTabledata: {country: [],data: []},
                /*区域分析-主要国家申请趋势*/
                mainCountryApplyTrendShow:true,
                mainCountryApplyTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                mainCountryApplyTrendTabledata: {year: [],data: []},
                /*技术结构分析-专利IPC分析*/
                patentIpcShow:true,
                patentIpcDesc:"",
                patentIpcEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                patentIpcTabledata: [],
                /*技术结构分析-外观设计分类分析*/
                wgsjPatentShow:true,
                wgsjPatentDesc:"",
                wgsjPatentEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                wgsjPatentTabledata: [],
                /*技术结构分析-外国在华专利IPC分布*/
                foreignInChinaPatentShow:true,
                foreignInChinaPatentEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                foreignInChinaPatentTabledata: {country: [],data: []},
                /*技术结构分析-技术领先国家IPC分布*/
                advancedCountryIpcShow:true,
                advancedCountryIpcEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                advancedCountryIpcTabledata: {country: [],data: []},
                /*技术结构分析-发明专利IPC 分布*/
                fmPatentIpcShow:true,
                fmPatentIpcDesc:"",
                fmPatentIpcEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                fmPatentIpcTabledata: [],
                /*技术结构分析-主要IPC趋势分析*/
                mainIpcTrendShow:true,
                mainIpcTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                mainIpcTrendTabledata: {year: [],data: []},
                /*趋势分析-申请趋势*/
                applyTrendShow:true,
                applyTrendDesc:"",
                applyTrendEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                applyTrendTabledata: [],
                /*趋势分析-公开趋势*/
                publicTrendShow:true,
                publicTrendDesc:"",
                publicTrendEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                publicTrendTabledata: [],
                /*趋势分析-授权趋势*/
                authorizeTrendShow:true,
                authorizeTrendDesc:"",
                authorizeTrendEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                authorizeTrendTabledata: [],
                /*法律状态分析-各专利类型分布*/
                patenttypeStatusShow:true,
                patenttypeStatusDesc:"",
                patenttypeStatusEchart:{},
                patenttypeStatusEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                patenttypeStatusTabledata: [],
                /*法律状态分析-法律效力分布*/
                statusEffectShow:true,
                statusEffectDesc:"",
                statusEffectEchartdata: {
                    legend: {
                        orient: 'vertical',
                        left: 'left',
                        data: []
                    },
                    series: [
                        {
                            name: '专利数量',
                            type: 'pie',
                            radius: '55%',
                            center: ['50%', '60%'],
                            data: [],
                            itemStyle: {
                                emphasis: {
                                    shadowBlur: 10,
                                    shadowOffsetX: 0,
                                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                                }
                            }
                        }
                    ]
                },
                statusEffectTabledata: [],
                /*法律状态分析-当前法律状态分布*/
                nowStatusShow:true,
                nowStatusDesc:"",
                nowStatusEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                nowStatusTabledata: [],
                /*法律状态分析-授权状态分布*/
                authStatusShow:true,
                authStatusDesc:"",
                authStatusEchart:{},
                authStatusEchartdata: {
                    legend: {
                        orient: 'vertical',
                        left: 'left',
                        data: []
                    },
                    series: [
                        {
                            name: '专利数量',
                            type: 'pie',
                            radius: '55%',
                            center: ['50%', '60%'],
                            data: [],
                            itemStyle: {
                                emphasis: {
                                    shadowBlur: 10,
                                    shadowOffsetX: 0,
                                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                                }
                            }
                        }
                    ]
                },
                authStatusTabledata: [],
                /*法律状态分析-各专利类型申请趋势*/
                everyApplyTrendShow:true,
                everyApplyTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: {
                        type: 'category',
                        boundaryGap: false,
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                everyApplyTrendTabledata: {year: [],data: []},
                /*法律状态分析-各专利类型公开趋势*/
                everyPublicTrendShow:true,
                everyPublicTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: {
                        type: 'category',
                        boundaryGap: false,
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                everyPublicTrendTabledata: {year: [],data: []},
                /*代理人/机构分析-代理机构排名*/
                agentRankShow:true,
                agentRankDesc:"",
                agentRankEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                agentRankTabledata: [],
                /*代理人/机构分析-代理机构专利申请趋势*/
                agentApplyTrendShow:true,
                agentApplyTrendEchartdata: {
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: {
                        type: 'category',
                        boundaryGap: false,
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                agentApplyTrendTabledata: {year: [],data: []},
                /*代理人/机构分析-代理机构专利类型分布*/
                agentPatenttypeShow:true,
                agentPatenttypeEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                agentPatenttypeTabledata: {agency: [],data: []},
                /*代理人/机构分析-代理机构发明授权率*/
                agentFmAuthorizeShow:true,
                agentFmAuthorizeEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: [
                        {
                            type: 'value',
                            name: '专利数量',
                            axisLabel: {
                                formatter: '{value} '
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        },
                        {
                            type: 'value',
                            name: '授权率',
                            min: 0,
                            max: 100,
                            interval: 20,
                            axisLabel: {
                                formatter: '{value} %'
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLabel: {
                            interval: 0,
                            rotate: 60,
                        },
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                agentFmAuthorizeTabledata: {agency: [],data: []},
                /*代理人/机构分析-代理机构IPC分布*/
                agentIpcShow:true,
                agentIpcEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                agentIpcTabledata: {agency: [],data: []},
                /*代理人/机构分析-代理人排名*/
                agentPersonRankShow:true,
                agentPersonRankDesc:"",
                agentPersonRankEchartdata: {
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: [],
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            axisLine:{
                              lineStyle:{color:"#ffffff"}
                            }
                        }
                    ],
                    series: []
                },
                agentPersonRankTabledata: [],
                /*代理人/机构分析-主要代理人专利类型分布*/
                mainAgentPatenttypeShow:true,
                mainAgentPatenttypeEchartdata: {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: []
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value',
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: [],
                        axisLine:{
                          lineStyle:{color:"#ffffff"}
                        }
                    },
                    series: []
                },
                mainAgentPatenttypeTabledata: {agency: [],data: []},



            }
        },
    mounted: function() {
        
    },
    created: function() {
        this.echartsArr = [];
        console.log(localStorage.getItem("patentyc_patentanalysis"));
        var object=JSON.parse(localStorage.getItem("patentyc_patentanalysis"));
        this.search = this.$router.history.current.query.search;
        this.obj=object;
        console.log(this.search);
        console.log(this.obj);
    },
    methods: {
        btnPrintClick () {
            $('.returnsPage').css('display','none');
            let targetDom = $("#ddd");

            let copyDom = $("<div/>");
            copyDom.addClass('super');
            copyDom.width(targetDom.width() + "px");
            copyDom.height(targetDom.height() + "px");
            $("#ddd").css({"background": "#fff"});
            $('body').append(copyDom);
            let cont=document.getElementById('ddd');

            console.log(targetDom);
            html2canvas(targetDom, {
                height:cont.offsetHeight - 60,
                onrendered: function(canvas) {
                    var contentWidth = canvas.width;
                    var contentHeight = canvas.height + 40;

                    /* 一页pdf显示html页面生成的canvas高度; */
                    var pageHeight = contentWidth / 575.28 * 841.89;
                    /* 未生成pdf的html页面高度 */
                    var leftHeight = contentHeight;
                    /* 页面偏移 */
                    var position = 0;
                    /* a4纸的尺寸[595.28,841.89]，html页面生成的canvas在pdf中图片的宽高 */
                    var imgWidth = 575.28;
                    var imgHeight = 575.28/contentWidth * contentHeight;

                    var pageData = canvas.toDataURL('image/jpeg', 1.0);

                    var doc = new jsPDF('', 'pt', 'a4');

                    /* 有两个高度需要区分，一个是html页面的实际高度，和生成pdf的页面高度(841.89) */
                    /* 当内容未超过pdf一页显示的范围，无需分页 */
                    if (leftHeight < pageHeight) {
                        doc.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight );
                    } else {
                        while(leftHeight > 0) {
                            doc.addImage(pageData, 'JPEG', 0, position, imgWidth, imgHeight);
                            leftHeight -= pageHeight;
                            position -= 841.89;
                            /* 避免添加空白页 */
                            if(leftHeight > 0) {
                                doc.addPage();
                            }
                        }
                    };

                    doc.save('content.pdf');
                    $('.super').remove();
                    $('.returnsPage').css('display','block');
                }
            });
            
        },
        mouseLeave () {
            this.chooseKey = null;
        },
        mouseOver (key) {
            this.chooseKey = key;
        },
        returnsPage () {
            this.echarts = true;
            this.echartsArr = [];
            this.chosenData = [];
            this.chosenItemArr = []
        },
        reportGeneration () {
            var params = { search: this.search, obj: this.obj,chose: this.chosenData};
            console.log('生成报告',params,this.chosenData);
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            let that = this;
            this.$root.postReq("/web/patentycCtl/reportGeneration",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0) {
                    let echData = d.data;
                    for (let i = 0; i< echData.length; i++) {
                        if (echData[i].chose.id == 0) {
                            that.echartsArr[i].desc = echData[i].value.echart.desc || '可自定义编辑';
                            that.echartsArr[i].name = echData[i].chose.label;
                            that.$forceUpdate();
                            console.log(that.$refs['echarts'+i],i);
                            let data = that.$refs['echarts'+i][0].getEchartObj();
                            let option = data.getOption();
                            console.log(option);
                            if (echData[i].value.echart.legend || echData[i].value.echart.y.patenttype) {
                                option = {
                                    tooltip: {
                                        trigger: 'axis'
                                    },
                                    legend: {
                                        data:echData[i].value.echart.legend || ''
                                    },
                                    grid: {
                                        top: '16%',
                                        left: '6%',
                                        right: '6%',
                                        bottom: '3%',
                                        containLabel: true
                                    },
                                    xAxis: {
                                        type: 'category',
                                        boundaryGap: true,
                                        data: echData[i].value.echart.x
                                    },
                                    yAxis: {
                                        type: 'value'
                                    },
                                    series: []
                                };
                                let dataY = echData[i].value.echart.y || echData[i].value.echart.y1;
                                for(var j=0;j< dataY.length;j++){
                                    var item={
                                      name: dataY[j].lable || dataY[j].ipc || dataY[j].patenttype,
                                      type: 'bar',
                                      stack: '总量',
                                      barWidth: 50,
                                      itemStyle:{
                                        normal:{
                                          color:that.echartColor[j]
                                        }
                                      },
                                      data: dataY[j].data
                                    };
                                    option.series.push(item)
                                }; 
                            }else {
                                option.xAxis[0].data = echData[i].value.echart.x;
                                option.series[0].data = echData[i].value.echart.y;
                            }
                            console.log(option);
                            data.setOption(option);
                        }else if (echData[i].chose.id == 1) {
                            that.echartsArr[i].desc = echData[i].value.echart.desc || '可自定义编辑';
                            that.echartsArr[i].name = echData[i].chose.label;
                            that.$forceUpdate();
                            console.log(that.$refs['echarts'+i],i);
                            let data = that.$refs['echarts'+i][0].getEchartObj();
                            let option = data.getOption();
                            console.log(option);
                            option.legend[0].data = echData[i].value.echart.legend;
                            option.series[0].data = echData[i].value.echart.y1;
                            console.log(option);
                            data.setOption(option);
                        }else if (echData[i].chose.id == 2) {
                            that.echartsArr[i].desc = echData[i].value.echart.desc || '可自定义编辑';
                            that.echartsArr[i].name = echData[i].chose.label;
                            that.$forceUpdate();
                            console.log(that.$refs['echarts'+i],i);
                            let data = that.$refs['echarts'+i][0].getEchartObj();
                            let option = data.getOption();
                            console.log(option,'地图');
                            if ( echData[i].chose.label == '全国专利分布') {
                                option = {
                                    visualMap: {
                                        min: 0,
                                        max: echData[i].value.echart.max,
                                        text: ['High', 'Low'],
                                        realtime: true,
                                        calculable: true,
                                        color: ['orangered', 'yellow', 'lightskyblue']
                                    },
                                    series: [
                                        {
                                            name: '中国',
                                            type: 'map',
                                            mapType: 'china',
                                            mapLocation: {
                                                x: 'left'
                                            },
                                            selectedMode: 'multiple',
                                            itemStyle: {
                                                normal: { label: { show: true } },
                                                emphasis: { label: { show: true } }
                                            },
                                            data: echData[i].value.echart.y1 || echData[i].value.echart.pic1
                                        }
                                    ]
                                }
                            }else {
                                option = {
                                    visualMap: {
                                        min: 0,
                                        max: echData[i].value.echart.max,
                                        text: ['High', 'Low'],
                                        realtime: true,
                                        calculable: true,
                                        color: ['orangered', 'yellow', 'lightskyblue']
                                    },
                                    series: [
                                        {
                                            name: 'World Population (2010)',
                                            type: 'map',
                                            mapType: 'world',
                                            roam: true,
                                            itemStyle: {
                                                emphasis: { label: { show: true } }
                                            },
                                            data: echData[i].value.echart.y1 || echData[i].value.echart.pic1
                                        }
                                    ]
                                }
                            }
                            console.log(option);
                            data.setOption(option);
                        }else if (echData[i].chose.id == 3) {
                            that.echartsArr[i].desc = echData[i].value.echart.desc || '可自定义编辑';
                            that.echartsArr[i].name = echData[i].chose.label;
                            that.$forceUpdate();
                            console.log(that.$refs['echarts'+i],i);
                            let data = that.$refs['echarts'+i][0].getEchartObj();
                            let option = data.getOption();
                            console.log(option,'线图');
                            if (echData[i].value.echart.legend) {
                                option = {
                                    tooltip: {
                                        trigger: 'axis'
                                    },
                                    legend: {
                                        data:echData[i].value.echart.legend
                                    },
                                    grid: {
                                        left: '3%',
                                        right: '4%',
                                        bottom: '3%',
                                        containLabel: true
                                    },
                                    xAxis: {
                                        type: 'category',
                                        boundaryGap: false,
                                        data: echData[i].value.echart.x
                                    },
                                    yAxis: {
                                        type: 'value'
                                    },
                                    series: []
                                };
                                for(var j=0;j< echData[i].value.echart.y.length;j++){
                                    var item={
                                      name: echData[i].value.echart.y[j].lable,
                                      type: 'line',
                                      stack: echData[i].value.echart.y[j].lable,
                                      barWidth: 50,
                                      data: echData[i].value.echart.y[j].data
                                    };
                                    option.series.push(item)
                                };
                            }else {
                                option =  {
                                    xAxis: {
                                        type: 'category',
                                        data: echData[i].value.echart.x
                                    },
                                    yAxis: {
                                        type: 'value'
                                    },
                                    series: [{
                                        data: echData[i].value.echart.data,
                                        type: 'line'
                                    }]
                                };
                            }
                            
                            data.setOption(option);
                        }else if (echData[i].chose.id == 4) {
                            that.echartsArr[i].desc = echData[i].value.echart.desc || '可自定义编辑';
                            that.echartsArr[i].name = echData[i].chose.label;
                            that.$forceUpdate();
                            console.log(that.$refs['echarts'+i],i);
                            let data = that.$refs['echarts'+i][0].getEchartObj();
                            let option = data.getOption();
                            console.log(option,'泡泡图');
                            let max = echData[i].value.echart.max;
                            let lable = ['无效', '有效', '在审'];
                            option = {
                                title: {
                                    text: '',
                                    link: 'https://github.com/pissang/echarts-next/graphs/punch-card'
                                },
                                legend: {
                                    data: ['Punch Card'],
                                    left: 'right'
                                },
                                grid: {
                                    left: '6%',
                                    bottom: '3%',
                                    right: '6%',
                                    containLabel: true
                                },
                                tooltip: {
                                    position: 'top',
                                    formatter: function (params) {
                                        return lable[params.value[1]] + "专利数量:" + params.value[2];
                                    }
                                },
                                xAxis: {
                                    type: 'category',
                                    data: echData[i].value.echart.x,
                                    boundaryGap: false,
                                    splitLine: {
                                        show: true,
                                        lineStyle: {
                                            color: '#999',
                                            type: 'dashed'
                                        }
                                    },
                                    axisLabel: {
                                        interval: 0,
                                        rotate: 60,
                                    },
                                    axisLine: {
                                        show: false
                                    }
                                },
                                yAxis: {
                                    type: 'category',
                                    data: lable,
                                    axisLine: {
                                        show: false
                                    }
                                },
                                series: [{
                                    name: 'Punch Card',
                                    type: 'scatter',
                                    symbolSize: function (val) {
                                        if (max < 10) {
                                            return val[2] * 5;
                                        } else if (max < 30) {
                                            return val[2] * 2;
                                        } else if (max < 70) {
                                            return val[2];
                                        } else {
                                            var num = (max / 300) * 3;
                                            return val[2] / num;
                                        }
                                    },
                                    color: function (val) {
                                        var colorList = ['rgb(108,208,224)', "rgb(87,104,116)", 'rgb(241,103,112)', "rgb(247,187,202)", "rgb(50,197,233)", "rgb(235,163,138)", "rgb(165,208,188)", "rgb(142,176,154)", "rgb(157,150,245)", "rgb(255,219,92)"];
                                        return colorList[val.data[0]];
                                    },
                                    data: echData[i].value.echart.y2
                                }]
                            };
                            data.setOption(option);
                        }
                       
                    }
                }
                
            });
            this.echarts = false
        },
        DeleteChangeChosen (key) {
            this.chosenItemArr.splice(key,1);
            this.chosenData.splice(key,1);
        },
        changeChosenTwo(list) {
            console.log(list);
            var index = this.chosenItemArr.indexOf(list.label);
            if (index == -1) {
                if (this.chosenItemArr.length == 15) {
                    return alert('最多选中15项');
                }
                if (list.id == 0) {
                    let obj = {   
                        echartsRef: 'echarts' + this.echartsArr.length,
                        desc:'',
                        name:'',
                        echarts:{
                            color: ['#3398DB'],
                            tooltip : {
                                trigger: 'axis',
                                axisPointer : {
                                    type : 'shadow'
                                }
                            },
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis : [
                                {
                                    type : 'category',
                                    data : [],
                                    axisTick: {
                                        alignWithLabel: true
                                    }
                                }
                            ],
                            yAxis : [
                                {
                                    type : 'value'
                                }
                            ],
                            series : [
                                {
                                    name:'直接访问',
                                    type:'bar',
                                    barWidth: '60%',
                                    data:[]
                                }
                            ]
                        }
                    };
                    this.echartsArr.push(obj)
                }else if (list.id == 1) {
                    let obj = {   
                        echartsRef: 'echarts' + this.echartsArr.length,
                        desc:'',
                        name:'',
                        echarts:{
                            tooltip : {
                                trigger: 'item',
                                formatter: "{a} <br/>{b} : {c} ({d}%)"
                            },
                            grid: {
                                top: '5%',
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            legend: [{
                                orient: 'vertical',
                                left: 'left',
                                data: []
                            }],
                            series : [
                                {
                                    name: '访问来源',
                                    type: 'pie',
                                    radius : '55%',
                                    center: ['50%', '60%'],
                                    data:[],
                                    itemStyle: {
                                        emphasis: {
                                            shadowBlur: 10,
                                            shadowOffsetX: 0,
                                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                                        }
                                    }
                                }
                            ]
                        }
                    };
                    this.echartsArr.push(obj)
                }else if (list.id == 2) {
                    let obj = {
                        echartsRef: 'echarts' + this.echartsArr.length,
                        desc:'',
                        name:'',
                        echarts:{
                            tooltip : {
                                trigger: 'item'
                            },
                            dataRange: {
                                orient: 'vertical',
                                min: 0,
                                max: 500,
                                text: ['High', 'Low'],
                                splitNumber: 0,
                                color: ['orangered', 'yellow', 'lightskyblue']
                            },
                            series: []
                        }
                    };
                    this.echartsArr.push(obj)
                }else if (list.id == 3) {
                    let obj = {   
                        echartsRef: 'echarts' + this.echartsArr.length,
                        desc:'',
                        name:'',
                        echarts:{
                            tooltip: {
                                trigger: 'axis'
                            },
                            legend: {
                                data:[]
                            },
                            grid: {
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: [{
                                type: 'category',
                                boundaryGap: false,
                                data: []
                            }],
                            yAxis: {
                                type: 'value'
                            },
                            series: []
                          }
                    };
                    this.echartsArr.push(obj)
                }else if (list.id == 4) {
                    let obj = {   
                        echartsRef: 'echarts' + this.echartsArr.length,
                        desc:'',
                        name:'',
                        echarts:{
                            title: {
                                text: '',
                                link: 'https://github.com/pissang/echarts-next/graphs/punch-card'
                            },
                            legend: {
                                data: ['Punch Card'],
                                left: 'right'
                            },
                            grid: {
                                left: '6%',
                                bottom: '3%',
                                right: '6%',
                                containLabel: true
                            },
                            tooltip: {
                                position: 'top',
                            },
                            xAxis: {
                                type: 'category',
                                data: [],
                                boundaryGap: false,
                                splitLine: {
                                    show: true,
                                    lineStyle: {
                                        color: '#999',
                                        type: 'dashed'
                                    }
                                },
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                                axisLine: {
                                    show: false
                                }
                            },
                            yAxis: {
                                type: 'category',
                                data: [],
                                axisLine: {
                                    show: false
                                }
                            },
                            series: [{
                                name: 'Punch Card',
                                type: 'scatter',
                                data: []
                            }]
                        }
                    };
                    this.echartsArr.push(obj)
                };
                this.chosenData.push(list);
                this.chosenItemArr.push(list.label)

            }else {
                this.echartsArr.splice(index,1);
                this.chosenData.splice(index,1);
                this.chosenItemArr.splice(index,1)
            }
                
            
        },
        picClick(index){
          if(index==1){
            this.activeMenu=6;
            this.menuItem='2';
            this.echartActive='0';
            this.ipcActive = "3";
            this.nowStatus();
          }else if(index==2){
            this.activeMenu=1;
            this.menuItem='6';
            this.ipcActive = "3";
            this.echartActive='0';
            this.applierTrend();
          }else if(index==3){
            this.activeMenu=2;
            this.menuItem='1';
            this.ipcActive = "3";
            this.echartActive='1';
            this.mainInventorIpc();
          }else if(index==4){
            this.activeMenu=4;
            this.menuItem='0';
            this.ipcActive = "3";
            this.echartActive='0';
            this.patentIpc();
          }else if(index==5){
            this.activeMenu=3;
            this.menuItem='1';
            this.ipcActive = "3";
            this.echartActive='0';
            this.countrywidePatent();
          }else if(index==6){
            this.activeMenu=7;
            this.menuItem='0';
            this.ipcActive = "3";
            this.echartActive='0';
            this.agentRank();
          }
        },
        handleSelect(key, keyPath) {
            this.activeMenu = key;
            this.menuItem = "0";
            this.echartActive = "0";
            this.ipcActive = "3";
            if (this.activeMenu == "1") {
                this.applierRank();
            } else if (this.activeMenu == "2") {
                this.inventorRank();
            } else if (this.activeMenu == "3") {
                this.applierCountry();
            } else if (this.activeMenu == "4") {
                this.patentIpc();
            } else if (this.activeMenu == "5") {
                this.applyTrend();
            } else if (this.activeMenu == "6") {
                this.patenttypeStatus();
            } else if (this.activeMenu == "7") {
                this.agentRank();
            }else if (this.activeMenu == "8") {
                this.returnsPage();
            }
        },
        /*同一纬度下不同角度的分析切换 */
        styleset(index){
            if (this.menuItem == index) {
                return { color: "#00C1DE", background: "#ffffff", "border": "1px solid #00C1DE" }
            } else {
                return { color: "#828282", background: "#ffffff" }
            }
        },
        everyclick(){
            if (this.activeMenu == "1") {
                if (this.menuItem == "0") {
                    this.applierRank();
                } else if (this.menuItem == "1") {
                    this.applierCity();
                } else if (this.menuItem == "2") {
                    this.applierIpc();
                } else if (this.menuItem == "3") {
                    this.applierPatenttype();
                } else if (this.menuItem == "4") {
                    this.applierPatentStatus();
                } else if (this.menuItem == "5") {
                    this.applierAuthRate();
                } else if (this.menuItem == "6") {
                    this.applierTrend();
                }
            } else if (this.activeMenu == "2") {
                if (this.menuItem == "0") {
                    this.inventorRank();
                } else if (this.menuItem == "1") {
                    this.mainInventorIpc();
                } else if (this.menuItem == "2") {
                    this.mainInventorPatenttype();
                } else if (this.menuItem == "3") {
                    this.mainInventorPatentstatus();
                } else if (this.menuItem == "4") {
                    this.mainInventorApplyTrend();
                } else if (this.menuItem == "5") {
                    this.mainInventorPublicTrend();
                }
            } else if (this.activeMenu == "3") {
                if (this.menuItem == "0") {
                    this.applierCountry();
                } else if (this.menuItem == "1") {
                    this.countrywidePatent();
                } else if (this.menuItem == "2") {
                    this.everyCountryPatent();
                } else if (this.menuItem == "3") {
                    this.foreignApplyInChina();
                } else if (this.menuItem == "4") {
                    this.mainCountryIpc();
                } else if (this.menuItem == "5") {
                    this.mainCountryApplyTrend();
                }
            } else if (this.activeMenu == "4") {
                if (this.menuItem == "0") {
                    this.patentIpc();
                } else if (this.menuItem == "1") {
                    this.wgsjPatent();
                } else if (this.menuItem == "2") {
                    this.foreignInChinaPatent();
                } else if (this.menuItem == "3") {
                    this.advancedCountryIpc();
                } else if (this.menuItem == "4") {
                    this.fmPatentIpc();
                } else if (this.menuItem == "5") {
                    this.mainIpcTrend();
                }
            } else if (this.activeMenu == "5") {
                if (this.menuItem == "0") {
                    this.applyTrend();
                } else if (this.menuItem == "1") {
                    this.publicTrend();
                } else if (this.menuItem == "2") {
                    this.authorizeTrend();
                }
            } else if (this.activeMenu == "6") {
                if (this.menuItem == "0") {
                    this.patenttypeStatus();
                } else if (this.menuItem == "1") {
                    this.statusEffect();
                } else if (this.menuItem == "2") {
                    this.nowStatus();
                } else if (this.menuItem == "3") {
                    this.authStatus();
                } else if (this.menuItem == "4") {
                    this.everyApplyTrend();
                } else if (this.menuItem == "5") {
                    this.everyPublicTrend();
                }
            } else if (this.activeMenu == "7") {
                if (this.menuItem == "0") {
                    this.agentRank();
                } else if (this.menuItem == "1") {
                    this.agentApplyTrend();
                } else if (this.menuItem == "2") {
                    this.agentPatenttype();
                } else if (this.menuItem == "3") {
                    this.agentFmAuthorize();
                } else if (this.menuItem == "4") {
                    this.agentIpc();
                } else if (this.menuItem == "5") {
                    this.agentPersonRank();
                } else if (this.menuItem == "6") {
                    this.mainAgentPatenttype();
                }
            } else if (this.activeMenu == "8") {
                this.returnsPage();
            }
            this.ipcActive = "3";
            this.echartActive='0';
        },
        analysisclick(index){
            this.menuItem = index;
            this.styleset(index);
            this.echartActive = "0";
            this.ipcActive = "3";
            this.everyclick();
        },
        /*echart 不同图的切换*/
        echartTabStyle(index){
            if (this.echartActive == index) {
                return { color: "#00C1DE", 'border-bottom': "2px solid #00C1DE" }
            } else {
                return { color: "#828282" }
            }
        },
        echartTabChange(index){
            console.log(index);
            this.echartActive = index;
            this.echartTabStyle(index);
            if (this.activeMenu == "1") {
                if (this.menuItem == "0") {
                    /*申请人分析-申请人排名*/
                    var data = this.$refs.applierRankRef.getEchartObj();
                    var option = data.getOption();
                    data.clear();
                    if (this.echartActive == "0") {
                        option.series[0].type = "bar";
                    } else if (this.echartActive == "1") {
                        option.series[0].type = "line";
                    }
                    data.setOption(option);
                } else if (this.menuItem == "1") {
                    /*申请人分析-申请人归属国分布*/
                    var data = this.$refs.applierCityRef.getEchartObj();
                    var option = data.getOption();
                    data.clear();
                    if (this.echartActive == "0") {
                        option = {
                            visualMap: {
                                min: 0,
                                max: this.applierCityEchart.max,
                                text: ['High', 'Low'],
                                realtime: true,
                                calculable: true,
                                color: ['orangered', 'yellow', 'lightskyblue']
                            },
                            series: [
                                {
                                    name: 'World Population (2010)',
                                    type: 'map',
                                    mapType: 'world',
                                    roam: true,
                                    itemStyle: {
                                        emphasis: { label: { show: true } }
                                    },
                                    data: this.applierCityEchart.pic1
                                }
                            ]
                        };
                    } else if (this.echartActive == "1") {
                      var width=this.widthSet(this.applierCityEchart.pic2.xlist);
                        option = {
                            color:['rgb(0,153,204)'],
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            grid: {
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: [
                                {
                                    type: 'category',
                                    data: this.applierCityEchart.pic2.xlist,
                                    axisTick: {
                                        alignWithLabel: true
                                    },
                                    axisLabel: {
                                        interval: 0,
                                        rotate: 60,
                                    },
                                }
                            ],
                            yAxis: [
                                {
                                    type: 'value'
                                }
                            ],
                            series: [
                                {
                                    name: '专利数量',
                                    type: 'bar',
                                    barWidth: width,
                                    data: this.applierCityEchart.pic2.ylist
                                }
                            ]
                        };
                    } else if (this.echartActive == "2") {
                      var width=this.widthSet(this.applierCityEchart.pic2.xlist);
                        option = {
                            color:['rgb(0,153,204)'],
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            grid: {
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: [
                                {
                                    type: 'category',
                                    data: this.applierCityEchart.pic2.xlist,
                                    axisTick: {
                                        alignWithLabel: true
                                    },
                                    axisLabel: {
                                        interval: 0,
                                        rotate: 60,
                                    },
                                }
                            ],
                            yAxis: [
                                {
                                    type: 'value'
                                }
                            ],
                            series: [
                                {
                                    name: '专利数量',
                                    type: 'line',
                                    barWidth: width,
                                    data: this.applierCityEchart.pic2.ylist
                                }
                            ]
                        };
                    }
                    data.setOption(option);
                } else if (this.menuItem == "2") {
                    /*申请人分析-申请人IPC分布*/
                } else if (this.menuItem == "3") {
                    /*申请人分析-申请人专利类型分布*/
                    var data = this.$refs.applierPatenttypeRef.getEchartObj();
                    var option = data.getOption();
                    data.clear();
                    if (this.echartActive == "0") {
                        for (var i = 0; i < option.series.length; i++) {
                            option.series[i].type = "bar";
                            option.series[i].stack = "总量";
                        }
                    } else if (this.echartActive == "1") {
                        for (var i = 0; i < option.series.length; i++) {
                            option.series[i].type = "line";
                            option.series[i].stack = option.series[i].name;
                        }
                    }
                    data.setOption(option);
                } else if (this.menuItem == "4") {
                    /*申请人分析-申请人专利法律效力*/
                    var data = this.$refs.applierPatentStatusRef.getEchartObj();
                    var option = data.getOption();
                    data.clear();
                    if (this.echartActive == "0") {
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: ['无效', '有效', '在审']
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: [{
                                type: 'value',
                            }],
                            xAxis: [{
                                type: 'category',
                                data: this.applierPatentStatusEchart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                }
                            }],
                            series: []
                        };
                        for (var i = 0; i < this.applierPatentStatusEchart.y1.length; i++) {
                            var item = {
                                name: this.applierPatentStatusEchart.y1[i].patenttype,
                                type: 'bar',
                                stack: "总量",
                                barWidth: 50,
                                itemStyle:{
                                  normal:{
                                    color:this.echartColor[i]
                                  }
                                },
                                data: this.applierPatentStatusEchart.y1[i].data
                            };
                            option.series.push(item);
                        }
                    } else if (this.echartActive == "1") {
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: ['无效', '有效', '在审']
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: [{
                                type: 'value',
                            }],
                            xAxis: [{
                                type: 'category',
                                data: this.applierPatentStatusEchart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                }
                            }],
                            series: []
                        };
                        for (var i = 0; i < this.applierPatentStatusEchart.y1.length; i++) {
                            var item = {
                                name: this.applierPatentStatusEchart.y1[i].patenttype,
                                type: 'line',
                                stack: this.applierPatentStatusEchart.y1[i].patenttype,
                                barWidth: 50,
                                itemStyle:{
                                  normal:{
                                    color:this.echartColor[i]
                                  }
                                },
                                data: this.applierPatentStatusEchart.y1[i].data
                            };
                            option.series.push(item);
                        }
                    } else if (this.echartActive == "2") {
                        var max = this.applierPatentStatusEchart.max;
                        var lable = ['无效', '有效', '在审'];
                        option = {
                            title: {
                                text: '',
                                link: 'https://github.com/pissang/echarts-next/graphs/punch-card'
                            },
                            legend: {
                                data: ['Punch Card'],
                                left: 'right'
                            },
                            grid: {
                                left: '6%',
                                bottom: '3%',
                                right: '6%',
                                containLabel: true
                            },
                            tooltip: {
                                position: 'top',
                                formatter: function (params) {
                                    return lable[params.value[1]] + "专利数量:" + params.value[2];
                                }
                            },
                            xAxis: {
                                type: 'category',
                                data: this.applierPatentStatusEchart.x,
                                boundaryGap: false,
                                splitLine: {
                                    show: true,
                                    lineStyle: {
                                        color: '#999',
                                        type: 'dashed'
                                    }
                                },
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                                axisLine: {
                                    show: false
                                }
                            },
                            yAxis: {
                                type: 'category',
                                data: ['无效', '有效', '在审'],
                                axisLine: {
                                    show: false
                                }
                            },
                            series: [{
                                name: 'Punch Card',
                                type: 'scatter',
                                symbolSize: function (val) {
                                    if (max < 10) {
                                        return val[2] * 5;
                                    } else if (max < 30) {
                                        return val[2] * 2;
                                    } else if (max < 70) {
                                        return val[2];
                                    } else {
                                        var num = (max / 300) * 3;
                                        return val[2] / num;
                                    }
                                },
                                color: function (val) {
                                    var colorList = ['rgb(108,208,224)', "rgb(87,104,116)", 'rgb(241,103,112)', "rgb(247,187,202)", "rgb(50,197,233)", "rgb(235,163,138)", "rgb(165,208,188)", "rgb(142,176,154)", "rgb(157,150,245)", "rgb(255,219,92)"];
                                    return colorList[val.data[0]];
                                },
                                data: this.applierPatentStatusEchart.y2
                            }]
                        };
                    }
                    data.setOption(option);
                } else if (this.menuItem == "5") {
                    /*申请人分析-申请人发明授权率*/
                } else if (this.menuItem == "6") {
                    /*申请人分析-申请人申请趋势分析*/
                    var data = this.$refs.applierTrendRef.getEchartObj();
                    var option = data.getOption();
                    data.clear();
                    if (this.echartActive == "0") {
                        option = {
                            tooltip: {
                                trigger: 'axis'
                            },
                            legend: {
                                data: this.applierTrendEchart.legend
                            },
                            grid: {
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                boundaryGap: true,
                                data: this.applierTrendEchart.x
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: []
                        };
                        for (var i = 0; i < this.applierTrendEchart.y1.length; i++) {
                            var item = {
                                name: this.applierTrendEchart.y1[i].company,
                                type: 'line',
                                barWidth:50,
                                stack:this.applierTrendEchart.y1[i].company,
                                itemStyle:{
                                  normal:{
                                    color:this.echartColor[i]
                                  }
                                },
                                data: this.applierTrendEchart.y1[i].data
                            };
                            option.series.push(item);
                        }
                    } else if (this.echartActive == "1") {
                        option = {
                            tooltip: {
                                trigger: 'axis'
                            },
                            legend: {
                                data: this.applierTrendEchart.legend
                            },
                            grid: {
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                boundaryGap: true,
                                data: this.applierTrendEchart.x
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: []
                        };
                        for (var i = 0; i < this.applierTrendEchart.y1.length; i++) {
                            var item = {
                                name: this.applierTrendEchart.y1[i].company,
                                type: 'bar',
                                stack: '总量',
                                barWidth:50,
                                itemStyle:{
                                  normal:{
                                    color:this.echartColor[i]
                                  }
                                },
                                data: this.applierTrendEchart.y1[i].data
                            };
                            option.series.push(item);
                        }
                    } else if (this.echartActive == "2") {
                        var max = this.applierTrendEchart.max;
                        var lable = this.applierTrendEchart.legend;
                        option = {
                            title: {
                                text: '',
                                link: 'https://github.com/pissang/echarts-next/graphs/punch-card'
                            },
                            legend: {
                                data: ['Punch Card'],
                                left: 'right'
                            },
                            grid: {
                                left: '6%',
                                bottom: '3%',
                                right: '6%',
                                containLabel: true
                            },
                            tooltip: {
                                position: 'top',
                                formatter: function (params) {
                                    return lable[params.value[1]] + "专利数量:" + params.value[2];
                                }
                            },
                            xAxis: {
                                type: 'category',
                                data: this.applierTrendEchart.x,
                                boundaryGap: false,
                                splitLine: {
                                    show: true,
                                    lineStyle: {
                                        color: '#999',
                                        type: 'dashed'
                                    }
                                },
                                axisLine: {
                                    show: false
                                }
                            },
                            yAxis: {
                                type: 'category',
                                data: this.applierTrendEchart.legend,
                                axisLine: {
                                    show: false
                                }
                            },
                            series: [{
                                name: 'Punch Card',
                                type: 'scatter',
                                symbolSize: function (val) {
                                    if (max < 10) {
                                        return val[2] * 5;
                                    } else if (max < 30) {
                                        return val[2] * 2;
                                    } else if (max < 70) {
                                        return val[2];
                                    } else {
                                        var num = (max / 300) * 3;
                                        return val[2] / num;
                                    }
                                },
                                color: function (val) {
                                    var colorList = ['rgb(108,208,224)', "rgb(87,104,116)", 'rgb(241,103,112)', "rgb(247,187,202)", "rgb(50,197,233)", "rgb(235,163,138)", "rgb(165,208,188)", "rgb(142,176,154)", "rgb(157,150,245)", "rgb(255,219,92)"];
                                    return colorList[val.data[0]];
                                },
                                data: this.applierTrendEchart.y2
                            }]
                        };
                    }
                    data.setOption(option);
                }
            } else if (this.activeMenu == "2") {
              if(this.menuItem == "0"){
                /*发明人分析-发明人排名*/
                var data = this.$refs.inventorRankRef.getEchartObj();
                var option = data.getOption();
                if(this.echartActive=="0"){
                  option.series[0].type = "bar";
                }else if(this.echartActive=="1"){
                  option.series[0].type = "line";
                }
                data.setOption(option);
              }else if(this.menuItem == "1"){
                /*发明人分析-主要发明人技术构成*/
                var data = this.$refs.mainInventorIpcRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option={
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: this.mainInventorIpcEchart.legend
                    },
                    grid: {
                        left: '6%',
                        right: '6%',
                        bottom: '3%',
                        containLabel: true
                    },
                    yAxis: {
                        type: 'value'
                    },
                    xAxis: {
                        type: 'category',
                        data: this.mainInventorIpcEchart.x
                    },
                    series: []
                  };
                  var num=this.mainInventorIpcEchart.y1.length;
                  for (var i=0; i<num ;i++){
                    var item={
                      name:this.mainInventorIpcEchart.y1[i].lable,
                      type: 'bar',
                      stack: '总量',
                      barWidth: 50,
                      itemStyle:{
                          normal:{
                            color:this.echartColor[i]
                          }
                      },
                      data: this.mainInventorIpcEchart.y1[i].data
                    };
                    option.series.push(item);
                  }
                }else if(this.echartActive=="1"){
                  var lable=this.mainInventorIpcEchart.x;
                  var max=this.mainInventorIpcEchart.max;
                  option = {
                      title: {
                          text: '',
                          link: 'https://github.com/pissang/echarts-next/graphs/punch-card'
                      },
                      legend: {
                          data: ['Punch Card'],
                          left: 'right'
                      },
                      grid: {
                          left: '6%',
                          bottom: '3%',
                          right: '6%',
                          containLabel: true
                      },
                      tooltip: {
                          position: 'top',
                          formatter: function (params) {
                              return lable[params.value[1]] + "专利数量:" + params.value[2];
                          }
                      },
                      xAxis: {
                          type: 'category',
                          data: this.mainInventorIpcEchart.x,
                          boundaryGap: false,
                          splitLine: {
                              show: true,
                              lineStyle: {
                                  color: '#999',
                                  type: 'dashed'
                              }
                          },
                          axisLabel: {
                              interval: 0,
                              rotate: 60,
                          },
                          axisLine: {
                              show: false
                          }
                      },
                      yAxis: {
                          type: 'category',
                          data: this.mainInventorIpcEchart.legend,
                          axisLine: {
                              show: false
                          }
                      },
                      series: [{
                          name: 'Punch Card',
                          type: 'scatter',
                          symbolSize: function (val) {
                              if (max < 10) {
                                  return val[2] * 5;
                              } else if (max < 30) {
                                  return val[2] * 2;
                              } else if (max < 70) {
                                  return val[2];
                              } else {
                                  var num = (max / 300) * 3;
                                  return val[2] / num;
                              }
                          },
                          color: function (val) {
                              var colorList = ['rgb(108,208,224)', "rgb(87,104,116)", 'rgb(241,103,112)', "rgb(247,187,202)", "rgb(50,197,233)", "rgb(235,163,138)", "rgb(165,208,188)", "rgb(142,176,154)", "rgb(157,150,245)", "rgb(255,219,92)"];
                              return colorList[val.data[0]];
                          },
                          data: this.mainInventorIpcEchart.y2
                      }]
                  };
                }
                data.setOption(option);
              }else if(this.menuItem == "2"){
                /*发明人分析-主要发明人专利类型分布*/
                var data = this.$refs.mainInventorPatenttypeRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }
                data.setOption(option);
              }else if(this.menuItem == "3"){
                /*发明人分析-主要发明人专利法律效力*/
                var data = this.$refs.mainInventorPatentstatusRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }
                data.setOption(option);

              }else if(this.menuItem == "4"){
                /*发明人分析-主要发明人申请趋势*/
                var data = this.$refs.mainInventorApplyTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }
                data.setOption(option);
              }else if(this.menuItem == "5"){
                /*发明人分析-主要发明人公开趋势*/
                var data = this.$refs.mainInventorPublicTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }
                data.setOption(option);
              }

            }else if (this.activeMenu == "3") {
              if(this.menuItem == "0"){
                /*区域分析-申请人归属国分布*/
                var data = this.$refs.applierCountryRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if (this.echartActive == "0") {
                    option = {
                        visualMap: {
                            min: 0,
                            max: this.applierCountryEchart.max,
                            text: ['High', 'Low'],
                            realtime: true,
                            calculable: true,
                            color: ['orangered', 'yellow', 'lightskyblue']
                        },
                        series: [
                            {
                                name: 'World Population (2010)',
                                type: 'map',
                                mapType: 'world',
                                roam: true,
                                itemStyle: {
                                    emphasis: { label: { show: true } }
                                },
                                data: this.applierCountryEchart.pic1
                            }
                        ]
                    };
                } else if (this.echartActive == "1") {
                    option = {
                        color:['rgb(0,153,204)'],
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            containLabel: true
                        },
                        xAxis: [
                            {
                                type: 'category',
                                data: this.applierCountryEchart.pic2.xlist,
                                axisTick: {
                                    alignWithLabel: true
                                },
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                }
                            }
                        ],
                        yAxis: [
                            {
                                type: 'value'
                            }
                        ],
                        series: [
                            {
                                name: '专利数量',
                                type: 'bar',
                                barWidth: 30,
                                data: this.applierCountryEchart.pic2.ylist
                            }
                        ]
                    };
                    option.series[0].barWidth = this.widthSet(this.applierCountryEchart.pic2.xlist);
                } else if (this.echartActive == "2") {
                    option = {
                        color:['rgb(0,153,204)'],
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            containLabel: true
                        },
                        xAxis: [
                            {
                                type: 'category',
                                data: this.applierCountryEchart.pic2.xlist,
                                axisTick: {
                                    alignWithLabel: true
                                },
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                }
                            }
                        ],
                        yAxis: [
                            {
                                type: 'value'
                            }
                        ],
                        series: [
                            {
                                name: '专利数量',
                                type: 'line',
                                barWidth: 30,
                                data: this.applierCountryEchart.pic2.ylist
                            }
                        ]
                    };
                    option.series[0].barWidth = this.widthSet(this.applierCountryEchart.pic2.xlist);
                }
                data.setOption(option, true);
              }else if(this.menuItem == "1"){
                /*区域分析-全国专利分布*/
                var data = this.$refs.countrywidePatentRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  var max=this.countrywidePatentEchart.max;
                  option={
                    tooltip : {
                        trigger: 'item'
                    },
                    dataRange: {
                        orient: 'vertical',
                        min: 0,
                        max: max,
                        text: ['High', 'Low'],
                        splitNumber: 0,
                        color: ['orangered', 'yellow', 'lightskyblue']
                    },
                    series: [{
                        name: '中国',
                        type: 'map',
                        mapType: 'china',
                        mapLocation: {
                            x: 'left'
                        },
                        selectedMode: 'multiple',
                        itemStyle: {
                            normal: { label: { show: true } },
                            emphasis: { label: { show: true } }
                        },
                        data: this.countrywidePatentEchart.y1
                    }]
                  };
                }else if(this.echartActive=="1"){
                  var width=this.widthSet(this.countrywidePatentEchart.x);
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {
                            type : 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            data : this.countrywidePatentEchart.x,
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value'
                        }
                    ],
                    series : [
                        {
                            name:'专利数量',
                            type:'bar',
                            barWidth: width,
                            data:this.countrywidePatentEchart.y2
                        }
                    ]
                  };
                }else if(this.echartActive=="2"){
                  var width=this.widthSet(this.countrywidePatentEchart.x);
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {
                            type : 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            data : this.countrywidePatentEchart.x,
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value'
                        }
                    ],
                    series : [
                        {
                            name:'专利数量',
                            type:'line',
                            barWidth: width,
                            data:this.countrywidePatentEchart.y2
                        }
                    ]
                  };
                }
                data.setOption(option, true);
              }else if(this.menuItem == "2"){
                /*区域分析-各国专利分布*/
                var data = this.$refs.everyCountryPatentRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  var max=this.everyCountryPatentEchart.max;
                  option={
                    visualMap: {
                        min: 0,
                        max: max,
                        text: ['High', 'Low'],
                        realtime: false,
                        calculable: true,
                        color: ['orangered', 'yellow', 'lightskyblue']
                    },
                    series: [
                        {
                            name: 'World Population (2010)',
                            type: 'map',
                            mapType: 'world',
                            roam: true,
                            itemStyle: {
                                emphasis: { label: { show: true } }
                            },
                            data: this.everyCountryPatentEchart.y1
                        }
                    ]
                  };
                }else if(this.echartActive=="1"){
                  var width=this.widthSet(this.everyCountryPatentEchart.x);
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {
                            type : 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            data : this.everyCountryPatentEchart.x,
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value'
                        }
                    ],
                    series : [
                        {
                            name:'专利数量',
                            type:'bar',
                            barWidth: width,
                            data:this.everyCountryPatentEchart.y2
                        }
                    ]
                  };
                }else if(this.echartActive=="2"){
                  var width=this.widthSet(this.everyCountryPatentEchart.x);
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {
                            type : 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            data : this.everyCountryPatentEchart.x,
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value'
                        }
                    ],
                    series : [
                        {
                            name:'专利数量',
                            type:'line',
                            barWidth: width,
                            data:this.everyCountryPatentEchart.y2
                        }
                    ]
                  };
                }
                data.setOption(option);
              }else if(this.menuItem=="3"){
                /*区域分析-外国在华申请分布*/
                var data = this.$refs.foreignApplyInChinaRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  var max=this.foreignApplyInChinaEchart.max;
                  option={
                    visualMap: {
                        min: 0,
                        max: max,
                        text: ['High', 'Low'],
                        realtime: false,
                        calculable: true,
                        color: ['orangered', 'yellow', 'lightskyblue']
                    },
                    series: [
                        {
                            name: 'World Population (2010)',
                            type: 'map',
                            mapType: 'world',
                            roam: true,
                            itemStyle: {
                                emphasis: { label: { show: true } }
                            },
                            data: this.foreignApplyInChinaEchart.y1
                        }
                    ]
                  };
                }else if(this.echartActive=="1"){
                  var width=this.widthSet(this.foreignApplyInChinaEchart.x);
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {
                            type : 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            data : this.foreignApplyInChinaEchart.x,
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value'
                        }
                    ],
                    series : [
                        {
                            name:'专利数量',
                            type:'bar',
                            barWidth: width,
                            data:this.foreignApplyInChinaEchart.y2
                        }
                    ]
                  };
                }else if(this.echartActive=="2"){
                  var width=this.widthSet(this.foreignApplyInChinaEchart.x);
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {
                            type : 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            data : this.foreignApplyInChinaEchart.x,
                            axisTick: {
                                alignWithLabel: true
                            },
                            axisLabel: {
                                interval: 0,
                                rotate: 60,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value'
                        }
                    ],
                    series : [
                        {
                            name:'专利数量',
                            type:'line',
                            barWidth: width,
                            data:this.foreignApplyInChinaEchart.y2
                        }
                    ]
                  };
                }
                data.setOption(option);
              }else if(this.menuItem=="4"){
                /*区域分析-主要国家IPC分布*/
              }else if(this.menuItem=="5"){
                /*区域分析-主要国家申请趋势*/
                var data = this.$refs.mainCountryApplyTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }
                data.setOption(option);

              }
            }else if (this.activeMenu == "4"){

            }else if(this.activeMenu == "5"){
              if(this.menuItem=="0"){
                /*趋势分析-申请趋势*/
                var data = this.$refs.applyTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option.series[0].type="line";
                }else if(this.echartActive=="1"){
                  option.series[0].type="bar";
                }
                data.setOption(option);
              }else if(this.menuItem=="1"){
                /*趋势分析-公开趋势*/
                var data = this.$refs.publicTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option.series[0].type="line";
                }else if(this.echartActive=="1"){
                  option.series[0].type="bar";
                }
                data.setOption(option);
              }else if(this.menuItem=="2"){
                /*趋势分析-授权趋势*/
                var data = this.$refs.authorizeTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option.series[0].type="line";
                }else if(this.echartActive=="1"){
                  option.series[0].type="bar";
                }
                data.setOption(option);
              }
            }else if(this.activeMenu == "6"){
              if(this.menuItem=="0"){
                /*法律状态分析-各专利类型分布*/
                var data = this.$refs.patenttypeStatusRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option.series[0].type="bar";
                }else if(this.echartActive=="1"){
                  option.series[0].type="line";
                }
                data.setOption(option);
              }else if(this.menuItem=="1"){
                /*法律状态分析-法律效力分布*/
                var data = this.$refs.statusEffectRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option={
                    tooltip: {
                        trigger: 'item',
                        formatter: "{a} <br/>{b} : {c} ({d}%)"
                    },
                    legend: {
                        orient: 'vertical',
                        left: 'left',
                        data: this.patenttypeStatusEchart.legend
                    },
                    color:["rgb(33,150,243)","rgb(76,175,80)","rgb(205,220,57)"],
                    series: [
                        {
                            name: '专利数量',
                            type: 'pie',
                            radius: '55%',
                            center: ['50%', '60%'],
                            data: this.patenttypeStatusEchart.y1,
                            itemStyle: {
                                emphasis: {
                                    shadowBlur: 10,
                                    shadowOffsetX: 0,
                                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                                }
                            }
                        }
                    ]
                  };
                }else if(this.echartActive=="1"){
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: this.patenttypeStatusEchart.legend,
                            axisTick: {
                                alignWithLabel: true
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value'
                        }
                    ],
                    series: [
                        {
                            name: '专利数量',
                            type: 'bar',
                            barWidth: 50,
                            data: this.patenttypeStatusEchart.y2
                        }
                    ]
                  };
                }else if(this.echartActive=="2"){
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: this.patenttypeStatusEchart.legend,
                            axisTick: {
                                alignWithLabel: true
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value'
                        }
                    ],
                    series: [
                        {
                            name: '专利数量',
                            type: 'line',
                            barWidth: 50,
                            data: this.patenttypeStatusEchart.y2
                        }
                    ]
                  };
                }
                data.setOption(option);
              }else if(this.menuItem=="2"){
                /*法律状态分析-当前法律状态分布*/
                var data = this.$refs.nowStatusRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option.series[0].type="bar";
                }else if(this.echartActive=="1"){
                  option.series[0].type="line";
                }
                data.setOption(option);
              }else if(this.menuItem=="3"){
                /*法律状态分析-授权状态分布*/
                var data = this.$refs.authStatusRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  option={
                    tooltip: {
                        trigger: 'item',
                        formatter: "{a} <br/>{b} : {c} ({d}%)"
                    },
                    legend: {
                        orient: 'vertical',
                        left: 'left',
                        data: this.authStatusEchart.legend
                    },
                    color:["rgb(33,150,243)","rgb(76,175,80)","rgb(205,220,57)"],
                    series: [
                        {
                            name: '专利数量',
                            type: 'pie',
                            radius: '55%',
                            center: ['50%', '60%'],
                            data: this.authStatusEchart.y1,
                            itemStyle: {
                                emphasis: {
                                    shadowBlur: 10,
                                    shadowOffsetX: 0,
                                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                                }
                            }
                        }
                    ]
                  };
                }else if(this.echartActive=="1"){
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: this.authStatusEchart.legend,
                            axisTick: {
                                alignWithLabel: true
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value'
                        }
                    ],
                    series: [
                        {
                            name: '专利数量',
                            type: 'bar',
                            barWidth: 50,
                            data: this.authStatusEchart.y2
                        }
                    ]
                  };
                }else if(this.echartActive=="2"){
                  option={
                    color: ['rgb(0,153,204)'],
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: 'category',
                            data: this.authStatusEchart.legend,
                            axisTick: {
                                alignWithLabel: true
                            }
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value'
                        }
                    ],
                    series: [
                        {
                            name: '专利数量',
                            type: 'line',
                            barWidth: 50,
                            data: this.authStatusEchart.y2
                        }
                    ]
                  };
                }
                data.setOption(option);
              }else if(this.menuItem=="4"){
                /*法律状态分析-各专利类型申请趋势*/
                var data = this.$refs.everyApplyTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }
                data.setOption(option);
              }else if(this.menuItem=="5"){
                /*法律状态分析-各专利类型公开趋势*/
                var data = this.$refs.everyPublicTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }
                data.setOption(option);
              }
            }else if(this.activeMenu == "7"){
              if(this.menuItem=="0"){
                /*代理人/机构分析-代理机构排名*/
              }else if(this.menuItem=="1"){
                /*代理人/机构分析-代理机构专利申请趋势*/
                var data = this.$refs.agentApplyTrendRef.getEchartObj();
                var option = data.getOption();
                data.clear();
                if(this.echartActive=="0"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="line";
                    option.series[i].stack=option.series[i].name;
                  }
                }else if(this.echartActive=="1"){
                  for(var i=0;i<option.series.length;i++){
                    option.series[i].type="bar";
                    option.series[i].stack="总量";
                  }
                }
                data.setOption(option);
              }else if(this.menuItem=="2"){

              }
            }else if (this.activeMenu == "8") {
                console.log('----------------88888888888888888--------------------');
                this.returnsPage()
            }
        },
        /*ipc切换*/
        ipcTabStyle(index){
            if (this.ipcActive == index) {
                return { color: "#ffffff", background: "#00C1DE" }
            } else {
                return { color: "#828282", background: "#ffffff" }
            }
        },
        ipcTabChange(index){
            this.ipcActive = index;
            this.ipcTabStyle(index);
            if (this.activeMenu == "1" && this.menuItem == "2") {
                /*申请人分析-申请人IPC分布*/
                this.applierIpc();
            }else if(this.activeMenu == "3" && this.menuItem == "4"){
              this.mainCountryIpc();
            }else if(this.activeMenu == "4" && this.menuItem == "0"){
              /*技术结构分析-专利IPC分析*/
              this.patentIpc();
            }else if(this.activeMenu == "4" && this.menuItem == "2"){
              /*技术结构分析-外国在华专利IPC分布*/
              this.foreignInChinaPatent();
            }else if(this.activeMenu == "4" && this.menuItem == "3"){
              /*技术结构分析-技术领先国家IPC分布*/
              this.advancedCountryIpc();
            }else if(this.activeMenu == "4" && this.menuItem == "4"){
              /*技术结构分析-发明专利IPC 分布*/
              this.fmPatentIpc();
            }else if(this.activeMenu == "4" && this.menuItem == "5"){
              /*技术结构分析-主要IPC趋势分析*/
              this.mainIpcTrend();
            }else if(this.activeMenu == "7" && this.menuItem == "4"){
              this.agentIpc();
            }
        },
        /*echart柱状图宽度设置*/
        widthSet(data){
            var width = "15px";
            if (data.length > 0 && data.length < 5) {
                width = "50px";
            } else if (data.length < 10) {
                width = "40px";
            } else if (data.length < 15) {
                width = "30px";
            } else {
                width = "15px";
            }
            return width;
        },
        /*申请人分析-申请人排名*/
        applierRank(){
            var that = this;
            console.log("---------申请人分析-申请人排名-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierRank", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierRankTabledata = d.data.table;
                    that.applierRankEchartDesc = d.data.echart.desc;
                    var data = that.$refs.applierRankRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        var width = that.widthSet(d.data.echart.x);
                        data.clear();
                        option={
                          color: ['rgb(0,153,204)'],
                          tooltip: {
                              trigger: 'axis',
                              axisPointer: {
                                  type: 'shadow'
                              }
                          },
                          grid: {
                              left: '3%',
                              right: '4%',
                              bottom: '3%',
                              containLabel: true
                          },
                          xAxis: [
                              {
                                  type: 'category',
                                  data: d.data.echart.x,
                                  axisLabel: {
                                      interval: 0,
                                      rotate: 60,
                                  },
                                  axisTick: {
                                      alignWithLabel: true
                                  }
                              }
                          ],
                          yAxis: [
                              {
                                  type: 'value'
                              }
                          ],
                          series: [
                              {
                                  name: '专利数量',
                                  type: 'bar',
                                  barWidth: width,
                                  data: d.data.echart.y
                              }
                          ]
                        };
                        data.setOption(option);
                    }
                } else {
                    that.applierRankShow = false;
                }
            });
        },
        /*申请人分析-申请人归属国分布*/
        applierCity(){
            var that = this;
            console.log("---------申请人分析-申请人归属国分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierCity", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierCityEchart = d.data.echart;
                    that.applierCityDesc = d.data.echart.desc;
                    that.applierCityTabledata = d.data.table;
                    var data = that.$refs.applierCityRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            visualMap: {
                                min: 0,
                                max: d.data.echart.max,
                                text: ['High', 'Low'],
                                realtime: true,
                                calculable: true,
                                color: ['orangered', 'yellow', 'lightskyblue']
                            },
                            series: [
                                {
                                    name: 'World Population (2010)',
                                    type: 'map',
                                    mapType: 'world',
                                    roam: true,
                                    itemStyle: {
                                        emphasis: { label: { show: true } }
                                    },
                                    data: d.data.echart.pic1
                                }
                            ]
                        };
                        data.setOption(option);
                    }
                } else {
                    that.applierCityShow = false;
                }
            })
        },
        /*申请人分析-申请人IPC分布*/
        applierIpc(){
            var that = this;
            console.log("---------申请人分析-申请人IPC分布-----------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            console.log(params);
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierIpc", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierIpcTabledata = d.data.table;
                    var data = that.$refs.applierIpcRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: d.data.echart.legend
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: {
                                type: 'value'
                            },
                            xAxis: [{
                                type: 'category',
                                data: d.data.echart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                            }],
                            series: []
                        };
                        var num = d.data.echart.y.length;
                        for (var i = 0; i < num; i++) {
                            var item = {
                                name: d.data.echart.y[i].ipc,
                                type: 'bar',
                                barWidth: 50,
                                stack: '总量',
                                itemStyle:{
                                  normal:{
                                    color:that.echartColor[i]
                                  }
                                },
                                data: d.data.echart.y[i].data
                            };
                            option.series.push(item);
                        }
                        data.setOption(option);
                    }
                } else {
                    that.applierIpcShow = false;
                }
            })
        },
        /*申请人分析-申请人专利类型分布*/
        applierPatenttype(){
            var that = this;
            console.log("---------申请人分析-申请人专利类型分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierPatenttype", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierPatenttypeTabledata = d.data.table;
                    var num = d.data.echart.y.length;
                    var data = that.$refs.applierPatenttypeRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: ["外观设计专利", "发明申请专利", "实用新型专利"]
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: {
                                type: 'value'
                            },
                            xAxis: {
                                type: 'category',
                                data: d.data.echart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                            },
                            series: []
                        };
                        for (var i = 0; i < num; i++) {
                            var item = {
                                name: d.data.echart.y[i].patenttype,
                                type: 'bar',
                                stack: '总量',
                                barWidth: 50,
                                itemStyle:{
                                  normal:{
                                    color:that.echartColor[i]
                                  }
                                },
                                data: d.data.echart.y[i].data
                            };
                            option.series.push(item);
                        }
                        data.setOption(option);
                    }
                } else {
                    that.applierPatenttypeShow = false;
                }
            });

        },
        /*申请人分析-申请人专利法律效力*/
        applierPatentStatus(){
            var that = this;
            console.log("---------申请人分析-申请人专利法律效力-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierPatentStatus", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierPatentStatusTabledata = d.data.table;
                    that.applierPatentStatusEchart = d.data.echart;
                    var num = d.data.echart.y1.length;
                    var data = that.$refs.applierPatentStatusRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: ['无效', '有效', '在审']
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: [{
                                type: 'value',
                            }],
                            xAxis: [{
                                type: 'category',
                                data: d.data.echart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                }
                            }],
                            series: []
                        };
                        for (var i = 0; i < num; i++) {
                            var item = {
                                name: d.data.echart.y1[i].patenttype,
                                type: 'bar',
                                stack: '总量',
                                barWidth: 50,
                                itemStyle:{
                                  normal:{
                                    color:that.echartColor[i]
                                  }
                                },
                                data: d.data.echart.y1[i].data
                            };
                            option.series.push(item);
                        }
                        data.setOption(option);
                    }
                } else {
                    that.applierPatentStatusShow = false;
                }
            });
        },
        /*申请人分析-申请人发明授权率*/
        applierAuthRate(){
            var that = this;
            console.log("---------申请人分析-申请人发明授权率-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierAuthRate", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierAuthRateTabledata = d.data.table;
                    var data = that.$refs.applierAuthRateRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: ['未授权', '曾授权', '授权率']
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: [
                                {
                                    type: 'value',
                                    name: '专利数量',
                                    axisLabel: {
                                        formatter: '{value} '
                                    }
                                },
                                {
                                    type: 'value',
                                    name: '授权率',
                                    min: 0,
                                    max: 100,
                                    interval: 20,
                                    axisLabel: {
                                        formatter: '{value} %'
                                    }
                                }
                            ],
                            xAxis: {
                                type: 'category',
                                data: d.data.echart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                            },
                            series: [
                                {
                                    name: '未授权',
                                    type: 'bar',
                                    stack: '总量',
                                    itemStyle:{
                                      normal:{
                                        color:that.echartColor[0]
                                      }
                                    },
                                    data: d.data.echart.y[0].data
                                },
                                {
                                    name: '曾授权',
                                    type: 'bar',
                                    stack: '总量',
                                    barWidth: 60,
                                    itemStyle:{
                                      normal:{
                                        color:that.echartColor[1]
                                      }
                                    },
                                    data: d.data.echart.y[1].data
                                },
                                {
                                    name: '授权率',
                                    type: 'line',
                                    yAxisIndex: 1,
                                    itemStyle:{
                                      normal:{
                                        color:that.echartColor[2]
                                      }
                                    },
                                    data: d.data.echart.y[2].data
                                }
                            ]
                        };
                        data.setOption(option);
                    }
                } else {
                    that.applierAuthRateShow = false;
                }
            });
        },
        /*申请人分析-申请人申请趋势分析*/
        applierTrend(){
            var that = this;
            console.log("---------申请人分析-申请人申请趋势分析-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierTrend", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierTrendTabledata = d.data.table;
                    that.applierTrendEchart = d.data.echart;
                    var num = d.data.echart.y1.length;
                    var data = that.$refs.applierTrendRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            tooltip: {
                                trigger: 'axis'
                            },
                            legend: {
                                data: d.data.echart.legend
                            },
                            grid: {
                                left: '3%',
                                right: '4%',
                                bottom: '3%',
                                containLabel: true
                            },
                            xAxis: {
                                type: 'category',
                                boundaryGap: true,
                                data: d.data.echart.x
                            },
                            yAxis: {
                                type: 'value'
                            },
                            series: []
                        };
                        for (var i = 0; i < num; i++) {
                            var item = {
                                name: d.data.echart.y1[i].company,
                                type: 'line',
                                barWidth:50,
                                itemStyle:{
                                  normal:{
                                    color:that.echartColor[i]
                                  }
                                },
                                data: d.data.echart.y1[i].data
                            };
                            option.series.push(item);
                        }
                        data.setOption(option);
                    }
                } else {
                    that.applierTrendShow = false;
                }
            });
        },
        /*发明人分析-发明人排名*/
        inventorRank(){
            var that=this;
            console.log("---------发明人分析-发明人排名-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/inventorRank", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.inventorRankTabledata = d.data.table;
                  that.inventorRankEchartDesc = d.data.echart.desc;
                  var data = that.$refs.inventorRankRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      var width=that.widthSet(d.data.echart.x);
                      option={
                        color: ['rgb(0,153,204)'],
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            containLabel: true
                        },
                        xAxis: [
                            {
                                type: 'category',
                                data: d.data.echart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                                axisTick: {
                                    alignWithLabel: true
                                }
                            }
                        ],
                        yAxis: [
                            {
                                type: 'value'
                            }
                        ],
                        series: [
                            {
                                name: '专利数量',
                                type: 'bar',
                                barWidth: width,
                                data: d.data.echart.y
                            }
                        ]
                      };
                      data.setOption(option);
                    }
                }else{
                  that.inventorRankShow = false;
                }
            });

        },
        /*发明人分析-主要发明人技术构成*/
        mainInventorIpc(){
            var that=this;
            console.log("---------发明人分析-主要发明人技术构成-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainInventorIpc", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.mainInventorIpcTabledata = d.data.table;
                  that.mainInventorIpcEchart = d.data.echart;
                  var data = that.$refs.mainInventorIpcRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      if(that.echartActive=='0'){
                        option = {
                            tooltip: {
                                trigger: 'axis',
                                axisPointer: {
                                    type: 'shadow'
                                }
                            },
                            legend: {
                                data: d.data.echart.legend
                            },
                            grid: {
                                left: '6%',
                                right: '6%',
                                bottom: '3%',
                                containLabel: true
                            },
                            yAxis: {
                                type: 'value'
                            },
                            xAxis: [{
                                type: 'category',
                                data: d.data.echart.x,
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                                splitLine:{
                                  show:false,
                                }
                            }],
                            series: []
                        };
                        var num=d.data.echart.y1.length;
                        for (var i=0; i<num ;i++){
                          var item={
                            name: d.data.echart.y1[i].ipc,
                            type: 'bar',
                            stack: '总量',
                            barWidth: 50,
                            itemStyle:{
                                normal:{
                                  color:that.echartColor[i]
                                }
                            },
                            data: d.data.echart.y1[i].data
                          };
                          option.series.push(item);
                        }
                      }else if(that.echartActive=='1'){
                        var lable=d.data.echart.x;
                        var max=d.data.echart.max;
                        option = {
                            title: {
                                text: '',
                                link: 'https://github.com/pissang/echarts-next/graphs/punch-card'
                            },
                            legend: {
                                data: ['Punch Card'],
                                left: 'right'
                            },
                            grid: {
                                left: '6%',
                                bottom: '3%',
                                right: '6%',
                                containLabel: true
                            },
                            tooltip: {
                                position: 'top',
                                formatter: function (params) {
                                    return lable[params.value[1]] + "专利数量:" + params.value[2];
                                }
                            },
                            xAxis: {
                                type: 'category',
                                data: d.data.echart.x,
                                boundaryGap: false,
                                splitLine: {
                                    show: true,
                                    lineStyle: {
                                        color: '#999',
                                        type: 'dashed'
                                    }
                                },
                                axisLabel: {
                                    interval: 0,
                                    rotate: 60,
                                },
                                axisLine: {
                                    show: false
                                }
                            },
                            yAxis: {
                                type: 'category',
                                data: d.data.echart.legend,
                                axisLine: {
                                    show: false
                                }
                            },
                            series: [{
                                name: 'Punch Card',
                                type: 'scatter',
                                symbolSize: function (val) {
                                    if (max < 10) {
                                        return val[2] * 5;
                                    } else if (max < 30) {
                                        return val[2] * 2;
                                    } else if (max < 70) {
                                        return val[2];
                                    } else {
                                        var num = (max / 300) * 3;
                                        return val[2] / num;
                                    }
                                },
                                color: function (val) {
                                    var colorList = ['rgb(108,208,224)', "rgb(87,104,116)", 'rgb(241,103,112)', "rgb(247,187,202)", "rgb(50,197,233)", "rgb(235,163,138)", "rgb(165,208,188)", "rgb(142,176,154)", "rgb(157,150,245)", "rgb(255,219,92)"];
                                    return colorList[val.data[0]];
                                },
                                data: d.data.echart.y2
                            }]
                        };
                    }
                    data.setOption(option);
                  }
                }else{
                  that.mainInventorIpcShow=false;
                }
            });
        },
        /*发明人分析-主要发明人专利类型分布*/
        mainInventorPatenttype(){
            var that=this;
            console.log("---------发明人分析-主要发明人专利类型分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainInventorPatenttype", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.mainInventorPatenttypeTabledata=d.data.table;
                  var data = that.$refs.mainInventorPatenttypeRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      option={
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        legend: {
                            data: ['外观设计专利', '发明申请专利', '实用新型专利']
                        },
                        grid: {
                            left: '6%',
                            right: '6%',
                            bottom: '3%',
                            containLabel: true
                        },
                        yAxis: {
                            type: 'value'
                        },
                        xAxis: {
                            type: 'category',
                            data: d.data.echart.x
                        },
                        series: []
                      };
                      for (var i=0;i<d.data.echart.y.length;i++){
                        var item={
                          name: d.data.echart.y[i].patenttype,
                          type: 'bar',
                          stack: '总量',
                          barWidth: 50,
                          itemStyle:{
                              normal:{
                                color:that.echartColor[i]
                              }
                          },
                          data: d.data.echart.y[i].data
                        };
                        option.series.push(item);
                      }
                      data.setOption(option);
                  }
                }else{
                  that.mainInventorPatenttypeShow=false;
                }

            });
        },
        /*发明人分析-主要发明人专利法律效力*/
        mainInventorPatentstatus(){
            var that=this;
            console.log("---------发明人分析-主要发明人专利法律效力-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainInventorPatentstatus", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.mainInventorPatentstatusTabledata=d.data.table;
                  var data = that.$refs.mainInventorPatentstatusRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      option={
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        legend: {
                            data: ['无效', '有效', '在审']
                        },
                        grid: {
                            left: '6%',
                            right: '6%',
                            bottom: '3%',
                            containLabel: true
                        },
                        yAxis: {
                            type: 'value'
                        },
                        xAxis: {
                            type: 'category',
                            data: d.data.echart.x
                        },
                        series: []
                      };
                      for (var i=0;i<d.data.echart.y.length;i++){
                        var item={
                          name: d.data.echart.y[i].patenttype,
                          type: 'bar',
                          stack: '总量',
                          barWidth: 50,
                          itemStyle:{
                            normal:{
                              color:that.echartColor[i]
                            }
                          },
                          data: d.data.echart.y[i].data
                        };
                        option.series.push(item);
                      }

                      data.setOption(option);
                  }
                }else{
                  that.mainInventorPatentstatusShow=false;
                }
            });
        },
        /*发明人分析-主要发明人申请趋势*/
        mainInventorApplyTrend(){
            var that=this;
            console.log("---------发明人分析-主要发明人申请趋势-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainInventorApplyTrend", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.mainInventorApplyTrendTabledata=d.data.table;
                  var data = that.$refs.mainInventorApplyTrendRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      option={
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        legend: {
                            data: d.data.echart.legend
                        },
                        grid: {
                            left: '6%',
                            right: '6%',
                            bottom: '3%',
                            containLabel: true
                        },
                        yAxis: {
                            type: 'value'
                        },
                        xAxis: {
                            type: 'category',
                            data:d.data.echart.x
                        },
                        series: []
                      };
                      for(var i=0;i<d.data.echart.y.length;i++){
                        var item={
                          name: d.data.echart.y[i].inventor,
                          type: 'line',
                          stack: d.data.echart.y[i].inventor,
                          barWidth: 50,
                          itemStyle:{
                            normal:{
                              color:that.echartColor[i]
                            }
                          },
                          data:d.data.echart.y[i].data
                        };
                        option.series.push(item);
                      }
                      data.setOption(option);
                  }
                }else{
                  that.mainInventorApplyTrendShow=false;
                }
            });
        },
        /*发明人分析-主要发明人公开趋势*/
        mainInventorPublicTrend(){
            var that=this;
            console.log("--------发明人分析-主要发明人公开趋势------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainInventorPublicTrend", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.mainInventorPublicTrendTabledata=d.data.table;
                  var data = that.$refs.mainInventorPublicTrendRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      option={
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        legend: {
                            data: d.data.echart.legend
                        },
                        grid: {
                            left: '6%',
                            right: '6%',
                            bottom: '3%',
                            containLabel: true
                        },
                        yAxis: {
                            type: 'value'
                        },
                        xAxis: {
                            type: 'category',
                            data:d.data.echart.x
                        },
                        series: []
                      };
                      for(var i=0;i<d.data.echart.y.length;i++){
                        var item={
                          name: d.data.echart.y[i].inventor,
                          type: 'line',
                          stack: d.data.echart.y[i].inventor,
                          barWidth:50,
                          itemStyle:{
                            normal:{
                              color:that.echartColor[i]
                            }
                          },
                          data:d.data.echart.y[i].data
                        };
                        option.series.push(item);
                      }
                      data.setOption(option);
                  }
                }else{
                  that.mainInventorPublicTrendShow=false;
                }
            });
        },
        /*区域分析-申请人归属国分布*/
        applierCountry(){
            var that=this;
            console.log("---------区域分析-申请人归属国分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applierCity", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                    that.applierCountryEchart = d.data.echart;
                    that.applierCountryDesc = d.data.echart.desc;
                    that.applierCountryTabledata = d.data.table;
                    var data = that.$refs.applierCountryRef.getEchartObj();
                    if (data) {
                        var option = data.getOption();
                        data.clear();
                        option = {
                            visualMap: {
                                min: 0,
                                max: d.data.echart.max,
                                text: ['High', 'Low'],
                                realtime: true,
                                calculable: true,
                                color: ['orangered', 'yellow', 'lightskyblue']
                            },
                            series: [
                                {
                                    name: 'World Population (2010)',
                                    type: 'map',
                                    mapType: 'world',
                                    roam: true,
                                    itemStyle: {
                                        emphasis: { label: { show: true } }
                                    },
                                    data: d.data.echart.pic1
                                }
                            ]
                        };
                        data.setOption(option);
                    }
                } else {
                    that.applierCountryShow = false;
                }
            })
        },
        /*区域分析-全国专利分布*/
        countrywidePatent(){
            var that=this;
            console.log("---------区域分析-全国专利分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/countrywidePatnet", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.countrywidePatentTabledata=d.data.table;
                  that.countrywidePatentEchart=d.data.echart;
                  that.countrywidePatentDesc=d.data.echart.desc;
                  var data = that.$refs.countrywidePatentRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      var max=d.data.echart.max;
                      option={
                        tooltip : {
                            trigger: 'item'
                        },
                        dataRange: {
                            orient: 'vertical',
                            min: 0,
                            max: max,
                            text: ['High', 'Low'],
                            splitNumber: 0,
                            color: ['orangered', 'yellow', 'lightskyblue']
                        },
                        series: [{
                            name: '中国',
                            type: 'map',
                            mapType: 'china',
                            mapLocation: {
                                x: 'left'
                            },
                            selectedMode: 'multiple',
                            itemStyle: {
                                normal: { label: { show: true } },
                                emphasis: { label: { show: true } }
                            },
                            data: d.data.echart.y1
                        }]
                      };
                      data.setOption(option);

                  }
                }else{
                  that.countrywidePatentShow=false;
                }
            });
        },
        /*区域分析-各国专利分布*/
        everyCountryPatent(){
            var that=this;
            console.log("---------区域分析-各国专利分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/everyCountryPatent", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.everyCountryPatentTabledata=d.data.table;
                  that.everyCountryPatentEchart=d.data.echart;
                  that.everyCountryPatentDesc=d.data.echart.desc;
                  var data = that.$refs.everyCountryPatentRef.getEchartObj();
                  if (data) {
                      var option = data.getOption();
                      data.clear();
                      var max=d.data.echart.max;
                      option={
                        visualMap: {
                            min: 0,
                            max: max,
                            text: ['High', 'Low'],
                            realtime: false,
                            calculable: true,
                            color: ['orangered', 'yellow', 'lightskyblue']
                        },
                        series: [
                            {
                                name: 'World Population (2010)',
                                type: 'map',
                                mapType: 'world',
                                roam: true,
                                itemStyle: {
                                    emphasis: { label: { show: true } }
                                },
                                data: d.data.echart.y1
                            }
                        ]
                      };
                      data.setOption(option);
                  }
                }else{
                  that.everyCountryPatentShow=false;
                }
            });
        },
        /*区域分析-外国在华申请分布*/
        foreignApplyInChina(){
            var that=this;
            console.log("---------区域分析-外国在华申请分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/foreignApplyInChina",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.foreignApplyInChinaTabledata=d.data.table;
                  that.foreignApplyInChinaEchart=d.data.echart;
                  that.foreignApplyInChinaDesc=d.data.echart.desc;
                  var data = that.$refs.foreignApplyInChinaRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var max=d.data.echart.max;
                    option={
                      visualMap: {
                          min: 0,
                          max: max,
                          text: ['High', 'Low'],
                          realtime: false,
                          calculable: true,
                          color: ['orangered', 'yellow', 'lightskyblue']
                      },
                      series: [
                          {
                              name: 'World Population (2010)',
                              type: 'map',
                              mapType: 'world',
                              roam: true,
                              itemStyle: {
                                  emphasis: { label: { show: true } }
                              },
                              data: d.data.echart.y1
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.foreignApplyInChinaShow=false;
                }
            });
        },
        /*区域分析-主要国家IPC分布*/
        mainCountryIpc(){
            var that=this;
            console.log("---------区域分析-主要国家IPC分布-----------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainCountryIpc", params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.mainCountryIpcTabledata=d.data.table;
                  var data = that.$refs.mainCountryIpcRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth:50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data: d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.mainCountryIpcShow=false;
                }
            });
        },
        /*区域分析-主要国家申请趋势*/
        mainCountryApplyTrend(){
            var that=this;
            console.log("--------区域分析-主要国家申请趋势------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainCountryApplyTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.mainCountryApplyTrendTabledata=d.data.table;
                  var data = that.$refs.mainCountryApplyTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data:d.data.echart.x
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data: d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.mainCountryApplyTrendShow=false;
                }
            });
        },
        /*技术结构分析-专利IPC分析*/
        patentIpc(){
            var that=this;
            console.log("---------技术结构分析-专利IPC分析-----------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/patentIpc",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.patentIpcTabledata=d.data.table;
                  that.patentIpcDesc=d.data.echart.desc;
                  var data = that.$refs.patentIpcRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: width,
                              data: d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.patentIpcShow=false;
                }
            });
        },
        /*技术结构分析-外观设计分类分析*/
        wgsjPatent(){
            var that=this;
            console.log("---------技术结构分析-外观设计分类分析-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/wgsjPatent",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.wgsjPatentTabledata=d.data.table;
                  that.wgsjPatentDesc=d.data.echart.desc;
                  var data = that.$refs.wgsjPatentRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: width,
                              data: d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.wgsjPatentShow=false;
                }
            });
        },
        /*技术结构分析-外国在华专利IPC分布*/
        foreignInChinaPatent(){
            var that=this;
            console.log("----------技术结构分析-外国在华专利IPC分布----------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/foreignInChinaPatent",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.foreignInChinaPatentTabledata=d.data.table;
                  var data = that.$refs.foreignInChinaPatentRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data: d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.foreignInChinaPatentShow=false;
                }
            });
        },
        /*技术结构分析-技术领先国家IPC分布*/
        advancedCountryIpc(){
            var that=this;
            console.log("--------技术结构分析-技术领先国家IPC分布------------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainCountryIpc",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.advancedCountryIpcTabledata=d.data.table;
                  var data = that.$refs.advancedCountryIpcRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                            normal:{
                              color:that.echartColor[i]
                            }
                          },
                        data: d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.advancedCountryIpcShow=false;
                }
            });
        },
        /*技术结构分析-发明专利IPC 分布*/
        fmPatentIpc(){
            var that=this;
            console.log("--------技术结构分析-发明专利IPC 分布------------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/fmPatentIpc",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.fmPatentIpcTabledata=d.data.table;
                  that.fmPatentIpcDesc=d.data.echart.desc;
                  var data = that.$refs.fmPatentIpcRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: width,
                              data:d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.fmPatentIpcShow=false;
                }
            });
        },
        /*技术结构分析-主要IPC趋势分析*/
        mainIpcTrend(){
            var that=this;
            console.log("---------技术结构分析-主要IPC趋势分析-----------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainIpcTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if (d.status == 0 && d.data) {
                  that.mainIpcTrendTabledata=d.data.table;
                  var data = that.$refs.mainIpcTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data: d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else {
                  that.mainIpcTrendShow=false;
                }
            });
        },
        /*趋势分析-申请趋势*/
        applyTrend(){
            var that=this;
            console.log("--------趋势分析-申请趋势------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/applyTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.applyTrendDesc=d.data.echart.desc;
                  that.applyTrendTabledata=d.data.table;
                  var data = that.$refs.applyTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'line',
                              barWidth: width,
                              data: d.data.echart.data
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.applyTrendShow=false;
                }
            });
        },
        /*趋势分析-公开趋势*/
        publicTrend(){
            var that=this;
            console.log("----------趋势分析-公开趋势----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/publicTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.publicTrendDesc=d.data.echart.desc;
                  that.publicTrendTabledata=d.data.table;
                  var data = that.$refs.publicTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'line',
                              barWidth: width,
                              data: d.data.echart.data
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.publicTrendShow=false;
                }
            });
            /*返回的数据形式*/
            var result = {
                echart: {
                    desc: "",
                    x: ["2010", "2011", "2012"],
                    data: [10, 20, 30]
                },
                table: [
                    { rank: 1, year: "2010", patent: 200 }
                ]
            };
        },
        /*趋势分析-授权趋势*/
        authorizeTrend(){
            var that=this;
            console.log("-----------趋势分析-授权趋势---------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/authorizeTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.authorizeTrendDesc=d.data.echart.desc;
                  that.authorizeTrendTabledata=d.data.table;
                  var data = that.$refs.authorizeTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'line',
                              barWidth: width,
                              data: d.data.echart.data
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.authorizeTrendShow=false;
                }
            });
        },

        /*法律状态分析-各专利类型分布*/
        patenttypeStatus(){
            var that=this;
            console.log("---------法律状态分析-各专利类型分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/patenttypeStatus",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.patenttypeStatusDesc=d.data.echart.desc;
                  that.patenttypeStatusTabledata=d.data.table;
                  var data = that.$refs.patenttypeStatusRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: 50,
                              data: d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.patenttypeStatusShow=false;
                }
            });
        },
        /*法律状态分析-法律效力分布*/
        statusEffect(){
            var that=this;
            console.log("---------法律状态分析-法律效力分布-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/statusEffect",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.statusEffectDesc=d.data.echart.desc;
                  that.patenttypeStatusEchart=d.data.echart;
                  that.statusEffectTabledata=d.data.table;
                  var data = that.$refs.statusEffectRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'item',
                          formatter: "{a} <br/>{b} : {c} ({d}%)"
                      },
                      legend: {
                          orient: 'vertical',
                          left: 'left',
                          data: d.data.echart.legend
                      },
                      color:["rgb(33,150,243)","rgb(76,175,80)","rgb(205,220,57)"],
                      series: [
                          {
                              name: '专利数量',
                              type: 'pie',
                              radius: '55%',
                              center: ['50%', '60%'],
                              data: d.data.echart.y1,
                              itemStyle: {
                                  emphasis: {
                                      shadowBlur: 10,
                                      shadowOffsetX: 0,
                                      shadowColor: 'rgba(0, 0, 0, 0.5)'
                                  }
                              }
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.statusEffectShow=false;
                }
            });
        },
        /*法律状态分析-当前法律状态分布*/
        nowStatus(){
            var that=this;
            console.log("--------法律状态分析-当前法律状态分布------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/nowStatus",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.nowStatusTabledata=d.data.table;
                  that.nowStatusDesc=d.data.echart.desc;
                  var data = that.$refs.nowStatusRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: width,
                              data: d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.nowStatusShow=false;
                }
            });
        },
        /*法律状态分析-授权状态分布*/
        authStatus(){
            var that=this;
            console.log("--------法律状态分析-授权状态分布------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/authStatus",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.authStatusEchart=d.data.echart;
                  that.authStatusDesc=d.data.echart.desc;
                  that.authStatusTabledata=d.data.table;
                  var data = that.$refs.authStatusRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'item',
                          formatter: "{a} <br/>{b} : {c} ({d}%)"
                      },
                      legend: {
                          orient: 'vertical',
                          left: 'left',
                          data: d.data.echart.legend
                      },
                      color:["rgb(33,150,243)","rgb(76,175,80)","rgb(205,220,57)"],
                      series: [
                          {
                              name: '专利数量',
                              type: 'pie',
                              radius: '55%',
                              center: ['50%', '60%'],
                              data: d.data.echart.y1,
                              itemStyle: {
                                  emphasis: {
                                      shadowBlur: 10,
                                      shadowOffsetX: 0,
                                      shadowColor: 'rgba(0, 0, 0, 0.5)'
                                  }
                              }
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.authStatusShow=false;
                }
            });
        },

        /*法律状态分析-各专利类型申请趋势*/
        everyApplyTrend(){
            var that=this;
            console.log("---------法律状态分析-各专利类型申请趋势-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/everyApplyTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.everyApplyTrendTabledata=d.data.table;
                  var data = that.$refs.everyApplyTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data:d.data.echart.x,
                          boundaryGap: true,
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'line',
                        stack: d.data.echart.y[i].lable,
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data:d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.everyApplyTrendShow=false;
                }

            });
        },
        /*法律状态分析-各专利类型公开趋势*/
        everyPublicTrend(){
            var that=this;
            console.log("---------法律状态分析-各专利类型公开趋势-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/everyPublicTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.everyPublicTrendTabledata=d.data.table;
                  var data = that.$refs.everyPublicTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data:d.data.echart.x,
                          boundaryGap: true,
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'line',
                        stack: d.data.echart.y[i].lable,
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data:d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.everyPublicTrendShow=false;
                }
            });
        },
        /*代理人/机构分析-代理机构排名*/
        agentRank(){
            var that=this;
            console.log("--------代理人/机构分析-代理机构排名------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/agentRank",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.agentRankDesc=d.data.echart.desc;
                  that.agentRankTabledata=d.data.table;
                  var data = that.$refs.agentRankRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: width,
                              data: d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.agentRankShow=false;
                }
            });
        },
        /*代理人/机构分析-代理机构专利申请趋势*/
        agentApplyTrend(){
            var that=this;
            console.log("---------代理人/机构分析-代理机构专利申请趋势-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/agentApplyTrend",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.agentApplyTrendTabledata=d.data.table;
                  var data = that.$refs.agentApplyTrendRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data:d.data.echart.x,
                          boundaryGap: true,
                      },
                      series: []
                    };
                    for(var i=0;i<d.data.echart.y.length;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'line',
                        stack: d.data.echart.y[i].lable,
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data:d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  thta.agentApplyTrendShow=false;
                }
            });
        },
        /*代理人/机构分析-代理机构专利类型分布*/
        agentPatenttype(){
            var that=this;
            console.log("--------------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/agentPatenttype",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.agentPatenttypeTabledata=d.data.table;
                  var data = that.$refs.agentPatenttypeRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data:d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    var num=d.data.echart.y.length;
                    for(var i=0;i<num;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data:d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.agentPatenttypeShow=false;
                }
            });
        },
        /*代理人/机构分析-代理机构发明授权率*/
        agentFmAuthorize(){
            var that=this;
            console.log("---------代理人/机构分析-代理机构发明授权率-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/agentFmAuthorize",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.agentFmAuthorizeTabledata=d.data.table;
                  var data = that.$refs.agentFmAuthorizeRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: [
                          {
                              type: 'value',
                              name: '专利数量',
                              axisLabel: {
                                  formatter: '{value} '
                              }
                          },
                          {
                              type: 'value',
                              name: '授权率',
                              min: 0,
                              max: 100,
                              interval: 20,
                              axisLabel: {
                                  formatter: '{value} %'
                              }
                          }
                      ],
                      xAxis: {
                          type: 'category',
                          data:d.data.echart.x,
                          axisLabel: {
                              interval: 0,
                              rotate: 60,
                          },
                      },
                      series: [
                          {
                              name: '未授权',
                              type: 'bar',
                              barWidth:50,
                              stack:"总量",
                              itemStyle:{
                                normal:{
                                  color:that.echartColor[0]
                                }
                              },
                              data: d.data.echart.y[0].data
                          },
                          {
                              name: '曾授权',
                              type: 'bar',
                              barWidth:50,
                              stack:"总量",
                              itemStyle:{
                                normal:{
                                  color:that.echartColor[1]
                                }
                              },
                              data: d.data.echart.y[1].data
                          },
                          {
                              name: '授权率',
                              type: 'line',
                              barWidth:50,
                              yAxisIndex: 1,
                              itemStyle:{
                                normal:{
                                  color:that.echartColor[2]
                                }
                              },
                              data: d.data.echart.y[2].data
                          }
                      ]
                    };

                    data.setOption(option);
                  }
                }else{
                  that.agentFmAuthorizeShow=false;
                }
            });
        },
        /*代理人/机构分析-代理机构IPC分布*/
        agentIpc(){
            var that=this;
            console.log("---------代理人/机构分析-代理机构IPC分布-----------");
            var params = { search: this.search, ipcTab: this.ipcActive, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/agentIpc",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.agentIpcTabledata=d.data.table;
                  var data = that.$refs.agentIpcRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    var num=d.data.echart.y.length;
                    for(var i=0;i<num;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data: d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else{
                  that.agentIpcShow=false;
                }
            });
        },
        /*代理人/机构分析-代理人排名*/
        agentPersonRank(){
            var that=this;
            console.log("---------代理人/机构分析-代理人排名-----------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/agentPersonRank",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.agentPersonRankTabledata=d.data.table;
                  that.agentPersonRankDesc=d.data.echart.desc;
                  var data = that.$refs.agentPersonRankRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    var width=that.widthSet(d.data.echart.x);
                    option={
                      color: ['rgb(0,153,204)'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      grid: {
                          left: '3%',
                          right: '4%',
                          bottom: '3%',
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: d.data.echart.x,
                              axisTick: {
                                  alignWithLabel: true
                              },
                              axisLabel: {
                                  interval: 0,
                                  rotate: 60,
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value'
                          }
                      ],
                      series: [
                          {
                              name: '专利数量',
                              type: 'bar',
                              barWidth: width,
                              data: d.data.echart.y
                          }
                      ]
                    };
                    data.setOption(option);
                  }
                }else{
                  that.agentPersonRankShow=false;
                }
            });
        },
        /*代理人/机构分析-主要代理人专利类型分布*/
        mainAgentPatenttype(){
            var that=this;
            console.log("--------代理人/机构分析-主要代理人专利类型分布------------");
            var params = { search: this.search, obj: this.obj };
            const loadingbyc = this.$loading({
                lock: true,
                text: 'Loading',
                spinner: 'el-icon-loading',
                background: 'rgba(0, 0, 0, 0.7)'
            });
            this.$root.postReq("/web/patentycCtl/mainAgentPatenttype",params).then(function (d) {
                console.log("---------------------------------------------");
                console.log(d);
                loadingbyc.close();
                if(d.status == 0 && d.data){
                  that.mainAgentPatenttypeTabledata=d.data.table;
                  var data = that.$refs.mainAgentPatenttypeRef.getEchartObj();
                  if(data){
                    var option = data.getOption();
                    data.clear();
                    option={
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'shadow'
                          }
                      },
                      legend: {
                          data: d.data.echart.legend
                      },
                      grid: {
                          left: '6%',
                          right: '6%',
                          bottom: '3%',
                          containLabel: true
                      },
                      yAxis: {
                          type: 'value'
                      },
                      xAxis: {
                          type: 'category',
                          data: d.data.echart.x
                      },
                      series: []
                    };
                    var num=d.data.echart.y.length;
                    for(var i=0;i<num;i++){
                      var item={
                        name: d.data.echart.y[i].lable,
                        type: 'bar',
                        stack: '总量',
                        barWidth: 50,
                        itemStyle:{
                          normal:{
                            color:that.echartColor[i]
                          }
                        },
                        data:d.data.echart.y[i].data
                      };
                      option.series.push(item);
                    }
                    data.setOption(option);
                  }
                }else {
                  that.mainAgentPatenttypeShow=false;
                }
            });
        },



    },
    computed: {

    },
    vname: "gsb-patentanalysis"
}
