| | |
| | | |
| | | $(".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 == ' ') { |
| | |
| | | $("#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 == ' ') { |
| | |
| | | // , page: true //是否显示分页 |
| | | , limits: false |
| | | , limit: 10 //每页默认显示的数量 |
| | | , done: function(res, curr, count){ |
| | | , done: function (res, curr, count) { |
| | | that.addTitle(); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | |
| | |
| | | // , 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="对应的值" |
| | |
| | | // , page: true //是否显示分页 |
| | | , limits: false |
| | | , limit: 10 //每页默认显示的数量 |
| | | , done: function(res, curr, count){ |
| | | , done: function (res, curr, count) { |
| | | that.addTitle(); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | |