From 124666224532543877aaf344d16254c0bc4db2b4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 16 Jun 2021 11:14:40 +0800
Subject: [PATCH] 图例
---
widgets/searchL/Widget.js | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/widgets/searchL/Widget.js b/widgets/searchL/Widget.js
index d121f43..768de2c 100644
--- a/widgets/searchL/Widget.js
+++ b/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();
- }
+ }
});
--
Gitblit v1.9.3