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