Commit 82577c29 authored by yht15023815643's avatar yht15023815643

Merge branch 'dev20230707' of http://192.168.60.201/root/dsk-operate-sys into dev20230707

parents 21718837 37fda6c3
package com.dsk.common.core.domain.model; package com.dsk.common.core.domain.model;
import com.dsk.common.utils.DateUtils;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -17,11 +18,11 @@ public class IndexBigBidPageBody extends BasePage ...@@ -17,11 +18,11 @@ public class IndexBigBidPageBody extends BasePage
/** /**
* 开始时间 * 开始时间
*/ */
private Date timeStart; private Date timeStart = DateUtils.addDays(new Date(), -7);
/** /**
* 截止时间 * 截止时间
*/ */
private Date timeEnd; private Date timeEnd = new Date();
/** /**
* 金额起 默认2亿 * 金额起 默认2亿
*/ */
......
package com.dsk.common.core.domain.model; package com.dsk.common.core.domain.model;
import com.dsk.common.utils.DateUtils;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -16,11 +17,11 @@ public class IndexBigWinningBidsPageBody extends BasePage { ...@@ -16,11 +17,11 @@ public class IndexBigWinningBidsPageBody extends BasePage {
/** /**
* 开始时间 * 开始时间
*/ */
private Date timeStart; private Date timeStart = DateUtils.addDays(new Date(), -7);
/** /**
* 截止时间 * 截止时间
*/ */
private Date timeEnd; private Date timeEnd = new Date();
/** /**
* 金额起 默认2亿 * 金额起 默认2亿
*/ */
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
} }
.main-container { .main-container {
margin-left: 54px; margin-left: 48px;
} }
.submenu-title-noDropdown { .submenu-title-noDropdown {
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
:forData="forData" :forData="forData"
:tableDataTotal="tableDataTotal" :tableDataTotal="tableDataTotal"
:queryParams="queryParams" :queryParams="queryParams"
:MaxPage=500
@handle-current-change="handleCurrentChange" @handle-current-change="handleCurrentChange"
@sort-change="sortChange" @sort-change="sortChange"
> >
...@@ -91,13 +92,13 @@ ...@@ -91,13 +92,13 @@
companyType:'', companyType:'',
}, },
forData: [ forData: [
{label: '企业名称', prop: 'companyName', minWidth: '200', slot: true}, {label: '企业名称', prop: 'companyName', minWidth: '250', slot: true},
{label: '成员层级', prop: 'combineMemberLevel', minWidth: '100'}, {label: '成员层级', prop: 'combineMemberLevel', minWidth: '100'},
{label: '法定代表人', prop: 'corporatePerson', minWidth: '100'}, {label: '法定代表人', prop: 'corporatePerson', minWidth: '100'},
{label: '注册资本', prop: 'regCapital', minWidth: '150', sortable: 'custom', descending: '3', ascending: '4'}, {label: '注册资本', prop: 'regCapital', minWidth: '150', sortable: 'custom', descending: '3', ascending: '4'},
{label: '持股比例', prop: 'stockPercent', minWidth: '150', slot: true, sortable: 'custom', descending: '3', ascending: '4'}, {label: '持股比例', prop: 'stockPercent', minWidth: '100', slot: true, sortable: 'custom', descending: '3', ascending: '4'},
{label: '成立日期', prop: 'registeredDate', minWidth: '150'}, {label: '成立日期', prop: 'registeredDate', minWidth: '100'},
{label: '企业地区', prop: 'address', minWidth: '150'}, {label: '企业地区', prop: 'address', minWidth: '200'},
], ],
formData: [ formData: [
{ type: 4, fieldName: 'combineMemberLevels', value: '', placeholder: '成员层级', options:[]}, { type: 4, fieldName: 'combineMemberLevels', value: '', placeholder: '成员层级', options:[]},
...@@ -244,9 +245,11 @@ ...@@ -244,9 +245,11 @@
}, },
handleQuery(params){ handleQuery(params){
this.paramsData=params; this.paramsData=params;
this.tableLoading=true
let data = this.getAreaList(params || this.queryParams) let data = this.getAreaList(params || this.queryParams)
memberList(data).then(res=>{ memberList(data).then(res=>{
this.isSkeleton = false this.isSkeleton = false
this.tableLoading = false
if(res.code === 200){ if(res.code === 200){
this.tableData = res.rows this.tableData = res.rows
this.tableDataTotal = res.total this.tableDataTotal = res.total
...@@ -315,6 +318,7 @@ ...@@ -315,6 +318,7 @@
this.paramsData.companyType=this.queryParams.companyType this.paramsData.companyType=this.queryParams.companyType
this.paramsData.companyTypes=this.queryParams.companyTypes this.paramsData.companyTypes=this.queryParams.companyTypes
this.paramsData.pageNum =1 this.paramsData.pageNum =1
this.queryParams.pageNum =1
} }
this.handleQuery(this.paramsData ? this.paramsData : this.queryParams); this.handleQuery(this.paramsData ? this.paramsData : this.queryParams);
}, },
...@@ -328,6 +332,7 @@ ...@@ -328,6 +332,7 @@
if(this.paramsData){ if(this.paramsData){
this.paramsData.companyType=this.queryParams.companyType this.paramsData.companyType=this.queryParams.companyType
this.paramsData.pageNum =1 this.paramsData.pageNum =1
this.queryParams.pageNum =1
} }
} }
if(key === '2'){ if(key === '2'){
...@@ -361,6 +366,7 @@ ...@@ -361,6 +366,7 @@
this.paramsData.minStockPercent=this.queryParams.minStockPercent this.paramsData.minStockPercent=this.queryParams.minStockPercent
this.paramsData.maxStockPercent=this.queryParams.maxStockPercent this.paramsData.maxStockPercent=this.queryParams.maxStockPercent
this.paramsData.pageNum =1 this.paramsData.pageNum =1
this.queryParams.pageNum =1
} }
} }
this.handleQuery(this.paramsData ? this.paramsData : this.queryParams); this.handleQuery(this.paramsData ? this.paramsData : this.queryParams);
...@@ -368,7 +374,6 @@ ...@@ -368,7 +374,6 @@
getAreaList(params){ getAreaList(params){
if(params.province&&params.province.length>0){ if(params.province&&params.province.length>0){
let arr = this.$children[0].$refs.cascader[0].getCheckedNodes() let arr = this.$children[0].$refs.cascader[0].getCheckedNodes()
console.log(this.$children[0].$refs.cascader)
let provinceIds = [], cityIds = [], districtIds = [] let provinceIds = [], cityIds = [], districtIds = []
for (var i in arr) { for (var i in arr) {
if (arr[i].parent) { if (arr[i].parent) {
...@@ -406,6 +411,18 @@ ...@@ -406,6 +411,18 @@
this.pageIndex = 1; this.pageIndex = 1;
this.handleQuery() this.handleQuery()
}, },
//分页
handleCurrentChange(e){
let params = this.formParams()
params.pageNum = e
this.queryParams.pageNum = e
this.handleQuery(params)
setTimeout(() => {
this.$nextTick(() => {
this.$children[1].$refs.tableRef.bodyWrapper.scrollTop = 0
});
}, 500);
},
} }
} }
</script> </script>
...@@ -468,7 +485,7 @@ ...@@ -468,7 +485,7 @@
.wrap_label{ .wrap_label{
color: rgba(35,35,35,0.8); color: rgba(35,35,35,0.8);
margin-right: 12px; margin-right: 12px;
line-height: 30px; line-height: 24px;
width: 77px; width: 77px;
text-align: right; text-align: right;
/*float: left;*/ /*float: left;*/
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
:forData="forData" :forData="forData"
:MaxPage=500
:tableDataTotal="tableDataTotal" :tableDataTotal="tableDataTotal"
:queryParams="queryParams" :queryParams="queryParams"
@handle-current-change="handleCurrentChange" @handle-current-change="handleCurrentChange"
...@@ -39,6 +40,12 @@ ...@@ -39,6 +40,12 @@
<router-link :to="scope.row.projectUnitUipId?`/enterprise/${encodeStr(scope.row.projectUnitId)}`:`/company/${encodeStr(scope.row.projectUnitId)}`" tag="a" class="a-link" v-if="scope.row.projectUnitId&&scope.row.projectUnit" v-html="scope.row.projectUnit"></router-link> <router-link :to="scope.row.projectUnitUipId?`/enterprise/${encodeStr(scope.row.projectUnitId)}`:`/company/${encodeStr(scope.row.projectUnitId)}`" tag="a" class="a-link" v-if="scope.row.projectUnitId&&scope.row.projectUnit" v-html="scope.row.projectUnit"></router-link>
<div v-else v-html="scope.row.projectUnit || '--'"></div> <div v-else v-html="scope.row.projectUnit || '--'"></div>
</template> </template>
<template slot="stockPercent" slot-scope="scope">
<div>{{scope.row.stockPercent || '--'}}{{scope.row.stockPercent ? '%':''}}</div>
</template>
<template slot="bidAmount" slot-scope="scope">
<div>{{scope.row.bidAmount || '--'}}{{scope.row.bidAmount ? '万元':''}}</div>
</template>
</tables> </tables>
</div> </div>
</template> </template>
...@@ -67,9 +74,9 @@ ...@@ -67,9 +74,9 @@
forData: [ forData: [
{label: '中标时间', prop: 'bidTime',slot: true,minWidth: '80'}, {label: '中标时间', prop: 'bidTime',slot: true,minWidth: '80'},
{label: '中标成员', prop: 'companyName', slot: true,minWidth: '190'}, {label: '中标成员', prop: 'companyName', slot: true,minWidth: '190'},
{label: '持股比例(%)', prop: 'stockPercent',minWidth: '95'}, {label: '持股比例', prop: 'stockPercent',slot: true,minWidth: '95'},
{label: '项目名称', prop: 'projectName', slot: true,minWidth: '260'}, {label: '项目名称', prop: 'projectName', slot: true,minWidth: '260'},
{label: '中标金额(万元)', prop: 'bidAmount',minWidth: '110'}, {label: '中标金额', prop: 'bidAmount',slot: true,minWidth: '110'},
{label: '中标地区', prop: 'address',minWidth: '80'}, {label: '中标地区', prop: 'address',minWidth: '80'},
{label: '业绩类型', prop: 'boundType',minWidth: '100'}, {label: '业绩类型', prop: 'boundType',minWidth: '100'},
{label: '项目类型', prop: 'projectType',minWidth: '100'}, {label: '项目类型', prop: 'projectType',minWidth: '100'},
...@@ -159,6 +166,7 @@ ...@@ -159,6 +166,7 @@
this.tableData = res.code == 200 ? res.rows:[] this.tableData = res.code == 200 ? res.rows:[]
this.tableDataTotal = res.total this.tableDataTotal = res.total
this.isSkeleton = false this.isSkeleton = false
this.tableLoading = false
}) })
}, },
formatDate(timestamp) { formatDate(timestamp) {
...@@ -244,6 +252,17 @@ ...@@ -244,6 +252,17 @@
} }
return params return params
}, },
//分页
handleCurrentChange(e){
let params = this.formParams()
params.pageNum = e
this.queryParams.pageNum = e
this.handleQuery(params)
console.log(this.$children[1].$refs.tableRef.bodyWrapper.scrollTop)
setTimeout(() => {
// this.$children[1].$refs.tableRef.bodyWrapper.scrollTop = 0
}, 500);
},
} }
} }
</script> </script>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
:defaultSort="defaultSort" :defaultSort="defaultSort"
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
:MaxPage=500
:forData="forData" :forData="forData"
:tableDataTotal="tableDataTotal" :tableDataTotal="tableDataTotal"
:queryParams="queryParams" :queryParams="queryParams"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
v-loading="tableLoading" v-loading="tableLoading"
:data="tableData" :data="tableData"
element-loading-text="Loading" element-loading-text="Loading"
ref="tableRef"
border border
fit fit
highlight-current-row highlight-current-row
...@@ -130,6 +131,14 @@ export default { ...@@ -130,6 +131,14 @@ export default {
current_page: this.queryParams.pageNum, current_page: this.queryParams.pageNum,
show_page: this.paging show_page: this.paging
} }
},
watch:{
'queryParams.pageNum'(newVal,oldVal){
this.current_page=newVal
}
},
created() {
}, },
methods:{ methods:{
handleCurrentChange(e){ handleCurrentChange(e){
......
This diff is collapsed.
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