Sfoglia il codice sorgente

-导师带徒bugfix

jiangbiao 1 anno fa
parent
commit
73dfe1cca6

+ 7 - 7
master/src/main/java/com/ruoyi/project/training/bccnew/controller/TTsFlplanTmplController.java

@@ -46,7 +46,7 @@ public class TTsFlplanTmplController extends BaseController {
     /**
      * 查询分离培训模版列表
      */
-    @PreAuthorize("@ss.hasPermi('training:flPlan:list')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:list')")
     @GetMapping("/list")
     public AjaxResult list(TTsFlplanTmpl tTsFlplanTmpl) {
         return AjaxResult.success(tTsFlplanTmplService.selectTTsFlplanTmplList(tTsFlplanTmpl));
@@ -55,7 +55,7 @@ public class TTsFlplanTmplController extends BaseController {
     /**
      * 导出分离培训模版列表
      */
-    @PreAuthorize("@ss.hasPermi('training:flPlan:export')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:export')")
     @Log(title = "分离培训模版", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
     public AjaxResult export(TTsFlplanTmpl tTsFlplanTmpl) {
@@ -67,7 +67,7 @@ public class TTsFlplanTmplController extends BaseController {
     /**
      * 获取分离培训模版详细信息
      */
-    @PreAuthorize("@ss.hasPermi('training:flPlan:query')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return AjaxResult.success(tTsFlplanTmplService.selectTTsFlplanTmplById(id));
@@ -76,7 +76,7 @@ public class TTsFlplanTmplController extends BaseController {
     /**
      * 新增分离培训模版
      */
-    @PreAuthorize("@ss.hasPermi('training:flPlan:add')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:add')")
     @Log(title = "分离培训模版", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TTsFlplanTmpl tTsFlplanTmpl) {
@@ -102,7 +102,7 @@ public class TTsFlplanTmplController extends BaseController {
     /**
      * 修改分离培训模版
      */
-    @PreAuthorize("@ss.hasPermi('training:flPlan:edit')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:edit')")
     @Log(title = "分离培训模版", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TTsFlplanTmpl tTsFlplanTmpl) {
@@ -112,7 +112,7 @@ public class TTsFlplanTmplController extends BaseController {
     /**
      * 删除分离培训模版
      */
-    @PreAuthorize("@ss.hasPermi('training:flPlan:remove')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:remove')")
     @Log(title = "分离培训模版", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {
@@ -133,7 +133,7 @@ public class TTsFlplanTmplController extends BaseController {
         return AjaxResult.error("上传失败,请联系管理员");
     }
 
-    @PreAuthorize("@ss.hasPermi('training:flPlan:add')")
+    @PreAuthorize("@ss.hasPermi('bccnew:flPlan:add')")
     @Log(title = "分离培训模版", businessType = BusinessType.INSERT)
     @PostMapping("/importData")
     public AjaxResult importData(@RequestParam("file") MultipartFile file) throws IOException {

+ 7 - 7
ui/src/views/training/bccnew/flPlan/index.vue

@@ -23,7 +23,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
-          v-hasPermi="['training:flPlan:add']"
+          v-hasPermi="['bccnew:flPlan:add']"
         >新增
         </el-button>
       </el-col>
@@ -34,7 +34,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['training:flPlan:edit']"
+          v-hasPermi="['bccnew:flPlan:edit']"
         >修改
         </el-button>
       </el-col>
@@ -45,7 +45,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['training:flPlan:remove']"
+          v-hasPermi="['bccnew:flPlan:remove']"
         >删除
         </el-button>
       </el-col>
@@ -55,7 +55,7 @@
           icon="el-icon-upload2"
           size="mini"
           @click="handleImport"
-          v-hasPermi="['training:flPlan:edit']"
+          v-hasPermi="['bccnew:flPlan:edit']"
         >导入
         </el-button>
       </el-col>
@@ -65,7 +65,7 @@
           icon="el-icon-download"
           size="mini"
           @click="handleExport"
-          v-hasPermi="['training:flPlan:export']"
+          v-hasPermi="['bccnew:flPlan:export']"
         >导出
         </el-button>
       </el-col>
@@ -88,7 +88,7 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['training:flPlan:edit']"
+            v-hasPermi="['bccnew:flPlan:edit']"
           >修改
           </el-button>
           <el-button
@@ -96,7 +96,7 @@
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['training:flPlan:remove']"
+            v-hasPermi="['bccnew:flPlan:remove']"
           >删除
           </el-button>
           <el-button