diff --git a/src/assets/js/computeddata.js b/src/assets/js/computeddata.js index f842ceb..4bb3586 100644 --- a/src/assets/js/computeddata.js +++ b/src/assets/js/computeddata.js @@ -247,7 +247,19 @@ class computedFunc { // 重定向数组 let listArrs = JSON.parse(JSON.stringify(listArr)) let lineArrs = JSON.parse(JSON.stringify(lineArr)) + console.log(listArrs, lineArrs) + console.log(this.restur, 'this.restur') listArrs.push(0) // 必选第一项 + if (this.restur.tableLine.length < listArrs.length) { + listArrs = this.restur.tableLine.map((item, index) => { + return index + }) + } + if (this.restur.countData.length < lineArrs.length) { + lineArrs = this.restur.countData.map((item, index) => { + return index + }) + } // 处理数据显示 this.selectData.tableLine = [] listArrs.forEach((items, indexs) => { @@ -359,8 +371,11 @@ class computedFunc { }) }) // 总数据处理 + console.log(this.transBeforeData, 'this.transBeforeDataname') this.transBeforeData.areaName.forEach((itemName, indexName) => { var tableLine = {} + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData[indexName]') + // console.log(indexName, '[indexName]') this.transBeforeData.transBeforeAreaData[indexName].forEach((dataList, dataKey) => { // console.log(dataKey) if (dataKey === 0) { @@ -401,6 +416,130 @@ class computedFunc { }) return this.restur } + // 地区数据对于维度转化的处理 时间======指标 + comTransAreabeforeTimeLabel () { + // 表头数据处理 + this.restur.tableLine.push({ + labelId: 'table_line0', + label: '时间' + }) + this.transBeforeData.termsName.forEach((itemTime, indexTime) => { + this.restur.tableLine.push({ + labelId: 'table_line' + (indexTime + 1), + label: itemTime + }) + }) + // 总数据处理 + console.log(this.transBeforeData, 'this.transBeforeDataname') + this.transBeforeData.timeArr.forEach((itemName, indexName) => { + var tableLine = {} + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData[indexName]') + // console.log(indexName, '[indexName]') + this.transBeforeData.transBeforeAreaData[indexName].forEach((dataList, dataKey) => { + // console.log(dataKey) + if (dataKey === 0) { + tableLine['table_line0'] = itemName + } + tableLine['table_line' + (dataKey + 1)] = dataList + }) + this.restur.countData.push(tableLine) + }) + return this.restur + } + // 地区数据对于维度转化的处理 指标======时间 + comTransAreabeforeLabelTime () { + // 表头数据处理 + this.restur.tableLine.push({ + labelId: 'table_line0', + label: '指标' + }) + this.transBeforeData.timeArr.forEach((itemTime, indexTime) => { + this.restur.tableLine.push({ + labelId: 'table_line' + (indexTime + 1), + label: itemTime + }) + }) + // 总数据处理 + // console.log(this.transBeforeData, 'this.transBeforeDataname') + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData') + // console.log(this.transBeforeData.termsName, 'this.transBeforeData.termsName') + this.transBeforeData.termsName.forEach((itemName, indexName) => { + var tableLine = {} + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData[indexName]') + // console.log(indexName, '[indexName]') + // console.log(itemName, '[itemName]') + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData') + this.transBeforeData.transBeforeAreaData[indexName].forEach((dataList, dataKey) => { + // console.log(dataKey) + if (dataKey === 0) { + tableLine['table_line0'] = itemName + } + tableLine['table_line' + (dataKey + 1)] = dataList + }) + this.restur.countData.push(tableLine) + }) + return this.restur + } + // 地区数据对于维度转化的处理 地区======指标 + comTransAreabeforeAreaLabel () { + // 表头数据处理 + this.restur.tableLine.push({ + labelId: 'table_line0', + label: '地区' + }) + this.transBeforeData.termsName.forEach((itemTime, indexTime) => { + this.restur.tableLine.push({ + labelId: 'table_line' + (indexTime + 1), + label: itemTime + }) + }) + // 总数据处理 + console.log(this.transBeforeData, 'this.transBeforeDataname') + this.transBeforeData.areaName.forEach((itemName, indexName) => { + var tableLine = {} + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData[indexName]') + // console.log(indexName, '[indexName]') + this.transBeforeData.transBeforeAreaData[indexName].forEach((dataList, dataKey) => { + // console.log(dataKey) + if (dataKey === 0) { + tableLine['table_line0'] = itemName + } + tableLine['table_line' + (dataKey + 1)] = dataList + }) + this.restur.countData.push(tableLine) + }) + return this.restur + } + // 地区数据对于维度转化的处理 指标======地区 + comTransAreabeforeLabelArea () { + // 表头数据处理 + this.restur.tableLine.push({ + labelId: 'table_line0', + label: '指标' + }) + this.transBeforeData.areaName.forEach((itemTime, indexTime) => { + this.restur.tableLine.push({ + labelId: 'table_line' + (indexTime + 1), + label: itemTime + }) + }) + // 总数据处理 + console.log(this.transBeforeData, 'this.transBeforeDataname') + this.transBeforeData.termsName.forEach((itemName, indexName) => { + var tableLine = {} + // console.log(this.transBeforeData.transBeforeAreaData, 'this.transBeforeData.transBeforeAreaData[indexName]') + // console.log(indexName, '[indexName]') + this.transBeforeData.transBeforeAreaData[indexName].forEach((dataList, dataKey) => { + // console.log(dataKey) + if (dataKey === 0) { + tableLine['table_line0'] = itemName + } + tableLine['table_line' + (dataKey + 1)] = dataList + }) + this.restur.countData.push(tableLine) + }) + return this.restur + } // SUM求和 ============对行运算 dataSumLine () { console.log(this.restur, '对行运算') @@ -785,6 +924,7 @@ class computedFunc { this.restur = dataRs return this.restur } + // ========================================================非地区数据 // 竖状图数据 ============行转换 dataVerticalMapRow () { let termsName = [] @@ -862,6 +1002,84 @@ class computedFunc { }] return this.chartsDatazz } + // =========================================================地区数据 + // 竖状图数据 ============行转换 时间===地区 + dataVerticalMapRowAreaSJDQ () { + let termsName = [] + let cloneSarr = JSON.parse(JSON.stringify(this.selectData.countData)) + console.log(this.chartsDatazz, '1012') + this.chartsDatazz.series = cloneSarr.map((item, index) => { + let obju = Object.values(item) + let keys = obju.shift() + termsName.push(keys) + return { + name: keys, + type: 'bar', + data: obju + } + }) + this.chartsDatazz.legend = { + type: 'scroll', + bottom: 0, + data: termsName + } + let timeArr = this.selectData.tableLine.map((item, index) => { + return item.label + }) + timeArr.shift() + this.chartsDatazz.xAxis = [{ + type: 'category', + data: timeArr + }] + this.chartsDatazz.yAxis = [{ + type: 'value', + splitNumber: 6 + }] + console.log(this.chartsDatazz) + return this.chartsDatazz + } + // 竖状图数据 ============列转换 地区===时间 + dataVerticalMapColAreaDQSJ () { + this.chartsDatazz.yAxis = [{ + type: 'value', + splitNumber: 6 + }] + let cloneSarr = JSON.parse(JSON.stringify(this.selectData.countData)) + let termsName = [] + let seriess = cloneSarr.map((item, index) => { + let obju = Object.values(item) + let keys = obju.shift() + termsName.push(keys) + return obju + }) + // 将数据转置 + this.chartsDatazz.series = this.comRowColAllData(seriess).map((item, index) => { + console.log(this.selectData.tableLine[index + 1].label, '454545') + return { + name: this.selectData.tableLine[index + 1].label, + type: 'bar', + data: item + } + }) + let timeArr = this.selectData.tableLine.map((item, index) => { + return item.label + }) + timeArr.shift() + this.chartsDatazz.legend = { + type: 'scroll', + bottom: 0, + data: timeArr + } + this.chartsDatazz.xAxis = [{ + type: 'category', + data: termsName + }] + this.chartsDatazz.yAxis = [{ + type: 'value', + splitNumber: 6 + }] + return this.chartsDatazz + } // 横状图数据 ============行转换 dataAcrossMapRow () { let termsName = [] @@ -1105,7 +1323,9 @@ class computedFunc { shHangData = tableData.map((item, index) => { // console.log(Object.values(item).filter((list, key) => { return yuan.indexOf(key) !== -1 })) // tableData.forEach((list, key) => { - return Object.values(item).filter((list, key) => { return yuan.indexOf(key) !== -1 }) + return Object.values(item).filter((list, key) => { + return yuan.indexOf(key) !== -1 + }) // }) }).filter((item, index) => { return lineInputVal.indexOf(index) !== -1 diff --git a/src/components/advancedQuery/AdvancedQuery.vue b/src/components/advancedQuery/AdvancedQuery.vue index ee12d7b..866aa91 100644 --- a/src/components/advancedQuery/AdvancedQuery.vue +++ b/src/components/advancedQuery/AdvancedQuery.vue @@ -9,35 +9,45 @@ - + @@ -120,6 +130,7 @@ export default { data () { return { // 默认展开 + defaultOpenDataCode: null, zhibiaoImg: require('../../../static/chatCont/zhibiaojieshi.png'), leftCateData: null, checkboxState: false, @@ -180,8 +191,20 @@ export default { }, methods: { handleOpen (key, keyPath) { - console.log(key, keyPath) - this.getCateData() + console.log(key, keyPath, '开444') + console.log(key.split('-')) + let datart = [] + key.split('-').forEach((item, index) => { + if (index === 0) { + datart = this.leftCateData[item] + } else { + datart = datart.children[item] + } + }) + console.log(datart.id, 1010111) + this.selectClassId = datart.id + this.$store.state.selectDataLeft = datart + this.searchArealy() }, handleClose (key, keyPath) { console.log(key, keyPath) @@ -247,7 +270,8 @@ export default { method: 'GET', url: 'data/data/list', params: { - type: this.$route.query.type + type: this.$route.query.type === 'area' ? 2 : 1, + f: this.$store.state.selectDataLeft.f } }).then(res => { console.log(res, '左侧菜单') @@ -255,7 +279,7 @@ export default { if (res.data.code === 200) { this.leftCateData = res.data.data.list this.selectClassId = this.leftCateData[0].id - console.log(this.selectClassId,'this.selectClassId000') + console.log(this.selectClassId, 'this.selectClassId000') this.searchArealy() } }).catch((fail) => { @@ -342,6 +366,7 @@ export default { }, mounted() { this.getCateData() + this.defaultOpenDataCode = this.$store.state.openOpenLeft } } diff --git a/src/components/chartsCont/ChartsCont.vue b/src/components/chartsCont/ChartsCont.vue index 38acea0..93d26cc 100644 --- a/src/components/chartsCont/ChartsCont.vue +++ b/src/components/chartsCont/ChartsCont.vue @@ -106,6 +106,26 @@ export default { stateTells: { type: Boolean, required: true + }, + downLaSelects: { + type: String, + required: true + }, + downLaSelectArea: { + type: String, + required: false + }, + showTableState: { + type: Boolean, + required: true + }, + areaDimensionStateS: { + type: Boolean, + required: true + }, + advancedStates: { + type: Boolean, + required: true } }, data () { @@ -323,7 +343,7 @@ export default { // 调用存储的对象 objCompBefore: null, // echarts渲染的数据======>非饼图 - echartsDatarts: { ghg: 1 }, + echartsDatarts: {}, // 饼图数据 echartsDatartsPie: {}, // 行列转换索引状态0行1列 @@ -342,10 +362,26 @@ export default { downLaSelect: { area: '', label: '' - } + }, + // 执行状态 + hangZhiState: false, + // 高级查询数据 + startsyui: false } }, watch: { + // 监听父组件高级查询 + startsyui (val, oldValue) { + console.log(val, oldValue, '12333333') + if (val) { + console.log(this.$store.state.transBefore, '12') + this.transBefore = this.$store.state.transBefore + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + // // 告诉父组件渲染完毕 + this.$emit('tellParentsShowClos', false) + this.startsyui = false + } + }, // 监听对象 // chartsStatusMegger: { // handler (newval, oldVal) { @@ -384,10 +420,16 @@ export default { immediate: true, deep: true }, - transBefore (newval, oldval) { - if (newval && this.transBefore) { - this.showTable() - } + transBefore: { + handler (newval, oldval) { + console.log(newval, 1020202) + if (newval && this.transBefore) { + console.log(this.transBefore, 'kkkkkkkkkkkkkkkkkkkkk') + this.showTable() + } + }, + immediate: true, + deep: true }, indStatic (newValue, oldValue) { console.log(newValue, 'newValue1212') @@ -423,6 +465,51 @@ export default { immediate: true, deep: true }, + downLaSelects (val) { + console.log(val, 'va;111') + if (val) { + this.$store.state.selectData = val + if (!this.$store.state.advancedSearchState) { + this.getDatas() + } else { + this.advancedSearchDataShow() + } + } + }, + downLaSelectArea (valStrinf) { + console.log(this.$store.state.AreaAllCountData, '555222000') + console.log(valStrinf, '555222000选中') + console.log(this.$store.state.AreaAllCountData, 'kkkkk数据') + if (this.$store.state.AreaAllCountData) { + if (this.selectState === 2) { + if (this.$store.state.AreaAllCountData.areaName.indexOf(valStrinf) !== -1) { + let jsonData = JSON.parse(JSON.stringify(this.transBefore)) + jsonData.transBeforeAreaData = this.$store.state.AreaAllCountData.transBeforeAreaData[this.$store.state.AreaAllCountData.areaName.indexOf(valStrinf)] + this.transBefore = jsonData + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + } else { + this.selectState = 1 + this.getDatas() + // 告诉父组件改变筛选值 + this.$emit('tellChangeFan', true) + } + } else { + console.log(this.$store.state.AreaAllCountData.termsName.indexOf(valStrinf), 'this.$store.state.AreaAllCountData.areaName.indexOf(valStrinf)') + if (this.$store.state.AreaAllCountData.termsName.indexOf(valStrinf) !== -1) { + let jsonData = JSON.parse(JSON.stringify(this.transBefore)) + jsonData.transBeforeAreaData = this.$store.state.AreaAllCountData.transBeforeAreaData[this.$store.state.AreaAllCountData.termsName.indexOf(valStrinf)] + this.transBefore = jsonData + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + console.log(this.$store.state.AreaAllCountData.transBeforeAreaData[this.$store.state.AreaAllCountData.termsName.indexOf(valStrinf)], '1010111') + } else { + this.selectState = 2 + this.getDatas() + // 告诉父组件改变筛选值 + this.$emit('tellChangeFan', true) + } + } + } + }, // 监听行列图表转换 rowColIndex (newVal, oldVal) { if (this.transBefore) { @@ -445,7 +532,7 @@ export default { this.transBefore.areaName = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.areaName this.transBefore.transBeforeTermsData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeTermsData this.transBefore.transBeforeAreaData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeAreaData - console.log(this.transBefore, '000') + console.log(this.transBefore, '000kkkkkkkkkkkkk') this.$store.state.transdtr = true // 全局总数据 this.$store.state.transBefore = this.transBefore @@ -456,7 +543,9 @@ export default { console.log(this.$store.state.selectData, 'this.$store.state.selectData') console.log(this.$store.state.selectfilter, 'this.$store.state.selectfilter') this.$nextTick(() => { - // this.getDatas() + if (this.hangZhiState) { + this.getDatas() + } }) } } @@ -466,6 +555,7 @@ export default { }, // 监听下拉状态变化 stateTells (val) { + console.log(val, 'jjjjjj') if (val) { console.log(val, 'jjjjjj') if (JSON.parse(localStorage.getItem('classFiyData')) && JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id)) { @@ -483,12 +573,13 @@ export default { this.$store.state.transBefore = this.transBefore // 全局永久不变数据 this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) - } else { - console.log(this.defaultDataRight, '获取左侧选中数据555') - console.log(this.$store.state.selectData, 'this.$store.state.selectData') - console.log(this.$store.state.selectfilter, 'this.$store.state.selectfilter') - this.getDatas() } + // } else { + // console.log(this.defaultDataRight, '获取左侧选中数据555') + // console.log(this.$store.state.selectData, 'this.$store.state.selectData') + // console.log(this.$store.state.selectfilter, 'this.$store.state.selectfilter') + // this.getDatas() + // } } }, statesDf (val) { @@ -501,12 +592,52 @@ export default { this.transBefore.areaName = this.$store.state.transBefore.areaName this.transBefore.transBeforeTermsData = this.$store.state.transBefore.transBeforeTermsData this.transBefore.transBeforeAreaData = this.$store.state.transBefore.transBeforeAreaData + // this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) // console.log(this.transBefore, '我要改变') // 重新渲染表格 this.$refs.table.doLayout() // 告诉父组件改完了 this.$emit('tellAreadly', 1) } + }, + showTableState (val) { // 监听清除空行空列后重新渲染表格 + if (val) { + this.transBefore = {} + this.transBefore.tableExplain = this.$store.state.transBefore.tableExplain + this.transBefore.timeArr = this.$store.state.transBefore.timeArr + this.transBefore.termsName = this.$store.state.transBefore.termsName + this.transBefore.termsExplain = this.$store.state.transBefore.termsExplain + this.transBefore.areaName = this.$store.state.transBefore.areaName + this.transBefore.transBeforeTermsData = this.$store.state.transBefore.transBeforeTermsData + this.transBefore.transBeforeAreaData = this.$store.state.transBefore.transBeforeAreaData + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + this.$refs.table.doLayout() + // 告诉父组件重新渲染表格完毕 + this.$emit('statertyui', false) + } + }, + // 监听地区数据维度转换状态 + areaDimensionStateS (newVal) { + console.log(newVal, '1011111') + // if (newVal) { + if (this.$store.state.transBefore !== null) { + this.transBefore = {} + this.transBefore.tableExplain = this.$store.state.transBefore.tableExplain + this.transBefore.timeArr = this.$store.state.transBefore.timeArr + this.transBefore.termsName = this.$store.state.transBefore.termsName + this.transBefore.termsExplain = this.$store.state.transBefore.termsExplain + this.transBefore.areaName = this.$store.state.transBefore.areaName + this.transBefore.transBeforeTermsData = this.$store.state.transBefore.transBeforeTermsData + this.transBefore.transBeforeAreaData = this.$store.state.transBefore.transBeforeAreaData + } else { + this.transBefore = null + } + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + this.$refs.table.doLayout() + this.showTable() + // 告诉父组件重新渲染表格完毕 + this.$emit('statertyui', false) + // } } }, methods: { @@ -529,17 +660,84 @@ export default { // 地区数据转置 areaTrans () { if (this.transState) { // 当时间在表头上的时候 - this.objCompBefore = new ComputedData(this.transBefore) - var objDatasBefore = this.objCompBefore.comTransAreabefore() - this.tableLine = objDatasBefore.tableLine - this.tableData = objDatasBefore.countData - console.log(objDatasBefore, 'objDatasAfter') + console.log(this.$store.state.SelecttDimension, '2020') + if (this.$store.state.SelecttDimension.row === 'sj' && this.$store.state.SelecttDimension.col === 'dq') { + this.objCompBefore = new ComputedData(this.transBefore) + var objDatasBefore = this.objCompBefore.comTransAreabefore() + this.tableLine = objDatasBefore.tableLine + this.tableData = objDatasBefore.countData + console.log(objDatasBefore, 'objDatasAfter1') + } else if (this.$store.state.SelecttDimension.row === 'dq' && this.$store.state.SelecttDimension.col === 'sj') { + let objCompAfter = new ComputedData(this.transBefore) + var objDatasAfter = objCompAfter.comTransAreaAfter() + this.tableLine = objDatasAfter.tableLine + this.tableData = objDatasAfter.countData + console.log(objDatasAfter, 'objDatasAfter2') + } else if (this.$store.state.SelecttDimension.row === 'sj' && this.$store.state.SelecttDimension.col === 'zb') { + console.log(this.transBefore, 'this.transBeforethis.transBeforethis.transBefore') + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeLabelTime = objCompAfter.comTransAreabeforeLabelTime() + this.tableLine = comTransAreabeforeLabelTime.tableLine + this.tableData = comTransAreabeforeLabelTime.countData + console.log(comTransAreabeforeLabelTime, 'comTransAreabeforeLabelTime') + } else if (this.$store.state.SelecttDimension.row === 'zb' && this.$store.state.SelecttDimension.col === 'sj') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeTimeLabel = objCompAfter.comTransAreabeforeTimeLabel() + this.tableLine = comTransAreabeforeTimeLabel.tableLine + this.tableData = comTransAreabeforeTimeLabel.countData + console.log(comTransAreabeforeTimeLabel, 'comTransAreabeforeTimeLabel') + } else if (this.$store.state.SelecttDimension.row === 'zb' && this.$store.state.SelecttDimension.col === 'dq') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeAreaLabel = objCompAfter.comTransAreabeforeAreaLabel() + this.tableLine = comTransAreabeforeAreaLabel.tableLine + this.tableData = comTransAreabeforeAreaLabel.countData + console.log(comTransAreabeforeAreaLabel, 'comTransAreabeforeAreaLabel') + } else if (this.$store.state.SelecttDimension.row === 'dq' && this.$store.state.SelecttDimension.col === 'zb') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeLabelArea = objCompAfter.comTransAreabeforeLabelArea() + this.tableLine = comTransAreabeforeLabelArea.tableLine + this.tableData = comTransAreabeforeLabelArea.countData + console.log(comTransAreabeforeLabelArea, 'comTransAreabeforeLabelArea') + } } else { // 当指标名称在表头上 - let objCompAfter = new ComputedData(this.transBefore) - var objDatasAfter = objCompAfter.comTransAreaAfter() - this.tableLine = objDatasAfter.tableLine - this.tableData = objDatasAfter.countData - console.log(objDatasAfter, 'objDatasAfter') + console.log(this.$store.state.SelecttDimension, '2020') + if (this.$store.state.SelecttDimension.row === 'sj' && this.$store.state.SelecttDimension.col === 'dq') { + let objCompAfter = new ComputedData(this.transBefore) + var objDatasAfterB = objCompAfter.comTransAreaAfter() + this.tableLine = objDatasAfterB.tableLine + this.tableData = objDatasAfterB.countData + console.log(objDatasAfterB, 'objDatasAfterB') + } else if (this.$store.state.SelecttDimension.row === 'dq' && this.$store.state.SelecttDimension.col === 'sj') { + this.objCompBefore = new ComputedData(this.transBefore) + var objDatasBeforeB = this.objCompBefore.comTransAreabefore() + this.tableLine = objDatasBeforeB.tableLine + this.tableData = objDatasBeforeB.countData + console.log(objDatasBeforeB, 'objDatasBeforeB') + } else if (this.$store.state.SelecttDimension.row === 'sj' && this.$store.state.SelecttDimension.col === 'zb') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeTimeLabelB = objCompAfter.comTransAreabeforeTimeLabel() + this.tableLine = comTransAreabeforeTimeLabelB.tableLine + this.tableData = comTransAreabeforeTimeLabelB.countData + console.log(comTransAreabeforeTimeLabelB, 'comTransAreabeforeTimeLabelB') + } else if (this.$store.state.SelecttDimension.row === 'zb' && this.$store.state.SelecttDimension.col === 'sj') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeLabelTimeB = objCompAfter.comTransAreabeforeLabelTime() + this.tableLine = comTransAreabeforeLabelTimeB.tableLine + this.tableData = comTransAreabeforeLabelTimeB.countData + console.log(comTransAreabeforeLabelTimeB, 'comTransAreabeforeLabelTimeB') + } else if (this.$store.state.SelecttDimension.row === 'zb' && this.$store.state.SelecttDimension.col === 'dq') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeLabelAreaB = objCompAfter.comTransAreabeforeLabelArea() + this.tableLine = comTransAreabeforeLabelAreaB.tableLine + this.tableData = comTransAreabeforeLabelAreaB.countData + console.log(comTransAreabeforeLabelAreaB, 'comTransAreabeforeLabelAreaB') + } else if (this.$store.state.SelecttDimension.row === 'dq' && this.$store.state.SelecttDimension.col === 'zb') { + let objCompAfter = new ComputedData(this.transBefore) + var comTransAreabeforeAreaLabelB = objCompAfter.comTransAreabeforeAreaLabel() + this.tableLine = comTransAreabeforeAreaLabelB.tableLine + this.tableData = comTransAreabeforeAreaLabelB.countData + console.log(comTransAreabeforeAreaLabelB, 'comTransAreabeforeAreaLabelB') + } } }, // 渲染列表数据 @@ -674,7 +872,7 @@ export default { // 图表渲染 chartsShow () { // 改变值行值 - + console.log(this.$route.query.type, '1010111') switch (this.indStatic) { case 1: if (this.pieStatic) { @@ -700,7 +898,9 @@ export default { this.pieStatic = false break case 3: - console.log(this.lineStatic, this.rowColIndex, '555025') + console.log(this.lineStatic, this.rowColIndex, '状态改变') + console.log(this.listInputVal, this.lineInputVal, '行列数据前') + // console.log(this.lineStatic, this.rowColIndex, '状态改变') if (this.lineStatic && this.rowColIndex === 0) { this.lineInputVal = [0] this.listInputVal = [1, 2, 3] @@ -710,10 +910,11 @@ export default { this.listInputVal = [1] this.lineStatic = true } - console.log(this.listInputVal, this.lineInputVal) + console.log(this.listInputVal, this.lineInputVal, '行列数据后') this.objCompBefore.inputSelectData(this.listInputVal, this.lineInputVal) this.rowColIndex === 0 ? (this.echartsDatarts = this.objCompBefore.dataPieMapRow()) : (this.echartsDatarts = this.objCompBefore.dataPieMapCol()) this.pieStatic = true + this.lineStatic = false break case 4: if (this.pieStatic) { @@ -732,13 +933,15 @@ export default { rowColInd (ind) { // 0行1列 this.rowColIndex = ind + // 重置默认 + this.lineStatic = true }, // 每列input选中 listInput (ind) { console.log(ind, '列') if (this.indStatic === 3 && this.rowColIndex === 1) { this.listInputVal = [ind] - this.$refs.listInputSelect[ind].checked = true + // this.$refs.listInputSelect[ind].checked = true } else { this.listInputVal.indexOf(ind) === -1 ? (this.listInputVal.push(ind)) : (this.listInputVal.splice(this.listInputVal.indexOf(ind), 1)) } @@ -747,68 +950,105 @@ export default { // 每行input选中 lineInput (ind) { console.log(ind, '行') + console.log(this.rowColIndex, '行this.rowColIndex') + console.log(this.indStatic, '行this.indStatic') + console.log(this.$refs.lineInputSelect, '行this.lineInputSelect') if (this.indStatic === 3 && this.rowColIndex === 0) { + // this.$refs.lineInputSelect.forEach((item, index) => { + // if (index === ind) { + // item.checked = true + // } else { + // item.checked = false + // } + // }) + console.log(this.listInputVal, this.lineInputVal, '好哥们1') this.lineInputVal = [ind] - this.$refs.lineInputSelect[ind].checked = true + // this.$refs.lineInputSelect[ind].checked = true + console.log(this.listInputVal, this.lineInputVal, '好哥们2') } else { this.lineInputVal.indexOf(ind) === -1 ? (this.lineInputVal.push(ind)) : (this.lineInputVal.splice(this.lineInputVal.indexOf(ind), 1)) } - this.chartsShow() }, // 获取后台数据表中的数据 getDatas () { - // 初始化计算数据 - if (this.transBefore) { - this.objCompBefore.initAllData() - } - console.log(this.$store.state.selectData, '执行') - this.$axios({ - method: 'GET', - url: 'data/data/detail', - params: { - type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区 - table_name: this.defaultDataRight.table_name, // 表名 - id: this.defaultDataRight.id, // 分类id - area: this.downLaSelect.area, // 选中的地区 - quota: this.downLaSelect.label, // 选中的指标 - cate: this.selectState, // 1筛选指标 2筛选地区 - f: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 - data: this.$store.state.selectData // 时间 + if (!this.$store.state.advancedSearchState) { + // 初始化计算数据 + if (this.transBefore) { + this.objCompBefore.initAllData() } - }).then(res => { - console.log(res, '获取数据展示数据') - // 请求接口完成 请求成功 - if (res.data.code === 200) { - if (res.data.data.areaName.length !== 0) { - if (this.downLaSelect.area === '' || this.downLaSelect.label === '') { - console.log(this.downLaSelect.area, 'this.downLaSelect.area') - let brrtf = {} - // this.transBefore = {} - brrtf.tableExplain = res.data.data.tableExplain - brrtf.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) - brrtf.termsName = res.data.data.termsName - brrtf.termsExplain = res.data.data.termsExplain - brrtf.areaName = res.data.data.areaName - if (this.$route.query.type === 'area') { - console.log('走这里') - brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData[0] - brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData + console.log(this.$store.state.selectData, '执行') + this.$axios({ + method: 'GET', + url: 'data/data/detail', + params: { + type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区 + table_name: this.defaultDataRight.table_name, // 表名 + id: this.defaultDataRight.id, // 分类id + area: this.downLaSelect.area, // 选中的地区 + quota: this.downLaSelect.label, // 选中的指标 + cate: this.selectState, // 1筛选指标 2筛选地区 + f: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + data: this.$store.state.selectData // 时间 + } + }).then(res => { + console.log(res, '获取数据展示数据') + // 请求接口完成 请求成功 + if (res.data.code === 200) { + if (res.data.data.areaName.length !== 0) { + if (this.downLaSelect.area === '' || this.downLaSelect.label === '') { + console.log(this.downLaSelect.area, 'this.downLaSelect.area') + let brrtf = {} + // this.transBefore = {} + brrtf.tableExplain = res.data.data.tableExplain + brrtf.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + brrtf.termsName = res.data.data.termsName + brrtf.termsExplain = res.data.data.termsExplain + brrtf.areaName = res.data.data.areaName + if (this.$route.query.type === 'area') { + console.log('走这里') + brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData[0] + brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData + } else { + brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData + brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData[0] + } + console.log(brrtf, 'brrtf') + this.transBefore = brrtf + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + if (this.selectState === 1) { + this.$store.state.labelArea = this.transBefore.termsName + } else { + this.$store.state.labelArea = this.transBefore.areaName + } + this.$store.state.AreaAllCountData = res.data.data + // 告诉父组件我完成任务重置状态 + this.$emit('prentsState', false) + console.log(this.$store.state.noChangeData, 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData') } else { - brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData - brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData[0] + this.transBefore = {} + this.transBefore.tableExplain = res.data.data.tableExplain + this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + this.transBefore.termsName = res.data.data.termsName + this.transBefore.termsExplain = res.data.data.termsExplain + this.transBefore.areaName = res.data.data.areaName + this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData + this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + + // 告诉父组件我完成任务重置状态 + this.$emit('prentsState', false) } - console.log(brrtf, 'brrtf') - this.transBefore = brrtf - console.log(this.transBefore, '000') - this.$store.state.transdtr = true - // 全局总数据 - this.$store.state.transBefore = this.transBefore - // 全局永久不变数据 - this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) - // 告诉父组件我完成任务重置状态 - this.$emit('prentsState', false) - console.log(this.$store.state.noChangeData, 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData') } else { this.transBefore = {} this.transBefore.tableExplain = res.data.data.tableExplain @@ -824,37 +1064,70 @@ export default { this.$store.state.transBefore = this.transBefore // 全局永久不变数据 this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) - // 告诉父组件我完成任务重置状态 this.$emit('prentsState', false) } + this.hangZhiState = true } else { - this.transBefore = {} - this.transBefore.tableExplain = res.data.data.tableExplain - this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) - this.transBefore.termsName = res.data.data.termsName - this.transBefore.termsExplain = res.data.data.termsExplain - this.transBefore.areaName = res.data.data.areaName - this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData - this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData - console.log(this.transBefore, '000') - this.$store.state.transdtr = true + this.transBefore = null + // this.$store.state.transdtr = null // 全局总数据 - this.$store.state.transBefore = this.transBefore - // 全局永久不变数据 - this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) - // 告诉父组件我完成任务重置状态 - this.$emit('prentsState', false) + this.$store.state.transBefore = null + this.$store.state.noChangeData = null } - } else { - this.transBefore = null - // this.$store.state.transdtr = null - // 全局总数据 - this.$store.state.transBefore = null - this.$store.state.noChangeData = null + if (this.$route.query.type !== 'area') { + this.$store.state.SelecttDimension.col = 'zb' + this.$store.state.SelecttDimension.row = 'sj' + } + this.$emit('stateDataGet', false) + }).catch((fail) => { + console.log(fail, 2369) + }) + } else { + this.transBefore = this.$store.state.transBefore + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + } + }, + // 高级查询数据渲染 + advancedSearchDataShow () { + this.$axios({ + method: 'POST', + url: 'data/data/query', + data: { + type: this.$route.query.type === 'area' ? 2 : 1, + data: this.$store.state.advanceData, + area: this.downLaSelect.area, + quota: this.downLaSelect.label, + cate: this.selectState, + f: this.$route.query.type, + date: this.$store.state.selectData } + }).then(res => { + console.log(res, '高级查询数据展示') + // 请求接口完成 请求成功 + if (res.data.code === 200) { + let transBefore = {} + transBefore.tableExplain = res.data.data.tableExplain + transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + transBefore.termsName = res.data.data.termsName + transBefore.termsExplain = res.data.data.termsExplain + transBefore.areaName = res.data.data.areaName + transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData + transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData + console.log(transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = transBefore + this.transBefore = transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(transBefore)) + } else { + this.$store.state.transBefore = null + } + // 告诉父组件我完成任务重置状态 + this.$emit('prentsState', false) }).catch((fail) => { - console.log(fail, 2369) + console.log(fail) }) } }, @@ -921,11 +1194,15 @@ export default { } }, created () { - // this.getDatas() + // 还原高级查询状态 + this.$store.state.advancedSearchState = false + console.log(this.advancedStates, 'this.advancedStates111') + this.startsyui = this.advancedStates }, updated () { // 重新渲染表格 this.$refs.table.doLayout() + console.log(this.advancedStates, 'this.advancedStates') }, mounted () { // console.log(new ComputedData()) diff --git a/src/components/chartsCut/ChartsCut.vue b/src/components/chartsCut/ChartsCut.vue index 4c7e314..886839a 100644 --- a/src/components/chartsCut/ChartsCut.vue +++ b/src/components/chartsCut/ChartsCut.vue @@ -8,10 +8,10 @@ > -
+
-
- 指标: + +
+ {{stateChangeSDF?'指标:':'地区:'}} +
@@ -32,14 +42,46 @@ @choice-caller="choiceCallerTime" @visible-change="changesInputStu" :isHideProp="isHideProp" + @stateInfor="stateInfor" + :stateRTY="stateRTY" > -
- - 确认 +
+ + 确认 +
+
+ 列:输入格式如下 +
月:201901,201902 +
+
季:2019A,2019B, +
+
     2019C,2019D +
+
年:2019,2018 +
+
其他:2018-2019 +
+
+
+ {{leftLabel[$store.state.noSelecttDimension]}}: + +
@@ -396,6 +422,9 @@ export default { align-items: center; font-size: 1.375rem; } + & > div:hover { + cursor: pointer; + } & > div:nth-child(1) { padding: 0; width: 100%; diff --git a/src/components/nav/Nav.vue b/src/components/nav/Nav.vue index ef3c5d0..53c85c6 100644 --- a/src/components/nav/Nav.vue +++ b/src/components/nav/Nav.vue @@ -111,6 +111,11 @@ export default { imgIdentify: null } }, + watch: { + $auth (newVal, oldVal) { + console.log(newVal, '$auth$auth$auth$auth') + } + }, methods: { navClick (indexs, url) { if (indexs !== 1) { @@ -148,6 +153,7 @@ export default { }, loginWindow () { this.showWinStatic = true + this.$auth.auth = true this.get_identity() }, // 关闭登录窗口 @@ -177,11 +183,13 @@ export default { alert(res.data.message) if (res.data.code === 200) { this.showWinStatic = !this.showWinStatic + this.$auth.auth = this.showWinStatic // 用户信息存本地 localStorage.setItem('username', res.data.data.username) localStorage.setItem('pic', res.data.data.pic) localStorage.setItem('userPwd', this.userpwd) localStorage.setItem('token', 'Bearer ' + res.data.data.token) + localStorage.setItem('tokenB', res.data.data.token) // 登录状态 localStorage.setItem('userLogin', true) console.log(this.$route, '000111') @@ -196,7 +204,9 @@ export default { }) } } else { + console.log(!this.showWinStatic, 'this.showWinStatic') this.showWinStatic = !this.showWinStatic + this.$auth.auth = this.showWinStatic } }, // 获取验证码图片及内容 @@ -212,6 +222,7 @@ export default { }, regirest () { this.showWinStatic = !this.showWinStatic + this.$auth.auth = this.showWinStatic this.$router.push({ path: '/register' }) }, // 跳到数据页面 @@ -248,13 +259,19 @@ export default { method: 'GET', url: 'member/index/logout', params: { - 'access-token': localStorage.getItem('token') + 'access-token': localStorage.getItem('tokenB') } }).then(res => { console.log(res) alert(res.data.message) // 请求接口完成注册 请求成功 if (res.data.code === 200) { + console.log(this.$route.path, 'this.$router.path') + if (this.$route.path !== '/') { + this.$router.push({ + path: '/' + }) + } localStorage.clear() this.$router.go(0) } @@ -270,10 +287,22 @@ export default { } } }, + computed: { + }, mounted () { + let that = this this.userLogin = localStorage.getItem('userLogin') this.userName = localStorage.getItem('username') this.userPic = localStorage.getItem('pic') + // 监听对象的变化 + /* eslint-disable */ + Object.defineProperty(this.$auth, 'auth', { + set: function (newVal) { + console.log(newVal, 'newValnewValnewVal') + that.showWinStatic = newVal + that.get_identity() + } + }) } } diff --git a/src/components/noAreaDimension/NoAreaDimension.vue b/src/components/noAreaDimension/NoAreaDimension.vue new file mode 100644 index 0000000..0802ae3 --- /dev/null +++ b/src/components/noAreaDimension/NoAreaDimension.vue @@ -0,0 +1,306 @@ + + + diff --git a/src/components/search/search.vue b/src/components/search/search.vue index 8288bc3..cb86f17 100644 --- a/src/components/search/search.vue +++ b/src/components/search/search.vue @@ -3,7 +3,7 @@ @@ -150,26 +154,26 @@ export default { staticSelect: '基本设置', // 基本设置数据 cont_basic: [ - { - keys: '用户名称', - values: '张三' - }, - { - keys: '邮箱', - values: '1234567@163.com' - }, - { - keys: '所属部门', - values: '部门' - }, - { - keys: '机构名称', - values: '某某机构' - }, - { - keys: '机构地址', - values: '某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某' - } + // { + // keys: '用户名称', + // values: '张三' + // }, + // { + // keys: '邮箱', + // values: '1234567@163.com' + // }, + // { + // keys: '所属部门', + // values: '部门' + // }, + // { + // keys: '机构名称', + // values: '某某机构' + // }, + // { + // keys: '机构地址', + // values: '某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某' + // } ], // 密码 password: localStorage.getItem('userPwd'), @@ -182,38 +186,39 @@ export default { // 收藏搜索 searchCollect: '', // 收藏列表数据 - collect: [ - { - name: '发的货接口的话接口io福达合金你接口撒环能科技河南地方撒即可', - database: '月度数据发的货接口的话接口io福达合金你接口撒环能科技河南地方撒即可', - birthTime: '2019-09-18', - staticInput: false - }, - { - name: '1', - database: '月度数据', - birthTime: '2019-09-18', - staticInput: false - }, - { - name: '1', - database: '月度数据', - birthTime: '2019-09-18', - staticInput: false - }, - { - name: '1', - database: '月度数据', - birthTime: '2019-09-18', - staticInput: false - }, - { - name: '1', - database: '月度数据', - birthTime: '2019-09-18', - staticInput: false - } - ], + // collect: [ + // // { + // // name: '发的货接口的话接口io福达合金你接口撒环能科技河南地方撒即可', + // // database: '月度数据发的货接口的话接口io福达合金你接口撒环能科技河南地方撒即可', + // // birthTime: '2019-09-18', + // // staticInput: false + // // }, + // // { + // // name: '1', + // // database: '月度数据', + // // birthTime: '2019-09-18', + // // staticInput: false + // // }, + // // { + // // name: '1', + // // database: '月度数据', + // // birthTime: '2019-09-18', + // // staticInput: false + // // }, + // // { + // // name: '1', + // // database: '月度数据', + // // birthTime: '2019-09-18', + // // staticInput: false + // // }, + // // { + // // name: '1', + // // database: '月度数据', + // // birthTime: '2019-09-18', + // // staticInput: false + // // } + // ], + collect: null, // 我的收藏名称 collectName: '', // 分页配置 @@ -376,11 +381,35 @@ export default { // 请求接口完成 请求成功 // alert(res.data.message) if (res.data.code === 200) { - this.cont_basic[0].values = res.data.data.username - this.cont_basic[1].values = res.data.data.email - this.cont_basic[2].values = res.data.data.company_dept - this.cont_basic[3].values = res.data.data.company_name - this.cont_basic[4].values = res.data.data.company_addr + let resdatares = [ + { + keys: '用户名称', + values: '张三' + }, + { + keys: '邮箱', + values: '1234567@163.com' + }, + { + keys: '所属部门', + values: '部门' + }, + { + keys: '机构名称', + values: '某某机构' + }, + { + keys: '机构地址', + values: '某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某某' + } + ] + resdatares[0].values = res.data.data.username + resdatares[1].values = res.data.data.email + resdatares[2].values = res.data.data.company_dept + resdatares[3].values = res.data.data.company_name + resdatares[4].values = res.data.data.company_addr + this.cont_basic = resdatares + console.log(this.cont_basic, 'this.cont_basic') } }).catch((fail) => { console.log(fail) @@ -904,5 +933,14 @@ export default { } } } + & > .cont_content_basic { + width: 100%; + background-color: #fff; + height: 38rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } } diff --git a/src/views/searchList/SearchList.vue b/src/views/searchList/SearchList.vue index 84e668c..a0cf8a5 100644 --- a/src/views/searchList/SearchList.vue +++ b/src/views/searchList/SearchList.vue @@ -9,7 +9,7 @@
-
+
相关搜索约为 {{pageConfiguration.countSize}} 条
@@ -52,8 +52,8 @@ @current-change="currentChange" >
-
哎呦,没有搜到结果呦!再试一遍吧!
+
哎呦,没有搜到结果呦!再试一遍吧!
@@ -86,10 +86,10 @@ export default { }, // 栏目数据 结构不可变 cityData: [ - { 'id': '110000', 'name': '年度数据', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' }, - { 'id': '110000', 'name': '季度数据', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' }, - { 'id': '110000', 'name': '月度数据', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' }, - { 'id': '110000', 'name': '-全部-', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' } + // { 'id': '110000', 'name': '年度数据', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' }, + // { 'id': '110000', 'name': '季度数据', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' }, + // { 'id': '110000', 'name': '月度数据', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' }, + // { 'id': '110000', 'name': '-全部-', 'parentId': '100000', 'shortName': '北京', 'cityCode': '' } ], // 栏目级数 jishu: 1, @@ -104,14 +104,14 @@ export default { ], // 搜索到的数据 searchData: [ - { id: 1, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 2, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 3, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 4, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 5, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 6, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 7, name: '张三', className: 'table1', lmss: '年度数据' }, - { id: 8, name: '张三', className: 'table1', lmss: '年度数据' } + // { id: 1, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 2, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 3, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 4, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 5, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 6, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 7, name: '张三', className: 'table1', lmss: '年度数据' }, + // { id: 8, name: '张三', className: 'table1', lmss: '年度数据' } ], // 分页 // 分页配置