user5 3 лет назад
Родитель
Сommit
1c58b7d873

+ 23 - 0
src/main/java/com/jeeplus/modules/identification/dao/DefaultAuditTemplateDao.java

@@ -0,0 +1,23 @@
+package com.jeeplus.modules.identification.dao;
+
+import com.jeeplus.common.persistence.CrudDao;
+import com.jeeplus.common.persistence.annotation.MyBatisDao;
+import com.jeeplus.modules.identification.entity.DefaultAuditTemplate;
+
+import java.util.List;
+
+/**
+ * 默认意见表dao
+ * @author: 徐滕
+ * @create: 2022-03-18 09:17
+ **/
+@MyBatisDao
+public interface DefaultAuditTemplateDao extends CrudDao<DefaultAuditTemplate> {
+
+    /**
+     * 根据key键查询默认意见的信息集合
+     * @param info
+     * @return
+     */
+    List<DefaultAuditTemplate> getDefaultAuditTemplateByIdentification(DefaultAuditTemplate info);
+}

+ 38 - 0
src/main/java/com/jeeplus/modules/identification/entity/DefaultAuditTemplate.java

@@ -0,0 +1,38 @@
+package com.jeeplus.modules.identification.entity;
+
+import com.jeeplus.common.persistence.DataEntity;
+
+/**
+ * 默认意见表
+ * @author: 徐滕
+ * @create: 2022-03-18 09:03
+ **/
+public class DefaultAuditTemplate extends DataEntity<DefaultAuditTemplate> {
+    private String identification;  //标识
+    private String content;         //模板内容
+    private String name;            //模板名称
+
+    public String getIdentification() {
+        return identification;
+    }
+
+    public void setIdentification(String identification) {
+        this.identification = identification;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}

+ 55 - 0
src/main/java/com/jeeplus/modules/identification/service/DefaultAuditTemplateService.java

@@ -0,0 +1,55 @@
+package com.jeeplus.modules.identification.service;
+
+import com.jeeplus.common.persistence.Page;
+import com.jeeplus.common.service.CrudService;
+import com.jeeplus.common.utils.MenuStatusEnum;
+import com.jeeplus.modules.identification.dao.DefaultAuditTemplateDao;
+import com.jeeplus.modules.identification.entity.AuditTemplate;
+import com.jeeplus.modules.identification.entity.DefaultAuditTemplate;
+import com.jeeplus.modules.sys.entity.User;
+import com.jeeplus.modules.sys.utils.UserUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+
+/**
+ * 默认意见表service
+ * @author: 徐滕
+ * @create: 2022-03-18 09:16
+ **/
+@Service
+@Transactional(readOnly = true)
+public class DefaultAuditTemplateService extends CrudService<DefaultAuditTemplateDao, DefaultAuditTemplate> {
+
+    @Autowired
+    private DefaultAuditTemplateDao dao;
+
+
+    /**
+     * 查询列表
+     * @param page          分页对象
+     * @param defaultAuditTemplate
+     * @return
+     */
+    @Override
+    public Page<DefaultAuditTemplate> findPage(Page<DefaultAuditTemplate> page, DefaultAuditTemplate defaultAuditTemplate){
+        int count = dao.queryCount(defaultAuditTemplate);
+        page.setCount(count);
+        page.setCountFlag(false);
+        defaultAuditTemplate.setPage(page);
+        List<DefaultAuditTemplate> auditTemplates = findList(defaultAuditTemplate);
+        page.setList(auditTemplates);
+        return page;
+    }
+
+    /**
+     * 根据key键查询默认意见的信息集合
+     * @param defaultAuditTemplate
+     * @return
+     */
+    public List<DefaultAuditTemplate> getDefaultAuditTemplateByIdentification (DefaultAuditTemplate defaultAuditTemplate){
+        return dao.getDefaultAuditTemplateByIdentification(defaultAuditTemplate);
+    }
+}

+ 124 - 0
src/main/java/com/jeeplus/modules/identification/web/DefaultAuditTemplateController.java

@@ -0,0 +1,124 @@
+package com.jeeplus.modules.identification.web;
+
+import com.jeeplus.common.config.Global;
+import com.jeeplus.common.persistence.Page;
+import com.jeeplus.common.utils.StringUtils;
+import com.jeeplus.common.web.BaseController;
+import com.jeeplus.modules.identification.entity.AuditTemplate;
+import com.jeeplus.modules.identification.entity.DefaultAuditTemplate;
+import com.jeeplus.modules.identification.service.DefaultAuditTemplateService;
+import com.jeeplus.modules.ruralprojectrecords.entity.SubProjectInfo;
+import com.jeeplus.modules.sys.utils.UserUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 默认意见表controller
+ * @author: 徐滕
+ * @create: 2022-03-18 09:12
+ **/
+@Controller
+@RequestMapping(value = "${adminPath}/defaultAuditTemplate/defaultAuditTemplate")
+public class DefaultAuditTemplateController extends BaseController {
+
+    @Autowired
+    private DefaultAuditTemplateService service;
+
+    @ModelAttribute
+    public DefaultAuditTemplate get(@RequestParam(required=false) String id) {
+        DefaultAuditTemplate entity = null;
+        if (StringUtils.isNotBlank(id)){
+            entity = service.get(id);
+        }
+        if (entity == null){
+            entity = new DefaultAuditTemplate();
+        }
+        return entity;
+    }
+
+
+    @RequestMapping(value = {"list"})
+    public String list(DefaultAuditTemplate defaultAuditTemplate, HttpServletRequest request, HttpServletResponse response, Model model) {
+        //获取子项目信息
+        Page<DefaultAuditTemplate> page = service.findPage(new Page<DefaultAuditTemplate>(request, response), defaultAuditTemplate);
+
+        model.addAttribute("page", page);
+        return "modules/identification/default/defaultAuditTemplateList";
+    }
+    /**
+     * 增加模板页面
+     * @param model
+     * @return
+     */
+    @RequestMapping(value = "templateList")
+    public String templateList(DefaultAuditTemplate defaultAuditTemplate, Model model) {
+        List<DefaultAuditTemplate> defaultAuditTemplates=service.getDefaultAuditTemplateByIdentification(defaultAuditTemplate);
+        model.addAttribute("defaultAuditTemplates",defaultAuditTemplates);
+        model.addAttribute("defaultAuditTemplate",defaultAuditTemplate);
+        return "modules/identification/default/defaultAuditTemplateList";
+    }
+
+    /**
+     * 增加模板页面
+     * @param model
+     * @return
+     */
+    @RequestMapping(value = "form")
+    public String form(DefaultAuditTemplate defaultAuditTemplate, Model model) {
+        defaultAuditTemplate.setCreateBy(UserUtils.getUser());
+        model.addAttribute("defaultAuditTemplate",defaultAuditTemplate);
+        return "modules/identification/default/defaultAuditTemplateForm";
+    }
+
+    /**
+     * 增加模板信息
+     * @param model
+     * @return
+     */
+    @RequestMapping(value = "save")
+    @ResponseBody
+    public Object save(DefaultAuditTemplate defaultAuditTemplate, Model model) {
+        Map<String,Object> map = new HashMap<>();
+        try {
+            service.save(defaultAuditTemplate);
+            map.put("str","保存成功!");
+        } catch (Exception e){
+            logger.error("保存默认意见异常:",e);
+            map.put("str","保存默认意见失败");
+        }
+        return map;
+    }
+
+    /**
+     * 查看模板信息
+     * @param defaultAuditTemplate
+     * @return
+     */
+    @RequestMapping(value = "delete")
+    @ResponseBody
+    public Object delete(DefaultAuditTemplate defaultAuditTemplate) {
+        Map<String,Object> map = new HashMap<>();
+        try {
+            //删除子项目信息
+            service.delete(defaultAuditTemplate);
+            map.put("str","删除模板意见成功!");
+            map.put("success",true);
+        }catch (Exception e){
+            logger.error("删除模板意见异常:",e);
+            map.put("str","删除模板意见失败");
+            map.put("success",false);
+        }
+        return map;
+    }
+}

+ 156 - 0
src/main/resources/mappings/modules/identification/DefaultAuditTemplateDao.xml

@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.jeeplus.modules.identification.dao.DefaultAuditTemplateDao">
+
+	<sql id="auditColumns">
+		distinct a.id AS "id",
+		a.create_by AS "createBy.id",
+		a.create_date AS "createDate",
+		a.update_by AS "updateBy.id",
+		a.update_date AS "updateDate",
+		a.del_flag AS "delFlag",
+		a.name AS "name",
+		a.identification as "identification",
+		a.content as "content"
+	</sql>
+
+	<select id="get" resultType="com.jeeplus.modules.identification.entity.DefaultAuditTemplate" >
+		SELECT
+			<include refid="auditColumns"/>
+		FROM default_audit_template a
+		WHERE a.id = #{id}
+	</select>
+	<select id="findList" resultType="com.jeeplus.modules.identification.entity.DefaultAuditTemplate" >
+		SELECT
+			<include refid="auditColumns"/>
+		FROM default_audit_template a
+		<where>
+			a.del_flag='0'
+			<if test="sqlMap.dsf !=null and sqlMap.dsf!=''">
+				${sqlMap.dsf}
+			</if>
+			<if test="identification !=null and identification != ''">
+				and a.identification = #{identification}
+			</if>
+			<if test="name !=null and name != ''">
+				and a.name like concat('%',#{name},'%')
+			</if>
+			<if test="content !=null and content != ''">
+				and a.content like concat('%',#{content},'%')
+			</if>
+		</where>
+		<choose>
+			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
+				ORDER BY ${page.orderBy}
+			</when>
+			<otherwise>
+				ORDER BY a.update_date DESC
+			</otherwise>
+		</choose>
+	</select>
+
+	<select id="getDefaultAuditTemplateByIdentification" resultType="com.jeeplus.modules.identification.entity.DefaultAuditTemplate">
+		SELECT
+		<include refid="auditColumns"/>
+		FROM default_audit_template a
+		<where>
+			a.del_flag='0'
+			<if test="identification !=null and identification != ''">
+				and a.identification = #{identification}
+			</if>
+			<if test="name !=null and name != ''">
+				and a.name like concat('%',#{name},'%')
+			</if>
+			<if test="content !=null and content != ''">
+				and a.content like concat('%',#{content},'%')
+			</if>
+		</where>
+		ORDER BY a.update_date DESC
+	</select>
+
+    <select id="queryCount" resultType="int" >
+        SELECT
+        count(distinct a.id)
+        FROM default_audit_template a
+		<where>
+			a.del_flag='0'
+			<if test="sqlMap.dsf !=null and sqlMap.dsf!=''">
+				${sqlMap.dsf}
+			</if>
+			<if test="identification !=null and identification != ''">
+				and a.identification = #{identification}
+			</if>
+			<if test="name !=null and name != ''">
+				and a.name like concat('%',#{name},'%')
+			</if>
+			<if test="content !=null and content != ''">
+				and a.content like concat('%',#{content},'%')
+			</if>
+		</where>
+    </select>
+
+	<select id="findAllList" resultType="com.jeeplus.modules.identification.entity.DefaultAuditTemplate" >
+		SELECT
+			<include refid="auditColumns"/>
+		FROM default_audit_template a
+		<where>
+			a.del_flag = #{DEL_FLAG_NORMAL}
+		</where>
+		<choose>
+			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
+				ORDER BY ${page.orderBy}
+			</when>
+			<otherwise>
+				ORDER BY a.update_date DESC
+			</otherwise>
+		</choose>
+	</select>
+
+	<insert id="insert">
+		INSERT INTO default_audit_template(
+			id,
+			create_by,
+			create_date,
+			update_by,
+			update_date,
+			del_flag,
+			name,
+			identification,
+			content
+		) VALUES (
+			#{id},
+			#{createBy.id},
+			#{createDate},
+			#{updateBy.id},
+			#{updateDate},
+			#{delFlag},
+			#{name},
+			#{identification},
+			#{content}
+		)
+	</insert>
+
+	<update id="update">
+		UPDATE default_audit_template SET
+			update_by = #{updateBy.id},
+			update_date = #{updateDate},
+			identification=#{identification},
+			content=#{content}
+		WHERE id = #{id}
+	</update>
+
+
+	<!--物理删除-->
+	<update id="delete">
+		DELETE FROM default_audit_template
+		WHERE id = #{id}
+	</update>
+
+	<!--逻辑删除-->
+	<update id="deleteByLogic">
+		UPDATE default_audit_template SET
+			del_flag = #{DEL_FLAG_DELETE}
+		WHERE id = #{id}
+	</update>
+
+</mapper>

+ 3 - 1
src/main/webapp/webpage/modules/identification/AuditTemplateTypeList.jsp

@@ -495,9 +495,11 @@
                         var xml="<div class=\"layui-btn-group\">";
 
                         // if(d.canedit != undefined && d.canedit == "1")
-                        xml+="<a href=\"#\" onclick=\"openDialogre('修改项目', '${ctx}/fauditTemplate/auditTemplateType/form?id=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
+                        xml+="<a href=\"#\" onclick=\"openDialogre('修改项目', '${ctx}/auditTemplate/auditTemplateType/form?id=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
 
                         xml+="<a href=\"${ctx}/fauditTemplate/auditTemplateType/del?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
+
+                        xml+="<a href=\"#\" onclick=\"openDialogre('默认意见', '${ctx}/defaultAuditTemplate/defaultAuditTemplate/list?identification=" + d.identification + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 默认意见</a>";
                         xml+="</div>"
                         return xml;
 

+ 82 - 0
src/main/webapp/webpage/modules/identification/default/defaultAuditTemplateForm.jsp

@@ -0,0 +1,82 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/webpage/include/taglib.jsp"%>
+<html>
+<head>
+    <title>复核标准管理</title>
+    <meta name="decorator" content="default"/>
+    <script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
+    <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
+    <script src="${ctxStatic}/layer-v2.3/layui/xmSelect.js" charset="utf-8"></script>
+    <style>
+        label.error{
+            top:40px;
+            left:0;
+        }
+        #standardDetail-error{
+            top:82px;
+            left:0;
+        }
+    </style>
+    <script type="text/javascript">
+        var validateForm;
+        function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
+            if(validateForm.form()){
+                $("#inputForm").submit();
+                return true;
+            }
+            return false;
+        }
+        $(document).ready(function() {
+            layui.use(['form', 'layer'], function () {
+                var form = layui.form;
+            });
+            validateForm = $("#inputForm").validate({
+                submitHandler: function(form){
+                    // loading('正在提交,请稍等...');
+                    form.submit();
+                },
+                errorContainer: "#messageBox",
+                errorPlacement: function(error, element) {
+                    $("#messageBox").text("输入有误,请先更正。");
+                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
+                        error.appendTo(element.parent().parent());
+                    } else {
+                        error.insertAfter(element);
+                    }
+                }
+            });
+            var edit = "${workReviewStandard.id}";
+            if(edit!=null && edit!=''){
+                $("#reviewParentButton").attr("disabled","disabled");
+            }
+        });
+    </script>
+</head>
+<body>
+<div class="single-form">
+    <div class="container">
+        <form:form id="inputForm" modelAttribute="defaultAuditTemplate" action="${ctx}/defaultAuditTemplate/defaultAuditTemplate/save" method="post" class="form-horizontal layui-form">
+            <form:hidden path="id"/>
+            <form:hidden path="createBy.name" readonly="true"  htmlEscape="false" class="form-control layui-input"/>
+            <form:hidden path="identification" readonly="true" htmlEscape="false"  class="form-control layui-input"/>
+            <form:hidden path="name" readonly="true" htmlEscape="false"  class="form-control layui-input"/>
+
+            <div class="form-group layui-row first">
+                <div class="form-group-label"><h2>模板信息</h2></div>
+                <div class="layui-item layui-col-sm12 with-textarea">
+                    <label class="layui-form-label ">模板信息:</label>
+                    <div class="layui-input-block">
+                        <form:textarea path="content" placeholder="请输入模板信息" id="content" htmlEscape="false" rows="4"  maxlength="255"  class="form-control required"/>
+                    </div>
+                </div>
+            </div>
+        </form:form>
+    </div>
+</div>
+<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
+<script>
+
+
+</script>
+</body>
+</html>

+ 267 - 0
src/main/webapp/webpage/modules/identification/default/defaultAuditTemplateList.jsp

@@ -0,0 +1,267 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/webpage/include/taglib.jsp"%>
+<html>
+<head>
+    <title>子项目列表</title>
+    <meta name="decorator" content="default"/>
+    <%--<script src="${ctxStatic}/layer-v2.3/laydate/laydate.js"></script>--%>
+    <script type="text/javascript">
+        $(document).ready(function() {
+
+            //搜索框收放
+            $('#moresee').click(function(){
+                if($('#moresees').is(':visible'))
+                {
+                    $('#moresees').slideUp(0,resizeListWindow2);
+                    $('#moresee i').removeClass("glyphicon glyphicon-menu-up").addClass("glyphicon glyphicon-menu-down");
+                }else{
+                    $('#moresees').slideDown(0,resizeListWindow2);
+                    $('#moresee i').removeClass("glyphicon glyphicon-menu-down").addClass("glyphicon glyphicon-menu-up");
+                }
+            });
+        });
+
+        function reset() {
+            $("#searchForm").resetForm();
+        }
+        function openDialog(title,url,width,height,target,formId,tableId) {
+
+            if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
+                width = 'auto';
+                height = 'auto';
+            } else {//如果是PC端,根据用户设置的width和height显示。
+
+            }
+
+            top.layer.open({
+                type: 2,
+                area: [width, height],
+                title: title,
+                skin:"two-btns",
+                maxmin: false, //开启最大化最小化按钮
+                content: url ,
+                btn: ['确定','关闭'],
+                yes: function(index, layero){
+                    var body = top.layer.getChildFrame('body', index);
+                    var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
+                    var inputForm = body.find('#inputForm');
+                    var top_iframe;
+                    if(target){
+                        top_iframe = target;//如果指定了iframe,则在改frame中跳转
+                    }else{
+                        top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
+                    }
+                    inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
+                    inputForm.attr("action","${ctx}/defaultAuditTemplate/defaultAuditTemplate/save");//表单提交成功后,从服务器返回的url在当前tab中展示
+                    var $document = iframeWin.contentWindow.document;
+
+                    formSubmit2($document,formId,index,tableId);
+
+                },
+                cancel: function(index){
+                }
+            });
+        }
+
+        function formSubmit2($document,inputForm,index,tableId){
+
+            var validateForm = $($document.getElementById(inputForm)).validate({
+                submitHandler: function(form){
+                    loading('正在提交,请稍等...');
+                    form.submit();
+                },
+                errorContainer: "#messageBox",
+                errorPlacement: function(error, element) {
+                    $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
+                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
+                        error.appendTo(element.parent().parent());
+                    } else {
+                        error.insertAfter(element);
+                    }
+                }
+            });
+            if(validateForm.form()){
+                $($document.getElementById(inputForm)).ajaxSubmit({
+                    success:function(data) {
+                        var d = data;
+                        //输出提示信息
+                        if(d.str.length>0){
+                            parent.layer.msg(d.str,{icon:1});
+                        }
+                        window.location.reload();
+                        //关闭当前页
+                        top.layer.close(index)
+                    }
+                });
+            }
+        }
+        function openDialogre(title,url,width,height,target,formId,tableId) {
+            if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
+                width = 'auto';
+                height = 'auto';
+            } else {//如果是PC端,根据用户设置的width和height显示。
+
+            }
+
+            top.layer.open({
+                type: 2,
+                area: [width, height],
+                title: title,
+                skin:"two-btns",
+                maxmin: false, //开启最大化最小化按钮
+                content: url ,
+                btn: ['确定','关闭'],
+                yes: function(index, layero){
+                    var body = top.layer.getChildFrame('body', index);
+                    var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
+                    var inputForm = body.find('#inputForm');
+                    var top_iframe;
+                    if(target){
+                        top_iframe = target;//如果指定了iframe,则在改frame中跳转
+                    }else{
+                        top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
+                    }
+                    inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
+                    inputForm.attr("action","${ctx}/defaultAuditTemplate/defaultAuditTemplate/save");//表单提交成功后,从服务器返回的url在当前tab中展示
+                    var $document = iframeWin.contentWindow.document;
+
+                    formSubmit2($document,formId,index,tableId);
+
+                },
+                cancel: function(index){
+                }
+            });
+        }
+
+        // 确认对话框
+        function subConfirmx(mess, href, closed){
+
+            top.layer.confirm(mess, {icon: 3, title:'系统提示'}, function(index){
+                //do something
+                if (typeof href == 'function') {
+                    href();
+                }else{
+                    $.ajax({
+                        type:"post",
+                        url:href,
+                        dataType:"json",
+                        success:function(data){
+                            if(data.success) {
+                                top.layer.msg(data.str, {icon: 1});
+                                window.location.reload();
+                            }else {
+                                top.layer.msg(data.str, {icon: 0});
+                            }
+                        }
+                    })
+                }
+                top.layer.close(index);
+            });
+            return false;
+        }
+
+    </script>
+</head>
+<body>
+<div class="wrapper wrapper-content">
+    <sys:message content="${message}"/>
+    <div class="layui-row">
+        <div class="full-width fl">
+            <div class="layui-row contentShadow shadowLR" id="queryDiv">
+                <form:form id="searchForm" modelAttribute="defaultAuditTemplate" action="${ctx}/defaultAuditTemplate/defaultAuditTemplate/list?identification=${defaultAuditTemplate.identification}" method="post" class="form-inline">
+                    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
+                    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
+                    <table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
+                    <div class="commonQuery lw6">
+                        <div class="layui-item query athird">
+                            <label class="layui-form-label">模板内容:</label>
+                            <div class="layui-input-block with-icon">
+                                <form:input path="content" htmlEscape="false" maxlength="64"  class=" form-control  layui-input"/>
+                            </div>
+                        </div>
+                        <div class="layui-item fr">
+                            <div class="input-group">
+                                <a href="#" id="moresee"><i class="glyphicon glyphicon-menu-down"></i></a>
+                                <div class="layui-btn-group search-spacing">
+                                    <button id="searchQuery" class="layui-btn layui-btn-sm  layui-bg-blue" onclick="search()">查询</button>
+                                    <button id="searchReset" class="layui-btn layui-btn-sm" onclick="resetSearch()">重置</button>
+                                </div>
+                            </div>
+                        </div>
+                        <div style="    clear:both;"></div>
+                    </div>
+                    <div id="moresees" style="clear:both;display:none;" class="lw6">
+                        <div style="clear:both;"></div>
+                    </div>
+                </form:form>
+            </div>
+        </div>
+        <div class="full-width fl">
+            <div class="layui-form contentDetails contentShadow shadowLBR">
+                <div class="nav-btns">
+                    <div class="layui-btn-group ">
+                        <table:subProjectAddRow url="${ctx}/defaultAuditTemplate/defaultAuditTemplate/form?identification=${defaultAuditTemplate.identification}&name=${defaultAuditTemplate.name}" title="默认意见"></table:subProjectAddRow><!-- 增加按钮 -->
+                        <button class="layui-btn layui-btn-sm" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新">&nbsp;刷新</button>
+                    </div>
+                    <div style="clear: both;"></div>
+                </div>
+                <table class="oa-table layui-table" id="contentTable1"></table>
+
+                <!-- 分页代码 -->
+                <table:page page="${page}"></table:page>
+                <div style="clear: both;"></div>
+            </div>
+        </div>
+    </div>
+    <div id="changewidth"></div>
+</div>
+
+<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
+<script>
+
+    layui.use('table', function(){
+        layui.table.render({
+            limit:${ page.pageSize }
+            ,elem: '#contentTable1'
+            ,page: false
+            ,cols: [[
+                // {checkbox: true, fixed: true},
+                {field:'index',align:'center', title: '序号',width:60}
+                ,{field:'content',align:'center', title: '模板内容'}
+                ,{field:'op',align:'center',title:"操作",width:130,templet:function(d){
+                        ////对操作进行初始化
+                        var xml="";
+                        xml+="<a href=\"#\" onclick=\"openDialogre('默认意见修改', '${ctx}/defaultAuditTemplate/defaultAuditTemplate/form?id=" + d.id + "','95%', '95%','','inputForm','layui-border-box')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
+                        xml+="<a href=\"${ctx}/defaultAuditTemplate/defaultAuditTemplate/delete?id=" + d.id + "\" onclick=\"return subConfirmx('确认要删除默认意见吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style=\"margin-left:1px;\"> 删除</a>";
+                        return xml;
+
+                    }}
+            ]]
+            ,data: [
+                <c:if test="${ not empty page.list}">
+                <c:forEach items="${page.list}" var="defaultAuditTemplate" varStatus="index">
+                <c:if test="${index.index != 0}">,</c:if>
+                {
+                    "index":"${index.index+1}"
+                    ,"id":"${defaultAuditTemplate.id}"
+                    ,"content":"${defaultAuditTemplate.content}"
+                }
+                </c:forEach>
+                </c:if>
+            ]
+            // ,even: true
+            // ,height: 315
+        });
+    })
+
+    resizeListTable();
+    $("a").on("click",addLinkVisied);
+</script>
+<script>
+    resizeListWindow2();
+    $(window).resize(function(){
+        resizeListWindow2();
+    });
+</script>
+</body>
+</html>