浏览代码

事件收藏取消权限

Memory_LG 1 天之前
父节点
当前提交
6ba934077d

+ 3 - 3
event-ui/src/views/event/collect/index.vue

@@ -33,13 +33,13 @@
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)"
-                     v-hasPermi="['eventcatalogue:eventcatalogue:query']">详情
+                     >详情
           </el-button>
           <el-button size="mini" type="text" icon="el-icon-document" @click="handleEventLog(scope.row)"
-                     v-hasPermi="['eventcatalogue:eventcatalogue:query']">事件日志
+                     v>事件日志
           </el-button>
           <el-button size="mini" type="text" icon="el-icon-star-off" @click="handleDelete(scope.row)"
-                    v-hasPermi="['system:collect:remove']">取消收藏
+                    >取消收藏
           </el-button>
         </template>
       </el-table-column>

+ 1 - 1
event-ui/src/views/event/eventcatalogue/index.vue

@@ -86,7 +86,7 @@
                      v-hasPermi="['eventcatalogue:eventcatalogue:query']">事件日志
           </el-button>
           <el-button size="mini" type="text" icon="el-icon-star-on" @click="collectEvent(scope.row)"
-                     v-hasPermi="['system:collect:remove']">收藏事件
+                     >收藏事件
           </el-button>
         </template>
       </el-table-column>

+ 0 - 6
src/main/java/com/sooka/sponest/event/centereventteventcollect/controller/CentereventTEventCollectController.java

@@ -41,7 +41,6 @@ public class CentereventTEventCollectController extends BaseController {
     /**
      * 查询事件收藏列表
      */
-    @RequiresPermissions("system:collect:list")
     @GetMapping("/list")
     public TableDataInfo list(CentereventTEventCollect centereventTEventCollect) {
         startPage();
@@ -52,7 +51,6 @@ public class CentereventTEventCollectController extends BaseController {
     /**
      * 导出事件收藏列表
      */
-    @RequiresPermissions("system:collect:export")
     @Log(title = "事件收藏", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, CentereventTEventCollect centereventTEventCollect) {
@@ -64,7 +62,6 @@ public class CentereventTEventCollectController extends BaseController {
     /**
      * 获取事件收藏详细信息
      */
-    @RequiresPermissions("system:collect:query")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") String id) {
         return AjaxResult.success(centereventTEventCollectService.selectCentereventTEventCollectById(id));
@@ -73,7 +70,6 @@ public class CentereventTEventCollectController extends BaseController {
     /**
      * 新增事件收藏
      */
-    @RequiresPermissions("system:collect:add")
     @Log(title = "事件收藏", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody CentereventTEventCollect centereventTEventCollect) {
@@ -98,7 +94,6 @@ public class CentereventTEventCollectController extends BaseController {
     /**
      * 修改事件收藏
      */
-    @RequiresPermissions("system:collect:edit")
     @Log(title = "事件收藏", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody CentereventTEventCollect centereventTEventCollect) {
@@ -108,7 +103,6 @@ public class CentereventTEventCollectController extends BaseController {
     /**
      * 删除事件收藏
      */
-    @RequiresPermissions("system:collect:remove")
     @Log(title = "事件收藏", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable String[] ids) {