update 项目合规流程
This commit is contained in:
+3
-1
@@ -967,6 +967,7 @@ export default {
|
||||
this.$refs.userSelectModal.open()
|
||||
},
|
||||
handleBatchSelectorOk (list) {
|
||||
// 转办不走这个方法
|
||||
if (this.isTransfer) {
|
||||
return
|
||||
}
|
||||
@@ -991,7 +992,8 @@ export default {
|
||||
return
|
||||
}
|
||||
this.dataSource.forEach((item, index) => {
|
||||
if (this.selectedRowKeys.includes(index)) {
|
||||
// 给可选人的数据赋值
|
||||
if (this.selectedRowKeys.includes(index) && 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)
|
||||
|
||||
+18
-5
@@ -12,7 +12,7 @@
|
||||
:can-drag="true"
|
||||
:scroll="{x: '100%'}"
|
||||
ref="table"
|
||||
rowKey="id"
|
||||
rowKey="tableRowKey"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
@@ -128,9 +128,13 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
echoDataSource: {
|
||||
handler() {
|
||||
handler () {
|
||||
if (this.echoDataSource && this.echoDataSource.length > 0) {
|
||||
this.dataSource = JSON.parse(JSON.stringify(this.echoDataSource))
|
||||
const data = JSON.parse(JSON.stringify(this.echoDataSource))
|
||||
this.dataSource = data.map((item, index) => {
|
||||
item.tableRowKey = index
|
||||
return item
|
||||
})
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
@@ -139,6 +143,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleAdd () {
|
||||
this.$refs.selectStandardDrawer.selectedRowKeys = this.dataSource.map(tt => tt.standardNumber)
|
||||
this.$refs.selectStandardDrawer.open(this.projectId)
|
||||
},
|
||||
batchDel () {
|
||||
@@ -150,7 +155,14 @@ export default {
|
||||
title: this.$t('confirmBatchDeletion'),
|
||||
content: this.$t('deleteAData'),
|
||||
onOk: () => {
|
||||
this.dataSource = []
|
||||
let data = JSON.parse(JSON.stringify(this.dataSource))
|
||||
this.dataSource = data.map(item => {
|
||||
if (this.selectedRowKeys.includes(item.tableRowKey)) {
|
||||
return null
|
||||
}
|
||||
return item
|
||||
}).filter(tt => !!tt)
|
||||
console.log(this.dataSource)
|
||||
this.selectedRowKeys = []
|
||||
this.rowIds = []
|
||||
}
|
||||
@@ -160,7 +172,7 @@ export default {
|
||||
this.selectedRowKeys = selectedRowKeys
|
||||
},
|
||||
handleOk (rows) {
|
||||
this.dataSource = rows.map(item => {
|
||||
this.dataSource = rows.map((item, index) => {
|
||||
// 默认选中不带入
|
||||
if (!item.decompositionOrderSource) {
|
||||
item.decompositionOrderSource = '0'
|
||||
@@ -174,6 +186,7 @@ export default {
|
||||
return dictItem
|
||||
})
|
||||
}
|
||||
item.tableRowKey = index
|
||||
return item
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user