META-INF.resources.modules.sys.deptpow.ctrl.deptpow.user.remove.js Maven / Gradle / Ivy
define(function(require) {
var Config = require('config');
var Core = require('core/core');
var Page = require('core/page');
// 删除机构用户
var DeptPowUserRemove = Page.extend(function() {
// @override
this.submit = function(table, data) {
Core.ajax(Config.ContextPath+'system/userunit/'+data.unitCode+'/'+data.userCode, {
method: 'post',
data: {
_method: 'DELETE',
userStation: data.userStation,
userRank: data.userRank
}
}).then(function() {
table.datagrid('reload');
});
};
});
return DeptPowUserRemove;
});