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">