|
@@ -290,6 +290,7 @@
|
|
import { getAction } from '@/api/manage'
|
|
import { getAction } from '@/api/manage'
|
|
import ContrastModal from '../projectXushiContrast/contrastModal.vue'
|
|
import ContrastModal from '../projectXushiContrast/contrastModal.vue'
|
|
import ProjectImportListModal from '../projectImportList/modules/ProjectImportListModal.vue'
|
|
import ProjectImportListModal from '../projectImportList/modules/ProjectImportListModal.vue'
|
|
|
|
+import { number } from 'echarts';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'ProjectCostList',
|
|
name: 'ProjectCostList',
|
|
@@ -303,6 +304,18 @@
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ /* 分页参数 */
|
|
|
|
+ // ipagination:{
|
|
|
|
+ // current: 1,
|
|
|
|
+ // pageSize: 11,
|
|
|
|
+ // pageSizeOptions: ['10', '20', '30'],
|
|
|
|
+ // showTotal: (total, range) => {
|
|
|
|
+ // return range[0] + "-" + range[1] + " 共" + total + "条"
|
|
|
|
+ // },
|
|
|
|
+ // showQuickJumper: true,
|
|
|
|
+ // showSizeChanger: true,
|
|
|
|
+ // total: 0
|
|
|
|
+ // },
|
|
description: '项目成本管理页面',
|
|
description: '项目成本管理页面',
|
|
// 一键折叠/展开
|
|
// 一键折叠/展开
|
|
expandedRowKeys: [],
|
|
expandedRowKeys: [],
|
|
@@ -635,6 +648,8 @@
|
|
this.ipagination.current = 1;
|
|
this.ipagination.current = 1;
|
|
}
|
|
}
|
|
var params = this.getQueryParams();//查询条件
|
|
var params = this.getQueryParams();//查询条件
|
|
|
|
+ console.log(params)
|
|
|
|
+ params.pageSize = (Number(params.pageSize) - 1).toString()
|
|
this.loading = true;
|
|
this.loading = true;
|
|
getAction(this.url.list, params).then((res) => {
|
|
getAction(this.url.list, params).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
@@ -642,7 +657,7 @@
|
|
this.dataSource = res.result.pageList.records||res.result.pageList;
|
|
this.dataSource = res.result.pageList.records||res.result.pageList;
|
|
var amount = res.result.projectCostHuijiSum
|
|
var amount = res.result.projectCostHuijiSum
|
|
amount.taskno = '筛选合计:'
|
|
amount.taskno = '筛选合计:'
|
|
- amount.id = 'amount'
|
|
|
|
|
|
+ amount.id = 'amount'+res.result.pageList.current
|
|
this.dataSource.unshift(amount)
|
|
this.dataSource.unshift(amount)
|
|
if(res.result.pageList.total)
|
|
if(res.result.pageList.total)
|
|
{
|
|
{
|
|
@@ -650,6 +665,7 @@
|
|
}else{
|
|
}else{
|
|
this.ipagination.total = 0;
|
|
this.ipagination.total = 0;
|
|
}
|
|
}
|
|
|
|
+ console.log(this.dataSource)
|
|
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
}else{
|
|
}else{
|
|
this.$message.warning(res.message)
|
|
this.$message.warning(res.message)
|