|
@@ -31,8 +31,10 @@
|
|
|
<div class="tab-content">
|
|
|
<div class="nav-tabs-custom">
|
|
|
<ul class="nav nav-tabs edit-step">
|
|
|
- <li class="active" data-mode="guide"><a href="#tab_1" data-toggle="tab" aria-expanded="true">通用规则</a></li>
|
|
|
- <li data-mode="guide" class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">关键词规则</a></li>
|
|
|
+ <li class="active" data-mode="guide"><a href="#tab_1" data-toggle="tab"
|
|
|
+ aria-expanded="true">通用规则</a></li>
|
|
|
+ <li data-mode="guide" class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">关键词规则</a>
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
<div class="tab-content">
|
|
|
<div class="tab-pane active" id="tab_1">
|
|
@@ -44,7 +46,8 @@
|
|
|
</div>
|
|
|
<div class="box-body">
|
|
|
<div class="form-group">
|
|
|
- <label class="col-sm-2 control-label"><span style="color:red;">* </span>规则名称</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="tagname" placeholder="规则名称"
|
|
|
value="{{.T.data.s_name}}" disabled>
|
|
@@ -81,7 +84,8 @@
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">公告类别选择</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <select class="form-control selectpicker" multiple id="typeSelectVal" disabled></select>
|
|
|
+ <select class="form-control selectpicker" multiple id="typeSelectVal"
|
|
|
+ disabled></select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
@@ -117,80 +121,97 @@
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">非空字段</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input class="form-control " multiple id="existFieldSelect" disabled></input>
|
|
|
+ <input class="form-control " multiple id="existFieldSelect"
|
|
|
+ disabled></input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<hr>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">预算限制</label>
|
|
|
<div class="col-sm-2">
|
|
|
- <input class="form-control" type="text" id="s_budget_min" placeholder="单位:元/大于" onkeyup="limitNum(this)" disabled />
|
|
|
+ <input class="form-control" type="text" id="s_budget_min"
|
|
|
+ placeholder="单位:元/大于" onkeyup="limitNum(this)" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-1" style="text-align: center">___ ___</label>
|
|
|
<div class="col-sm-2">
|
|
|
- <input class="form-control" type="text" id="s_budget_max" placeholder="单位:元/小于" onkeyup="limitNum(this)"disabled />
|
|
|
+ <input class="form-control" type="text" id="s_budget_max"
|
|
|
+ placeholder="单位:元/小于" onkeyup="limitNum(this)" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">预算不存在</label>
|
|
|
<div class="col-sm-1">
|
|
|
- <input style="margin-top: 10px;" type="checkbox" id="budgetExist" onclick="return false;">
|
|
|
+ <input style="margin-top: 10px;" type="checkbox" id="budgetExist"
|
|
|
+ onclick="return false;">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">中标金额限制</label>
|
|
|
<div class="col-sm-2" id="bidamountDiv">
|
|
|
- <input class="form-control" type="text" id="s_bidamount_min" placeholder="单位:元/大于" onkeyup="limitNum(this)" disabled />
|
|
|
+ <input class="form-control" type="text" id="s_bidamount_min"
|
|
|
+ placeholder="单位:元/大于" onkeyup="limitNum(this)" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-1" style="text-align: center">___ ___</label>
|
|
|
<div class="col-sm-2">
|
|
|
- <input class="form-control" type="text" id="s_bidamount_max" placeholder="单位:元/小于" onkeyup="limitNum(this)" disabled />
|
|
|
+ <input class="form-control" type="text" id="s_bidamount_max"
|
|
|
+ placeholder="单位:元/小于" onkeyup="limitNum(this)" disabled/>
|
|
|
+ </div>
|
|
|
+ <label class="col-sm-2 control-label">中标金额不存在</label>
|
|
|
+ <div class="col-sm-1">
|
|
|
+ <input style="margin-top: 10px;" type="checkbox" id="bidamountExist" onclick="return false;">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">全局附加词</label>
|
|
|
<div class="col-sm-3">
|
|
|
<input type="text" class="form-control" id="g_addkey"
|
|
|
- value="{{.T.data.s_globaladdkey}}" disabled />
|
|
|
+ value="{{.T.data.s_globaladdkey}}" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">匹配方式</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input class="form-control" style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
- type="button" id="s_addkeymatch" disabled />
|
|
|
+ <input class="form-control"
|
|
|
+ style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
+ type="button" id="s_addkeymatch" disabled/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label for="spiderChannel" class="col-sm-2 control-label">全局排除词</label>
|
|
|
<div class="col-sm-3">
|
|
|
<input type="text" class="form-control" id="g_notkey"
|
|
|
- value="{{.T.data.s_globalnotkey}}" disabled />
|
|
|
+ value="{{.T.data.s_globalnotkey}}" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">匹配方式</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input class="form-control" style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
+ <input class="form-control"
|
|
|
+ style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
type="button" id="s_notkeymatch">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">全局清理词</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input type="text" class="form-control" id="s_globalclearkey" placeholder="***"
|
|
|
+ <input type="text" class="form-control" id="s_globalclearkey"
|
|
|
+ placeholder="***"
|
|
|
value="{{.T.data.s_globalclearkey}}" disabled>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">匹配方式</label>
|
|
|
- <div class="col-sm-3">
|
|
|
- <input class="form-control" style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
- type="button" id="s_globalclearkeymatch" disabled />
|
|
|
+ <div class="col-sm-3">
|
|
|
+ <input class="form-control"
|
|
|
+ style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
+ type="button" id="s_globalclearkeymatch" disabled/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">采购单位类型</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input class="form-control" style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
- type="button" id="s_buyerclass" value="{{.T.data.s_globalbuyerclass}}" disabled />
|
|
|
+ <input class="form-control"
|
|
|
+ style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
+ type="button" id="s_buyerclass"
|
|
|
+ value="{{.T.data.s_globalbuyerclass}}" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">公告行业</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <input class="form-control" style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
- type="button" id="s_scopeclass" disabled />
|
|
|
+ <input class="form-control"
|
|
|
+ style="text-align: left;overflow: hidden;white-space: nowrap;text-overflow: ellipsis"
|
|
|
+ type="button" id="s_scopeclass" disabled/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<hr>
|
|
@@ -198,11 +219,12 @@
|
|
|
<label class="col-sm-2 control-label">预览数据量</label>
|
|
|
<div class="col-sm-3">
|
|
|
<input type="text" class="form-control" id="maxnum"
|
|
|
- value="{{.T.data.i_maxnum}}" disabled />
|
|
|
+ value="{{.T.data.i_maxnum}}" disabled/>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label ">高级字段包</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <select class="form-control" id="extfiledselect" style="border-radius:3px" disabled>
|
|
|
+ <select class="form-control" id="extfiledselect" style="border-radius:3px"
|
|
|
+ disabled>
|
|
|
<option value="1">否</option>
|
|
|
<option value="2">是</option>
|
|
|
</select>
|
|
@@ -311,7 +333,7 @@
|
|
|
{{include "com/footer.html"}}
|
|
|
<script>
|
|
|
menuActive("/entCustomer/list");
|
|
|
- var clearkeyMatchArr = ["detail","title"];
|
|
|
+ var clearkeyMatchArr = ["detail", "title"];
|
|
|
var dataMap = {{.T.data}};
|
|
|
var o_rules = {{.T.data.o_rules}};
|
|
|
var app = angular.module('app', ["wui.date"]); //时间插件
|
|
@@ -351,9 +373,9 @@
|
|
|
var arr = dataMap.s_budgetlimit.split(",");
|
|
|
$('#s_budget_min').val(arr[0].replace("大于", ""));
|
|
|
$('#s_budget_max').val(arr[1].replace("小于", ""))
|
|
|
- }else if (dataMap.s_budgetlimit.indexOf("大于") != -1) {
|
|
|
+ } else if (dataMap.s_budgetlimit.indexOf("大于") != -1) {
|
|
|
$('#s_budget_min').val(dataMap.s_budgetlimit.replace("大于", ""))
|
|
|
- }else if (dataMap.s_budgetlimit.indexOf("小于") != -1) {
|
|
|
+ } else if (dataMap.s_budgetlimit.indexOf("小于") != -1) {
|
|
|
$('#s_budget_max').val(dataMap.s_budgetlimit.replace("小于", ""))
|
|
|
}
|
|
|
}
|
|
@@ -363,9 +385,9 @@
|
|
|
var arr = dataMap.s_bidamountlimit.split(",");
|
|
|
$('#s_bidamount_min').val(arr[0].replace("大于", ""));
|
|
|
$('#s_bidamount_max').val(arr[1].replace("小于", ""))
|
|
|
- }else if (dataMap.s_bidamountlimit.indexOf("大于") != -1) {
|
|
|
+ } else if (dataMap.s_bidamountlimit.indexOf("大于") != -1) {
|
|
|
$('#s_bidamount_min').val(dataMap.s_bidamountlimit.replace("大于", ""))
|
|
|
- }else if (dataMap.s_bidamountlimit.indexOf("小于") != -1) {
|
|
|
+ } else if (dataMap.s_bidamountlimit.indexOf("小于") != -1) {
|
|
|
$('#s_bidamount_max').val(dataMap.s_bidamountlimit.replace("小于", ""))
|
|
|
}
|
|
|
}
|
|
@@ -384,10 +406,10 @@
|
|
|
//公告行业
|
|
|
$('#s_scopeclass').val(dataMap.s_globalsubscopeclass)
|
|
|
if (dataMap.s_globaltopscopeclass && dataMap.s_globalsubscopeclass && dataMap.s_globaltopscopeclass != "" && dataMap.s_globalsubscopeclass != "") {
|
|
|
- $('#s_scopeclass').val(dataMap.s_globaltopscopeclass+","+dataMap.s_globalsubscopeclass)
|
|
|
- }else if (dataMap.s_globaltopscopeclass && dataMap.s_globaltopscopeclass != "") {
|
|
|
+ $('#s_scopeclass').val(dataMap.s_globaltopscopeclass + "," + dataMap.s_globalsubscopeclass)
|
|
|
+ } else if (dataMap.s_globaltopscopeclass && dataMap.s_globaltopscopeclass != "") {
|
|
|
$('#s_scopeclass').val(dataMap.s_globaltopscopeclass)
|
|
|
- }else if (dataMap.s_globalsubscopeclass && dataMap.s_globalsubscopeclass != "") {
|
|
|
+ } else if (dataMap.s_globalsubscopeclass && dataMap.s_globalsubscopeclass != "") {
|
|
|
$('#s_scopeclass').val(dataMap.s_globalsubscopeclass)
|
|
|
}
|
|
|
//省
|
|
@@ -456,12 +478,16 @@
|
|
|
}
|
|
|
|
|
|
//非空字段
|
|
|
- $('#existFieldSelect').attr("value",existField)
|
|
|
+ $('#existFieldSelect').attr("value", existField)
|
|
|
$("#infoType").selectpicker("refresh");
|
|
|
// $("#existFieldSelect").selectpicker("refresh");
|
|
|
if (dataMap.i_budgetfieldexist === 1) {
|
|
|
$("#budgetExist").attr("checked", true)
|
|
|
}
|
|
|
+ console.log(dataMap.i_bidamountfieldexist,"----------")
|
|
|
+ if (dataMap.i_bidamountfieldexist === 1) {
|
|
|
+ $("#bidamountExist").attr("checked", true)
|
|
|
+ }
|
|
|
|
|
|
//匹配方式
|
|
|
var btnMatchHtml1 = "";
|
|
@@ -473,21 +499,21 @@
|
|
|
if (i < 5) {
|
|
|
btnMatchHtml1 += `<input type="button" class="btn btn-default col-md-pull-2" style="margin-left: 10px;margin-top: 10px" onclick="clickMatchBtn(this)"
|
|
|
code="${matchTypeMap[i]["code"]}" value="${matchTypeMap[i]["name"]}">`;
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
btnMatchHtml2 += `<input type="button" class="btn btn-default col-md-pull-2" style="margin-left: 10px;margin-top: 10px" onclick="clickMatchBtn2(this)"
|
|
|
code="${matchTypeMap[i]["code"]}" value="${matchTypeMap[i]["name"]}">`;
|
|
|
}
|
|
|
if (dataMap.s_globaladdkeymatch.indexOf(matchTypeMap[i]["code"]) > -1) {
|
|
|
if (addMatchName == "") {
|
|
|
addMatchName = matchTypeMap[i]["name"]
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
addMatchName = addMatchName + "," + matchTypeMap[i]["name"]
|
|
|
}
|
|
|
}
|
|
|
if (dataMap.s_globalnotkeymatch.indexOf(matchTypeMap[i]["code"]) > -1) {
|
|
|
if (notMatchName == "") {
|
|
|
notMatchName = matchTypeMap[i]["name"]
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
notMatchName = notMatchName + "," + matchTypeMap[i]["name"]
|
|
|
}
|
|
|
}
|
|
@@ -495,7 +521,7 @@
|
|
|
if (dataMap.s_globalclearkeymatch && dataMap.s_globalclearkeymatch.indexOf(matchTypeMap[i]["code"]) > -1) {
|
|
|
if (clearMatchName == "") {
|
|
|
clearMatchName = matchTypeMap[i]["name"]
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
clearMatchName = clearMatchName + "," + matchTypeMap[i]["name"]
|
|
|
}
|
|
|
}
|
|
@@ -547,7 +573,8 @@
|
|
|
"columns": [
|
|
|
{"data": null, width: "2%"},
|
|
|
{"data": "s_matchkey", width: "10%"},
|
|
|
- {"data": function (row) {
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
var str = row.s_keymatch;
|
|
|
if (str && str != "") {
|
|
|
var s = "";
|
|
@@ -563,14 +590,18 @@
|
|
|
return s
|
|
|
}
|
|
|
return ""
|
|
|
- }, width: "5%"},
|
|
|
- {"data": "s_addkey", width: "10%", render: function (val) {
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": "s_addkey", width: "10%", render: function (val) {
|
|
|
if (val == undefined) {
|
|
|
val = ""
|
|
|
}
|
|
|
return val
|
|
|
- }},
|
|
|
- {"data": function (row) {
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
var str = row.s_addkeymatch;
|
|
|
if (str && str != "") {
|
|
|
var s = "";
|
|
@@ -586,14 +617,18 @@
|
|
|
return s
|
|
|
}
|
|
|
return ""
|
|
|
- }, width: "5%"},
|
|
|
- {"data": "s_notkey", width: "10%", render: function (val) {
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": "s_notkey", width: "10%", render: function (val) {
|
|
|
if (val == undefined) {
|
|
|
val = ""
|
|
|
}
|
|
|
return val
|
|
|
- }},
|
|
|
- {"data": function (row) {
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
var str = row.s_notkeymatch;
|
|
|
if (str && str != "") {
|
|
|
var s = "";
|
|
@@ -609,14 +644,18 @@
|
|
|
return s
|
|
|
}
|
|
|
return ""
|
|
|
- }, width: "5%"},
|
|
|
- {"data": "s_buyerclass", width: "7%", render: function (val) {
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": "s_buyerclass", width: "7%", render: function (val) {
|
|
|
if (val == undefined) {
|
|
|
val = ""
|
|
|
}
|
|
|
return val
|
|
|
- }},
|
|
|
- {"data": function (row) {
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
var str = "";
|
|
|
if (row.s_topscopeclass) {
|
|
|
str = row.s_topscopeclass
|
|
@@ -624,21 +663,22 @@
|
|
|
if (row.s_subscopeclass) {
|
|
|
if (str != "") {
|
|
|
str = str + "," + row.s_subscopeclass
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
str = row.s_subscopeclass
|
|
|
}
|
|
|
}
|
|
|
return str
|
|
|
- }, width: "5%"},
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
],
|
|
|
"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) {
|
|
|
+ } else if (data == undefined) {
|
|
|
return ""
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return data
|
|
|
}
|
|
|
}
|
|
@@ -647,9 +687,9 @@
|
|
|
"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) {
|
|
|
+ } else if (data == undefined) {
|
|
|
return ""
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return data
|
|
|
}
|
|
|
}
|
|
@@ -658,9 +698,9 @@
|
|
|
"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) {
|
|
|
+ } else if (data == undefined) {
|
|
|
return ""
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return data
|
|
|
}
|
|
|
}
|
|
@@ -687,18 +727,19 @@
|
|
|
data: {"id": dataMap.id},
|
|
|
success: function (r) {
|
|
|
com.maskHide();
|
|
|
- if (r.rep===true) {
|
|
|
+ if (r.rep === true) {
|
|
|
dataMap.i_estotal = r.count;
|
|
|
showTip("数据生成成功", 1000);
|
|
|
- } else if (r.rep===false){
|
|
|
+ } else if (r.rep === false) {
|
|
|
showTip(r.msg, 30000);
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
showTip("数据生成失败", 12000);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
//预览数据
|
|
|
function previewData() {
|
|
|
myDataTable = $('#previewData').DataTable({
|
|
@@ -733,28 +774,35 @@
|
|
|
},
|
|
|
"columns": [
|
|
|
{"data": null, width: "2%"},
|
|
|
- {"data": function (row) {
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.s_matchkey) {
|
|
|
return row.s_matchkey
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "8%"},
|
|
|
- {"data": function (row) {
|
|
|
+ }, width: "8%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.area) {
|
|
|
return row.area
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "4%"},
|
|
|
- {"data": function (row) {
|
|
|
+ }, width: "4%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.city) {
|
|
|
return row.city
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "4%"},
|
|
|
- {"data": function (row) {
|
|
|
+ }, width: "4%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.s_jyhref) {
|
|
|
if (row.title.length > 36) {
|
|
|
var str = row.title.substring(0, 36) + "..."
|
|
@@ -766,28 +814,36 @@
|
|
|
} else {
|
|
|
return row.title
|
|
|
}
|
|
|
- }, width: "5%"},
|
|
|
- {"data": function (row) {
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.subtype) {
|
|
|
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) {
|
|
|
var shref = row.href;
|
|
|
tmp = '<a class="" target="_blank" href=' + shref + '>公告地址</a>';
|
|
@@ -795,16 +851,20 @@
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "5%"},
|
|
|
- {"data": function (row) {
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.projectcode) {
|
|
|
return row.projectcode
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return ""
|
|
|
}
|
|
|
- }, width: "5%"},
|
|
|
+ }, width: "5%"
|
|
|
+ },
|
|
|
{"data": "projectname", width: "5%"},
|
|
|
- {"data": function (row) {
|
|
|
+ {
|
|
|
+ "data": function (row) {
|
|
|
if (row.projectscope) {
|
|
|
if (row.projectscope.length > 14) {
|
|
|
return row.projectscope.substring(0, 14) + "..."
|
|
@@ -813,22 +873,28 @@
|
|
|
}
|
|
|
}
|
|
|
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) {
|
|
|
var dt = new Date();
|
|
|
dt.setTime(parseInt(val) * 1000);
|
|
@@ -836,13 +902,16 @@
|
|
|
} 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) {
|