liuyg
2021-06-16 124666224532543877aaf344d16254c0bc4db2b4
widgets/searchL/Widget.js
@@ -55,6 +55,7 @@
            $(".searchImg").click(function () {
               that.getInputData();
               topic.publish('getLegendsData', that.searchDatas);
               if (typeof that.searchDatas == 'string') {
                  var han = /^[\u4e00-\u9fa5]+$/;
                  if (han.test(that.searchDatas) || that.searchDatas == '  ') {
@@ -101,6 +102,7 @@
            $("#local_data").keyup(function (e) {
               // console.log(e);
               that.getInputData();
               topic.publish('getLegendsData', that.searchDatas);
               if (e.keyCode == 13 && typeof that.searchDatas == 'string') {
                  var han = /^[\u4e00-\u9fa5]+$/;
                  if (han.test(that.searchDatas) || that.searchDatas == '  ') {
@@ -380,9 +382,9 @@
                     // , page: true //是否显示分页
                     , limits: false
                     , limit: 10 //每页默认显示的数量
                     , done: function(res, curr, count){
                     , done: function (res, curr, count) {
                        that.addTitle();
                       }
                     }
                  });
@@ -423,9 +425,9 @@
                     // , page: true //是否显示分页
                     , limits: false
                     , limit: 10 //每页默认显示的数量
                     , done: function(res, curr, count){
                     , done: function (res, curr, count) {
                        that.addTitle();
                       }
                     }
                  });
                  table.on('tool(test1)', function (obj) { //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
@@ -498,9 +500,9 @@
                     // , page: true //是否显示分页
                     , limits: false
                     , limit: 10 //每页默认显示的数量
                     , done: function(res, curr, count){
                     , done: function (res, curr, count) {
                        that.addTitle();
                       }
                     }
                  });