Blame view

addons/fastflow/bootstrap.js 1.22 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
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
29
30
31
32
33
34
35
36
37
  require.config({

      paths: {

          'fastflow-fastflow': "../addons/fastflow/js/fastflow",

  		'fastflow-base': "../addons/fastflow/js/fastflowbase",

          'fastflow-fixed-columns': "../addons/fastflow/js/fastflow-fixed-columns",

  		'fastflow-form-builder': "../addons/fastflow/js/form-builder",

      },

      shim: {

          'fastflow': {

              exports: 'fastflow'

          },

          'fastflow-fixed-columns':{

              deps: ['bootstrap-table'],

          }

      }

  });

  

  if (Config.modulename === 'admin' && Config.controllername === 'index' && Config.actionname === 'index') {

      $.ajax({

          type: "POST",

          url: "fastflow/flow/bill/getBadge",

          data: {},

          dataType: "json",

          success: function (data) {

              if (data['code'] == 1) {

                  data['data'].forEach(function (item) {

                      if (item['count'] > 0) {

                          $('a[addtabs=' + item['id'] + ']').append('<span class="pull-right-container fastflow-badge" style="margin-right: 20px"> <small class="' + item['shape'] + ' pull-right ' + item['color'] + '">' + item['show'] + '</small></span>');

                      }

                  });

              }

          }

      });

  }