zouyuxuan 5 жил өмнө
parent
commit
4075490e41

+ 25 - 5
core/src/web/templates/manage/loan/evaluation.html

@@ -127,15 +127,15 @@
             <div id="audit" style="margin-top: 20px"></div>
         </div>
         <div class="record" style="display: none">
-            <div style="position: relative;float: left;margin-left: 206px;margin-top: -246px;width: 280px;height: 200px">
+            <div style="position: relative;float: left;margin-left: 206px;margin-top: -366px;width: 280px;height: 300px;">
                 <span style="font-size: 24px;">回访记录:</span>
                 <span id="visit-person"></span>
                 <span id="visit-time"></span>
-                <div id="visit-record">
+                <div id="visit-record" style="overflow-y: auto;">
 
                 </div>
             </div>
-            <div style="position: relative;float: left;margin-left: 580px;margin-top: -260px;">
+            <div style="position: relative;float: right;margin-left: 580px;margin-top: -366px;">
                 <span style="font-size: 24px" >贷款评估意见:</span>
                 <textarea id="evaluation" name="evaluation" style="width: 400px;height: 200px;" placeholder="多行输入"></textarea>
                 <div>
@@ -282,8 +282,10 @@
             async: false,
             method: "POST",
             success:function (d) {
+                var visit_record="";
+                visit_record = format(d.data[0].visit_msg);
                 $("#visit-person").html(d.data[0].visit_person);
-                $("#visit-record").html(d.data[0].visit_msg);
+                $("#visit-record").html(visit_record);
                 $("#visit-time").html(d.data[0].visit_time);
                 $(".record").show();
                 $("#manage").focus();
@@ -292,10 +294,17 @@
     });
     //单击事件
     $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
+        $(this).addClass("selected");
+        $(this).css("background","rgb(202, 198, 133)");
+        $(this).siblings().css("background","rgb(255,255,255)");
+        $(this).siblings().removeClass("selected");
         $("#visit-person").text("");
         $("#visit-record").text("");
         $("#visit-time").text("");
-        $(".record").hide()
+        $(".record").hide();
+        // if ($(this).hasClass("select")){
+        //     window.location.href = ""
+        // }
     });
     function submit() {
         var content = $("#evaluation").val();
@@ -326,5 +335,16 @@
     function cancle() {
         window.location.href = "/manage/loan/evaluationlist"
     }
+    function format(d) {
+        if (typeof(d)!== "undefined"){
+            console.log(d)
+            var tt =d.replace(/&#60;/g,"<");
+            var t = tt.replace(/&#62;/g,">");
+            return t
+        }else{
+            return ""
+        }
+
+    }
 </script>
 </html>

+ 9 - 3
core/src/web/templates/manage/loan/show_clue.html

@@ -279,9 +279,15 @@
         window.location.href = "/manage/loan/cluelist"
     }
     function format(d) {
-        var tt =d.replace(/&#60;/g,"<");
-        var t = tt.replace(/&#62;/g,">");
-        return t
+        if (typeof(d)!== "undefined"){
+            console.log(d)
+            var tt =d.replace(/&#60;/g,"<");
+            var t = tt.replace(/&#62;/g,">");
+            return t
+        }else{
+            return ""
+        }
+
     }
 </script>
 </html>