|
@@ -54,22 +54,34 @@
|
|
|
</div>
|
|
|
<div class="box-body">
|
|
|
<div class="form-group">
|
|
|
- <label class="col-sm-2 control-label">客户名称</label>
|
|
|
+ <label class="col-sm-2 control-label"><span style="color:red;">* </span>客户名称</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input type="text" class="form-control radio-" id="cusName"
|
|
|
- placeholder="客户名称" value="{{.T.data.s_customername}}" disabled>
|
|
|
+ <input type="text" class="form-control" id="customer"
|
|
|
+ placeholder="客户名称" value="{{.T.data.s_customer}}">
|
|
|
</div>
|
|
|
- <label class="col-sm-2 control-label">规则名称</label>
|
|
|
+ <label class="col-sm-2 control-label">客户联系人</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input type="text" class="form-control" id="tagName" placeholder="规则名称"
|
|
|
- value="{{.T.data.s_tagname}}" disabled>
|
|
|
+ <input type="text" class="form-control" id="customername" placeholder="客户联系人姓名"
|
|
|
+ value="{{.T.data.s_customername}}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
- <label class="col-sm-2 control-label">销售经理</label>
|
|
|
+ <label class="col-sm-2 control-label"><span style="color:red;">* </span>销售经理</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input type="text" class="form-control" id="saleName" placeholder="销售经理"
|
|
|
- value="{{.T.data.s_salesperson}}" disabled>
|
|
|
+ <input type="text" class="form-control" id="salename" placeholder="销售经理"
|
|
|
+ value="{{.T.data.s_salesperson}}">
|
|
|
+ </div>
|
|
|
+ <label class="col-sm-2 control-label"><span style="color:red;">* </span>售前支持</label>
|
|
|
+ <div class="col-sm-3">
|
|
|
+ <input type="text" class="form-control" id="serverperson" placeholder="售前支持人员"
|
|
|
+ value="{{.T.data.s_serverperson}}">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label"><span style="color:red;">* </span>规则名称</label>
|
|
|
+ <div class="col-sm-3">
|
|
|
+ <input type="text" class="form-control" id="tagname" placeholder="规则名称"
|
|
|
+ value="{{.T.data.s_tagname}}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<hr>
|
|
@@ -188,7 +200,6 @@
|
|
|
</wui-date>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <input type="text" class="form-control" name="starttime" id="starttime" placeholder="开始时间" value="">-->
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label ">结束时间</label>
|
|
|
<div class="col-sm-3">
|
|
@@ -318,6 +329,7 @@
|
|
|
</h3>
|
|
|
<div style="float: right">
|
|
|
<a class="btn btn-default btn-sm" onclick="selectKeyMatch()">关键词匹配方式</a>
|
|
|
+ <a class="btn btn-default btn-sm" onclick="selectAddMatch()">附加词匹配方式</a>
|
|
|
<a class="btn btn-default btn-sm" onclick="selectNotMatch()">排除词匹配方式</a>
|
|
|
<a class="btn btn-default btn-sm" onclick="selectBuyer()">采购单位行业</a>
|
|
|
<a class="btn btn-default btn-sm" onclick="selectScope()">公告行业</a>
|
|
@@ -329,6 +341,7 @@
|
|
|
<th>编号</th>
|
|
|
<th><input type="checkbox" onclick="allSelect(this)" id="allCheckbox"></th>
|
|
|
<th>关键词</th>
|
|
|
+ <th>匹配方式</th>
|
|
|
<th>附加词</th>
|
|
|
<th>匹配方式</th>
|
|
|
<th>排除词</th>
|
|
@@ -363,10 +376,8 @@
|
|
|
var buyerClass = {{.T.buyerClass}};
|
|
|
var scopeClass = {{.T.scopeClass}};
|
|
|
|
|
|
- var matchCode1 = []; //匹配方式code
|
|
|
- var matchName1 = []; //匹配名字
|
|
|
- var matchCode2 = []; //匹配方式code
|
|
|
- var matchName2 = []; //匹配名字
|
|
|
+ var matchCode = []; //匹配方式code
|
|
|
+ var matchName = []; //匹配名字
|
|
|
var buyerArr = []; //采购单位
|
|
|
var scopeTopArr = []; //公告行业一级
|
|
|
var scopeSubArr = []; //公告行业二级
|
|
@@ -519,25 +530,14 @@
|
|
|
cell.innerHTML = i + 1;
|
|
|
});
|
|
|
},
|
|
|
- "data": o_rules,
|
|
|
+ "data": dataMap.o_rules,
|
|
|
"columns": [
|
|
|
- {"data": null, width: "1.5%"},
|
|
|
- {
|
|
|
- "data": function () {
|
|
|
+ {"data": null, width: "2%"},
|
|
|
+ {"data": "", width: "1%", render: function() {
|
|
|
return `<input type="checkbox" name="ckb-keyid" onclick="singleSelect(this)" style="text-align: center">`
|
|
|
- }, width: "1%"
|
|
|
- },
|
|
|
- {"data": "s_matchkey", width: "17%"},
|
|
|
- {
|
|
|
- "data": "s_addkey", width: "5%", render: function (val) {
|
|
|
- if (val == undefined) {
|
|
|
- val = ""
|
|
|
- }
|
|
|
- return val
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }},
|
|
|
+ {"data": "s_matchkey", width: "10%"},
|
|
|
+ {"data": function (row) {
|
|
|
var str = row.s_keymatch;
|
|
|
if (str != undefined && str != "") {
|
|
|
var s = "";
|
|
@@ -553,19 +553,27 @@
|
|
|
return s
|
|
|
}
|
|
|
return ""
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
- if (row.s_notkey != undefined) {
|
|
|
- return row.s_notkey
|
|
|
- } else {
|
|
|
- return ""
|
|
|
+ }, width: "5%"},
|
|
|
+ {"data": "s_addkey", width: "10%"},
|
|
|
+ {"data": function (row) {
|
|
|
+ var str = row.s_addkeymatch;
|
|
|
+ if (str != undefined && str != "") {
|
|
|
+ var s = "";
|
|
|
+ for (var i in matchTypeMap) {
|
|
|
+ if (str.indexOf(matchTypeMap[i]["code"]) != -1) {
|
|
|
+ if (s == "") {
|
|
|
+ s = matchTypeMap[i]["name"]
|
|
|
+ } else {
|
|
|
+ s = s + "," + matchTypeMap[i]["name"]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return s
|
|
|
}
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ return ""
|
|
|
+ }, width: "5%"},
|
|
|
+ {"data": "s_notkey", width: "10%"},
|
|
|
+ {"data": function (row) {
|
|
|
var str = row.s_notkeymatch;
|
|
|
if (str != undefined && str != "") {
|
|
|
var s = "";
|
|
@@ -581,36 +589,54 @@
|
|
|
return s
|
|
|
}
|
|
|
return ""
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
- if (row.s_buyerclass != undefined) {
|
|
|
- return row.s_buyerclass
|
|
|
- } else {
|
|
|
- return ""
|
|
|
- }
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
- var top = row.s_topscopeclass;
|
|
|
- var sub = row.s_subscopeclass;
|
|
|
- var str = "";
|
|
|
- if (top != undefined) {
|
|
|
- str = top
|
|
|
+ }, width: "5%"},
|
|
|
+ {"data": "s_buyerclass", width: "5%", render: function (val) {
|
|
|
+ if (val == undefined) {
|
|
|
+ val = ""
|
|
|
}
|
|
|
- if (sub != undefined && sub != "") {
|
|
|
- if (str == "") {
|
|
|
- str = sub
|
|
|
- } else {
|
|
|
- str = str + "," + sub
|
|
|
- }
|
|
|
+ return val
|
|
|
+ }},
|
|
|
+ {"data": "s_topscopeclass", width: "5%", render: function (val) {
|
|
|
+ if (val == undefined) {
|
|
|
+ val = ""
|
|
|
}
|
|
|
- return str
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- ]
|
|
|
+ return val
|
|
|
+ }},
|
|
|
+ ],
|
|
|
+ "columnDefs": [{
|
|
|
+ "targets": [2],
|
|
|
+ "render": function (data, type, full, meta) {
|
|
|
+ if (data && data.length > 24) {
|
|
|
+ return "<a title='" + data + "' href='#' style='text-decoration: none;'>" + data.trim().substr(0, 24) + "..." + "</a>";
|
|
|
+ }else if (data == undefined) {
|
|
|
+ return ""
|
|
|
+ }else {
|
|
|
+ return data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ "targets": [4],
|
|
|
+ "render": function (data, type, full, meta) {
|
|
|
+ if (data && data.length > 24) {
|
|
|
+ return "<a title='" + data + "' href='#' style='text-decoration: none;'>" + data.trim().substr(0, 24) + "..." + "</a>";
|
|
|
+ }else if (data == undefined) {
|
|
|
+ return ""
|
|
|
+ }else {
|
|
|
+ return data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ "targets": [6],
|
|
|
+ "render": function (data, type, full, meta) {
|
|
|
+ if (data && data.length > 24) {
|
|
|
+ return "<a title='" + data + "' href='#' style='text-decoration: none;'>" + data.trim().substr(0, 24) + "..." + "</a>";
|
|
|
+ }else if (data == undefined) {
|
|
|
+ return ""
|
|
|
+ }else {
|
|
|
+ return data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -679,17 +705,31 @@
|
|
|
//关键词匹配方式modal
|
|
|
function selectKeyMatch() {
|
|
|
if (keyTableChecked) {
|
|
|
- setValue = 5;
|
|
|
+ setValue = 4;
|
|
|
+ matchCode.length = 0;
|
|
|
+ matchName.length = 0;
|
|
|
$('#modal-select-match').modal("show");
|
|
|
} else {
|
|
|
alert("请选中关键词")
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ //附加词匹配方式
|
|
|
+ function selectAddMatch() {
|
|
|
+ if (keyTableChecked) {
|
|
|
+ setValue = 6;
|
|
|
+ matchCode.length = 0;
|
|
|
+ matchName.length = 0;
|
|
|
+ $('#modal-select-match').modal("show");
|
|
|
+ }else {
|
|
|
+ alert("请选中关键词")
|
|
|
+ }
|
|
|
+ }
|
|
|
//排除词匹配方式modal
|
|
|
function selectNotMatch() {
|
|
|
if (keyTableChecked) {
|
|
|
- setValue = 7;
|
|
|
+ setValue = 8;
|
|
|
+ matchCode.length = 0;
|
|
|
+ matchName.length = 0;
|
|
|
$('#modal-select-match').modal("show");
|
|
|
} else {
|
|
|
alert("请选中关键词")
|
|
@@ -700,22 +740,12 @@
|
|
|
function clickMatchBtn(obj) {
|
|
|
if ($(obj).hasClass("active-btn-match")) {
|
|
|
$(obj).removeClass("active-btn-match")
|
|
|
- if (setValue == 5) {
|
|
|
- matchCode1.splice($.inArray($(obj).attr("code"), matchCode), 1);
|
|
|
- matchName1.splice($.inArray($(obj).val(), matchName), 1)
|
|
|
- } else {
|
|
|
- matchCode2.splice($.inArray($(obj).attr("code"), matchCode), 1);
|
|
|
- matchName2.splice($.inArray($(obj).val(), matchName), 1)
|
|
|
- }
|
|
|
+ matchCode.splice($.inArray($(obj).attr("code"), matchCode), 1);
|
|
|
+ matchName.splice($.inArray($(obj).val(), matchName), 1)
|
|
|
} else {
|
|
|
$(obj).addClass("active-btn-match");
|
|
|
- if (setValue == 5) {
|
|
|
- matchCode1.push($(obj).attr("code"));
|
|
|
- matchName1.push($(obj).val())
|
|
|
- } else {
|
|
|
- matchCode2.push($(obj).attr("code"));
|
|
|
- matchName2.push($(obj).val())
|
|
|
- }
|
|
|
+ matchCode.push($(obj).attr("code"));
|
|
|
+ matchName.push($(obj).val())
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -727,44 +757,33 @@
|
|
|
$('#modal-select-match').modal("hide");
|
|
|
var matchNameStr = "";
|
|
|
var codeStr = "";
|
|
|
- if (setValue == 5) {
|
|
|
- for (var i in matchName1) {
|
|
|
- if (matchNameStr == "") {
|
|
|
- matchNameStr = matchName1[i];
|
|
|
- } else {
|
|
|
- matchNameStr += "," + matchName1[i]
|
|
|
- }
|
|
|
- if (codeStr == "") {
|
|
|
- codeStr = matchCode1[i]
|
|
|
- } else {
|
|
|
- codeStr = codeStr + "," + matchCode1[i]
|
|
|
- }
|
|
|
+ for (var i in matchName) {
|
|
|
+ if (matchNameStr == "") {
|
|
|
+ matchNameStr = matchName[i];
|
|
|
+ } else {
|
|
|
+ matchNameStr += "," + matchName[i]
|
|
|
}
|
|
|
- } else if (setValue == 7) {
|
|
|
- for (var i in matchName2) {
|
|
|
- if (matchNameStr == "") {
|
|
|
- matchNameStr = matchName2[i];
|
|
|
- } else {
|
|
|
- matchNameStr += "," + matchName2[i]
|
|
|
- }
|
|
|
- if (codeStr == "") {
|
|
|
- codeStr = matchCode2[i]
|
|
|
- } else {
|
|
|
- codeStr = codeStr + "," + matchCode2[i]
|
|
|
- }
|
|
|
+ if (codeStr == "") {
|
|
|
+ codeStr = matchCode[i]
|
|
|
+ } else {
|
|
|
+ codeStr = codeStr + "," + matchCode[i]
|
|
|
}
|
|
|
}
|
|
|
for (var i in selectIndex) {
|
|
|
var j = selectIndex[i] - 1;
|
|
|
- if (setValue == 5) {
|
|
|
- if ($("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(3)").text() != "" ||
|
|
|
- $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(4)").text() != "") {
|
|
|
- $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(" + setValue + ")").html(matchNameStr);
|
|
|
+ if (setValue == 4) {
|
|
|
+ if ($("#keywords tbody tr:nth-child("+selectIndex[i]+") td:nth-child(3)").text() != "") {
|
|
|
+ $("#keywords tbody tr:nth-child("+selectIndex[i]+") td:nth-child("+setValue+")").html(matchNameStr);
|
|
|
o_rules[j]["s_keymatch"] = codeStr;
|
|
|
}
|
|
|
- } else if (setValue == 7) {
|
|
|
- if ($("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(6)").text() != "") {
|
|
|
- $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(" + setValue + ")").html(matchNameStr);
|
|
|
+ }else if (setValue == 6) {
|
|
|
+ if ($("#keywords tbody tr:nth-child("+selectIndex[i]+") td:nth-child(5)").text() != "") {
|
|
|
+ $("#keywords tbody tr:nth-child("+selectIndex[i]+") td:nth-child("+setValue+")").html(matchNameStr);
|
|
|
+ o_rules[j]["s_addkeymatch"] = codeStr;
|
|
|
+ }
|
|
|
+ } else if (setValue == 8) {
|
|
|
+ if ($("#keywords tbody tr:nth-child("+selectIndex[i]+") td:nth-child(7)").text() != "") {
|
|
|
+ $("#keywords tbody tr:nth-child("+selectIndex[i]+") td:nth-child("+setValue+")").html(matchNameStr);
|
|
|
o_rules[j]["s_notkeymatch"] = codeStr;
|
|
|
}
|
|
|
}
|
|
@@ -796,7 +815,6 @@
|
|
|
buyerArr.push($(obj).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
function saveBuyer() {
|
|
|
$('#btnGroupBuyer').find("input").each(function () {
|
|
|
$(this).removeClass("active-btn-match");
|
|
@@ -813,7 +831,7 @@
|
|
|
for (var i in selectIndex) {
|
|
|
var j = selectIndex[i] - 1;
|
|
|
//采购单位
|
|
|
- $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(" + setValue + ")").html(buyerStr);
|
|
|
+ $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(9)").html(buyerStr);
|
|
|
o_rules[j]["s_buyerclass"] = buyerStr;
|
|
|
}
|
|
|
$('#modal-select-buyer').modal("hide");
|
|
@@ -829,7 +847,6 @@
|
|
|
alert("请选中关键词")
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//公告行业一级点击
|
|
|
function btnTopScopeClick(obj) {
|
|
|
if ($(obj).hasClass("active-btn-match")) {
|
|
@@ -840,7 +857,6 @@
|
|
|
scopeTopArr.push($(obj).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//公告行业二级点击
|
|
|
function btnSubScopeClick(obj) {
|
|
|
if ($(obj).hasClass("active-btn-match")) {
|
|
@@ -850,11 +866,9 @@
|
|
|
$(obj).addClass("active-btn-match");
|
|
|
var topid = "#top_" + $(obj).attr("index");
|
|
|
$(topid).removeClass("active-btn-match");
|
|
|
- // scopeSubArr.push($(obj).val())
|
|
|
scopeSubArr.push($(obj).attr("code"))
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
function saveScope() {
|
|
|
$('#btnGroupTop').find("input").each(function () {
|
|
|
$(this).removeClass("active-btn-match");
|
|
@@ -891,7 +905,7 @@
|
|
|
}
|
|
|
for (var i in selectIndex) {
|
|
|
var j = selectIndex[i] - 1;
|
|
|
- $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(9)").html(scopeStr);
|
|
|
+ $("#keywords tbody tr:nth-child(" + selectIndex[i] + ") td:nth-child(10)").html(scopeStr);
|
|
|
o_rules[j]["s_topscopeclass"] = topStr;
|
|
|
o_rules[j]["s_subscopeclass"] = subStr;
|
|
|
}
|
|
@@ -954,18 +968,17 @@
|
|
|
}
|
|
|
|
|
|
function saveTag() {
|
|
|
- dataMap["s_customername"] = $('#cusName').val();
|
|
|
- dataMap["s_tagname"] = $('#tagName').val();
|
|
|
+ dataMap["s_customer"] = $('#customer').val();
|
|
|
+ dataMap["s_tagname"] = $('#tagname').val();
|
|
|
+ dataMap["s_salesperson"] = $('#salename').val();
|
|
|
+ dataMap["s_serverperson"] = $("#serverperson").val();
|
|
|
+ dataMap["s_customername"] = $("#customername").val();
|
|
|
dataMap["s_globaladdkey"] = $('#g_addkey').val();
|
|
|
dataMap["s_globalnotkey"] = $('#g_notkey').val();
|
|
|
- if (dataMap["s_customername"] == "" || dataMap["s_tagname"] == "" || dataMap["s_salesperson"] == "") {
|
|
|
+ if (dataMap["s_customer"] == "" || dataMap["s_tagname"] == "" || dataMap["s_salesperson"] == "" || dataMap["s_serverperson"] == "") {
|
|
|
alert("请填写必须字段!")
|
|
|
return
|
|
|
}
|
|
|
- // if (o_rules == undefined || o_rules.length == 0) {
|
|
|
- // alert("请导入关键词!");
|
|
|
- // return
|
|
|
- // }
|
|
|
if ($('#starttime').find("input").val() != "") {
|
|
|
var start = $('#starttime').find("input").val();
|
|
|
start = new Date(start).getTime() / 1000;
|
|
@@ -1049,35 +1062,28 @@
|
|
|
},
|
|
|
"columns": [
|
|
|
{"data": null, width: "2%"},
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ {"data": function (row) {
|
|
|
if (row.s_matchkey != undefined) {
|
|
|
return row.s_matchkey
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "8%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "8%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.area != undefined) {
|
|
|
return row.area
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "4%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "4%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.city != undefined) {
|
|
|
return row.city
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "4%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "4%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.s_jyhref != undefined) {
|
|
|
if (row.title.length > 36) {
|
|
|
var str = row.title.substring(0, 36) + "..."
|
|
@@ -1089,36 +1095,28 @@
|
|
|
} else {
|
|
|
return row.title
|
|
|
}
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "5%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.subtype != undefined) {
|
|
|
return row.subtype
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "4%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "4%"},
|
|
|
+ {"data": function (row) {
|
|
|
var str = com.trimStr(row.detail);
|
|
|
if (str.length > 14) {
|
|
|
return str.substring(0, 14) + "..."
|
|
|
} else {
|
|
|
return str
|
|
|
}
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "5%"},
|
|
|
+ {"data": function (row) {
|
|
|
var dt = new Date();
|
|
|
dt.setTime(parseInt(row.publishtime) * 1000);
|
|
|
return dt.format("yyyy-MM-dd")
|
|
|
- }, width: "4%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "4%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.href != undefined) {
|
|
|
var shref = row.href;
|
|
|
tmp = '<a class="" target="_blank" href=' + shref + '>公告地址</a>';
|
|
@@ -1126,11 +1124,16 @@
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "5%"
|
|
|
- },
|
|
|
+ }, width: "5%"},
|
|
|
+ {"data": function (row) {
|
|
|
+ if (row.projectcode != undefined) {
|
|
|
+ return row.projectcode
|
|
|
+ }else {
|
|
|
+ return ""
|
|
|
+ }
|
|
|
+ }, width: "5%"},
|
|
|
{"data": "projectname", width: "5%"},
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ {"data": function (row) {
|
|
|
if (row.projectscope != undefined) {
|
|
|
if (row.projectscope.length > 14) {
|
|
|
return row.projectscope.substring(0, 14) + "..."
|
|
@@ -1139,28 +1142,22 @@
|
|
|
}
|
|
|
}
|
|
|
return ""
|
|
|
- }, width: "3%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "3%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.budget == undefined) {
|
|
|
return ""
|
|
|
} else {
|
|
|
return row.budget
|
|
|
}
|
|
|
- }, width: "3%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": function (row) {
|
|
|
+ }, width: "3%"},
|
|
|
+ {"data": function (row) {
|
|
|
if (row.bidamount == undefined) {
|
|
|
return ""
|
|
|
} else {
|
|
|
return row.bidamount
|
|
|
}
|
|
|
- }, width: "3%"
|
|
|
- },
|
|
|
- {
|
|
|
- "data": "bidopentime", width: "3%", render: function (val) {
|
|
|
+ }, width: "3%"},
|
|
|
+ {"data": "bidopentime", width: "3%", render: function (val) {
|
|
|
if (val != undefined) {
|
|
|
var dt = new Date();
|
|
|
dt.setTime(parseInt(val) * 1000);
|
|
@@ -1168,16 +1165,13 @@
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "data": "buyer", width: "3%", render: function (val) {
|
|
|
+ }},
|
|
|
+ {"data": "buyer", width: "3%", render: function (val) {
|
|
|
if (val == undefined) {
|
|
|
val = ""
|
|
|
}
|
|
|
return val
|
|
|
- }
|
|
|
- },
|
|
|
+ }},
|
|
|
{
|
|
|
"data": function (row) {
|
|
|
if (row.buyerperson != undefined) {
|