|
@@ -25,6 +25,10 @@
|
|
|
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;}
|
|
|
+ .my-close{position:absolute;right: 0.5em;top: 0.45em;width:0.15em;height:1em;background: #333;-webkit-transform: rotate(45deg);transform: rotate(45deg);display: inline-block;}
|
|
|
+ .my-close:after{content: "";position: absolute;top: 0;left: 0;width:0.15em;height:1em;background: #333;-webkit-transform: rotate(270deg);transform: rotate(270deg);}
|
|
|
+ .b-close{position: relative; display: inline-block;margin: 2px 0; padding:4px 1em 4px 4px; width: 100px;background: #f0f0f0;border: 1px solid rgba(0,0,0,.1);border-radius: 5px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;cursor: pointer;}
|
|
|
+ .close-box{width: 500px;margin-left: 15px;margin-top: -15px;}
|
|
|
</style>
|
|
|
<meta name="keywords" content="${path}">
|
|
|
<meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
|
|
@@ -115,48 +119,221 @@
|
|
|
<input class="my-input" style="width: 90%;" type="text" value="${detectInfo.detectVersionNumber!''}" name="detectVersionNumber" id="detectVersionNumber" placeholder="请输入版本号"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="input-box" >
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;">检测现象:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px;">
|
|
|
+ <select id="configSelect1" name="configSelect1" class="my-select" style="width: 93%;">
|
|
|
+ <#if (config1?size > 0)>
|
|
|
+ <#list config1 as config>
|
|
|
+ <option value="${config.configId!""}">${config.configDetectContent!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"></label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" id="config1" style="margin: 10px 0px;">
|
|
|
+ <div class="row">
|
|
|
+ <ul class="close-box" id="configui1">
|
|
|
+ <#if detectPhenomenonList??>
|
|
|
+ <#if (detectPhenomenonList?size > 0)>
|
|
|
+ <#list detectPhenomenonList as detectPhenomenon>
|
|
|
+ <li class="b-close" id="configDetele1">
|
|
|
+ <input type="hidden" value="${detectPhenomenon.itemConfigId!''}" name="configli1">
|
|
|
+ ${detectPhenomenon.itemDetectContent!''}
|
|
|
+ <span class="my-close" onclick="deleteli(this)"></span>
|
|
|
+ </li>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;">故障原因:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px;">
|
|
|
+ <select id="configSelect2" name="configSelect2" class="my-select" style="width: 93%;">
|
|
|
+ <#if (config2?size > 0)>
|
|
|
+ <#list config2 as config>
|
|
|
+ <option value="${config.configId!""}">${config.configDetectContent!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"></label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" id="config2" style="margin: 10px 0px;">
|
|
|
+ <div class="row">
|
|
|
+ <ul class="close-box" id="configui2">
|
|
|
+ <#if detectFailureCauseList??>
|
|
|
+ <#if (detectFailureCauseList?size > 0)>
|
|
|
+ <#list detectFailureCauseList as detectFailureCause>
|
|
|
+ <li class="b-close" id="configDetele2">
|
|
|
+ <input type="hidden" value="${detectFailureCause.itemConfigId!''}" name="configli2">
|
|
|
+ ${detectFailureCause.itemDetectContent!''}
|
|
|
+ <span class="my-close" onclick="deleteli(this)"></span>
|
|
|
+ </li>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;">判定结果:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px;">
|
|
|
+ <select id="configSelect3" name="configSelect3" class="my-select" style="width: 93%;">
|
|
|
+ <#if (config3?size > 0)>
|
|
|
+ <#list config3 as config>
|
|
|
+ <option value="${config.configId!""}">${config.configDetectContent!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"></label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" id="config3" style="margin: 10px 0px;">
|
|
|
+ <div class="row">
|
|
|
+ <ul class="close-box" id="configui3">
|
|
|
+ <#if detectResultsList??>
|
|
|
+ <#if (detectResultsList?size > 0)>
|
|
|
+ <#list detectResultsList as detectResults>
|
|
|
+ <li class="b-close" id="configDetele3">
|
|
|
+ <input type="hidden" value="${detectResults.itemConfigId!''}" name="configli3">
|
|
|
+ ${detectResults.itemDetectContent!''}
|
|
|
+ <span class="my-close" onclick="deleteli(this)"></span>
|
|
|
+ </li>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;">故障指向:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px;">
|
|
|
+ <select id="configSelect4" name="configSelect4" class="my-select" style="width: 93%;">
|
|
|
+ <#if (config4?size > 0)>
|
|
|
+ <#list config4 as config>
|
|
|
+ <option value="${config.configId!""}">${config.configDetectContent!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"></label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" id="config4" style="margin: 10px 0px;">
|
|
|
+ <div class="row">
|
|
|
+ <ul class="close-box" id="configui4">
|
|
|
+ <#if (detectPointList?size > 0)>
|
|
|
+ <#list detectPointList as detectPoint>
|
|
|
+ <li class="b-close" id="configDetele4">
|
|
|
+ <input type="hidden" value="${detectPoint.itemConfigId!''}" name="configli4">
|
|
|
+ ${detectPoint.itemDetectContent!''}
|
|
|
+ <span class="my-close" onclick="deleteli(this)"></span>
|
|
|
+ </li>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;">原因分析:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px;">
|
|
|
+ <select id="configSelect5" name="configSelect5" class="my-select" style="width: 93%;">
|
|
|
+ <#if (config5?size > 0)>
|
|
|
+ <#list config5 as config>
|
|
|
+ <option value="${config.configId!""}">${config.configDetectContent!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"></label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" id="config5" style="margin: 10px 0px;">
|
|
|
+ <div class="row">
|
|
|
+ <ul class="close-box" id="configui5">
|
|
|
+ <#if (detectNalysisList?size > 0)>
|
|
|
+ <#list detectNalysisList as detectNalysis>
|
|
|
+ <li class="b-close" id="configDetele5">
|
|
|
+ <input type="hidden" value="${detectNalysis.itemConfigId!''}" name="configli5">
|
|
|
+ ${detectNalysis.itemDetectContent!''}
|
|
|
+ <span class="my-close" onclick="deleteli(this)"></span>
|
|
|
+ </li>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </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>-->
|
|
|
+ <#–<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>-->
|
|
|
+ <#–<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>-->
|
|
|
+ <#–<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>-->
|
|
|
+ <#–<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>-->
|
|
|
+ <#–<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>-->
|
|
|
+ <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;">
|
|
@@ -225,6 +402,102 @@
|
|
|
increaseArea: '20%'
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ function deleteli(obj) {
|
|
|
+ $(obj).parent().remove();
|
|
|
+ }
|
|
|
+
|
|
|
+ $('#configSelect1').change(function() {
|
|
|
+ var name = $("#configSelect1 option:selected").text();
|
|
|
+ var id = $('#configSelect1').val();
|
|
|
+ var bl = true;
|
|
|
+ $("input[name='configli1']").each(function(j,item){
|
|
|
+ var s = $(item).val();
|
|
|
+ if(s === id){
|
|
|
+ bl = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(bl){
|
|
|
+ $("#configui1").append('<li class="b-close" id="configDetele1">' +
|
|
|
+ ' <input type="hidden" value="'+id+'" name="configli1">' +name+
|
|
|
+ '<span class="my-close" onclick="deleteli(this)"></span>' +
|
|
|
+ '</li>');
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#configSelect2').change(function() {
|
|
|
+ var name = $("#configSelect2 option:selected").text();
|
|
|
+ var id = $('#configSelect2').val();
|
|
|
+ var bl = true;
|
|
|
+ $("input[name='configli2']").each(function(j,item){
|
|
|
+ var s = $(item).val();
|
|
|
+ if(s === id){
|
|
|
+ bl = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(bl){
|
|
|
+ $("#configui2").append('<li class="b-close" id="configDetele2">' +
|
|
|
+ ' <input type="hidden" value="'+id+'" name="configli2">' +name+
|
|
|
+ '<span class="my-close" onclick="deleteli(this)"></span>' +
|
|
|
+ '</li>');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#configSelect3').change(function() {
|
|
|
+ var name = $("#configSelect3 option:selected").text();
|
|
|
+ var id = $('#configSelect3').val();
|
|
|
+ var bl = true;
|
|
|
+ $("input[name='configli3']").each(function(j,item){
|
|
|
+ var s = $(item).val();
|
|
|
+ if(s === id){
|
|
|
+ bl = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(bl) {
|
|
|
+ $("#configui3").append('<li class="b-close" id="configDetele3">' +
|
|
|
+ ' <input type="hidden" value="' + id + '" name="configli3">' + name +
|
|
|
+ '<span class="my-close" onclick="deleteli(this)"></span>' +
|
|
|
+ '</li>');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#configSelect4').change(function() {
|
|
|
+ var name = $("#configSelect4 option:selected").text();
|
|
|
+ var id = $('#configSelect4').val();
|
|
|
+ var bl = true;
|
|
|
+ $("input[name='configli4']").each(function(j,item){
|
|
|
+ var s = $(item).val();
|
|
|
+ if(s === id){
|
|
|
+ bl = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(bl) {
|
|
|
+ $("#configui4").append('<li class="b-close" id="configDetele4">' +
|
|
|
+ ' <input type="hidden" value="' + id + '" name="configli4">' + name +
|
|
|
+ '<span class="my-close" onclick="deleteli(this)"></span>' +
|
|
|
+ '</li>');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#configSelect5').change(function() {
|
|
|
+ var name = $("#configSelect5 option:selected").text();
|
|
|
+ var id = $('#configSelect5').val();
|
|
|
+ var bl = true;
|
|
|
+ $("input[name='configli5']").each(function(j,item){
|
|
|
+ var s = $(item).val();
|
|
|
+ if(s === id){
|
|
|
+ bl = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(bl) {
|
|
|
+ $("#configui5").append('<li class="b-close" id="configDetele5">' +
|
|
|
+ ' <input type="hidden" value="' + id + '" name="configli5">' + name +
|
|
|
+ '<span class="my-close" onclick="deleteli(this)"></span>' +
|
|
|
+ '</li>');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
/***
|
|
|
* 删除图片
|
|
|
*/
|