From 384273642a650379b14927a0759355c3bd2af2f4 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 18 Jan 2024 15:21:47 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BB=BB=E5=8A=A1=E8=BD=AC=E4=BA=A4?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E5=BA=93=E8=BD=AC=E4=BA=A4=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../taskCareOf/table/BasicLibraryInfo.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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) }