From 367115bf75301b416af60108b9b0ec89af50c542 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 11 Jan 2024 19:07:04 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug80276=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E4=BA=86=E5=B9=B4=E5=BA=A6=E5=88=B6=E4=BF=AE=E8=AE=A2?= =?UTF-8?q?=E7=9A=84=E4=B8=A4=E4=B8=AA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../selection/UserSelectByContact.vue | 2 +- .../selection/UserSelectByWorkGroup.vue | 2 +- src/components/selection/UserSelection.vue | 2 +- .../modules/OnlyTableForm.vue | 34 ++++++++++++-- .../modules/ContactSelectApproverBaseInfo.vue | 30 +++++++++--- .../modules/EngineerInitBaseInfo.vue | 47 +++++++++++++++---- .../modules/LeaderApproveSentBaseInfo.vue | 37 +++++++++++---- .../modules/TableBaseInfo.vue | 32 ++++++++++--- 8 files changed, 147 insertions(+), 39 deletions(-) diff --git a/src/components/selection/UserSelectByContact.vue b/src/components/selection/UserSelectByContact.vue index c96115f1..187e69c9 100644 --- a/src/components/selection/UserSelectByContact.vue +++ b/src/components/selection/UserSelectByContact.vue @@ -52,7 +52,7 @@ export default { }, // 修改的字段名 filedName: { - type: String, + type: [String, Number], default: '' }, // 回显输入框的类型,默认是input diff --git a/src/components/selection/UserSelectByWorkGroup.vue b/src/components/selection/UserSelectByWorkGroup.vue index 72ca8990..f6751c26 100644 --- a/src/components/selection/UserSelectByWorkGroup.vue +++ b/src/components/selection/UserSelectByWorkGroup.vue @@ -52,7 +52,7 @@ export default { }, // 修改的字段名 filedName: { - type: String, + type: [String, Number], default: '' }, // 回显输入框的类型,默认是input diff --git a/src/components/selection/UserSelection.vue b/src/components/selection/UserSelection.vue index 5ac3509d..f813fa1f 100644 --- a/src/components/selection/UserSelection.vue +++ b/src/components/selection/UserSelection.vue @@ -57,7 +57,7 @@ export default { }, // 修改的字段名 filedName: { - type: String, + type: [String, Number], default: '' }, // 回显输入框的类型,默认是input diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue index af95a952..8829aac0 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue @@ -25,12 +25,13 @@ :can-drag="true" :scroll="{x: '100%'}" ref="table" - :rowKey="(record, index) => { return index }" + :rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }" :columns="columns" :dataSource="dataSource" - :pagination="false" + :pagination="ipagination" :loading="loading" - :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"> + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" + @change="handleTableChange">