cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;(function($){
  $.fn.extend({
      "sl" : function(option) {
          option = $.extend({"url":base+"/business/pages/incident/serviceListTree.html","param":{'type':2}},option||{}); 
          return this.each(function(){
               var elem = $(this);
               $(this).click(function() {
                   var config = {
                    //自定义传入的参数(可多个)
                    customParameters:option.param,
                    //弹出框相关样式
                    dialogStyle:{
                        width : 900,
                        height : 500,
                        mode : 'pixel',
                        opacity : 0.2,
                        nobtn : false
                    },
                    //按钮配置
                    buttons:option.buttons
                };
                window.top.popDialog('dialogOne', '服务目录', config, option.url);
               });
               
          });
      }
  });
})(jQuery);