diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue
index 1a031f8..598636a 100644
--- a/src/components/Detail/src/DetailDeviceLedger.vue
+++ b/src/components/Detail/src/DetailDeviceLedger.vue
@@ -107,7 +107,7 @@
:key="milestoneUpdateKey"
>
-
+
{
titleNameRef.value = titleName
@@ -880,10 +882,12 @@ const setBeiJian = () => {
}
// 列表-操作按钮
-const butttondata = [
- defaultButtons.mainListEditBtn(null), // 编辑
- defaultButtons.uploadFileBtn(null),//上传
-]
+const butttondata = (row) => {
+ return [
+ defaultButtons.mainListEditBtn({ hide: !hasmMilestoneRight(row)}), // 编辑
+ defaultButtons.uploadFileBtn({ hide: !hasmMilestoneRight(row)}),//上传
+ ]
+}
// 列表-操作按钮事件
const buttonMilestoneClick = async (val, row) => {
@@ -949,6 +953,17 @@ 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
+ }
+}
+