fix 80110
This commit is contained in:
+10
-3
@@ -117,6 +117,7 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
|
:loading="tableLoading"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@change="handleTableChange"
|
@change="handleTableChange"
|
||||||
v-bind="$attrs">
|
v-bind="$attrs">
|
||||||
@@ -616,7 +617,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
businessId: null,
|
businessId: null,
|
||||||
isTransfer: false // 是否转办选人
|
isTransfer: false, // 是否转办选人
|
||||||
|
tableLoading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -968,12 +970,13 @@ export default {
|
|||||||
}
|
}
|
||||||
// 第三步选择标准
|
// 第三步选择标准
|
||||||
if (this.currentStep === 2) {
|
if (this.currentStep === 2) {
|
||||||
|
const lastStandardData = JSON.parse(JSON.stringify(this.standardDataSource))
|
||||||
this.standardDataSource = this.$refs.projectStandardTable.getData()
|
this.standardDataSource = this.$refs.projectStandardTable.getData()
|
||||||
console.log(this.standardDataSource)
|
const isDataEqual = lastStandardData.length === this.standardDataSource.length && this.standardDataSource.every(item => lastStandardData.findIndex(tt => tt.standardNumber === item.standardNumber && tt.decompositionOrderSource === item.decompositionOrderSource) !== -1)
|
||||||
if (!this.standardDataSource || this.standardDataSource.length === 0) {
|
if (!this.standardDataSource || this.standardDataSource.length === 0) {
|
||||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||||
flag = false
|
flag = false
|
||||||
} else {
|
} else if (!isDataEqual) {
|
||||||
this.getDispatchList()
|
this.getDispatchList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -986,6 +989,8 @@ export default {
|
|||||||
* 获取业务分派信息列表
|
* 获取业务分派信息列表
|
||||||
*/
|
*/
|
||||||
getDispatchList () {
|
getDispatchList () {
|
||||||
|
this.dataSource = []
|
||||||
|
this.tableLoading = true
|
||||||
const params = this.standardDataSource.map(item => {
|
const params = this.standardDataSource.map(item => {
|
||||||
return {
|
return {
|
||||||
sarFileSplitInfoId: item.sarFileSplitInfoId,
|
sarFileSplitInfoId: item.sarFileSplitInfoId,
|
||||||
@@ -1002,6 +1007,8 @@ export default {
|
|||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.tableLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user