|
@@ -98,6 +98,12 @@
|
|
|
<input type="text" name="password" class="form-control" id="edit-password" placeholder="请输入密码">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="edit-phonenum" class="col-sm-2 control-label">手机号:</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <input type="text" name="phonenum" class="form-control" id="edit-phonenum" placeholder="请输入手机号">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
<label for="edit-area" class="col-sm-2 control-label">省份:</label>
|
|
|
<div class="col-sm-10">
|
|
@@ -263,6 +269,12 @@
|
|
|
<input type="text" name="password" class="form-control" id="add-password" placeholder="请输入密码">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="add-phonenum" class="col-sm-2 control-label">手机号:</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <input type="text" name="phonenum" class="form-control" id="add-phonenum" placeholder="请输入手机号">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
<label for="add-area" class="col-sm-2 control-label">省份:</label>
|
|
|
<div class="col-sm-10">
|
|
@@ -443,24 +455,24 @@ $(function(){
|
|
|
}},
|
|
|
//平台类型
|
|
|
{"targets":[9], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
- var aInput;
|
|
|
- $(cell).click(function () {
|
|
|
- $(this).html(selectPlateType(rowData._id,rowData.site));
|
|
|
- var aInput = $(this).find(":input");
|
|
|
- aInput.focus().val(cellData);
|
|
|
- });
|
|
|
- $(cell).on("click", ":input", function (e) {
|
|
|
- e.stopPropagation();
|
|
|
- });
|
|
|
- $(cell).on("change", ":input", function () {
|
|
|
- $(this).blur();
|
|
|
- });
|
|
|
- $(cell).on("blur", ":input", function () {
|
|
|
- var text = $(this).find("option:selected").text();
|
|
|
- ttable.cell(cell).data(text);
|
|
|
- cellData = text;
|
|
|
- });
|
|
|
- }},
|
|
|
+ var aInput;
|
|
|
+ $(cell).click(function () {
|
|
|
+ $(this).html(selectPlateType(rowData._id,rowData.site));
|
|
|
+ var aInput = $(this).find(":input");
|
|
|
+ aInput.focus().val(cellData);
|
|
|
+ });
|
|
|
+ $(cell).on("click", ":input", function (e) {
|
|
|
+ e.stopPropagation();
|
|
|
+ });
|
|
|
+ $(cell).on("change", ":input", function () {
|
|
|
+ $(this).blur();
|
|
|
+ });
|
|
|
+ $(cell).on("blur", ":input", function () {
|
|
|
+ var text = $(this).find("option:selected").text();
|
|
|
+ ttable.cell(cell).data(text);
|
|
|
+ cellData = text;
|
|
|
+ });
|
|
|
+ }},
|
|
|
//一级类型 toptype
|
|
|
{"targets":[10], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
var aInput;
|
|
@@ -503,70 +515,70 @@ $(function(){
|
|
|
}},
|
|
|
//发布省份
|
|
|
{"targets":[12], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
- var aInput;
|
|
|
- $(cell).click(function () {
|
|
|
- $(this).html(selectArea(rowData._id,rowData.site));
|
|
|
- var aInput = $(this).find(":input");
|
|
|
- aInput.focus().val(cellData);
|
|
|
- });
|
|
|
- $(cell).on("click", ":input", function (e) {
|
|
|
- e.stopPropagation();
|
|
|
- });
|
|
|
- $(cell).on("change", ":input", function () {
|
|
|
- $(this).blur();
|
|
|
- });
|
|
|
- $(cell).on("blur", ":input", function () {
|
|
|
- var text = $(this).find("option:selected").text();
|
|
|
- ttable.cell(cell).data(text);
|
|
|
- cellData = text;
|
|
|
- });
|
|
|
- }},
|
|
|
+ var aInput;
|
|
|
+ $(cell).click(function () {
|
|
|
+ $(this).html(selectArea(rowData._id,rowData.site));
|
|
|
+ var aInput = $(this).find(":input");
|
|
|
+ aInput.focus().val(cellData);
|
|
|
+ });
|
|
|
+ $(cell).on("click", ":input", function (e) {
|
|
|
+ e.stopPropagation();
|
|
|
+ });
|
|
|
+ $(cell).on("change", ":input", function () {
|
|
|
+ $(this).blur();
|
|
|
+ });
|
|
|
+ $(cell).on("blur", ":input", function () {
|
|
|
+ var text = $(this).find("option:selected").text();
|
|
|
+ ttable.cell(cell).data(text);
|
|
|
+ cellData = text;
|
|
|
+ });
|
|
|
+ }},
|
|
|
//发布城市
|
|
|
{"targets":[13], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
- var aInput;
|
|
|
- $(cell).click(function () {
|
|
|
- $(this).html(selectCity(rowData._id,rowData.f_area,rowData.site));
|
|
|
- var aInput = $(this).find(":input");
|
|
|
- aInput.focus().val(cellData);
|
|
|
- });
|
|
|
- $(cell).on("click", ":input", function (e) {
|
|
|
- e.stopPropagation();
|
|
|
- });
|
|
|
- $(cell).on("change", ":input", function () {
|
|
|
- $(this).blur();
|
|
|
- });
|
|
|
- $(cell).on("blur", ":input", function () {
|
|
|
- var text = $(this).find("option:selected").text();
|
|
|
- if(text == "--请选择--"){
|
|
|
- text = "";
|
|
|
- }
|
|
|
- ttable.cell(cell).data(text);
|
|
|
- cellData = text;
|
|
|
- });
|
|
|
- }},
|
|
|
+ var aInput;
|
|
|
+ $(cell).click(function () {
|
|
|
+ $(this).html(selectCity(rowData._id,rowData.f_area,rowData.site));
|
|
|
+ var aInput = $(this).find(":input");
|
|
|
+ aInput.focus().val(cellData);
|
|
|
+ });
|
|
|
+ $(cell).on("click", ":input", function (e) {
|
|
|
+ e.stopPropagation();
|
|
|
+ });
|
|
|
+ $(cell).on("change", ":input", function () {
|
|
|
+ $(this).blur();
|
|
|
+ });
|
|
|
+ $(cell).on("blur", ":input", function () {
|
|
|
+ var text = $(this).find("option:selected").text();
|
|
|
+ if(text == "--请选择--"){
|
|
|
+ text = "";
|
|
|
+ }
|
|
|
+ ttable.cell(cell).data(text);
|
|
|
+ cellData = text;
|
|
|
+ });
|
|
|
+ }},
|
|
|
//发布县区
|
|
|
{"targets":[14], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
- var aInput;
|
|
|
- $(cell).click(function () {
|
|
|
- $(this).html(selectDistrict(rowData._id,rowData.f_area,rowData.f_city,rowData.site));
|
|
|
- var aInput = $(this).find(":input");
|
|
|
- aInput.focus().val(cellData);
|
|
|
- });
|
|
|
- $(cell).on("click", ":input", function (e) {
|
|
|
- e.stopPropagation();
|
|
|
- });
|
|
|
- $(cell).on("change", ":input", function () {
|
|
|
- $(this).blur();
|
|
|
- });
|
|
|
- $(cell).on("blur", ":input", function () {
|
|
|
- var text = $(this).find("option:selected").text();
|
|
|
- if(text == "--请选择--"){
|
|
|
- text = "";
|
|
|
- }
|
|
|
- ttable.cell(cell).data(text);
|
|
|
- cellData = text;
|
|
|
- });
|
|
|
- }},
|
|
|
+ var aInput;
|
|
|
+ $(cell).click(function () {
|
|
|
+ $(this).html(selectDistrict(rowData._id,rowData.f_area,rowData.f_city,rowData.site));
|
|
|
+ var aInput = $(this).find(":input");
|
|
|
+ aInput.focus().val(cellData);
|
|
|
+ });
|
|
|
+ $(cell).on("click", ":input", function (e) {
|
|
|
+ e.stopPropagation();
|
|
|
+ });
|
|
|
+ $(cell).on("change", ":input", function () {
|
|
|
+ $(this).blur();
|
|
|
+ });
|
|
|
+ $(cell).on("blur", ":input", function () {
|
|
|
+ var text = $(this).find("option:selected").text();
|
|
|
+ if(text == "--请选择--"){
|
|
|
+ text = "";
|
|
|
+ }
|
|
|
+ ttable.cell(cell).data(text);
|
|
|
+ cellData = text;
|
|
|
+ });
|
|
|
+ }},
|
|
|
],
|
|
|
"order": [[3,"desc"]],
|
|
|
"lengthChange":false,
|
|
@@ -599,13 +611,13 @@ $(function(){
|
|
|
return val;
|
|
|
// return "<a href='http://"+val+"' target='_blank' style='color: #333'>"+val+"</a>"
|
|
|
}},
|
|
|
- { "data": "important",render:function(val,a,row){
|
|
|
- if(val == 1){
|
|
|
- return "是"
|
|
|
- }else{
|
|
|
- return "否"
|
|
|
- }
|
|
|
- }},
|
|
|
+ { "data": "important",render:function(val,a,row){
|
|
|
+ if(val == 1){
|
|
|
+ return "是"
|
|
|
+ }else{
|
|
|
+ return "否"
|
|
|
+ }
|
|
|
+ }},
|
|
|
{ "data": "area"},
|
|
|
{ "data": "city"},
|
|
|
{ "data": "district"},
|
|
@@ -628,25 +640,25 @@ $(function(){
|
|
|
// }
|
|
|
// return "<span title='"+tmpval+"'>"+val+"</span>"
|
|
|
// }},
|
|
|
- { "data": "infotype",render:function (val,a,row) {
|
|
|
- if(val){
|
|
|
- return val;
|
|
|
- }else{
|
|
|
- return "";
|
|
|
- }
|
|
|
- }},
|
|
|
+ { "data": "infotype",render:function (val,a,row) {
|
|
|
+ if(val){
|
|
|
+ return val;
|
|
|
+ }else{
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }},
|
|
|
{ "data": "platform"},
|
|
|
{ "data": "remarktime",width:"50px"},
|
|
|
{ "data": "_id",render:function (val,a,row){
|
|
|
- var div=$("<div><div class=\"btn-group\"></div></div>")
|
|
|
- var buttonEdit=$('<a type="button" target="_blank" class="btn btn-sm btn-default">编辑</a>');
|
|
|
- var buttonDelete=$('<a type="button" class="btn btn-sm btn-default">删除</a>');
|
|
|
- buttonEdit.attr("onclick","siteEdit('"+JSON.stringify(row)+"',)");
|
|
|
- buttonDelete.attr("onclick","siteDelete('"+val+"')");
|
|
|
- div.find(".btn-group").append(buttonEdit);
|
|
|
- div.find(".btn-group").append(buttonDelete);
|
|
|
- return div.html();
|
|
|
- }}
|
|
|
+ var div=$("<div><div class=\"btn-group\"></div></div>")
|
|
|
+ var buttonEdit=$('<a type="button" target="_blank" class="btn btn-sm btn-default">编辑</a>');
|
|
|
+ var buttonDelete=$('<a type="button" class="btn btn-sm btn-default">删除</a>');
|
|
|
+ buttonEdit.attr("onclick","siteEdit('"+JSON.stringify(row)+"')");
|
|
|
+ buttonDelete.attr("onclick","siteDelete('"+val+"')");
|
|
|
+ div.find(".btn-group").append(buttonEdit);
|
|
|
+ div.find(".btn-group").append(buttonDelete);
|
|
|
+ return div.html();
|
|
|
+ }}
|
|
|
],
|
|
|
"fnDrawCallback": function(table) {
|
|
|
$("ul.pagination").prepend(" 转到第 <input type='text' id='changePage' style='width:20px;'> 页 <a type='text' href='javascript:void(0);' id='dataTable-btn' style='text-align:center'>GO</a>");
|
|
@@ -958,6 +970,7 @@ function siteEdit(rowjson){
|
|
|
$("#edit-special_type").val(row.special_type);
|
|
|
$("#edit-account").val(row.account);
|
|
|
$("#edit-password").val(row.password);
|
|
|
+ $("#edit-phonenum").val(row.phonenum);
|
|
|
$("#edit-area").val(row.area);
|
|
|
// $("#edit-qy_area").val(row.qy_area);
|
|
|
$("#edit-city").val(row.city);
|