|
@@ -0,0 +1,294 @@
|
|
|
|
+<!DOCTYPE HTML>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
|
+ <title>修改检测内容</title>
|
|
|
|
+ <style>
|
|
|
|
+ .my-title{font-weight: 500;padding-left: 15px;position: relative;}
|
|
|
|
+ .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
|
|
|
|
+ .my-input{padding: 8px 5px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
|
+ .my-input-date{padding: 8px 10px;border:1px solid rgba(0,0,0,.1);width: 80%;background: url(http://s.iamberry.com/images/rili-1.png) 98.5% center no-repeat; background-size:auto 50%;}
|
|
|
|
+ .input-box{margin: 18px 0;}
|
|
|
|
+ .input-dic{float: left;margin:5px 10px 0 0;font-size: 12px;}
|
|
|
|
+ .add-list{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
|
|
|
|
+ .add-list>li{margin: 10px 0;}
|
|
|
|
+ .my-textarea{padding: 5px 10px;width: 65%;border:1px solid rgba(0,0,0,.1);margin-left: 12.5%;}
|
|
|
|
+ .my-btn-reset{padding: 10px 20px;width: 150px; background-color: #fff;color: #32a3d8;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
|
+ .my-btn-submit{padding: 10px 20px;width: 130px; background-color: #50a2ea;color: #fff;border: 1px solid #50a2ea;cursor:pointer;margin: 10px auto 0 auto;display: block;}
|
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px; -webkit-appearance:none;appearance:none;background: url(/common/images/pts/select-11.png) right center no-repeat;background-size:auto 100%;}
|
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
|
+ .huanhang{ float:left}
|
|
|
|
+ .check-box, .radio-box{padding-left: 0;}
|
|
|
|
+ </style>
|
|
|
|
+ <meta name="keywords" content="${path}">
|
|
|
|
+ <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<article class="page-container">
|
|
|
|
+ <form class="form form-horizontal" id="form-admin-add">
|
|
|
|
+ <#--<div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>是否故障:</label>
|
|
|
|
+ <div class=" col-xs-9 col-sm-9 huanhang" >
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-3" name="isMaintenance" value="2" checked
|
|
|
|
+ <#if detectInfo.isMaintenance??><#if detectInfo.isMaintenance == 2>checked</#if></#if>/><label for="radio-3">无故障</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-4" name="isMaintenance" value="1"
|
|
|
|
+ <#if detectInfo.isMaintenance??><#if detectInfo.isMaintenance == 1>checked</#if></#if>/><label for="radio-4">有故障</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>-->
|
|
|
|
+ <div class="input-box" style="margin-top: 20px;">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>是否可翻新:</label>
|
|
|
|
+ <div class=" col-xs-9 col-sm-9 huanhang" >
|
|
|
|
+ <div class="radio-box" style="margin: 10px 0px;">
|
|
|
|
+ <input type="radio" id="radio-7" name="detectRenovation" value="1" checked
|
|
|
|
+ <#if detectInfo.detectRenovation??><#if detectInfo.detectRenovation == 1>checked</#if></#if>/><label for="radio-7">可翻新</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-8" name="detectRenovation" value="2"
|
|
|
|
+ <#if detectInfo.detectRenovation??><#if detectInfo.detectRenovation == 2>checked</#if></#if>/><label for="radio-8">不可翻新</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box" style="margin-top: 20px;">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">厚膜类型:</label>
|
|
|
|
+ <div class=" col-xs-9 col-sm-9 huanhang" >
|
|
|
|
+ <div class="radio-box" style="margin: 10px 0px;">
|
|
|
|
+ <input type="radio" id="radio-9" name="detectFilmType" value="1" checked
|
|
|
|
+ <#if detectInfo.detectFilmType??><#if detectInfo.detectFilmType == 1>checked</#if></#if>/><label for="radio-9">圆</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-10" name="detectFilmType" value="2"
|
|
|
|
+ <#if detectInfo.detectFilmType??><#if detectInfo.detectFilmType == 2>checked</#if></#if>/><label for="radio-10">扁</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box" style="margin-top: 20px;">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">浮子类型:</label>
|
|
|
|
+ <div class=" col-xs-9 col-sm-9 huanhang" >
|
|
|
|
+ <div class="radio-box" style="margin: 10px 0px;">
|
|
|
|
+ <input type="radio" id="radio-11" name="detectFloatType" value="1" checked
|
|
|
|
+ <#if detectInfo.detectFloatType??><#if detectInfo.detectFloatType == 1>checked</#if></#if>/><label for="radio-11">长</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-12" name="detectFloatType" value="2"
|
|
|
|
+ <#if detectInfo.detectFloatType??><#if detectInfo.detectFloatType == 2>checked</#if></#if>/><label for="radio-12">短</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box" style="margin-top: 20px;">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">是否翻新机:</label>
|
|
|
|
+ <div class=" col-xs-9 col-sm-9 huanhang" >
|
|
|
|
+ <div class="radio-box" style="margin: 10px 0px;">
|
|
|
|
+ <input type="radio" id="radio-13" name="detectIsRefurbishing" value="1" checked
|
|
|
|
+ <#if detectInfo.detectIsRefurbishing??><#if detectInfo.detectIsRefurbishing == 1>checked</#if></#if>/><label for="radio-13">是</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-14" name="detectIsRefurbishing" value="2"
|
|
|
|
+ <#if detectInfo.detectIsRefurbishing??><#if detectInfo.detectIsRefurbishing == 2>checked</#if></#if>/><label for="radio-14">否</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">生产月份:</label>
|
|
|
|
+ <div class="formControls col-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px">
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectProduction!''}" name="detectProduction" id="detectProduction" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M',dateFmt: 'yyyy-MM'})" placeholder="请选择月份" readonly="readonly"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box" >
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">机身条码:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectFuselageBarcode!''}" name="detectFuselageBarcode" id="detectFuselageBarcode" placeholder="请输入机身条码"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box" >
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">版本号:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectVersionNumber!''}" name="detectVersionNumber" id="detectVersionNumber" placeholder="请输入版本号"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box" >
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">检测现象:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#--<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectPhenomenon" id="detectPhenomenon" class="my-textarea" placeholder="请输入工厂的检测现象">${detectInfo.detectPhenomenon!''}</textarea>-->
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectPhenomenon!''}" name="detectPhenomenon" id="detectPhenomenon" placeholder="请输入检测现象"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">故障分类:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#--<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectClassification" id="detectClassification" class="my-textarea" placeholder="请输入故障分类">${detectInfo.detectClassification!''}</textarea>-->
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectClassification!''}" name="detectClassification" id="detectClassification" placeholder="请输入故障分类"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">故障原因:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#--<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectFailureCause" id="detectFailureCause" class="my-textarea" placeholder="请输入故障原因">${detectInfo.detectFailureCause!''}</textarea>-->
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectFailureCause!''}" name="detectFailureCause" id="detectFailureCause" placeholder="请输入故障原因"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">判定结果:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#--<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectResults" id="detectResults" class="my-textarea" placeholder="请输入判定结果">${detectInfo.detectResults!''}</textarea>-->
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectResults!''}" name="detectResults" id="detectResults" placeholder="请输入判定结果"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">故障指向:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#--<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectPoint" id="detectPoint" class="my-textarea" placeholder="请输入故障指向">${detectInfo.detectPoint!''}</textarea>-->
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectPoint!''}" name="detectPoint" id="detectPoint" placeholder="请输入故障指向"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">原因分析:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#--<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectNalysis" id="detectNalysis" class="my-textarea" placeholder="请输入原因分析">${detectInfo.detectNalysis!''}</textarea>-->
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectNalysis!''}" name="detectNalysis" id="detectNalysis" placeholder="请输入原因分析"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <#-- <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">检测内容:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <#–<textarea style="margin-left: 0%;width: 83%;" rows="2" cols="20" name="detectContent" id="detectContent" class="my-textarea" placeholder="请输入检测内容">${detectInfo.detectContent!''}</textarea>–>
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectContent!''}" name="detectContent" id="detectContent" placeholder="请输入检测内容"/>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>-->
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">维修报价:</label>
|
|
|
|
+ <div class="formControls col-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="<#if detectInfo.detectOffer??>${detectInfo.detectOffer/100}</#if>" name="detect_Offer" id="detect_Offer" placeholder="请输入维修报价" oninput = "value=value.replace(/[^\d]/g,'')"/>
|
|
|
|
+ <input type="hidden" name="detectOffer" id="detectOffer" value="">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>检测日期:</label>
|
|
|
|
+ <div class="formControls col-9 col-sm-9 skin-minimal huanhang" style="margin: 10px 0px;">
|
|
|
|
+ <input class="my-input" style="width: 90%;" type="text" value="<#if detectInfo.detectDate??>${detectInfo.detectDate?string("yyyy-MM-dd")!''}</#if>" name="detect_date" id="detectDate" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" placeholder="请选择检测日期" readonly="readonly"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;">备注信息:</label>
|
|
|
|
+ <div class="col-xs-9 col-sm-9 skin-minimal">
|
|
|
|
+ <div class="radio-box" style="padding: 0px; width: 100%;">
|
|
|
|
+ <textarea style="height: 60px;margin: 10px 0px 10px 0px;width: 85%;" name="detectDesc" id="detectDesc" class="my-textarea" placeholder="请填写寄出订单备注信息!">${detectInfo.detectDesc!''}</textarea>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <#--<div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-3 col-sm-3 huanhang" style="text-align: right;">添加附件:</label>
|
|
|
|
+ <div class="formControls col-xs-2 col-sm-2" id="fileDiv" style="width: 17%;width: 100px;height: 100px;margin-left: 8px;">
|
|
|
|
+ <input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 80px;height: 80px;">
|
|
|
|
+ <img alt="介绍图" src="${path}/common/images/pts/addparts.jpg" id="partsImg" width="80" height="80">
|
|
|
|
+ <#–<input type="hidden" id="componentsImg" name="componentsImg" value=""/>–>
|
|
|
|
+ <#–<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="uploadSubmit"><i class="Hui-iconfont"></i> 上传</button>–>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="imgDiv">
|
|
|
|
+ <#if (imgList?size > 0)>
|
|
|
|
+ <#list imgList as img>
|
|
|
|
+ <div class="col-xs-8 col-sm-8" onclick="deleteImg(this);" style="width: 17%;width: 100px;height: 100px;">
|
|
|
|
+ <img src="${img.detectImgUrl!''}" width="90" height="80">
|
|
|
|
+ <input type="hidden" name="componentsImg" value="${img.detectImgUrl!''}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </#list>
|
|
|
|
+ </#if>
|
|
|
|
+ </div>
|
|
|
|
+ </div>-->
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+ <input type="hidden" value="${detectInfo.detectId!''}" id="detectId" name="detectId">
|
|
|
|
+ <input type="hidden" value="${detectInfo.customerId!''}" id="customerId" name="customerId">
|
|
|
|
+ <button type="button" class="my-btn-submit" onclick="add();">确认修改</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+</article>
|
|
|
|
+<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
|
+<script type="text/javascript" src="${path}/common/lib/jquery/1.9.1/ajaxfileupload.js"></script>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ /*初始化单选框样式*/
|
|
|
|
+ $(function(){
|
|
|
|
+ $('.skin-minimal input').iCheck({
|
|
|
|
+ checkboxClass: 'icheckbox-blue',
|
|
|
|
+ radioClass: 'iradio-blue',
|
|
|
|
+ increaseArea: '20%'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ /***
|
|
|
|
+ * 删除图片
|
|
|
|
+ */
|
|
|
|
+ function deleteImg(obj){
|
|
|
|
+ layer.confirm("确认要删除该图片吗", { title: "确认" }, function (index) {
|
|
|
|
+ layer.close(index);
|
|
|
|
+ obj.remove();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $('#fileid').change(function() {
|
|
|
|
+ fileUpload();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ function fileUpload() {
|
|
|
|
+ $.ajaxFileUpload({
|
|
|
|
+ url:"${path}/admin/machineParts/fileUpload",
|
|
|
|
+ secureuri:false,
|
|
|
|
+ fileElementId:"fileid",//文件选择框的id属性
|
|
|
|
+ dataType: 'json', //json
|
|
|
|
+ success: function (data) {
|
|
|
|
+ if(data.returnCode == 200){
|
|
|
|
+ /*<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;">*/
|
|
|
|
+ $("#imgDiv").append('<div class="col-xs-8 col-sm-8" onclick="deleteImg(this);" style="width: 17%;width: 100px;height: 100px;">'
|
|
|
|
+ +'<img src="'+root_path+data.returnMsg.imgUrl+'" width="90" height="80">'
|
|
|
|
+ +'<input type="hidden" name="componentsImg" value="'+data.returnMsg.imgUrl+'"/>'
|
|
|
|
+ +'</div>');
|
|
|
|
+ }else{
|
|
|
|
+ layer.msg('上传失败,请重试!',{icon: 5,time:2000});
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ $('#fileid').change(function() {
|
|
|
|
+ fileUpload();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function add() {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ var detect_Offer = $("#detect_Offer").val();
|
|
|
|
+ if(detect_Offer != null && detect_Offer != ""){
|
|
|
|
+ $("#detectOffer").val(detect_Offer * 100)
|
|
|
|
+ }
|
|
|
|
+ $.ajax({
|
|
|
|
+ cache: true,
|
|
|
|
+ type: "POST",
|
|
|
|
+ url: "${path}/admin/detect/update",
|
|
|
|
+ data:$('#form-admin-add').serialize(),// 你的formid
|
|
|
|
+ async: false,
|
|
|
|
+ success: function(data){
|
|
|
|
+ if (data.returnCode == 200) {
|
|
|
|
+ layer.msg('操作成功',{icon: 1,time:1000},function () {
|
|
|
|
+ history.back(-1);
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ layer.msg('操作失败',{icon: 5,time:1000});
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
|
+ layer.msg('操作错误',{icon: 5,time:1000});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|