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

META-INF.resources.modules.sys.innermsg.ctrl.innermsg.view.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 InnerMsgView = Page.extend(function() {
		
		// @override
		this.load = function(panel, data) {
			
			var sendData = $.extend({}, data, {
				_method: 'PUT',
				msgState: 'R'
			})
			// 不用发送这些字段
			delete sendData.mInnerMsg;
			
			Core.ajax(Config.ContextPath+'system/innermsgrecipient/recipient/'+data.id, {
				method: 'post',
				data: $.extend({},sendData,{'mInnerMsg':data.mInnerMsg,})
			});
			
			data.msgContent = data.mInnerMsg.msgContent;
			panel.find('form').form('load', data);
		};
		// @override
		this.onClose = function(table) {
			table.datagrid('reload');
		};
	});
	
	return InnerMsgView;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy