You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/**
* 复制权限按钮弹框文件
* @description [description]
* @version 1.0
* @author yangjinhua
*/
define ( function ( require , exports , module ) {
let Window = require ( 'system/views/pages/window/window' ) ;
let tpl = require ( 'text!apps/rht/sku/sku080206/Revert.tpl' ) ;
/**
* [复制权限弹框]
* @param {[type]} dsData 角色表数据源, 用于对角色ComBox进行赋值
*/
function Revert ( ) {
this . options = {
title : "恢复" ,
content : tpl ,
width : 250 ,
height : 153 ,
modal : true ,
closed : true ,
closable : true ,
draggable : true ,
maximizable : false ,
resizable : false ,
data : null
}
Window . call ( this , this . options ) ;
}
inherits ( Revert , Window ) ;
Revert . prototype . init = function ( ) {
}
//执行windows窗体上自定义按钮事件
Revert . prototype . customerize = function ( ) {
let self = this ;
//确定按钮事件
this . getElement ( '.btnOk' ) . on ( 'click' , function ( event ) {
let czType = $ ( "input[name='switch']:checked" ) . val ( ) ;
if ( ! czType ) {
return false ;
}
if ( self . callback ) {
self . callback ( czType ) ;
}
self . close ( ) ;
} ) ;
//取消按钮事件
this . getElement ( '.btnCancel' ) . on ( 'click' , function ( event ) {
self . close ( ) ;
} ) ;
}
return Revert ;
} )