fix 80054、80501

This commit is contained in:
赵霄
2024-01-10 11:30:20 +08:00
parent a1d1dbc908
commit 63befff680
@@ -102,11 +102,15 @@
<!--业务分派信息-->
<template v-if="showDispatchAndApprovalInfo">
<div class="process-part-title">{{ middlePartTitle }}</div>
<div class="table-operator">
<div class="table-operator" v-if="!showExpandTable">
<!--批量选择人员-->
<a-button type="primary" ghost @click="batchSelector" v-if="!showExpandTable">
<a-button type="primary" ghost @click="batchSelector">
{{ $t('workCenter.projectComplianceEvaluationProcess.batchSelector') }}
</a-button>
<!--批量删除-->
<a-button type="primary" icon="delete" ghost @click="batchDel">
{{ $t('batchDelete') }}
</a-button>
</div>
<div v-if="!showExpandTable">
<j-table
@@ -1101,19 +1105,34 @@ export default {
}
this.dataSource.forEach((item, index) => {
// 给可选人的数据赋值
if (this.selectedRowKeys.includes(index) && item.canAssignFlag + '' === '1') {
if (this.selectedRowKeys.includes(item.tableRowKey) && item.canAssignFlag + '' === '1') {
item[fieldName] = list.map(tt => tt.id).join(',')
item[fieldName + '_dictText'] = list.map(tt => tt.realname + '(' + tt.username + ')').join(',')
this.$set(this.dataSource, index, item)
}
})
console.log(this.dataSource)
this.selectedRowKeys = []
},
onSelectChange (selectedRowKeys) {
console.log(selectedRowKeys)
this.selectedRowKeys = selectedRowKeys
},
/**
* 批量删除
*/
batchDel () {
if (!this.selectedRowKeys || this.selectedRowKeys.length === 0) {
this.$message.warning(this.$t('selectARecord'))
return
}
this.$confirm({
title: this.$t('confirmBatchDeletion'),
content: this.$t('deleteAData'),
onOk: () => {
this.dataSource = this.dataSource.filter(tt => !this.selectedRowKeys.includes(tt.tableRowKey))
console.log(this.dataSource.map(tt => tt.tableRowKey))
}
})
},
/**
* 选择部门
* @param value