diff --git a/src/api/eam/basic/inspection/index.ts b/src/api/eam/basic/inspection/index.ts index 4931600..a422e70 100644 --- a/src/api/eam/basic/inspection/index.ts +++ b/src/api/eam/basic/inspection/index.ts @@ -55,7 +55,6 @@ export const createDeviceMoldItems = async (data: DeviceMoldItemsVO) => { } //新增模具 export const creatMoldItems = async (data: DeviceMoldItemsVO) => { - debugger data.type="MOLD" data.status="INSPECTION" return await request.post({ url: `/eam/device-mold-items/create`, data }) diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue index c2cc3a7..9420508 100644 --- a/src/components/Detail/src/DetailDeviceLedger.vue +++ b/src/components/Detail/src/DetailDeviceLedger.vue @@ -912,8 +912,8 @@ const setBeiJian = () => { // 列表-操作按钮 const butttondata = (row) => { return [ - defaultButtons.mainListEditBtn({ hide: !hasmMilestoneRight(row)}), // 编辑 - defaultButtons.uploadFileBtn({ hide: !hasmMilestoneRight(row)}),//上传 + defaultButtons.mainListEditBtn({ hasPermi: 'eam:mold-milestone:edit'}), // 编辑 + defaultButtons.uploadFileBtn({ hasPermi: 'eam:mold-milestone:upload'}),//上传 ] } @@ -996,17 +996,6 @@ function dialogUploadFile() { }) } -const hasmMilestoneRight = (row) => { - const rolesOk = userStore.roles.find(item => { - return item == 'mold_Engineer_role' - }) - if (rolesOk != undefined && rolesOk != null) { - return true - } else { - return false - } -} -