【update】-调试企业来款分类统计

This commit is contained in:
fengchenchen
2024-07-25 15:20:06 +08:00
parent 9484e4a058
commit 1ebdfba46b
5 changed files with 30 additions and 13 deletions
+17 -1
View File
@@ -201,7 +201,23 @@ export default {
resultArr.push(row) resultArr.push(row)
} }
}) })
this.selectedCompany = [...this.selectedCompany, ...resultArr] // 2024-07-25 当前页没有选择的数据
let unSelectedCompany = []
this.dataSource.map(tt => {
if(!selectedRowKeys.includes(tt.id)) {
unSelectedCompany.push(tt)
}
})
// 获取之前选择的 非本页的标准信息
let lastSelectedCompany = []
this.selectedCompany.forEach(row => {
let ele = unSelectedCompany.find(ele => ele.id === row.id)
if(!ele) {
lastSelectedCompany.push(row)
}
})
this.selectedCompany = [...lastSelectedCompany, ...resultArr]
// this.selectedCompany = selectionRows // this.selectedCompany = selectionRows
} }
this.selectedRowKeys = selectedRowKeys this.selectedRowKeys = selectedRowKeys
-1
View File
@@ -94,7 +94,6 @@ export default {
* @param value * @param value
*/ */
handleOk(value) { handleOk(value) {
console.log('--------value---------', value)
let company = {id: undefined, companyName: undefined} let company = {id: undefined, companyName: undefined}
// 多选的时候 全部放在一起,以逗号分隔 // 多选的时候 全部放在一起,以逗号分隔
if (this.isMultiple) { if (this.isMultiple) {
@@ -79,7 +79,7 @@ export default {
form: this.$form.createForm(this), form: this.$form.createForm(this),
model: {}, model: {},
url: { url: {
// todo 修改接口名称 // 接口名称
edit: '/paymentRecord/payPaymentRecord/editReceivableAmount' edit: '/paymentRecord/payPaymentRecord/editReceivableAmount'
}, },
labelCol: { labelCol: {
@@ -50,7 +50,7 @@
rowKey="chargeCompanyId" rowKey="chargeCompanyId"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="ipagination"
:loading="loading" :loading="loading"
:scroll="{x: 1000}" :scroll="{x: 1000}"
@change="handleTableChange" @change="handleTableChange"
@@ -304,14 +304,12 @@ export default {
this.ipagination.current = 1 this.ipagination.current = 1
} }
let params = this.getQueryParams()//查询条件 let params = this.getQueryParams()//查询条件
console.log(params)
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) {
// 处理TableColumns 的数据 // 处理TableColumns 的数据
// let columnsKeys = res.result.columns || [] // let columnsKeys = res.result.columns || []
let syncColumns = this.getColumnsData(res.result.titleList || []) let syncColumns = this.getColumnsData(res.result.titleList || [])
console.log("-------syncColumns----", syncColumns)
this.columns = [firstColumnTop, ...defaultTableColumns, ...syncColumns] this.columns = [firstColumnTop, ...defaultTableColumns, ...syncColumns]
this.columnsFooter = [firstColumnFooter, ...defaultTableColumns, ...syncColumns] this.columnsFooter = [firstColumnFooter, ...defaultTableColumns, ...syncColumns]
// this.dataSource = res.result.pageList.records // this.dataSource = res.result.pageList.records
@@ -336,11 +334,11 @@ export default {
obj[col.dataIndex] = footerData[col.dataIndex] || '0.00' + '' obj[col.dataIndex] = footerData[col.dataIndex] || '0.00' + ''
}) })
this.footerDataSource = [obj] this.footerDataSource = [obj]
// if (res.result.pageList.total) { if (res.result.page.total) {
// this.ipagination.total = res.result.pageList.total this.ipagination.total = res.result.page.total
// } else { } else {
// this.ipagination.total = 0 this.ipagination.total = 0
// } }
} }
if (this.dataSource.length > 0) { if (this.dataSource.length > 0) {
this.$nextTick(() => { this.$nextTick(() => {
@@ -387,6 +385,9 @@ export default {
// 隐藏主列表的横向滚动条 // 隐藏主列表的横向滚动条
.main-table { .main-table {
/deep/ .ant-table-thead th div{
white-space: pre-wrap;
}
/deep/ .ant-table-body { /deep/ .ant-table-body {
overflow-x: hidden !important; overflow-x: hidden !important;
} }
+3 -2
View File
@@ -79,7 +79,7 @@ module.exports = {
}, },
devServer: { devServer: {
port: 3000, port: 21825,
proxy: { proxy: {
/* '/api': { /* '/api': {
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统 target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
@@ -91,7 +91,8 @@ module.exports = {
},*/ },*/
'/jero-boot': { '/jero-boot': {
// '' // ''
target: 'http://localhost:8080', //请求本地 jero-boot后台项目 // target: 'http://10.0.10.78:21824', //请求本地 jero-boot后台项目
target: "http://localhost:21824", //
ws: false, ws: false,
changeOrigin: true changeOrigin: true
}, },