Commit ef7cbbb9 by yangliang

修改信息无法采集说明图片显示问题

parent 0c9340e6
......@@ -796,15 +796,21 @@
$.messager.alert( '提示',"人员属性不能为空!");
return -1;
}
if($("#ajlbdm").combobox("getValue")==null||$("#ajlbdm").combobox("getValue")==""){
$.messager.alert( '提示',"案件类别不能为空!");
return -1;
}
var rysx = $("input[name='rysx']:checked").val();
if((rysx==""||rysx=="01")&&($("#daztdm").combobox("getValue")==null||$("#daztdm").combobox("getValue")=="")){
$.messager.alert( '提示',"到案状态不能为空!");
return -1;
if(rysx==""||rysx=="01"){
if($("#daztdm").combobox("getValue")==null||$("#daztdm").combobox("getValue")==""){
$.messager.alert( '提示',"到案状态不能为空!");
return -1;
}
if($("#ajlbdm").combobox("getValue")==null||$("#ajlbdm").combobox("getValue")==""){
$.messager.alert( '提示',"案件类别不能为空!");
return -1;
}
}else{
if($("#xzajlbdm").combobox("getValue")==null||$("#xzajlbdm").combobox("getValue")==""){
$.messager.alert( '提示',"案件类别不能为空!");
return -1;
}
var zhfzxyrFzxyrdaztdm = $("#daztdm").combobox("getValue");
if(zhfzxyrFzxyrdaztdm=="1"){
if($("#zhddqh").combobox("getValue")==null||$("#zhddqh").combobox("getValue")==""){
......
......@@ -22,7 +22,7 @@
<input type="hidden" id="rybh" name="rybh" th:value="${xxwcjsm.rybh}"/>
<input type="hidden" id="xm" name="xm" th:value="${xxwcjsm.xm}"/>
<input type="hidden" id="gmsfhm" name="gmsfhm" th:value="${xxwcjsm.gmsfhm}"/>
<input type="hidden" id="wfcjsmStr" name="wfcjsmStr" th:value="${xxwcjsm.wcjsm}"/>
<input type="hidden" id="wcjsmStr" name="wcjsmStr" th:value="${xxwcjsm.wcjsm}"/>
<input type="hidden" id="wcjxStr" name="wcjxStr" th:value="${xxwcjsm.wcjx}"/>
<input type="hidden" id="type" name="type" th:value="${type}"/>
<input type="hidden" id="imgflag0" name="imgflag0" value="0"/>
......@@ -104,9 +104,30 @@ function editData() {//初始化数据
if (saveflag == "1") {
$.messager.alert('提示', "保存成功!");
}
var wcjxs = $("#wcjxStr").val().split(",");
for(var i=0;i<wcjxs.length;i++){
$("input[name='wcjx']").each(function(){
if($(this).val()==wcjxs[i]){
$(this).attr("checked","checked");
}
})
}
$("#wcjsm").val($("#wcjsmStr").val());
var img0Str64 = $("#img0Str64").val();
var img1Str64 = $("#img1Str64").val();
var img2Str64 = $("#img2Str64").val();
var img3Str64 = $("#img3Str64").val();
if(img0Str64!=null&&img0Str64!=""){
$("#imghead12").attr("src","data:image/jpg;base64,"+img0Str64);
$fileBox.find('.viewThumb').append('<img style="width: 160px;height: 220px;" id="img_WU_FILE_0" src="'+img0Str64+'" >');
}
if(img1Str64!=null&&img1Str64!=""){
$fileBox.find('.viewThumb').append('<img style="width: 160px;height: 220px;" id="img_WU_FILE_1" src="'+img1Str64+'" >');
}
if(img2Str64!=null&&img2Str64!=""){
$fileBox.find('.viewThumb').append('<img style="width: 160px;height: 220px;" id="img_WU_FILE_2" src="'+img2Str64+'" >');
}
if(img3Str64!=null&&img3Str64!=""){
$fileBox.find('.viewThumb').append('<img style="width: 160px;height: 220px;" id="img_WU_FILE_3" src="'+img3Str64+'" >');
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment