田源
2024-04-07 2ac55ce0edf4870a29691b56bfad59f4830a11a2
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
/**
 * 按钮处理 刷新
 * @author wangting
 * @date 2021-4-6
 */
layui.define(['layer','element','BaseAction'],function(exports){
    var webUtil = $webUtil;
    var Class = function() {
        this.MODELNAME = "RefreshAction";
        this.moduleKey = "RefreshAction";
        this.id = "RefreshAction";
 
        this.doAction = function (options) {
            var that = this;
            webUtil.copyConfig(that, that.moduleKey);
            that.id = options.id;
 
            var baseAction = layui['BaseAction'];
            baseAction.callPreEvent(options, that, function (options) {
                that.doAdd(options, function () {
                    baseAction.callPostEvent(options, that, options.callback);
                });
            });
        };
 
 
        this.doAdd = function (options,callback) {
            options.callback()
            if(callback){
                callback()
            }
        }
 
    };
    var cs = new Class();
    exports(cs.MODELNAME,cs);
});