diff --git a/src/views/personalCenter/taskCareOf/table/BasicLibraryInfo.vue b/src/views/personalCenter/taskCareOf/table/BasicLibraryInfo.vue index 3859b07a..ad1e966d 100644 --- a/src/views/personalCenter/taskCareOf/table/BasicLibraryInfo.vue +++ b/src/views/personalCenter/taskCareOf/table/BasicLibraryInfo.vue @@ -49,7 +49,7 @@ :can-drag="true" :scroll="{x: '100%', y: yScrollHeight}" ref="table" - :rowKey="(record) => {return record.id + '-' + record.type}" + :rowKey="(record) => {return record.id + ',' + record.type}" :columns="columns" :dataSource="dataSource" :pagination="ipagination" @@ -157,7 +157,7 @@ export default { customRender: (value, row, index) => { return @@ -193,8 +193,8 @@ export default { return } const param = {} - param.id = fieldName.split('-')[0] - param.type = fieldName.split('-')[1] + param.id = fieldName.split(',')[0] + param.type = fieldName.split(',')[1] param.transferUser = value this.loading = true basicInfoTransfer(param).then(res => { @@ -207,7 +207,7 @@ export default { }) }, userNameChange (value, fieldName) { - const data = this.dataSource.find(item => item.id === fieldName.split('-')[0]) + const data = this.dataSource.find(item => item.id === fieldName.split(',')[0]) data.transferUser_dictText = value }, // 批量转交 @@ -224,8 +224,8 @@ export default { const params = [] for (const item of this.selectedRowKeys) { const param = {} - param.id = item.split('-')[0] - param.type = item.split('-')[1] + param.id = item.split(',')[0] + param.type = item.split(',')[1] param.transferUser = value params.push(param) }