/**
|
* 按钮处理 刷新
|
* @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);
|
});
|