yanghao 4 dní pred
rodič
commit
725387dd58
1 zmenil súbory, kde vykonal 9 pridanie a 9 odobranie
  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) => {
 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({
   router.push({
     name: 'MonthlyReportAdd',
     name: 'MonthlyReportAdd',
     params: {
     params: {
@@ -228,10 +228,10 @@ const add = (row) => {
 }
 }
 
 
 const detail = (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({
   router.push({
     name: 'MonthlyReportInfo',
     name: 'MonthlyReportInfo',
     params: {
     params: {