From e950e419f1899e84011375f8a9597003ab816b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Wed, 28 Feb 2024 14:07:07 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/item/replaceItemDes/index.ts | 1 + src/views/eam/item/replaceItemDes/index.vue | 381 +++++++++--------- .../replaceItemDes/replaceItemDes.data.ts | 25 +- 3 files changed, 208 insertions(+), 199 deletions(-) diff --git a/src/api/eam/item/replaceItemDes/index.ts b/src/api/eam/item/replaceItemDes/index.ts index 502c819..4c7daf4 100644 --- a/src/api/eam/item/replaceItemDes/index.ts +++ b/src/api/eam/item/replaceItemDes/index.ts @@ -12,6 +12,7 @@ export interface AttachmentFileVO { // 查询备件台账列表 export const getReplaceItemDesPage = async (params) => { + params.funcCode="Replace_Item_Des" if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/views/eam/item/replaceItemDes/index.vue b/src/views/eam/item/replaceItemDes/index.vue index 9a74584..a20890e 100644 --- a/src/views/eam/item/replaceItemDes/index.vue +++ b/src/views/eam/item/replaceItemDes/index.vue @@ -4,29 +4,17 @@ - - + + - + }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" + v-model:sort="tableObject.sort"> diff --git a/src/views/eam/item/replaceItemDes/replaceItemDes.data.ts b/src/views/eam/item/replaceItemDes/replaceItemDes.data.ts index b4c4c8a..77def59 100644 --- a/src/views/eam/item/replaceItemDes/replaceItemDes.data.ts +++ b/src/views/eam/item/replaceItemDes/replaceItemDes.data.ts @@ -37,8 +37,9 @@ export const ReplaceItemDes = useCrudSchemas(reactive([ }, { label: '文件', - field: 'filePathList', + field: 'filePathListView', sort: 'custom', + isTable: false, table: { }, form: { @@ -48,6 +49,28 @@ export const ReplaceItemDes = useCrudSchemas(reactive([ } } }, + { + label: '文件', + field: 'filePathList', + sort: 'custom', + isTable: false, + isForm: false, + table: { + }, + form: { + component: 'UploadFile', + componentProps: { + + } + } + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false + }, { label: '操作', field: 'action',