Browse Source

fix 研报列表3

cxmo 1 year ago
parent
commit
6cefe3e782
2 changed files with 3 additions and 2 deletions
  1. 2 0
      src/utils/buttonConfig.js
  2. 1 2
      src/views/report_manage/reportlist.vue

+ 2 - 0
src/utils/buttonConfig.js

@@ -8,6 +8,8 @@ import {store} from "../main";
  */
 export const checkPermissionBtn = (button_code)=>{
     const buttonCodes = store.state.permissionButton.permissionButtons.map(item=>item.ButtonCode)
+    console.log('?',button_code)
+    console.log('why',buttonCodes.includes(button_code))
     return buttonCodes.includes(button_code)
 }
 /*

+ 1 - 2
src/views/report_manage/reportlist.vue

@@ -264,8 +264,7 @@
                   >
                 </template>
                 <template v-if="scope.row.State == 2">
-                  <span
-                    v-permission="permissionBtn.reportManageBtn.reportManage_cancelPublish"
+                  <span v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
                     @click="canclepublish(scope.row)"
                     style="color: red; cursor: pointer"
                     >取消发布</span