Blame view

public/assets/js/backend/antis/customer/need.js 1.44 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
  define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {

      function get_need_number(){

          $.post("antis/customer/need/get_need_number",function (data){

              top.window.Backend.api.sidebar({

                  'antis/customer/need/index':[data.data.number, 'red', 'badge'],

                  'antis/examine/examine/index':[data.data.examine, 'red', 'badge'], //合同

                  'antis/examine/examine/consume':[data.data.consume, 'red', 'badge'],

                  'antis/examine/examine/receivables':[data.data.receivables, 'red', 'badge'],

                  'antis/examine/examine/achievement':[data.data.achievement, 'red', 'badge'],

                  'antis/examine/examine/work':[data.data.approval, 'red', 'badge'],

                  'antis/canlendar/canlendar':[data.data.eventOne, 'red', 'badge'],

              });

          },'json');

      }

      get_need_number();

      setInterval(function (){

          get_need_number();

      },50000);

      var Controller = {

          index  : function () {

  

          },

  

  

          api    : {

              bindevent : function () {

                  Form.api.bindevent($("form[role=form]"), function(data, ret){

                      //这里是表单提交处理成功后的回调函数,接收来自php的返回数据

                      Fast.api.close(data);//这里是重点

                  });

              }

          }

      };

      return Controller;

  });