|  | @@ -0,0 +1,169 @@
 | 
											
												
													
														|  | 
 |  | +<%@ page language="java" contentType="text/html; charset=UTF-8"
 | 
											
												
													
														|  | 
 |  | +         pageEncoding="UTF-8"%>
 | 
											
												
													
														|  | 
 |  | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 | 
											
												
													
														|  | 
 |  | +<!DOCTYPE html>
 | 
											
												
													
														|  | 
 |  | +<html>
 | 
											
												
													
														|  | 
 |  | +<head>
 | 
											
												
													
														|  | 
 |  | +    <jsp:include page="../../../common/common-meta-include.jsp"></jsp:include>
 | 
											
												
													
														|  | 
 |  | +    <jsp:include page="../../../common/common-js-include.jsp"></jsp:include>
 | 
											
												
													
														|  | 
 |  | +    <jsp:include page="../../../common/common-css-include.jsp"></jsp:include>
 | 
											
												
													
														|  | 
 |  | +    <!--[if lt IE 9]>
 | 
											
												
													
														|  | 
 |  | +    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
 | 
											
												
													
														|  | 
 |  | +    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
 | 
											
												
													
														|  | 
 |  | +    <![endif]-->
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    <style type="text/css">
 | 
											
												
													
														|  | 
 |  | +		.layui-form-radio {
 | 
											
												
													
														|  | 
 |  | +			margin:0 10px 0 0;
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        .layui-form-item{
 | 
											
												
													
														|  | 
 |  | +            display: flex;
 | 
											
												
													
														|  | 
 |  | +            justify-content: flex-start;
 | 
											
												
													
														|  | 
 |  | +            align-items: center;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        .layui-form-label{
 | 
											
												
													
														|  | 
 |  | +            white-space: nowrap;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        .btn_add {
 | 
											
												
													
														|  | 
 |  | +            padding: 3px 15px;
 | 
											
												
													
														|  | 
 |  | +            border-radius: 5px;
 | 
											
												
													
														|  | 
 |  | +            cursor: pointer;
 | 
											
												
													
														|  | 
 |  | +            background: #5fcc06;
 | 
											
												
													
														|  | 
 |  | +            color: #fff;
 | 
											
												
													
														|  | 
 |  | +            margin-bottom: 15px;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        .layui-table-body::-webkit-scrollbar {
 | 
											
												
													
														|  | 
 |  | +            width: 0px;
 | 
											
												
													
														|  | 
 |  | +            /*height: 10px;*/
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        .layui-table-view .layui-table td > div>span {
 | 
											
												
													
														|  | 
 |  | +            /*min-height: 85px !important;*/
 | 
											
												
													
														|  | 
 |  | +            /*white-space: normal;*/
 | 
											
												
													
														|  | 
 |  | +            line-height: 22px !important;
 | 
											
												
													
														|  | 
 |  | +            display: -webkit-box; /* 使用旧版的弹性盒子布局 */
 | 
											
												
													
														|  | 
 |  | +            -webkit-box-orient: vertical; /* 设置为垂直方向排列 */
 | 
											
												
													
														|  | 
 |  | +            overflow: hidden; /* 隐藏溢出内容 */
 | 
											
												
													
														|  | 
 |  | +            text-overflow: ellipsis; /* 使用省略号表示溢出内容 */
 | 
											
												
													
														|  | 
 |  | +            -webkit-line-clamp: 2; /* 显示的行数 */
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        .layui-table-body .layui-table-cell{
 | 
											
												
													
														|  | 
 |  | +            padding: 5px !important;
 | 
											
												
													
														|  | 
 |  | +            height: 65px !important;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        .layui-table-header .layui-table-cell{
 | 
											
												
													
														|  | 
 |  | +            height: 42px !important;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        /*.btn_group{*/
 | 
											
												
													
														|  | 
 |  | +        /*    padding-left: 10px;*/
 | 
											
												
													
														|  | 
 |  | +        /*}*/
 | 
											
												
													
														|  | 
 |  | +	</style>
 | 
											
												
													
														|  | 
 |  | +</head>
 | 
											
												
													
														|  | 
 |  | +<body>
 | 
											
												
													
														|  | 
 |  | +<div class="layuimini-container">
 | 
											
												
													
														|  | 
 |  | +    <div class="layuimini-main">
 | 
											
												
													
														|  | 
 |  | +        <div class="layui-form" lay-filter="formData">
 | 
											
												
													
														|  | 
 |  | +<%--            <div class="layui-form-item">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                <input type="hidden" id="id" name="id" value="${id}">--%>
 | 
											
												
													
														|  | 
 |  | +<%--            </div>--%>
 | 
											
												
													
														|  | 
 |  | +<%--            <div class="layui-form-item">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                <div class="layui-inline">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                    <label class="layui-form-label required">用户登录名</label>--%>
 | 
											
												
													
														|  | 
 |  | +<%--                    <div class="layui-input-block">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                        <input type="text" name="login" lay-verify="required" lay-reqtext="请输入用户登录名"--%>
 | 
											
												
													
														|  | 
 |  | +<%--                               autocomplete="off" placeholder="请输入用户登录名" class="layui-input">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                    </div>--%>
 | 
											
												
													
														|  | 
 |  | +<%--                </div>--%>
 | 
											
												
													
														|  | 
 |  | +<%--                <div class="layui-inline">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                    <label class="layui-form-label required">真实姓名</label>--%>
 | 
											
												
													
														|  | 
 |  | +<%--                    <div class="layui-input-block">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                        <input type="text" name="title" lay-verify="required" lay-reqtext="请输入真实姓名"--%>
 | 
											
												
													
														|  | 
 |  | +<%--                               autocomplete="off" placeholder="请输入真实姓名" class="layui-input">--%>
 | 
											
												
													
														|  | 
 |  | +<%--                    </div>--%>
 | 
											
												
													
														|  | 
 |  | +<%--                </div>--%>
 | 
											
												
													
														|  | 
 |  | +<%--            </div>--%>
 | 
											
												
													
														|  | 
 |  | +            <div class="layui-form-item">
 | 
											
												
													
														|  | 
 |  | +                <input type="hidden" id="subId" name="subId" value="${subId}">
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +            <div class="layui-form-item">
 | 
											
												
													
														|  | 
 |  | +<%--                <div class="layui-inline">--%>
 | 
											
												
													
														|  | 
 |  | +                <div>
 | 
											
												
													
														|  | 
 |  | +                    <label class="layui-form-label" style="width: 100px">红黄灯:</label>
 | 
											
												
													
														|  | 
 |  | +                    <div class="layui-input-block">
 | 
											
												
													
														|  | 
 |  | +                        <c:forEach var="item" items="${statusRedList}">
 | 
											
												
													
														|  | 
 |  | +                            <input type="radio" name="statusRed" value="${item.code}" title="${item.name}"
 | 
											
												
													
														|  | 
 |  | +                                   <c:if test="${item.code == sourceStatusRed}">checked</c:if> />
 | 
											
												
													
														|  | 
 |  | +                        </c:forEach>
 | 
											
												
													
														|  | 
 |  | +                    </div>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +            <div class="layui-form-item">
 | 
											
												
													
														|  | 
 |  | +                <div class="layui-inline">
 | 
											
												
													
														|  | 
 |  | +                    <label class="layui-form-label" style="width: 100px">原因:</label>
 | 
											
												
													
														|  | 
 |  | +                    <div class="layui-input-block">
 | 
											
												
													
														|  | 
 |  | +                    <textarea placeholder="请输入原因" name="reason" maxlength="200" style="height: 150px;" id="compleDesc"
 | 
											
												
													
														|  | 
 |  | +                              autocomplete="off" class="layui-textarea">${reason}</textarea>
 | 
											
												
													
														|  | 
 |  | +                    </div>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +            <div class="layui-form-item" style="margin-top: 30px;">
 | 
											
												
													
														|  | 
 |  | +                <label class="layui-form-label "></label>
 | 
											
												
													
														|  | 
 |  | +                <div class="layui-input-block">
 | 
											
												
													
														|  | 
 |  | +                    <button type="button" class="layui-btn-submit" lay-submit lay-filter="submit">保存</button>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +    </div>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +</div>
 | 
											
												
													
														|  | 
 |  | +<%--<div id="app"></div>--%>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +<%--<template id="template" style="width: 300px;height: 400px">--%>
 | 
											
												
													
														|  | 
 |  | +<%--    <div class="layui-layout layui-layout-admin"  style="width: 300px;height: 400px">--%>
 | 
											
												
													
														|  | 
 |  | +<%--        <form class="layui-form" lay-filter="lightForm"  style="width: 300px;height: 400px" >--%>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +<%--        </form>--%>
 | 
											
												
													
														|  | 
 |  | +<%--    </div>--%>
 | 
											
												
													
														|  | 
 |  | +<%--</template>--%>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +<script>
 | 
											
												
													
														|  | 
 |  | +    new Vue({
 | 
											
												
													
														|  | 
 |  | +        el: "#app",
 | 
											
												
													
														|  | 
 |  | +        template: "#template",
 | 
											
												
													
														|  | 
 |  | +        data: {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        },
 | 
											
												
													
														|  | 
 |  | +        mounted : function() {
 | 
											
												
													
														|  | 
 |  | +            this.init();
 | 
											
												
													
														|  | 
 |  | +        },
 | 
											
												
													
														|  | 
 |  | +        methods: {
 | 
											
												
													
														|  | 
 |  | +            init : function() {
 | 
											
												
													
														|  | 
 |  | +                let self = this;
 | 
											
												
													
														|  | 
 |  | +                let statusRedList = [];
 | 
											
												
													
														|  | 
 |  | +                <c:forEach items="${statusRedList}" var="xm">
 | 
											
												
													
														|  | 
 |  | +                    statusRedList.push({code: "${xm.code}", name: "${xm.name}"});
 | 
											
												
													
														|  | 
 |  | +                </c:forEach>
 | 
											
												
													
														|  | 
 |  | +                self.statusRedList = statusRedList;
 | 
											
												
													
														|  | 
 |  | +                layui.form.on("submit(submit)", function (obj) {
 | 
											
												
													
														|  | 
 |  | +                    self.submit(obj);
 | 
											
												
													
														|  | 
 |  | +                });
 | 
											
												
													
														|  | 
 |  | +            },
 | 
											
												
													
														|  | 
 |  | +            submit: function(obj){
 | 
											
												
													
														|  | 
 |  | +                let self = this;
 | 
											
												
													
														|  | 
 |  | +                let statusRedName = self.statusRedList.find(item => item.code === obj.field.statusRed).name;
 | 
											
												
													
														|  | 
 |  | +                layer.confirm("确认修改为【"+statusRedName+"】?", function(){
 | 
											
												
													
														|  | 
 |  | +                    App.postJson("/api/subject/subInfo/editStatusRedLight", obj.field, function(res) {
 | 
											
												
													
														|  | 
 |  | +                        if (res.success) {
 | 
											
												
													
														|  | 
 |  | +                            App.msg.success("提交成功");
 | 
											
												
													
														|  | 
 |  | +                            top.layer.closeAll();
 | 
											
												
													
														|  | 
 |  | +                        } else {
 | 
											
												
													
														|  | 
 |  | +                            App.msg.error(res.message || "请求失败,请重试");
 | 
											
												
													
														|  | 
 |  | +                        }
 | 
											
												
													
														|  | 
 |  | +                    });
 | 
											
												
													
														|  | 
 |  | +                })
 | 
											
												
													
														|  | 
 |  | +            },
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +    });
 | 
											
												
													
														|  | 
 |  | +</script>
 | 
											
												
													
														|  | 
 |  | +</body>
 | 
											
												
													
														|  | 
 |  | +</html>
 |