|
@@ -28,6 +28,8 @@
|
|
|
</button>
|
|
|
<button class="btn btn-danger btn-sm" onclick="archive()"><i class="fa fa-fw fa-save fa-lg"></i>存档
|
|
|
</button>
|
|
|
+ <button class="btn tn-info btn-sm" onclick="dataTest()"><i class="fa fa-fw fa-save fa-lg"></i>测试数据
|
|
|
+ </button>
|
|
|
</small>
|
|
|
</h1>
|
|
|
<ol class="breadcrumb">
|
|
@@ -1873,4 +1875,35 @@
|
|
|
}
|
|
|
return {flag: flag, v1: v1, v2: v2}
|
|
|
}
|
|
|
+
|
|
|
+ function dataTest() {
|
|
|
+ $("#modal-dataTest").modal('show');
|
|
|
+ }
|
|
|
+ function dataTests() {
|
|
|
+ var val = $("#dataTest-txt").val()
|
|
|
+ $.ajax({
|
|
|
+ url: "/service/dataTest/"+ dataMap["id"],
|
|
|
+ type: "post",
|
|
|
+ data: {"id": val},
|
|
|
+ success: function (r) {
|
|
|
+ if (r.result) {
|
|
|
+ showTip("匹配成功,匹配词 " + r.matchKey, 6000);
|
|
|
+ } else {
|
|
|
+ var str = "";
|
|
|
+ if (r.info != ""){
|
|
|
+ str = r.info
|
|
|
+ showTip(str, 6000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (r.allexcluedKey != "") {
|
|
|
+ str = "匹配失败,被全局排除词 "+ r.allexcluedKey + " 排除";
|
|
|
+ }
|
|
|
+ if (r.excluedKey != "") {
|
|
|
+ str = "匹配失败,被排除词 "+ r.excluedKey + " 排除";
|
|
|
+ }
|
|
|
+ showTip(str, 6000);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
</script>
|