var srvInstance = $element.inheritedData('block-ui');
换成
var srvInstance = $element.parent().data('block-ui');