diff --git a/src/api/eam/item/itemAccounts/index.ts b/src/api/eam/item/itemAccounts/index.ts index e3e5524..88fb3d1 100644 --- a/src/api/eam/item/itemAccounts/index.ts +++ b/src/api/eam/item/itemAccounts/index.ts @@ -55,3 +55,9 @@ export const importTemplate = () => { export const replaceLocation = async (data: Array) => { return await request.post({url: `/eam/item-accounts/replaceLocation `, data }); }; + +// 备件不分页 + +export const getItemAccountsNoPage = async (params) => { + return await request.get({ url: `/eam/item-accounts/noPage`, params }) +} diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue index e47f397..1a031f8 100644 --- a/src/components/Detail/src/DetailDeviceLedger.vue +++ b/src/components/Detail/src/DetailDeviceLedger.vue @@ -196,11 +196,11 @@ :style="{height:'600px'}" > - + - 点击修改 + 提交 { } const submitDialogForm = async (type, row) => { + const { tableObject, tableMethods } = useTable({ + getListApi: props.apiPage, // 分页接口 + defaultParams : props.defaultParams + }) + detailAllSchemasRef.value = props.detailAllSchemas + tableObjectRef.value = tableObject + tableMethodsRef.value = tableMethods + tableObjectRef.value.tableList = [] + const { getList } = tableMethods await props.diaLogApiUpdate(row) dialogFormRef.value.dialogVisible = false await getList() @@ -936,6 +945,7 @@ function dialogUploadFile() { props.uploadImage(data).then((res) => { message.success('修改成功') getImage() + dialogUploadVisible.value = false }) } diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index fb2146c..2ffaf68 100644 --- a/src/views/eam/basic/item/index.vue +++ b/src/views/eam/basic/item/index.vue @@ -122,13 +122,6 @@ } } - /** 添加设备操作 */ - // const searchTableRef = ref() - // const openItem = (number : String) => { - // itemNumber.value = number; - // searchTableRef.value.open('设备列表', DeviceAccounts.allSchemas, DeviceAccountsApi.getDeviceAccountsPage(), null, Item.allSchemas.searchSchema, true, null, null, null, null); - // } - const searchTableRef = ref() /** 绑定备件操作 */ const openItem = async (number : String) => { diff --git a/src/views/eam/device/deviceAccounts/index.vue b/src/views/eam/device/deviceAccounts/index.vue index 6e3c831..0f44217 100644 --- a/src/views/eam/device/deviceAccounts/index.vue +++ b/src/views/eam/device/deviceAccounts/index.vue @@ -1,36 +1,20 @@