fan0987 4 giorni fa
parent
commit
ab669ea468

+ 1 - 1
bidding-ui/src/views/HomeView.vue

@@ -30,7 +30,7 @@ export default {
   },
 
   created() {
-    this.openNotice()
+    // this.openNotice()
   },
 
   methods: {

+ 4 - 1
ruoyi-ui/src/views/tender/tender1/details.vue

@@ -2,7 +2,7 @@
   <div class="app-container">
     <el-tabs v-model="paneName">
       <el-tab-pane label="基础资料" name="basic">
-        <div v-if="canReTender && failStatus == 0" class="top-right-btn">
+        <div v-if="canReTender && failStatus == 0 && checkRole(['purchaser'])" class="top-right-btn">
           <el-button type="primary" @click="reTender(1)">重新招标</el-button>
           <el-button @click="over">返回</el-button>
         </div>
@@ -81,6 +81,8 @@ import { getPlanProfileByAid } from "@/api/system/planprofile"
 import TenderDetails from '@/components/tender/tenderDetails.vue'
 // import DeviceDetails from '@/components/device/deviceDetails.vue'
 import CompPlanDetails from './components/CompPlanDetails.vue'
+import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
+
 export default {
   components: {
     CompPlanDetails,
@@ -119,6 +121,7 @@ export default {
     this.getData()
   },
   methods: {
+    checkRole,
     over () {
       this.$router.go(-1);
     },