|
@@ -35,6 +35,12 @@
|
|
|
<input type="text" class="form-control" id="edit-area" placeholder="请输入省份">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="qy_area" class="col-sm-2 control-label">辅助省份:</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <input type="text" class="form-control" id="edit-qy_area" placeholder="请输入辅助省份">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
<label for="city" class="col-sm-2 control-label">城市:</label>
|
|
|
<div class="col-sm-10">
|
|
@@ -120,6 +126,12 @@
|
|
|
<input type="text" class="form-control" id="area" placeholder="请输入省份">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="qy_area" class="col-sm-2 control-label">辅助省份:</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <input type="text" class="form-control" id="qy_area" placeholder="请输入辅助省份">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
<label for="city" class="col-sm-2 control-label">城市:</label>
|
|
|
<div class="col-sm-10">
|
|
@@ -204,6 +216,7 @@
|
|
|
<th>别名</th>
|
|
|
<th>域名</th>
|
|
|
<th>省份</th>
|
|
|
+ <th>辅助省份</th>
|
|
|
<th>城市</th>
|
|
|
<th>区县</th>
|
|
|
<th>行业</th>
|
|
@@ -237,7 +250,7 @@ $(function(){
|
|
|
"url": "/js/dataTables.chinese.lang"
|
|
|
},
|
|
|
"columnDefs": [
|
|
|
- { "orderable": false, "targets": [0,1,3,4,5,6,7,8,9,10,11,13,14] },
|
|
|
+ { "orderable": false, "targets": [0,1,3,4,5,6,7,8,9,10,11,12,14,15] },
|
|
|
//爬虫挂起
|
|
|
{"targets":[3], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
var aInput;
|
|
@@ -264,7 +277,7 @@ $(function(){
|
|
|
});
|
|
|
}}
|
|
|
],
|
|
|
- "order": [[12,"desc"]],
|
|
|
+ "order": [[13,"desc"]],
|
|
|
"lengthChange":false,
|
|
|
"processing":true,
|
|
|
"serverSide": true,
|
|
@@ -296,6 +309,13 @@ $(function(){
|
|
|
return "<a href='http://"+val+"' target='_blank' style='color: #333'>"+val+"</a>"
|
|
|
}},
|
|
|
{ "data": "area"},
|
|
|
+ { "data": "qy_area",render:function (val,a,row) {
|
|
|
+ if(val){
|
|
|
+ return val;
|
|
|
+ }else{
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }},
|
|
|
{ "data": "city"},
|
|
|
{ "data": "district"},
|
|
|
{ "data": "industry"},
|
|
@@ -351,11 +371,16 @@ $(function(){
|
|
|
}else{
|
|
|
e.event="-1"
|
|
|
}
|
|
|
+ console.log("sitestype",sitestype)
|
|
|
if(sitestype){
|
|
|
+ if (sitestype == "空"){
|
|
|
+ sitestype = "";
|
|
|
+ }
|
|
|
e.sitestype = sitestype;
|
|
|
}else{
|
|
|
e.sitestype="-1";
|
|
|
}
|
|
|
+
|
|
|
if(area){
|
|
|
e.area = area;
|
|
|
}else{
|
|
@@ -393,6 +418,7 @@ $(function(){
|
|
|
for(k in sitetypes){
|
|
|
sitestype+="<option value='"+sitetypes[k]+"'>"+sitetypes[k]+"</option>";
|
|
|
}
|
|
|
+ sitestype+="<option value='空'>空</option>";
|
|
|
var selectStype="<div class='form-group'><label for='name'>网站类型:</label>"+
|
|
|
"<select id='sitestype' onchange='checkclick(this.value)' class='form-control input-sm'>"+
|
|
|
sitestype+
|
|
@@ -430,6 +456,7 @@ function updateSite(){
|
|
|
var domain = $("#edit-domain").val();
|
|
|
var othername = $("#edit-othername").val();
|
|
|
var area = $("#edit-area").val();
|
|
|
+ var qy_area = $("#edit-qy_area").val();
|
|
|
var city = $("#edit-city").val();
|
|
|
var district = $("#edit-district").val();
|
|
|
var industry = $("#edit-industry").val();
|
|
@@ -439,7 +466,7 @@ function updateSite(){
|
|
|
$.ajax({
|
|
|
url:"/center/site/savesite",
|
|
|
type:"post",
|
|
|
- data:{"id":id,"site":site,"sitetype":sitetype,"othername":othername,"domain":domain,"area":area,"city":city,"district":district,"industry":industry,"psite":psite,"ssite":ssite},
|
|
|
+ data:{"id":id,"site":site,"sitetype":sitetype,"othername":othername,"domain":domain,"area":area,"qy_area":qy_area,"city":city,"district":district,"industry":industry,"psite":psite,"ssite":ssite},
|
|
|
success:function (r){
|
|
|
if(r&&r.ok){
|
|
|
showTip("保存成功", 1000);
|
|
@@ -460,6 +487,7 @@ function siteEdit(rowjson){
|
|
|
$("#edit-domain").val(row.domain);
|
|
|
$("#edit-othername").val(row.another_name);
|
|
|
$("#edit-area").val(row.area);
|
|
|
+ $("#edit-qy_area").val(row.qy_area);
|
|
|
$("#edit-city").val(row.city);
|
|
|
$("#edit-district").val(row.district);
|
|
|
$("#edit-industry").val(row.industry);
|
|
@@ -518,6 +546,7 @@ function saveSite(id){
|
|
|
var domain = $("#domain").val();
|
|
|
var othername = $("#othername").val();
|
|
|
var area = $("#area").val();
|
|
|
+ var qy_area = $("#qy_area").val();
|
|
|
var city = $("#city").val();
|
|
|
var district = $("#district").val();
|
|
|
var industry = $("#industry").val();
|
|
@@ -527,7 +556,7 @@ function saveSite(id){
|
|
|
$.ajax({
|
|
|
url:"/center/site/savesite",
|
|
|
type:"post",
|
|
|
- data:{"id":id,"site":site,"sitetype":sitetype,"othername":othername,"domain":domain,"area":area,"city":city,"district":district,"industry":industry,"psite":psite,"ssite":ssite},
|
|
|
+ data:{"id":id,"site":site,"sitetype":sitetype,"othername":othername,"domain":domain,"area":area,"qy_area":qy_area,"city":city,"district":district,"industry":industry,"psite":psite,"ssite":ssite},
|
|
|
success:function (r){
|
|
|
if(r&&r.ok){
|
|
|
showTip("保存成功", 1000000);
|