|
@@ -74,6 +74,20 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="input-box" >
|
|
<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-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
|
|
|
|
+ <input class="my-input-date" list="contentlist" type="text" onchange="inputSelect()" name="content" id="content" placeholder="输入关键字查询,如果没有请直接在问题简述填写"/>
|
|
|
|
+ <datalist id="contentlist">
|
|
|
|
+ <#if (detectionBasisList?size > 0)>
|
|
|
|
+ <#list detectionBasisList as detectionBasis>
|
|
|
|
+ <option value="${detectionBasis.basisPhenomenon!""}" data-value="${detectionBasis.basisPhenomenon!""}" data-id="${detectionBasis.basisId!""}">
|
|
|
|
+ </#list>
|
|
|
|
+ </#if>
|
|
|
|
+ </datalist>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="input-box" >
|
|
<label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>工厂检测现象:</label>
|
|
<label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>工厂检测现象:</label>
|
|
<div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
|
|
<div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
|
|
<textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemPhenomenon" id="detectItemPhenomenon" class="my-textarea" placeholder="工厂检测现象"></textarea>
|
|
<textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemPhenomenon" id="detectItemPhenomenon" class="my-textarea" placeholder="工厂检测现象"></textarea>
|
|
@@ -157,6 +171,47 @@
|
|
</article>
|
|
</article>
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
+ function inputSelect(){
|
|
|
|
+ var input_select=$("#content").val();
|
|
|
|
+ var option_length=$("#contentlist option").length;
|
|
|
|
+ var option_id='';
|
|
|
|
+ for(var i=0;i<option_length;i++){
|
|
|
|
+ var option_value=$("#contentlist option").eq(i).attr('data-value');
|
|
|
|
+ if(input_select==option_value){
|
|
|
|
+ option_id=$("#contentlist option").eq(i).attr('data-id')
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $.ajax({
|
|
|
|
+ cache: true,
|
|
|
|
+ type: "POST",
|
|
|
|
+ url: "${path}/admin/detect/getDetectionBasis",
|
|
|
|
+ data:{basisId:option_id},
|
|
|
|
+ async: false,
|
|
|
|
+ success: function(data){
|
|
|
|
+ if (data.returnCode == 200) {
|
|
|
|
+ if(data.returnMsg.detectionBasis != null){
|
|
|
|
+ $("#detectItemPhenomenon").val(data.returnMsg.detectionBasis.basisPhenomenon);
|
|
|
|
+ $("#detectItemClassification").val(data.returnMsg.detectionBasis.basisClassification);
|
|
|
|
+ $("#detectItemFailureCause").val(data.returnMsg.detectionBasis.basisFailureCause);
|
|
|
|
+ $("#detectItemResults").val(data.returnMsg.detectionBasis.basisResults);
|
|
|
|
+ $("#detectItemPoint").val(data.returnMsg.detectionBasis.basisPoint);
|
|
|
|
+ $("#detectItemNalysis").val(data.returnMsg.detectionBasis.basisNalysis);
|
|
|
|
+ $("#detectItemContent").val(data.returnMsg.detectionBasis.basisContent);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
|
+ layer.msg('添加错误',{icon: 5,time:1000});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ $(document).on('click','#contentlist option',function(){
|
|
|
|
+ alert("11");
|
|
|
|
+ });
|
|
|
|
+
|
|
/*初始化单选框样式*/
|
|
/*初始化单选框样式*/
|
|
$(function(){
|
|
$(function(){
|
|
$('.skin-minimal input').iCheck({
|
|
$('.skin-minimal input').iCheck({
|
|
@@ -286,7 +341,7 @@
|
|
layer.msg('添加成功',{icon: 1,time:1000},function () {
|
|
layer.msg('添加成功',{icon: 1,time:1000},function () {
|
|
window.parent.location.reload();
|
|
window.parent.location.reload();
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
- parent.layer.close(index)
|
|
|
|
|
|
+ parent.layer.close(index);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
layer.msg('添加失败',{icon: 5,time:1000});
|
|
layer.msg('添加失败',{icon: 5,time:1000});
|
|
@@ -297,7 +352,6 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|