diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 7fb9ee6cf..77c23e377 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -62,6 +62,7 @@ export default defineComponent({ }, searchTableSelectionsList:[],//回显列表 selectionColor: propTypes.bool.def(false), + rowKey: propTypes.string.def(''), }, emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort','getSelectionRows'], setup(props, { attrs, slots, emit, expose }) { @@ -388,6 +389,7 @@ export default defineComponent({ onSelect-all={selectAll} onSelection-change={selectionChange} onSort-change={sortChange} + row-key={unref(getProps).rowKey} {...unref(getBindValue)} > {{ diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 03c07ece7..4a972c1e1 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -884,6 +884,7 @@ export default { 共:'Total', 打开:'Open', 保存:'Save', + 下一步:'Next', 请选择筛选对象:'Please select filter', 请输入内容:'Please inputr content', 附件:'Attachment', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 7f47117c5..8b311e52c 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -884,6 +884,7 @@ export default { 共:'共', 打开:'打开', 保存:'保存', + 下一步:'下一步', 请选择筛选对象:'请选择筛选对象', 请输入内容:'请输入内容', 附件:'附件', diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 0e13e51f7..f18e42998 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -236,7 +236,19 @@ export function formStagingBtn(option:any) { hasPermi: '' }) } - +// form表单-下一步按钮 +export function formNextStepBtn(option:any) { + return __defaultBtnOption(option,{ + label: t(`ts.下一步`).replace('ts.', ''), + name: 'nextStep', + hide: false, + type: 'primary', + icon: 'ep:select', + color: '', + float:'right', + hasPermi: '' + }) +} // drawer抽屉头部-编辑按钮 export function drawerEditBtn(option:any) { diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue index 4f25372ad..bbd6a7ee5 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue @@ -30,6 +30,7 @@ v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" + rowKey="id" > --> + + \ No newline at end of file