From 3f7c237ad4b63158667e0146cdb4575d4155bd9d Mon Sep 17 00:00:00 2001 From: yejiaxing <591141169@qq.com> Date: Thu, 18 Jan 2024 10:33:48 +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/views/eam/basic/deviceItem/index.vue | 22 +++---------------- .../deviceMoldItems/deviceMoldItems.data.ts | 4 ++-- src/views/eam/basic/deviceMoldItems/index.vue | 22 +++---------------- src/views/eam/basic/item/index.vue | 22 +++---------------- src/views/eam/basic/location/index.vue | 22 +++---------------- src/views/eam/basic/location/location.data.ts | 8 +++---- .../basic/locationArea/locationArea.data.ts | 8 +++---- src/views/eam/basic/supplier/index.vue | 22 +++---------------- src/views/eam/fixedAssets/index.vue | 6 ++--- 9 files changed, 28 insertions(+), 108 deletions(-) diff --git a/src/views/eam/basic/deviceItem/index.vue b/src/views/eam/basic/deviceItem/index.vue index c68e9b6..abcf425 100644 --- a/src/views/eam/basic/deviceItem/index.vue +++ b/src/views/eam/basic/deviceItem/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'eam:deviceItem:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:deviceItem:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:deviceItem:export'}), // 导出 + defaultButtons.defaultAddBtn(null), // 新增 + defaultButtons.defaultImportBtn(null), // 导入 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -211,21 +211,6 @@ const handleExport = async () => { } } -/** 导入 */ -const importFormRef = ref() -const handleImport = () => { - importFormRef.value.open() -} -// 导入附件弹窗所需的参数 -const importTemplateData = reactive({ - templateUrl: '', - templateTitle: '设备备件关系导入模版.xlsx' -}) -// 导入成功之后 -const importSuccess = () => { - getList() -} - // 筛选提交 const searchFormClick = (searchData) => { tableObject.params = { @@ -238,7 +223,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await DeviceItemApi.importTemplate() }) diff --git a/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts b/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts index 9e47695..142376a 100644 --- a/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts +++ b/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts @@ -29,7 +29,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, form: { - component: 'SelectV2' + component: 'Select' }, }, { @@ -38,7 +38,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, form: { - component: 'SelectV2' + component: 'Select' }, }, { diff --git a/src/views/eam/basic/deviceMoldItems/index.vue b/src/views/eam/basic/deviceMoldItems/index.vue index 7f375bf..50d3359 100644 --- a/src/views/eam/basic/deviceMoldItems/index.vue +++ b/src/views/eam/basic/deviceMoldItems/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'eam:deviceMoldItems:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:deviceMoldItems:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:deviceMoldItems:export'}), // 导出 + defaultButtons.defaultAddBtn(null), // 新增 + defaultButtons.defaultImportBtn(null), // 导入 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -211,21 +211,6 @@ const handleExport = async () => { } } -/** 导入 */ -const importFormRef = ref() -const handleImport = () => { - importFormRef.value.open() -} -// 导入附件弹窗所需的参数 -const importTemplateData = reactive({ - templateUrl: '', - templateTitle: '项记录表(设备 模具 保养 维修 巡检点检)导入模版.xlsx' -}) -// 导入成功之后 -const importSuccess = () => { - getList() -} - // 筛选提交 const searchFormClick = (searchData) => { tableObject.params = { @@ -238,7 +223,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await DeviceMoldItemsApi.importTemplate() }) diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index dad4937..6b0d7a3 100644 --- a/src/views/eam/basic/item/index.vue +++ b/src/views/eam/basic/item/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'eam:item:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:item:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:item:export'}), // 导出 + defaultButtons.defaultAddBtn(null), // 新增 + defaultButtons.defaultImportBtn(null), // 导入 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -211,21 +211,6 @@ const handleExport = async () => { } } -/** 导入 */ -const importFormRef = ref() -const handleImport = () => { - importFormRef.value.open() -} -// 导入附件弹窗所需的参数 -const importTemplateData = reactive({ - templateUrl: '', - templateTitle: '备件导入模版.xlsx' -}) -// 导入成功之后 -const importSuccess = () => { - getList() -} - // 筛选提交 const searchFormClick = (searchData) => { tableObject.params = { @@ -238,7 +223,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await ItemApi.importTemplate() }) diff --git a/src/views/eam/basic/location/index.vue b/src/views/eam/basic/location/index.vue index 4218c25..702e533 100644 --- a/src/views/eam/basic/location/index.vue +++ b/src/views/eam/basic/location/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'eam:location:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:location:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:location:export'}), // 导出 + defaultButtons.defaultAddBtn(null), // 新增 + defaultButtons.defaultImportBtn(null), // 导入 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -211,21 +211,6 @@ const handleExport = async () => { } } -/** 导入 */ -const importFormRef = ref() -const handleImport = () => { - importFormRef.value.open() -} -// 导入附件弹窗所需的参数 -const importTemplateData = reactive({ - templateUrl: '', - templateTitle: '库位导入模版.xlsx' -}) -// 导入成功之后 -const importSuccess = () => { - getList() -} - // 筛选提交 const searchFormClick = (searchData) => { tableObject.params = { @@ -238,7 +223,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await LocationApi.importTemplate() }) diff --git a/src/views/eam/basic/location/location.data.ts b/src/views/eam/basic/location/location.data.ts index bc972c7..8289828 100644 --- a/src/views/eam/basic/location/location.data.ts +++ b/src/views/eam/basic/location/location.data.ts @@ -45,9 +45,9 @@ export const Location = useCrudSchemas(reactive([ field: 'type', sort: 'custom', isSearch: true, - form: { - component: 'SelectV2' - }, + form: { + component: 'Select' + }, }, { label: '是否账内账外默认TRUE账内FALSE账外', @@ -84,4 +84,4 @@ export const Location = useCrudSchemas(reactive([ fixed: 'right' } } -])) +])) \ No newline at end of file diff --git a/src/views/eam/basic/locationArea/locationArea.data.ts b/src/views/eam/basic/locationArea/locationArea.data.ts index ff4f4e1..3d5d0d5 100644 --- a/src/views/eam/basic/locationArea/locationArea.data.ts +++ b/src/views/eam/basic/locationArea/locationArea.data.ts @@ -38,9 +38,9 @@ export const LocationArea = useCrudSchemas(reactive([ field: 'type', sort: 'custom', isSearch: true, - form: { - component: 'SelectV2' - }, + form: { + component: 'Select' + }, }, { label: '创建时间', @@ -77,4 +77,4 @@ export const LocationArea = useCrudSchemas(reactive([ fixed: 'right' } } -])) +])) \ No newline at end of file diff --git a/src/views/eam/basic/supplier/index.vue b/src/views/eam/basic/supplier/index.vue index fc79ba3..c326435 100644 --- a/src/views/eam/basic/supplier/index.vue +++ b/src/views/eam/basic/supplier/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'eam:supplier:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:supplier:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:supplier:export'}), // 导出 + defaultButtons.defaultAddBtn(null), // 新增 + defaultButtons.defaultImportBtn(null), // 导入 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -211,21 +211,6 @@ const handleExport = async () => { } } -/** 导入 */ -const importFormRef = ref() -const handleImport = () => { - importFormRef.value.open() -} -// 导入附件弹窗所需的参数 -const importTemplateData = reactive({ - templateUrl: '', - templateTitle: '供应商导入模版.xlsx' -}) -// 导入成功之后 -const importSuccess = () => { - getList() -} - // 筛选提交 const searchFormClick = (searchData) => { tableObject.params = { @@ -238,7 +223,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await SupplierApi.importTemplate() }) diff --git a/src/views/eam/fixedAssets/index.vue b/src/views/eam/fixedAssets/index.vue index e79f16b..a521513 100644 --- a/src/views/eam/fixedAssets/index.vue +++ b/src/views/eam/fixedAssets/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'eam:fixedAssets:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:fixedAssets:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:fixedAssets:export'}), // 导出 + defaultButtons.defaultAddBtn(null), // 新增 + defaultButtons.defaultImportBtn(null), // 导入 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置