Commit 21718837 authored by yht15023815643's avatar yht15023815643

排序

parent cafbb253
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
:resizable="false"> :resizable="false">
<template slot-scope="scope">{{ queryParams.pageNum * queryParams.pageSize - queryParams.pageSize + scope.$index + 1 }}</template> <template slot-scope="scope">{{ queryParams.pageNum * queryParams.pageSize - queryParams.pageSize + scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<template v-for="item in forData"> <template >
<el-table-column <el-table-column
v-for="(item,index) in forData"
:key="index"
:label="item.label" :label="item.label"
:prop="item.prop" :prop="item.prop"
:width="item.width" :width="item.width"
......
...@@ -94,7 +94,6 @@ export default { ...@@ -94,7 +94,6 @@ export default {
}, },
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await historySendPage(param) let res = await historySendPage(param)
......
...@@ -83,11 +83,8 @@ export default { ...@@ -83,11 +83,8 @@ export default {
}, },
//排序 //排序
sortChange(e){ sortChange(e){
console.log(e)
let item = this.forData.find(item => item.prop === e.prop) let item = this.forData.find(item => item.prop === e.prop)
this.queryParams.sort = item[e.order] this.queryParams.sort = item[e.order]
console.log(this.queryParams)
this.handleSearch() this.handleSearch()
} }
} }
......
...@@ -83,7 +83,6 @@ export default { ...@@ -83,7 +83,6 @@ export default {
}, },
methods: { methods: {
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await creditXzxkPage(param) let res = await creditXzxkPage(param)
......
...@@ -123,7 +123,6 @@ export default { ...@@ -123,7 +123,6 @@ export default {
} }
}, },
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = this.getAreaList(params || this.queryParams) let param = this.getAreaList(params || this.queryParams)
let res = await bidNoticePage(param) let res = await bidNoticePage(param)
......
...@@ -92,7 +92,6 @@ export default { ...@@ -92,7 +92,6 @@ export default {
} }
}, },
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await bidPlanPage(param) let res = await bidPlanPage(param)
......
...@@ -73,7 +73,6 @@ export default { ...@@ -73,7 +73,6 @@ export default {
}, },
methods: { methods: {
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await specialDebtProjectPage(param) let res = await specialDebtProjectPage(param)
......
...@@ -90,7 +90,6 @@ export default { ...@@ -90,7 +90,6 @@ export default {
} }
}, },
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await landTransactionPage(param) let res = await landTransactionPage(param)
......
...@@ -80,7 +80,6 @@ export default { ...@@ -80,7 +80,6 @@ export default {
}, },
methods: { methods: {
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await approvalProjectPage(param) let res = await approvalProjectPage(param)
......
...@@ -129,7 +129,6 @@ export default { ...@@ -129,7 +129,6 @@ export default {
} }
}, },
async handleQuery(params) { async handleQuery(params) {
this.isSkeleton = true;
this.tableLoading = true this.tableLoading = true
let param = params?params:this.queryParams let param = params?params:this.queryParams
let res = await bidNoticeProPage(param) let res = await bidNoticeProPage(param)
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</el-popover> </el-popover>
</div> </div>
<span style="float: left;" :class="!labelArr.includes(companyInfo.businessStatus)?'label-bg1':'label-bg3'" v-if="companyInfo.businessStatus">{{companyInfo.businessStatus}}</span> <span style="float: left;" :class="!labelArr.includes(companyInfo.businessStatus)?'label-bg1':'label-bg3'" v-if="companyInfo.businessStatus">{{companyInfo.businessStatus}}</span>
<span style="float: left;" :class="item.state===0?'label-bg2':'label-bg3'" v-for="(item, index) in labelList" :key="index">{{item.labelName}}</span> <span style="float: left;" :style="'background:'+item.bgColor+';color:'+item.fontColor" v-for="(item, index) in labelList" :key="index">{{item.labelName}}</span>
<template v-if="enterpriseLabel.length > 0"> <template v-if="enterpriseLabel.length > 0">
<template v-for="(item,index) in enterpriseLabel"> <template v-for="(item,index) in enterpriseLabel">
<template v-if="item.children.length > 0"> <template v-if="item.children.length > 0">
......
...@@ -340,7 +340,6 @@ export default { ...@@ -340,7 +340,6 @@ export default {
}, },
handleQuery(params){ handleQuery(params){
this.isSkeleton = true
let data = params ? params : this.queryParams let data = params ? params : this.queryParams
urbanInvestmentPage(data).then(res => { urbanInvestmentPage(data).then(res => {
this.tableData = res.data.list this.tableData = res.data.list
......
...@@ -70,9 +70,9 @@ ...@@ -70,9 +70,9 @@
</div> </div>
<div class="count">共{{ localList1Total }}条</div> <div class="count">共{{ localList1Total }}条</div>
<!-- 省管国企 --> <!-- 省管国企 -->
<div class="child-wrap" id="管国企">
<div class="anchor"></div> <div class="anchor"></div>
<div class="count1" >{{provinceId=='110000'||provinceId=='120000'||provinceId=='500000'||provinceId=='310000'?'市':'省'}}管国企<span> {{ localList.total }}</span></div> <div class="count1" >{{provinceId=='110000'||provinceId=='120000'||provinceId=='500000'||provinceId=='310000'?'市':'省'}}管国企<span> {{ localList.total }}</span></div>
<div class="child-wrap" >
<template v-for="(item,index) in localList.local"> <template v-for="(item,index) in localList.local">
<div class="infinite-list-item" v-if="index<localListPage*12" :key="index" @click="selCompany(item)" > <div class="infinite-list-item" v-if="index<localListPage*12" :key="index" @click="selCompany(item)" >
<!-- <img :src="item.logo" alt="" > --> <!-- <img :src="item.logo" alt="" > -->
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<el-divider v-if="localList.total>localListPage*12" @click="localListPage++">更多<span></span></el-divider> <el-divider v-if="localList.total>localListPage*12" @click="localListPage++">更多<span></span></el-divider>
</div> </div>
<!-- 市区国企 --> <!-- 市区国企 -->
<div class="child-wrap" :id="item.type" v-for="(item,index) in localList1" :key="index"> <div class="child-wrap" :id="item.address" v-for="(item,index) in localList1" :key="index">
<div class="anchor"></div> <div class="anchor"></div>
<div class="count1" >{{item.address}}<span> {{ item.total }}</span></div> <div class="count1" >{{item.address}}<span> {{ item.total }}</span></div>
<div :key="index"> <div :key="index">
...@@ -126,11 +126,11 @@ ...@@ -126,11 +126,11 @@
</template> </template>
</div> </div>
<div v-if="activeIndex==1||activeIndex==3" class="anchor_box" > <div v-if="activeIndex!=0" class="anchor_box" :class="activeIndex==2?'anchor_box1':''">
<div class="anchor_wrap"> <div class="anchor_wrap">
<div class="anchor_item" v-for="(item,i) in childList" <div class="anchor_item" v-for="(item,i) in childList"
:class="anchorIndex==i?'active_anchor_item':''" :key="i" @click="anchorClick(i)"> :class="anchorIndex==i?'active_anchor_item':''" :key="i" @click="anchorClick(i)">
{{item.type}} {{item.type||item.address=='管国企'?provinceId=='110000'||provinceId=='120000'||provinceId=='500000'||provinceId=='310000'?'市管国企':'省管国企':item.address}}
</div> </div>
</div> </div>
</div> </div>
...@@ -229,7 +229,6 @@ export default { ...@@ -229,7 +229,6 @@ export default {
this.activeIndex=index; this.activeIndex=index;
if(index==1){ if(index==1){
this.listenerFunction(); this.listenerFunction();
api.centralEnterprseChild().then(res=>{ api.centralEnterprseChild().then(res=>{
if(res.code==200){ if(res.code==200){
if(res.data.list.length>0){ if(res.data.list.length>0){
...@@ -259,6 +258,7 @@ export default { ...@@ -259,6 +258,7 @@ export default {
} }
this.localList1 = res.data.list; this.localList1 = res.data.list;
this.localList1Total = res.data.total; this.localList1Total = res.data.total;
this.childList = [{address:'管国企'}].concat(this.localList1)
} }
}) })
}else if(index==3){ }else if(index==3){
...@@ -282,18 +282,12 @@ export default { ...@@ -282,18 +282,12 @@ export default {
document.addEventListener('scroll', this.handleScroll, true); document.addEventListener('scroll', this.handleScroll, true);
} }
}, },
offsetHeightFn(){
let arr = []
for(var i in this.childList){
arr.push(document.getElementById(this.childList[i].type).offsetHeight)
}
return arr
},
handleScroll() { handleScroll() {
for(var i in this.childList){ for(var i in this.childList){
if (window.scrollY > document.getElementById(this.childList[i].type).offsetTop+144) { if(this.childList[i].type&&window.scrollY > document.getElementById(this.childList[i].type).offsetTop+144||window.scrollY > document.getElementById(this.childList[i].address).offsetTop+244){
this.anchorIndex = i this.anchorIndex = i
} }
} }
}, },
anchorTopFn(i) { anchorTopFn(i) {
...@@ -302,12 +296,15 @@ export default { ...@@ -302,12 +296,15 @@ export default {
if (document.getElementById(this.childList[j].type)) { if (document.getElementById(this.childList[j].type)) {
top = document.getElementById(this.childList[j].type).offsetHeight top = document.getElementById(this.childList[j].type).offsetHeight
} }
if (document.getElementById(this.childList[j].address)) {
top = document.getElementById(this.childList[j].address).offsetHeight
}
} }
return top return top
}, },
anchorClick(i) { anchorClick(i) {
this.anchorIndex = i this.anchorIndex = i
var a = document.getElementById(this.childList[i].type) var a = document.getElementById(this.childList[i].type)||document.getElementById(this.childList[i].address)
if (a) { if (a) {
a.scrollIntoView() a.scrollIntoView()
document.body.scrollTop += -56 document.body.scrollTop += -56
...@@ -592,6 +589,9 @@ export default { ...@@ -592,6 +589,9 @@ export default {
} }
} }
} }
.anchor_box1{
top:386px;
}
::v-deep .el-divider{ ::v-deep .el-divider{
width: calc(100% - 107px); width: calc(100% - 107px);
margin-top: 12px; margin-top: 12px;
......
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