Browse Source

站点列表更新

maxiaoshan 1 year ago
parent
commit
cd4c7846c2
2 changed files with 3 additions and 6 deletions
  1. 2 2
      src/web/templates/index.html
  2. 1 4
      src/web/templates/sitelist.html

+ 2 - 2
src/web/templates/index.html

@@ -179,7 +179,7 @@ $(function(){
               "url": "/js/dataTables.chinese.lang"
           },
 		"columnDefs": [
-			{ "orderable": false, "targets": [0,2,4,5,6,7,8,9,10,11,12] },
+			{ "orderable": false, "targets": [0,2,4,5,6,7,9,10,11,12] },
 			//爬虫类型
 			{"targets":[4], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
 				{{if gt (session "auth") 2}}
@@ -346,7 +346,7 @@ $(function(){
 				});
 			}}
 		],
-
+		"order": [[8,"desc"]],
 		"processing":true,
 		"serverSide": true,
 		"searching": true,

+ 1 - 4
src/web/templates/sitelist.html

@@ -1105,7 +1105,6 @@ function selectClassTwoSiteTypes(id,siteType){
 
 //发布省份选择
 function selectArea(id){
-    console.log(id)
     var areasOptions = "";
     for(k in areas){
         areasOptions+="<option value='"+areas[k]+"'>"+areas[k]+"</option>";
@@ -1115,7 +1114,6 @@ function selectArea(id){
 
 //发布城市选择
 function selectCity(id,area){
-    console.log(id)
     var cityOptions ="<option value=''>--请选择--</option>";
     if(area != "全国" && area != ""){
         for(k in provinces[area]){
@@ -1127,7 +1125,6 @@ function selectCity(id,area){
 
 //发布县区选择
 function selectDistrict(id,area,city){
-    console.log(id)
     var districtOptions ="<option value=''>--请选择--</option>";
     if(area != "全国" && area != "" && city != ""){
         for(k in citys[city]){
@@ -1150,7 +1147,7 @@ function updateSite(updatetype,val,id) {
             if(r=="n"){
                 showTip("修改失败", 1000, function() {});
             }
-            ttable.ajax.reload();
+            // ttable.ajax.reload();
         }
     })
 }