All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.modules.sys.userinfo.ctrl.userinfo.unit.remove.js Maven / Gradle / Ivy

There is a newer version: 5.0.2101
Show newest version
define(function(require) {
	var Config = require('config');
	var Core = require('core/core');
	
	var Page = require('core/page');
	
	// 删除机构用户
	var UserInfoUnitRemove = Page.extend(function() {
		
		// @override
		this.submit = function(table, data) {
			
			Core.ajax(Config.ContextPath+'system/userunit/'+data.userUnitId, {
				method: 'post',
				data: {
					_method: 'DELETE',
					userStation: data.userStation,
	                userRank: data.userRank
				}
			}).then(function(){
				return require('loaders/cache/loader.system').loadAll()
			}).then(function() {
				table.datagrid('reload');
			});
		};
		
	});
	
	return UserInfoUnitRemove;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy