yanghao 3 дней назад
Родитель
Сommit
725387dd58
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      src/views/pms/qhse/monthlyReport/index.vue

+ 9 - 9
src/views/pms/qhse/monthlyReport/index.vue

@@ -214,11 +214,11 @@ const handleCurrentChange = (val) => {
 }
 
 const add = (row) => {
-  console.log(userInfo.value)
-  if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
-    ElMessage.error('您没有权限进行此操作')
-    return
-  }
+  // console.log(userInfo.value)
+  // if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
+  //   ElMessage.error('您没有权限进行此操作')
+  //   return
+  // }
   router.push({
     name: 'MonthlyReportAdd',
     params: {
@@ -228,10 +228,10 @@ const add = (row) => {
 }
 
 const detail = (row) => {
-  if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
-    ElMessage.error('您没有权限进行此操作')
-    return
-  }
+  // if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
+  //   ElMessage.error('您没有权限进行此操作')
+  //   return
+  // }
   router.push({
     name: 'MonthlyReportInfo',
     params: {