From ad3305fbba9c07c28e3257c96d149bd4f4ea576d Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Fri, 10 May 2024 10:40:22 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/zh-CN.ts | 3 ++- src/views/eam/device/deviceRepair/index.vue | 4 ++-- .../device/deviceSpotInspectionRecordMain/index.vue | 4 ++-- src/views/eam/device/devicemaintainjob/index.vue | 12 +++++++----- src/views/eam/device/devicemaintenancejob/index.vue | 4 ++-- src/views/eam/mold/moldmaintainjob/index.vue | 8 +++++--- 6 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 96b5b39..45b375e 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -67,7 +67,8 @@ export default { confirmRefused: '确认审批驳回吗?', confirmHandle: '确认处理吗?', confirmSubmit: '确认提交吗?', - finishSuccess:'操作成功' + finishSuccess: '操作成功', + verifySuccess: '验证成功' }, error: { noPermission: `抱歉,您无权访问此页面。`, diff --git a/src/views/eam/device/deviceRepair/index.vue b/src/views/eam/device/deviceRepair/index.vue index 0e57df8..38aef78 100644 --- a/src/views/eam/device/deviceRepair/index.vue +++ b/src/views/eam/device/deviceRepair/index.vue @@ -113,8 +113,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:'eam:device-repair-request:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:device-repair-request:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'eam:device-repair-request:export'}), // 导出 + // defaultButtons.defaultImportBtn({hasPermi:'eam:device-repair-request:import'}), // 导入 + // defaultButtons.defaultExportBtn({hasPermi:'eam:device-repair-request:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 diff --git a/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue b/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue index 5bc90b2..ccf6cfe 100644 --- a/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue +++ b/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue @@ -218,8 +218,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ // defaultButtons.defaultAddBtn(null), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:device-spot-inspection-record-main:import'}), - defaultButtons.defaultExportBtn({hasPermi:'eam:device-spot-inspection-record-main:export'}), + // defaultButtons.defaultImportBtn({hasPermi:'eam:device-spot-inspection-record-main:import'}), + // defaultButtons.defaultExportBtn({hasPermi:'eam:device-spot-inspection-record-main:export'}), defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null) // 设置 diff --git a/src/views/eam/device/devicemaintainjob/index.vue b/src/views/eam/device/devicemaintainjob/index.vue index 52de514..cc0e8d5 100644 --- a/src/views/eam/device/devicemaintainjob/index.vue +++ b/src/views/eam/device/devicemaintainjob/index.vue @@ -221,8 +221,8 @@ const { getList, setSearchParams } = tableMethods const HeadButttondata = [ // defaultButtons.defaultAddBtn({ // }), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:device-maintain-job-main:import'}), - defaultButtons.defaultExportBtn({hasPermi:'eam:device-maintain-job-main:export'}), + // defaultButtons.defaultImportBtn({hasPermi:'eam:device-maintain-job-main:import'}), + // defaultButtons.defaultExportBtn({hasPermi:'eam:device-maintain-job-main:export'}), defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null) // 设置 @@ -647,9 +647,11 @@ const onCancel = () => { } const onSubmit = () => { - DeviceMaintainOrderMainApi.orderClickApprove(dialogRowData.value.id,'VERIFIED',updateFormValue.value.verifyContent) - dialogVisible.value = false - getList() + DeviceMaintainOrderMainApi.orderClickApprove(dialogRowData.value.id,'VERIFIED',updateFormValue.value.verifyContent).then(res => { + message.success(t('common.verifySuccess')) + dialogVisible.value = false + getList() + }) } const orderPrint = (row) => { diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index f89a7e6..601ce01 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -384,8 +384,8 @@ const judgeIsTheClassEngineerAndApply = (row,type) => { // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultAddBtn({ hasPermi:'eam:device-maintenance-job-main:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'eam:device-maintenance-job-main:import'}), - defaultButtons.defaultExportBtn({hasPermi:'eam:device-maintenance-job-main:export'}), + // defaultButtons.defaultImportBtn({hasPermi:'eam:device-maintenance-job-main:import'}), + // defaultButtons.defaultExportBtn({hasPermi:'eam:device-maintenance-job-main:export'}), defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null) // 设置 diff --git a/src/views/eam/mold/moldmaintainjob/index.vue b/src/views/eam/mold/moldmaintainjob/index.vue index e709bce..13d8ba9 100644 --- a/src/views/eam/mold/moldmaintainjob/index.vue +++ b/src/views/eam/mold/moldmaintainjob/index.vue @@ -631,9 +631,11 @@ const onCancel = () => { } const onSubmit = (val) => { - MoldMaintainOrderMainApi.orderClickApprove(dialogRowData.value.id,'VERIFIED',updateFormValue.value.verifyContent) - dialogVisible.value = false - getList() + MoldMaintainOrderMainApi.orderClickApprove(dialogRowData.value.id,'VERIFIED',updateFormValue.value.verifyContent).then(res => { + message.success(t('common.verifySuccess')) + dialogVisible.value = false + getList() + }) } const orderPrint = (row) => {