From 0e6d0e8975e92a6395d2d9f692edd5a7d0984c5a Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 15 六月 2022 08:39:59 +0800 Subject: [PATCH] 爬虫 --- zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml | 129 ++++++++++++++++++++++++++++-------------- 1 files changed, 86 insertions(+), 43 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml index 5a33af5..dadd4a8 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml @@ -713,7 +713,7 @@ } </select> - + <input type="hidden" name="complaintItemId" value="@complaintItemDTOs[i].Id" /> </div> @@ -733,25 +733,33 @@ { @if (complaintItemDTOs[i].sysCodeDtls.Count == 1) { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> - - </div> + </div> } else { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> - - </div> + </div> } } </div> @@ -782,7 +790,7 @@ } </select> - + <input type="hidden" name="complaintItemId" value="@complaintItemDTOs[i].Id" /> </div> @@ -800,25 +808,33 @@ { @if (complaintItemDTOs[i].sysCodeDtls.Count == 1) { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> - - </div> + </div> } else { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> - - </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + </div> } } </div> @@ -895,14 +911,18 @@ <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> @*<a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> - </a>*@ - <a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎵撳嵃</span> + <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> + </a>*@ + @*<a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;"> + <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎵撳嵃</span> + </a>*@ + <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition(1);" style="margin-left:4px; border-radius:4px;"> + <i class="glyphicon glyphicon-ok"></i> <span class="bold">淇濆瓨</span> </a> - <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> + <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition(2);" style="margin-left:4px; border-radius:4px;"> <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> </a> + <input type="hidden" id="Status" name="Status" value="0" /> </div> </div> @@ -972,8 +992,8 @@ // 淇濆瓨宀椾綅淇℃伅 - var savePosition = function () { - + var savePosition = function (Status) { + if ($.trim($("#TsrName").val()) == '') { toastr.warning("鎶曡瘔浜轰笉鑳戒负绌�"); return; @@ -1042,7 +1062,7 @@ toastr.warning("鍓湰鏁伴噺涓嶈兘涓虹┖"); return; } - + $("#Status").val(Status); //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } $.ajax({ @@ -1171,11 +1191,11 @@ function Questionchangge(i) { - + var challengeItemId = document.getElementsByName("complaintItemId")[i].value; var sss = document.getElementsByName("Question")[i].value; $.ajax({ type: "GET", - url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i, + url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i + "&challengeItemId=" + challengeItemId, dataType: "json", global: false, data: "", @@ -1195,7 +1215,11 @@ 銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + ` </div> - +<input type="hidden" name="Law" value="` + data.DataList[i].Comments + `" /> + <input type="hidden" name="complaintItemIdlaw" value="` + data.Remark + `" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> </div> `; } else { @@ -1206,7 +1230,11 @@ 銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + ` </div> - +<input type="hidden" name="Law" value="` + data.DataList[i].Comments + `" /> + <input type="hidden" name="complaintItemIdlaw" value="` + data.Remark + `" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> </div> `; } @@ -1439,7 +1467,7 @@ } </select> - + <input type="hidden" name="complaintItemId" value="`+ (guid()) + `" /> </div> </div> @@ -1523,6 +1551,21 @@ } } + + + function dellawBtn(obj) { + + $(obj).parent().parent().remove(); + + + } + + function guid() { + function S4() { + return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); + } + return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4()); + } </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1