fanzhen1219
This commit is contained in:
@@ -71,6 +71,14 @@ export default {
|
||||
})
|
||||
break
|
||||
}
|
||||
this.axios.all([
|
||||
this.axios({ url: '', method: 'GET', params: {} }),
|
||||
this.axios({ url: '', method: 'POST', data: {} })
|
||||
]).then(
|
||||
this.axios.spread((res1, res2) => {
|
||||
console.log(res1, res2)
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,40 +117,44 @@
|
||||
<el-col :span="24">
|
||||
<el-menu
|
||||
:default-openeds="defaultSelectLies"
|
||||
class="el-menu-vertical-demo"
|
||||
@open="handleOpen"
|
||||
@close="handleClose"
|
||||
@select="selectActive"
|
||||
style="border:none"
|
||||
:unique-opened="true"
|
||||
>
|
||||
<el-submenu
|
||||
:index="''+index1"
|
||||
v-for="(item1,index1) in leftCateData"
|
||||
:key="index1"
|
||||
:style="{'background-color':$store.state.selectDataLeft.id===item1.id?'#95CEE4':''}"
|
||||
>
|
||||
<template slot="title">{{item1.name}}</template>
|
||||
<el-submenu
|
||||
:index="index1+'-'+index2"
|
||||
v-for="(item2,index2) in item1.children"
|
||||
:key="index2"
|
||||
:style="{'background-color':$store.state.selectDataLeft.id===item2.id?'#95CEE4':''}"
|
||||
>
|
||||
<template slot="title">{{item2.name}}</template>
|
||||
<el-submenu
|
||||
:index="index1+'-'+index2+'-'+index3"
|
||||
v-for="(item3,index3) in item2.children"
|
||||
:key="index3"
|
||||
:style="{'background-color':$store.state.selectDataLeft.id===item3.id?'#95CEE4':''}"
|
||||
>
|
||||
<template slot="title">{{item3.name}}</template>
|
||||
<el-submenu
|
||||
:index="index1+'-'+index2+'-'+index3+'-'+index4"
|
||||
v-for="(item4,index4) in item3.children"
|
||||
:key="index4"
|
||||
:style="{'background-color':$store.state.selectDataLeft.id===item4.id?'#95CEE4':''}"
|
||||
>
|
||||
<template slot="title">{{item4.name}}</template>
|
||||
<el-submenu
|
||||
:index="index1+'-'+index2+'-'+index3+'-'+index4+'-'+index5"
|
||||
v-for="(item5,index5) in item4.children"
|
||||
:key="index5"
|
||||
:style="{'background-color':$store.state.selectDataLeft.id===item5.id?'#95CEE4':''}"
|
||||
>
|
||||
<template slot="title">{{item5.name}}</template>
|
||||
</el-submenu>
|
||||
@@ -182,6 +186,14 @@
|
||||
v-if="$store.state.transdtr"
|
||||
:defaultDataRight="defaultDataRight"
|
||||
@stateTell="stateTell"
|
||||
@comTime="comTime"
|
||||
:stateDataGetVal="stateDataGetVal"
|
||||
@stateDFGHJ="stateDFGHJ"
|
||||
@statertfResu="statertfResu"
|
||||
:labelAreaState="labelAreaState"
|
||||
:areaDimensionStateS="areaDimensionStateS"
|
||||
@emmitStateAd="emmitStateAd"
|
||||
:labelAreaStateks="labelAreaStateks"
|
||||
></ChartsCut>
|
||||
<!-- 列表内容 -->
|
||||
<ChartsCont
|
||||
@@ -189,10 +201,18 @@
|
||||
:chartsStatusMegger="chartsStatusMegger"
|
||||
:defaultDataRight="defaultDataRight"
|
||||
:stateTells="stateTells"
|
||||
@comTime="comTime"
|
||||
:statesDf="statesDf"
|
||||
@tellAreadly="tellAreadly"
|
||||
@prentsState="prentsState"
|
||||
:downLaSelects="downLaSelect"
|
||||
@stateDataGet="stateDataGet"
|
||||
:downLaSelectArea="downLaSelectArea"
|
||||
:showTableState="showTableState"
|
||||
@statertyui="statertyui"
|
||||
:areaDimensionStateS="areaDimensionStateS"
|
||||
:advancedStates="advancedStates"
|
||||
@tellParentsShowClos="tellParentsShowClos"
|
||||
@tellChangeFan="tellChangeFan"
|
||||
></ChartsCont>
|
||||
</div>
|
||||
<div class="container">
|
||||
@@ -240,7 +260,15 @@
|
||||
<!-- 添加收藏 -->
|
||||
<AddCollect v-if="$store.state.addCollectState"></AddCollect>
|
||||
<!-- 维度转换 -->
|
||||
<Dimension v-if="$store.state.dimensionState" @changeValue="changeValue"></Dimension>
|
||||
<!--地区-->
|
||||
<Dimension
|
||||
v-if="$store.state.dimensionState"
|
||||
@changeValue="changeValue"
|
||||
@areaDimensionState="areaDimensionState"
|
||||
></Dimension>
|
||||
<!-- 维度转换 -->
|
||||
<!--非地区-->
|
||||
<NoAreaDimension v-if="$store.state.noAreadimensionState" @changeSetZZ="changeValue"></NoAreaDimension>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -271,8 +299,10 @@ import EditCom from '@/components/editCom/EditCom.vue'
|
||||
import AddCollect from '@/components/addCollect/AddCollect.vue'
|
||||
// 指标解释
|
||||
import LabelExplain from '@/components/labelExplain/LabelExplain.vue'
|
||||
// 维度转换
|
||||
// 维度转换 地区
|
||||
import Dimension from '@/components/dimension/Dimension.vue'
|
||||
// 维度转换 非地区
|
||||
import NoAreaDimension from '@/components/noAreaDimension/NoAreaDimension.vue'
|
||||
// 引入数据计算js用于机选渲染的数据
|
||||
import ComputedData from '../../assets/js/computeddata'
|
||||
// 引入全局的createObjectUrl用于覆盖window.URL
|
||||
@@ -294,7 +324,8 @@ export default {
|
||||
EditCom: EditCom,
|
||||
AddCollect: AddCollect,
|
||||
LabelExplain: LabelExplain,
|
||||
Dimension: Dimension
|
||||
Dimension: Dimension,
|
||||
NoAreaDimension: NoAreaDimension
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
@@ -402,17 +433,28 @@ export default {
|
||||
leftCateData: null,
|
||||
// 简单查询、高级查询、数据地图切换状态(simpleness(简单)、advanced(高级) 、map(地图))
|
||||
cutStateSeach: 'simpleness',
|
||||
// 下拉筛选的数据
|
||||
downLaSelect: {
|
||||
area: '',
|
||||
label: ''
|
||||
},
|
||||
// 下拉筛选的数据时间
|
||||
downLaSelect: '',
|
||||
// 下拉筛选的数据地区
|
||||
downLaSelectArea: '',
|
||||
// 新增指标状态
|
||||
statesDf: 1,
|
||||
// 数据加载状态
|
||||
stateTells: false,
|
||||
// 维度转换时(若不是地区数据只进行转置操作)
|
||||
changeState: false
|
||||
changeState: false,
|
||||
// 数据请求成功后的状态
|
||||
stateDataGetVal: false,
|
||||
// 扩展数据完成后
|
||||
labelAreaState: false,
|
||||
// 清除空行空列
|
||||
showTableState: false,
|
||||
// 地区数据维度转换状态
|
||||
areaDimensionStateS: false,
|
||||
// 高级查询数据渲染
|
||||
advancedStates: false,
|
||||
// 指标与地区互换状态
|
||||
labelAreaStateks: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -425,6 +467,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 地区数据维度转换状态
|
||||
areaDimensionState (val) {
|
||||
this.areaDimensionStateS = !this.areaDimensionStateS
|
||||
},
|
||||
// 维度转换非地区转置
|
||||
changeValue (val) {
|
||||
this.changeState = val
|
||||
@@ -435,7 +481,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.$route.query.type === 'area' ? '' : this.$route.query.type
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, '左侧菜单')
|
||||
@@ -465,6 +512,7 @@ export default {
|
||||
},
|
||||
handleOpen (key, keyPath) {
|
||||
console.log(key, keyPath, '开')
|
||||
this.$store.state.openOpenLeft = keyPath
|
||||
console.log(key.split('-'))
|
||||
let datart = []
|
||||
key.split('-').forEach((item, index) => {
|
||||
@@ -476,10 +524,11 @@ export default {
|
||||
})
|
||||
console.log(datart)
|
||||
this.defaultDataRight = datart
|
||||
this.$store.state.selectDataLeft = this.defaultDataRight
|
||||
this.$store.state.selectfilter = this.defaultDataRight.f
|
||||
},
|
||||
handleClose (key, keyPath) {
|
||||
// console.log(key, keyPath)
|
||||
console.log(key, keyPath, '关闭打印')
|
||||
},
|
||||
selectActive (key, keyPath) {
|
||||
// console.log(key, keyPath)
|
||||
@@ -516,15 +565,23 @@ export default {
|
||||
// console.log('鼠标离开')
|
||||
},
|
||||
clickAllCate (hierarchy, ind) {
|
||||
let that = this
|
||||
switch (ind) {
|
||||
case 0:
|
||||
this.cutStateSeach = 'simpleness'
|
||||
this.$store.state.advancedSearchState = false
|
||||
break
|
||||
case 1:
|
||||
this.cutStateSeach = 'advanced'
|
||||
this.$store.state.advancedSearchState = true
|
||||
break
|
||||
case 2:
|
||||
this.cutStateSeach = 'map'
|
||||
if (this.$route.query.type === 'area') {
|
||||
this.cutStateSeach = 'map'
|
||||
} else {
|
||||
alert('地图功能对非地区数据无效!')
|
||||
}
|
||||
this.$store.state.advancedSearchState = false
|
||||
break
|
||||
case 3:// 添加收藏
|
||||
this.$store.state.addCollectState = true
|
||||
@@ -568,6 +625,10 @@ export default {
|
||||
case 'search':// 调接进行高级查询
|
||||
// 调用接口查询高级查询的数据
|
||||
console.log(this.$store.state.advanceData)
|
||||
if (this.$store.state.advanceData.length < 4) {
|
||||
alert('筛选数据数据不能少于4条!')
|
||||
return
|
||||
}
|
||||
this.$axios({
|
||||
method: 'GET',
|
||||
url: 'data/data/quick',
|
||||
@@ -589,7 +650,7 @@ export default {
|
||||
area: '',
|
||||
quota: '',
|
||||
cate: '',
|
||||
filter: this.$route.query.type,
|
||||
f: this.$route.query.type,
|
||||
date: Object.keys(res.data.data.list)[0]
|
||||
|
||||
}
|
||||
@@ -597,8 +658,27 @@ export default {
|
||||
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')
|
||||
that.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
that.$store.state.transBefore = transBefore
|
||||
// 全局永久不变数据
|
||||
that.$store.state.noChangeData = JSON.parse(JSON.stringify(transBefore))
|
||||
that.cutStateSeach = 'simpleness'
|
||||
that.advancedStates = true
|
||||
} else {
|
||||
that.$store.state.transBefore = null
|
||||
that.advancedStates = true
|
||||
}
|
||||
// 告诉子组件渲染高级查询数据
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
})
|
||||
@@ -606,7 +686,6 @@ export default {
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
})
|
||||
|
||||
break
|
||||
}
|
||||
},
|
||||
@@ -640,33 +719,101 @@ export default {
|
||||
this.$router.go(0)
|
||||
break
|
||||
case '清除空行空列':// 清除空行空列
|
||||
this.$router.go(0)
|
||||
if (this.$store.state.transBefore) {
|
||||
// this.$router.go(0)
|
||||
console.log(this.$store.state.transBefore, 'this.$store.state.transBefore')
|
||||
if (this.$route.query.type === 'area') {
|
||||
// 先过滤每一行
|
||||
this.$store.state.transBefore = this.$store.state.transBefore.filter((item, index) => {
|
||||
return !item.some((item, index) => {
|
||||
let firstHang = []// 过滤掉的下标=====》地区
|
||||
this.$store.state.transBefore.transBeforeAreaData = this.$store.state.transBefore.transBeforeAreaData.filter((item, index) => {
|
||||
if (item.every((item, index) => { return item === '' })) {
|
||||
firstHang.push(index)
|
||||
}
|
||||
return !item.every((item, index) => {
|
||||
return item === ''
|
||||
}) === true
|
||||
})
|
||||
// 在过滤每一列
|
||||
// 行列转置
|
||||
this.$store.state.transBefore = this.$store.state.transBefore[0].map(function (col, index) {
|
||||
return this.$store.state.transBefore.map((row, key) => {
|
||||
let brrCe = this.$store.state.transBefore.transBeforeAreaData
|
||||
this.$store.state.transBefore.transBeforeAreaData = brrCe[0].map(function (col, index) {
|
||||
return brrCe.map((row, key) => {
|
||||
return row[index]
|
||||
})
|
||||
})
|
||||
// 在过滤每一行
|
||||
this.$store.state.transBefore = this.$store.state.transBefore.filter((item, index) => {
|
||||
return !item.some((item, index) => {
|
||||
let secendHang = []// 过滤掉的下标=====》时间
|
||||
this.$store.state.transBefore.transBeforeAreaData = this.$store.state.transBefore.transBeforeAreaData.filter((item, index) => {
|
||||
if (item.every((item, index) => { return item === '' })) {
|
||||
secendHang.push(index)
|
||||
}
|
||||
return !item.every((item, index) => {
|
||||
return item === ''
|
||||
}) === true
|
||||
})
|
||||
// 行列转置
|
||||
this.$store.state.transBefore = this.$store.state.transBefore[0].map(function (col, index) {
|
||||
return this.$store.state.transBefore.map((row, key) => {
|
||||
let arrCe = this.$store.state.transBefore.transBeforeAreaData
|
||||
this.$store.state.transBefore.transBeforeAreaData = arrCe[0].map(function (col, index) {
|
||||
return arrCe.map((row, key) => {
|
||||
return row[index]
|
||||
})
|
||||
})
|
||||
// 将时间和地区名过滤掉
|
||||
this.$store.state.transBefore.areaName = this.$store.state.transBefore.areaName.filter((item, index) => {
|
||||
return firstHang.indexOf(index) === -1
|
||||
})
|
||||
this.$store.state.transBefore.timeArr = this.$store.state.transBefore.timeArr.filter((item, index) => {
|
||||
return secendHang.indexOf(index) === -1
|
||||
})
|
||||
console.log(this.$store.state.transBefore, 'this.$store.state.transBefore.transBeforeAreaData')
|
||||
this.showTableState = true
|
||||
} else { // 非地区数据
|
||||
// 先过滤每一行
|
||||
let firstHang = []// 过滤掉的下标=====》地区
|
||||
this.$store.state.transBefore.transBeforeTermsData = this.$store.state.transBefore.transBeforeTermsData.filter((item, index) => {
|
||||
if (item.every((item, index) => { return item === '' })) {
|
||||
firstHang.push(index)
|
||||
}
|
||||
return !item.every((item, index) => {
|
||||
return item === ''
|
||||
}) === true
|
||||
})
|
||||
// 在过滤每一列
|
||||
// 行列转置
|
||||
let brrCe = this.$store.state.transBefore.transBeforeTermsData
|
||||
this.$store.state.transBefore.transBeforeTermsData = brrCe[0].map(function (col, index) {
|
||||
return brrCe.map((row, key) => {
|
||||
return row[index]
|
||||
})
|
||||
})
|
||||
// 在过滤每一行
|
||||
let secendHang = []// 过滤掉的下标=====》时间
|
||||
this.$store.state.transBefore.transBeforeTermsData = this.$store.state.transBefore.transBeforeTermsData.filter((item, index) => {
|
||||
if (item.every((item, index) => { return item === '' })) {
|
||||
secendHang.push(index)
|
||||
}
|
||||
return !item.every((item, index) => {
|
||||
return item === ''
|
||||
}) === true
|
||||
})
|
||||
// 行列转置
|
||||
let arrCe = this.$store.state.transBefore.transBeforeTermsData
|
||||
this.$store.state.transBefore.transBeforeTermsData = arrCe[0].map(function (col, index) {
|
||||
return arrCe.map((row, key) => {
|
||||
return row[index]
|
||||
})
|
||||
})
|
||||
// 将时间和地区名过滤掉
|
||||
this.$store.state.transBefore.termsName = this.$store.state.transBefore.termsName.filter((item, index) => {
|
||||
return firstHang.indexOf(index) === -1
|
||||
})
|
||||
this.$store.state.transBefore.termsExplain = this.$store.state.transBefore.termsExplain.filter((item, index) => {
|
||||
return firstHang.indexOf(index) === -1
|
||||
})
|
||||
this.$store.state.transBefore.timeArr = this.$store.state.transBefore.timeArr.filter((item, index) => {
|
||||
return secendHang.indexOf(index) === -1
|
||||
})
|
||||
console.log(this.$store.state.transBefore, 'this.$store.state.transBefore.transBeforeAreaData')
|
||||
this.showTableState = true
|
||||
}
|
||||
break
|
||||
case '编辑':
|
||||
@@ -677,7 +824,13 @@ export default {
|
||||
this.$store.state.transState = this.chartsStatusMegger.transState
|
||||
break
|
||||
case '维度转换':
|
||||
this.$store.state.dimensionState = true
|
||||
if (this.$route.query.type === 'area') {
|
||||
this.$store.state.dimensionState = true
|
||||
} else {
|
||||
this.$store.state.noAreadimensionState = true
|
||||
// this.chartsStatusMegger.transState = !this.chartsStatusMegger.transState
|
||||
// this.$store.state.transState = this.chartsStatusMegger.transState
|
||||
}
|
||||
break
|
||||
case '保存默认':// 将分类id 和 分类数据存入本地
|
||||
// 获取本地保存数据
|
||||
@@ -890,10 +1043,11 @@ export default {
|
||||
})
|
||||
this.defaultSelectLies = stateStatic
|
||||
console.log(this.defaultSelectLies, 'stateStatic')
|
||||
this.$store.state.openOpenLeft = stateStatic
|
||||
let dataDome = []
|
||||
console.log(stateStatic, '数据')
|
||||
console.log(this.leftCateData[this.leftCateData.length - 1], '数据length-1')
|
||||
this.$store.state.selectDataLeft = this.leftCateData[this.leftCateData.length - 1]
|
||||
|
||||
// console.log(this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children[0].children[0], '1')
|
||||
if (this.leftCateData[this.leftCateData.length - 1].children !== undefined) {
|
||||
if (this.leftCateData[this.leftCateData.length - 1].children[0].children !== undefined) {
|
||||
@@ -913,11 +1067,13 @@ export default {
|
||||
dataDome = this.leftCateData[this.leftCateData.length - 1]
|
||||
}
|
||||
this.defaultDataRight = dataDome
|
||||
this.$store.state.selectDataLeft = this.defaultDataRight
|
||||
console.log(this.defaultDataRight, '1250')
|
||||
this.$store.state.selectfilter = this.defaultDataRight.f
|
||||
},
|
||||
comTime (res) {
|
||||
this.downLaSelect.time = res
|
||||
console.log(res, '被选中的')
|
||||
this.downLaSelect = res.indexID
|
||||
},
|
||||
// 接收子组件传值新增指标
|
||||
emitStatesd (val) {
|
||||
@@ -940,8 +1096,37 @@ export default {
|
||||
// 重置参数
|
||||
prentsState (val) {
|
||||
this.stateTells = val
|
||||
this.labelAreaState = true
|
||||
},
|
||||
// 改变状态
|
||||
stateDataGet (val) {
|
||||
this.stateDataGetVal = val
|
||||
},
|
||||
stateDFGHJ (val) {
|
||||
this.stateDataGetVal = val
|
||||
this.labelAreaState = false
|
||||
},
|
||||
// 地区数据下拉发生变化
|
||||
statertfResu (val) {
|
||||
console.log(val, '1010110')
|
||||
this.downLaSelectArea = val
|
||||
},
|
||||
// 重置清除空行空列状态
|
||||
statertyui (val) {
|
||||
this.showTableState = val
|
||||
},
|
||||
// 重置维度转换状态
|
||||
emmitStateAd (val) {
|
||||
// this.areaDimensionStateS = val
|
||||
},
|
||||
// 重置高级查询状态
|
||||
tellParentsShowClos (val) {
|
||||
this.advancedStates = val
|
||||
},
|
||||
// 改变状态
|
||||
tellChangeFan (val) {
|
||||
this.labelAreaStateks = val
|
||||
}
|
||||
|
||||
},
|
||||
computed: {
|
||||
// 计算字符串
|
||||
@@ -984,16 +1169,6 @@ export default {
|
||||
// console.log(this.$route.query.type)
|
||||
this.initValue = this.computedNumberPx(200)
|
||||
console.log(this.computedNumberPx(200))
|
||||
// this.$detector().listenTo(this.$refs.leftHeight, (element) => {
|
||||
// console.log(element)
|
||||
// var width = element.offsetWidth
|
||||
// var height = element.offsetHeight
|
||||
// // this.$nextTick(() => {
|
||||
// console.log('Size: ' + width + 'x' + height)
|
||||
// // 使echarts尺寸重置
|
||||
// this.leftHeights = height / (160 / ((1920 - 17) / document.body.clientWidth) / 10)
|
||||
// // })
|
||||
// })
|
||||
// 获取菜单信息
|
||||
this.getCateData()
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="cont">
|
||||
<!-- 全局搜索 -->
|
||||
<search></search>
|
||||
<div class="cont_content">
|
||||
<div class="cont_content" v-if="cont_basic.length>0">
|
||||
<div class="header">
|
||||
<div class="left">个人中心</div>
|
||||
<div class="right">
|
||||
@@ -92,11 +92,15 @@
|
||||
@current-change="currentChange"
|
||||
></el-pagination>
|
||||
</div>
|
||||
<div class="collect_no" v-if="!collect">暂无收藏记录</div>
|
||||
<div
|
||||
class="collect_no"
|
||||
v-if="!collect"
|
||||
>{{!collect?collect.length!==0?'':'暂无收藏记录':'加载中...'}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="cont_basic.length===0" class="cont_content_basic">数据加载中...</div>
|
||||
</div>
|
||||
|
||||
<!-- 页脚信息 -->
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<div class="content_cont">
|
||||
<!-- 主内容 -->
|
||||
<div class="mainCont">
|
||||
<div class="mainCont_content">
|
||||
<div class="mainCont_content" v-if="pageConfiguration.countSize!==0">
|
||||
<div class="header">
|
||||
<div class="left">相关搜索约为 {{pageConfiguration.countSize}} 条</div>
|
||||
<div class="right">
|
||||
@@ -52,8 +52,8 @@
|
||||
@current-change="currentChange"
|
||||
></el-pagination>
|
||||
</div>
|
||||
<div v-if="pageConfiguration.countSize===0" style="height:20rem;width:100%;display:flex;align-items:center;justify-content:center;font-size:1.56rem;">哎呦,没有搜到结果呦!再试一遍吧!</div>
|
||||
</div>
|
||||
<div v-if="pageConfiguration.countSize===0" style="height:20rem;width:100%;display:flex;align-items:center;justify-content:center;font-size:1.56rem;">哎呦,没有搜到结果呦!再试一遍吧!</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -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: '年度数据' }
|
||||
],
|
||||
// 分页
|
||||
// 分页配置
|
||||
|
||||
Reference in New Issue
Block a user