阅读:2249
回复:2
|
如何隐藏“保存”按钮
请问如何隐藏表单上的“保存”按钮?
|
最新喜欢:实名用户_7... |
1楼#
发布于:2018-10-10 09:30
1 全局隐藏
修改Portal\WFRes\_Scripts\MVCSheet\MvcSheet.js,搜索如下代码,大概594行,把this.SaveAction屏蔽掉。 然后增加\Portal\MvcSheet.master 文件中MvcSheet.js引用的版本号。 //添加默认的事件 AddDefaultActions: function () { this.Actions.splice(0, this.Actions.length, this.RetrieveInstanceAction, //this.SaveAction, this.ViewInstanceAction, this.PreviewParticipantAction, this.PrintAction, this.ViewedAction, this.CancelInstanceAction, this.SubmitAction, this.RejectAction, this.FinishInstanceAction, this.ForwardAction, this.AssistAction, this.ConsultAction, this.CirculateAction, this.AdjustParticipantAction, this.LockInstanceAction, this.UnLockInstanceAction, this.CloseAction ); }, 2 个别表单隐藏 表单加载完成后直接用jq隐藏,简单粗暴 $.MvcSheet.Loaded = function (sheetInfo) { $("li[data-action='Save']").hide(); } |
|