【update】-调试企业来款分类统计
This commit is contained in:
@@ -201,7 +201,23 @@ export default {
|
||||
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.selectedRowKeys = selectedRowKeys
|
||||
|
||||
@@ -94,7 +94,6 @@ export default {
|
||||
* @param value
|
||||
*/
|
||||
handleOk(value) {
|
||||
console.log('--------value---------', value)
|
||||
let company = {id: undefined, companyName: undefined}
|
||||
// 多选的时候 全部放在一起,以逗号分隔
|
||||
if (this.isMultiple) {
|
||||
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
form: this.$form.createForm(this),
|
||||
model: {},
|
||||
url: {
|
||||
// todo 修改接口名称
|
||||
// 接口名称
|
||||
edit: '/paymentRecord/payPaymentRecord/editReceivableAmount'
|
||||
},
|
||||
labelCol: {
|
||||
|
||||
+9
-8
@@ -50,7 +50,7 @@
|
||||
rowKey="chargeCompanyId"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="false"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:scroll="{x: 1000}"
|
||||
@change="handleTableChange"
|
||||
@@ -304,14 +304,12 @@ export default {
|
||||
this.ipagination.current = 1
|
||||
}
|
||||
let params = this.getQueryParams()//查询条件
|
||||
console.log(params)
|
||||
this.loading = true
|
||||
getAction(this.url.list, params).then((res) => {
|
||||
if (res.success) {
|
||||
// 处理TableColumns 的数据
|
||||
// let columnsKeys = res.result.columns || []
|
||||
let syncColumns = this.getColumnsData(res.result.titleList || [])
|
||||
console.log("-------syncColumns----", syncColumns)
|
||||
this.columns = [firstColumnTop, ...defaultTableColumns, ...syncColumns]
|
||||
this.columnsFooter = [firstColumnFooter, ...defaultTableColumns, ...syncColumns]
|
||||
// this.dataSource = res.result.pageList.records
|
||||
@@ -336,11 +334,11 @@ export default {
|
||||
obj[col.dataIndex] = footerData[col.dataIndex] || '0.00' + ''
|
||||
})
|
||||
this.footerDataSource = [obj]
|
||||
// if (res.result.pageList.total) {
|
||||
// this.ipagination.total = res.result.pageList.total
|
||||
// } else {
|
||||
// this.ipagination.total = 0
|
||||
// }
|
||||
if (res.result.page.total) {
|
||||
this.ipagination.total = res.result.page.total
|
||||
} else {
|
||||
this.ipagination.total = 0
|
||||
}
|
||||
}
|
||||
if (this.dataSource.length > 0) {
|
||||
this.$nextTick(() => {
|
||||
@@ -387,6 +385,9 @@ export default {
|
||||
|
||||
// 隐藏主列表的横向滚动条
|
||||
.main-table {
|
||||
/deep/ .ant-table-thead th div{
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/deep/ .ant-table-body {
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
|
||||
+3
-2
@@ -79,7 +79,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
devServer: {
|
||||
port: 3000,
|
||||
port: 21825,
|
||||
proxy: {
|
||||
/* '/api': {
|
||||
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
||||
@@ -91,7 +91,8 @@ module.exports = {
|
||||
},*/
|
||||
'/jero-boot': {
|
||||
// ''
|
||||
target: 'http://localhost:8080', //请求本地 jero-boot后台项目
|
||||
// target: 'http://10.0.10.78:21824', //请求本地 jero-boot后台项目
|
||||
target: "http://localhost:21824", //
|
||||
ws: false,
|
||||
changeOrigin: true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user