|
@@ -92,8 +92,8 @@
|
|
|
totle_rows = tbody.rows.length;
|
|
|
if (totle_rows<=10){
|
|
|
var tr = document.createElement('tr')
|
|
|
- var classify_type = $("#type").val();
|
|
|
- var classify_discribe = $("#discribe").val()
|
|
|
+ var classify_type = document.getElementById("type").value;
|
|
|
+ var classify_discribe = document.getElementById("discribe").value;
|
|
|
if (classify_type!=""&&classify_discribe){
|
|
|
$.ajax({
|
|
|
url:"/manage/jy_loan/updataclassification",
|
|
@@ -102,13 +102,13 @@
|
|
|
data:{"type":"add","category":classify_type,"description":classify_discribe},
|
|
|
success:function (d) {
|
|
|
if (d.data.status == "1"){
|
|
|
- // window.location.href = "/manage/loan/setting"
|
|
|
+ window.location.reload();
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
// tr.innerHTML = '<td class="del add" onclick="add()">增加</td><td><input id="type" type="text" placeholder="新的线索类型" maxlength="10"></td><td><input id="discribe" type="text" placeholder="说明" maxlength="30"></td>'
|
|
|
// tbody.appendChild(tr)
|
|
|
- window.location.reload();
|
|
|
+ // window.location.reload();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -123,7 +123,7 @@
|
|
|
data:{"type":"del","uid":id},
|
|
|
success:function (d) {
|
|
|
if (d.data.status == "1"){
|
|
|
- window.location.href = "/manage/loan/setting"
|
|
|
+ window.location.reload();
|
|
|
}
|
|
|
|
|
|
}
|