Bladeren bron

日计划,月计划

[user3] 4 jaren geleden
bovenliggende
commit
b4b5a27d3e

+ 2 - 0
src/main/java/com/jeeplus/modules/sg/managementcenter/projectPlanArrage/web/ProjectDailyPlanController.java

@@ -16,6 +16,7 @@ import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.ImportUtil
 import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.PackagingUtil;
 import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.Result;
 import com.jeeplus.modules.sys.utils.UserUtils;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
@@ -48,6 +49,7 @@ public class ProjectDailyPlanController extends BaseController {
     private ProjectDailyPlanService projectDailyPlanService;
     //主页面 list
     @RequestMapping(value = {"list", ""})
+    @RequiresPermissions("sg:managementcenter:dayplan:list")
     public String list(ProjectDailyPlan projectDailyPlan, Model model) {
         model.addAttribute("projectDailyPlan", projectDailyPlan);
         return "modules/sg/managementcenter/projectPlanArrage/dailyPlan/projectDailyPlanList";

+ 3 - 0
src/main/java/com/jeeplus/modules/sg/managementcenter/projectPlanArrage/web/ProjectPlanArrageController.java

@@ -26,6 +26,7 @@ import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.ImportUtil
 import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.PackagingUtil;
 import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.Result;
 import com.jeeplus.modules.sys.utils.UserUtils;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
@@ -70,10 +71,12 @@ public class ProjectPlanArrageController extends BaseController {
      */
     //进入月计划安排列表 返回projectPlanArrageList 页面(projectPlanArrageList)
     @RequestMapping(value = {"list", ""})
+    @RequiresPermissions("sg:managementcenter:monthplan:list")
     public String list(ProjectPlanArrage projectPlanArrage, Model model) {
         model.addAttribute("projectPlanArrage", projectPlanArrage);
         return "modules/sg/managementcenter/projectPlanArrage/projectPlanArrageList";
     }
+
     //安排项目计划【按钮】 -- 跳转配网项目经理操作页面 该页面可操作项目名称,项目定义号 页面(projectDateForm)
     @RequestMapping(value = "arrageProjectPlan")
     public String arrageProjectPlan(ProjectPlanArrage projectPlanArrage,Model model){

+ 8 - 0
src/main/webapp/webpage/modules/sg/managementcenter/projectPlanArrage/dailyPlan/projectDailyPlanList.jsp

@@ -57,16 +57,24 @@
 	<!-- 工具栏 -->
 	<div id="toolbar">
 			<%--<shiro:hasPermission name="sg:managementCenter:constructionProject:add">--%>
+				<shiro:hasPermission name="sg:managementcenter:dayplan:add">
 				<button id="add" class="btn btn-primary" onclick="add()">
 					<i class="glyphicon glyphicon-plus"></i> 新建
 				</button>
+				</shiro:hasPermission>
+				<shiro:hasPermission name="sg:managementcenter:dayplan:del">
 				<button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
 					<i class="glyphicon glyphicon-remove"></i> 删除
 				</button>
+				</shiro:hasPermission>
+				<shiro:hasPermission name="sg:managementcenter:dayplan:import">
 				<button id="btnImport" class="btn btn-info"><i class="fa fa-folder-open-o"></i> 导入</button>
+				</shiro:hasPermission>
+				<shiro:hasPermission name="sg:managementcenter:dayplan:export">
 				<button id="export" class="btn btn-warning">
 					<i class="fa fa-file-excel-o"></i> 导出
 				</button>
+				</shiro:hasPermission>
 				<%--<button id="exportTim" class="btn btn-primary">--%>
 					<%--<i class="glyphicon glyphicon-plus"></i> 下载导入模板--%>
 				<%--</button>--%>

+ 7 - 1
src/main/webapp/webpage/modules/sg/managementcenter/projectPlanArrage/projectPlanArrageList.jsp

@@ -70,14 +70,20 @@
 	<!-- 工具栏 -->
 	<div id="toolbar">
 			<%--<shiro:hasPermission name="sg:managementCenter:constructionProject:add">--%>
+				<shiro:hasPermission name="sg:managementcenter:monthplan:add">
 				<button id="add" class="btn btn-primary" onclick="add()">
 					<i class="glyphicon glyphicon-plus"></i> 安排项目计划
 				</button>
+				</shiro:hasPermission>
+				<shiro:hasPermission name="sg:managementcenter:monthplan:import">
 				<button id="btnImport" class="btn btn-info"><i class="fa fa-folder-open-o"></i> 导入</button>
+				</shiro:hasPermission>
+				<shiro:hasPermission name="sg:managementcenter:monthplan:del">
 				<button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
 					<i class="glyphicon glyphicon-remove"></i> 删除
 				</button>
-				<%--</shiro:hasPermission>--%>
+				</shiro:hasPermission>
+			<%--</shiro:hasPermission>--%>
 			<%--<shiro:hasPermission name="sg:managementCenter:constructionProject:del">--%>
 				<%--<button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">--%>
 					<%--<i class="glyphicon glyphicon-remove"></i> 删除--%>