liuyg
2021-06-11 d78d11579073afec2195d2b011b25fee18d5bca0
widgets/searchL/Widget.js
@@ -284,7 +284,7 @@
                  });
               }
               if (data1 != 1) {
                  table.render({
                     elem: '#test1'
                     // , url: './data'//监控
@@ -298,7 +298,7 @@
                     }
                     , cols: [[
                        { field: 'tableId', width: 59, align: 'center', unresize: true, title: '序号' }
                        , { field: 'name', width: 90, align: 'center', unresize: true, title: '名称' }
                        , { field: 'name', width: 90, align: 'center', unresize: true, title: '站点' }
                        , { field: 'protectName', width: 95, align: 'center', unresize: true, title: '所属保护区' }
                        , { field: 'remark', width: 95, align: 'center', unresize: true, title: '备注' }
                        , { fixed: 'right', align: 'center', unresize: true, title: '操作', toolbar: '#demoTable1' }
@@ -378,7 +378,7 @@
                     }
                     , cols: [[
                        { field: 'tableId', width: 59, align: 'center', unresize: true, title: '序号' }
                        , { field: 'name', width: 90, align: 'center', unresize: true, title: '名称' }
                        , { field: 'name', width: 90, align: 'center', unresize: true, title: '站点' }
                        , { field: 'wetlandName', width: 95, align: 'center', unresize: true, title: '所属保护区' }
                        , { field: 'remark', width: 95, align: 'center', unresize: true, title: '备注' }
                        , { fixed: 'right', align: 'center', unresize: true, title: '操作', toolbar: '#demoTable2' }
@@ -391,6 +391,7 @@
                     , limit: 10 //每页默认显示的数量
                  });
                  table.on('tool(test2)', function (obj) { //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
                     var data = obj.data //获得当前行数据
                        , layEvent = obj.event; //获得 lay-event 对应的值
@@ -411,9 +412,15 @@
                     }
                  });
               }
               that.addTitle();
               //…
            });
         },
         addTitle: function () {
            let tdom = $("[data-field]");
            for (var i = 0; i < tdom.length; i++) {
               $(tdom[i]).attr("title", $(tdom[i]).text())
            }
         },
         setXiangqing(obj) {
            var str = '';
@@ -493,9 +500,9 @@
            $('#test-endDate-1').val(date1);
            window.defultEchartsTimes = [date2, date1];
            // var time = setTimeout(() => {
               $('.jimu-widget-searchTabaPopup').find('#query').click();
               // clearTimeout(time);
               // time = null;
            $('.jimu-widget-searchTabaPopup').find('#query').click();
            // clearTimeout(time);
            // time = null;
            // }, 500);
            var str = '',