Commit 9ccf7c3a authored by danfuman's avatar danfuman

修改

parent 617bcb01
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
"nprogress": "0.2.0", "nprogress": "0.2.0",
"quill": "1.3.7", "quill": "1.3.7",
"screenfull": "5.0.2", "screenfull": "5.0.2",
"sortablejs": "1.10.2", "sortablejs": "^1.15.0",
"vue": "2.6.12", "vue": "2.6.12",
"vue-count-to": "1.0.13", "vue-count-to": "1.0.13",
"vue-cropper": "0.5.5", "vue-cropper": "0.5.5",
......
...@@ -364,7 +364,10 @@ ul, li { ...@@ -364,7 +364,10 @@ ul, li {
background: #DCEBFF; background: #DCEBFF;
} }
.el-table__fixed{ .el-table__fixed{
bottom:0 !important; //bottom:0 !important;
.el-table__body{
padding-bottom:16px;
}
tr:nth-child(2n){ tr:nth-child(2n){
background-color: #F8FBFF; background-color: #F8FBFF;
} }
...@@ -394,7 +397,7 @@ ul, li { ...@@ -394,7 +397,7 @@ ul, li {
} }
} }
} }
} }
.el-table__body tr.hover-row > td.el-table__cell{ .el-table__body tr.hover-row > td.el-table__cell{
background-color: #DCEBFF; background-color: #DCEBFF;
......
...@@ -422,7 +422,6 @@ export default { ...@@ -422,7 +422,6 @@ export default {
cbxmzs:'193', cbxmzs:'193',
cbxmzje:'123', cbxmzje:'123',
}, },
], ],
gjjlData:[ gjjlData:[
{ {
...@@ -672,7 +671,6 @@ export default { ...@@ -672,7 +671,6 @@ export default {
global: false global: false
} }
}, },
}, },
{ {
data: this.jyfxData1.map(item => item.dcjzje), data: this.jyfxData1.map(item => item.dcjzje),
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
element-loading-text="Loading" element-loading-text="Loading"
border border
fit fit
height="640"
@sort-change="sortChange" @sort-change="sortChange"
highlight-current-row highlight-current-row
v-if="tableDataTotal > 0 && !isSkeleton" v-if="tableDataTotal > 0 && !isSkeleton"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
element-loading-text="Loading" element-loading-text="Loading"
@sort-change="sortChange" @sort-change="sortChange"
border border
height="640"
highlight-current-row highlight-current-row
v-if="tableDataTotal > 0 && !isSkeleton" v-if="tableDataTotal > 0 && !isSkeleton"
:default-sort = "{prop: 'gdp', order: 'descending'}" :default-sort = "{prop: 'gdp', order: 'descending'}"
...@@ -153,22 +154,12 @@ ...@@ -153,22 +154,12 @@
this.getYears() this.getYears()
}, },
mounted() { mounted() {
// window.addEventListener("scroll",this.scrolling)
}, },
beforeDestroy() { beforeDestroy() {
// window.removeEventListener("scroll", this.scrolling);
}, },
methods: { methods: {
scrolling() {
// let el = document.getElementsByClassName("el-table__fixed-header-wrapper")[0]
// let scrollTop =window.pageYOffset ||document.documentElement.scrollTop ||document.body.scrollTop;
// if (scrollTop>138){
// let top = scrollTop-138
// el.style.top = top+'px'
// }else{
// el.style.top = 0
// }
},
getYears(){ getYears(){
getYears({}).then(res => { getYears({}).then(res => {
this.yearOptions=res.data.reverse(); this.yearOptions=res.data.reverse();
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</div> </div>
<div class="table-item"> <div class="table-item">
<el-table <el-table
:data="tableData1" :data="dataList"
border border
height="430" height="430"
fit fit
...@@ -155,6 +155,7 @@ export default { ...@@ -155,6 +155,7 @@ export default {
}, },
], ],
tableData1:[], tableData1:[],
dataList:[],
dataSort:[ dataSort:[
{ {
label:'', label:'',
...@@ -234,13 +235,15 @@ export default { ...@@ -234,13 +235,15 @@ export default {
getDataByMonth(params){ getDataByMonth(params){
countGroupByMonth(params).then(res => { countGroupByMonth(params).then(res => {
this.tableData1=res.data; this.tableData1=res.data;
let companyValue1 = JSON.parse(JSON.stringify(this.tableData1)) this.dataList=res.data;
let arr = this.tableData1.sort((a, b) => { let dataList=res.data
let dataArr = JSON.parse(JSON.stringify(dataList))
let arr = dataList.sort((a, b) => {
return b.count - a.count return b.count - a.count
}) })
this.tableData1 = JSON.parse(JSON.stringify(companyValue1))
this.dataSort=arr; this.dataSort=arr;
this.initChart1() this.initChart1()
this.dataList = JSON.parse(JSON.stringify(dataArr))
}) })
}, },
initChart() { initChart() {
......
...@@ -153,6 +153,7 @@ ...@@ -153,6 +153,7 @@
element-loading-text="Loading" element-loading-text="Loading"
@sort-change="sortChange" @sort-change="sortChange"
border border
height="640"
fit fit
highlight-current-row highlight-current-row
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment