蔡德晨 5 年之前
父節點
當前提交
c6ff71993b

+ 1 - 0
src/main/java/com/jeeplus/common/utils/excel/ExportExcel.java

@@ -338,6 +338,7 @@ public class ExportExcel {
 		headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);
 		headerFont.setColor(IndexedColors.BLACK.getIndex());
 		style.setFont(headerFont);
+		style.setFillForegroundColor(HSSFColor.WHITE.index);
 		styles.put("header", style);
 		return styles;
 	}

+ 2 - 0
src/main/java/com/jeeplus/modules/sg/project/util/ExportUtil.java

@@ -9,6 +9,7 @@ import com.jeeplus.common.utils.Reflections;
 import com.jeeplus.common.utils.excel.annotation.ExcelField;
 import com.jeeplus.modules.sys.utils.DictUtils;
 import org.apache.commons.lang3.StringUtils;
+import org.apache.poi.hssf.util.HSSFColor;
 import org.apache.poi.ss.usermodel.*;
 import org.apache.poi.ss.util.CellRangeAddress;
 import org.apache.poi.xssf.streaming.SXSSFWorkbook;
@@ -416,6 +417,7 @@ public class ExportUtil {
 		headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);
 		headerFont.setColor(IndexedColors.BLACK.getIndex());
 		style.setFont(headerFont);
+		style.setFillForegroundColor(HSSFColor.WHITE.index);
 		styles.put("header", style);
 		return styles;
 	}

+ 5 - 0
src/main/java/com/jeeplus/modules/sg/project/web/ProjectController.java

@@ -172,4 +172,9 @@ public class ProjectController extends BaseController {
         return j;
     }
 
+    @RequestMapping(value = "tolist")
+    public String toList(){
+        return "redirect:/a/project/list";
+    }
+
 }

+ 1 - 1
src/main/webapp/webpage/modules/sg/free/wbslist.jsp

@@ -50,7 +50,7 @@
     <div class="" style="margin-left: 10px;margin-right: 10px;margin-top: 10px;">
        <c:forEach items="${map.list1}" var="data1" varStatus="index">
          <a class="layui-btn" href="${ctx}/jkxl/export?id=${data1.id}">导出</a>
-           <%--<a class="layui-btn" href="${ctx}/jkxl/import?id=${data1.id}">导入</a>--%>
+           <a class="layui-btn" href="${ctx}/project/tolist">返回</a>
        </c:forEach>
             <%--<table:importExcel url="${ctx}/propertycostreminder/propertyCostReminder/import"></table:importExcel>--%>
         <table id="table1" class="layui-table" lay-filter="table1"></table>