_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.30', 'unifunc' => 'content_5aef28c6056616_99715988', 'has_nocache_code' => false, 'file_dependency' => array ( '44b51e107c4ce235f0533596358218a51debb878' => array ( 0 => 'D:\\phpStudy\\WWW\\workorder\\application\\views\\templates\\appauth\\index.html', 1 => 1524911967, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_5aef28c6056616_99715988 (Smarty_Internal_Template $_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) require_once 'D:\\phpStudy\\WWW\\workorder\\application\\libraries\\smarty\\plugins\\modifier.date_format.php'; ?> <?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?> language="javascript" type="text/javascript"> var SITE_URL = "/"; >
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['appauth_list']->value, 'val', false, 'k'); if ($_from !== null) { foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['val']->value) { ?> smarty->ext->_foreach->restore($_smarty_tpl); ?> tpl_vars['count']->value) {?>
应用名称 APPID 状态 创建时间 操作
tpl_vars['val']->value['app_name'];?> tpl_vars['val']->value['app_id'];?> tpl_vars['appauth_status']->value[$_smarty_tpl->tpl_vars['val']->value['status']];?> tpl_vars['val']->value['create_time']->toDateTime(),'%Y-%m-%d %H:%M:%S');?> 查看详情 tpl_vars['val']->value['status'] == "10") {?> 禁用 tpl_vars['val']->value['status'] == "40") {?> 启用 删除

暂无符合条件的数据!

type="text/javascript" charset="utf-8" src="static/js/jquery.js"> > type="text/javascript" charset="utf-8" src="static/js/bootstrap.min.js"> > type="text/javascript" charset="utf-8" src="static/js/bootstrap-table.min.js"> > type="text/javascript" charset="utf-8" src="static/js/bootstrap-table-zh-CN.min.js"> > type="text/javascript" charset="utf-8" src="static/js/icheck.min.js"> > type="text/javascript" charset="utf-8" src="static/js/select2.full.min.js"> > type="text/javascript" charset="utf-8" src="static/js/layer/layer.js"> > language="javascript" type="text/javascript"> var disabled_btn = ""; $(".panel-body button:disabled").each(function () { disabled_btn +="#"+$(this).attr("id")+","; }) disabled_btn = disabled_btn.substr(0,disabled_btn.length-1); $(function(){ $("table").show(); $('input').iCheck({ cursor : true, checkboxClass : 'icheckbox_square-blue' }); $("select").select2({minimumResultsForSearch: -1}); layer.config({ extend: 'myskin/style.css', //加载新皮肤 }); $("#keyword").on('input',function () { $('#data_table').bootstrapTable('resetSearch', $(this).val()); $('input').iCheck({ cursor : true, checkboxClass : 'icheckbox_square-blue' }); }); $("#add_appauth").click(function () { parent.$('#mainFrameTabs').bTabsAdd("tab21","新增应用授权","appauth/add"); }) $(".bootstrap-table").on('click',".delete",function () { var id = $(this).data("id"); layer.confirm("确定要删除该应用授权吗?删除后该应用将不能与系统通讯!", {skin: 'layer-ext-myskin',icon: 3, title:'提示'}, function(index){ if(id != "" && id != undefined) { $.post( "appauth/delete/" + id, function (data) { layer.msg(data.msg, {icon: data.icon,time: 3000}, function () { window.location.reload(); }) } ) }else{ layer.alert("参数错误,请刷新后重试!",{skin: 'layer-ext-myskin',icon: 5, title:'错误提示'}); } layer.close(index); }) }) $(".bootstrap-table").on('click',".stop_use",function () { var id = $(this).data("id"); layer.confirm("确定要停用该应用授权吗?停用后该应用将不能与系统通讯!", {skin: 'layer-ext-myskin',icon: 3, title:'提示'}, function(index){ if(id != "" && id != undefined) { $.post( "appauth/stopuse/" + id, function (data) { layer.msg(data.msg, {icon: data.icon,time: 3000}, function () { window.location.reload(); }) } ) }else{ layer.alert("参数错误,请刷新后重试!",{skin: 'layer-ext-myskin',icon: 5, title:'错误提示'}); } layer.close(index); }) }) $(".bootstrap-table").on('click',".restore",function () { var id = $(this).data("id"); if(id != "" && id != undefined) { $.post( "appauth/restore/" + id, function (data) { layer.msg(data.msg, {icon: data.icon,time: 3000}, function () { window.location.reload(); }) } ) }else{ layer.alert("参数错误,请刷新后重试!",{skin: 'layer-ext-myskin',icon: 5, title:'错误提示'}); } }) $(".bootstrap-table").on('click',".view_info",function() { var id = $(this).data("id"); if (id != "" && id != undefined) { layer.open({ type: 2, title: "应用授权详情", offset: 'auto', shade: [0.3], area: ['800px', '400px'], anim: 0, shadeClose: false, content: 'appauth/view/' + id, end: function () { window.location.reload(); } }); } else { layer.alert("参数错误,请刷新后重试!", {skin: 'layer-ext-myskin',icon: 5, title:'错误提示'}); } }) $(".bootstrap-table").on('ifChecked','.check_all',function () { $("input:checkbox").not(':disabled').iCheck('check'); }).on('ifUnchecked','.check_all',function () { $("input:checkbox").not(':disabled').iCheck('uncheck'); }); $(".bootstrap-table").on('ifChanged','input:checkbox',function(){ var ids =""; $("input:checkbox").each(function () { if($(this).not(":disabled").prop("checked")){ ids += $(this).val()+","; } }); if(ids != "" && ids != undefined){ $(disabled_btn).removeAttr("disabled"); }else{ $(disabled_btn).attr("disabled","disabled"); } }) $("#disable_appauth").click(function () { var ids = ""; $("input:checkbox").each(function () { if($(this).not(":disabled").prop("checked")){ ids += $(this).val()+","; } }) if(ids == ""){ layer.alert("请选择要停用的应用授权!",{skin: 'layer-ext-myskin',icon: 3, title:'提示'}); }else{ layer.confirm('确定要禁用选择的应用授权吗?', {skin: 'layer-ext-myskin',icon: 3, title:'提示'}, function(index){ $.post( "appauth/disableall",{'ids':ids}, function (data) { layer.msg(data.msg, {icon: data.icon,time: 3000}, function () { window.location.reload(); }) } ) layer.close(index); }) } }) $("#enable_appauth").click(function () { var ids = ""; $("input:checkbox").each(function () { if($(this).not(":disabled").prop("checked")){ ids += $(this).val()+","; } }) if(ids == ""){ layer.alert("请选择要启用的应用授权!",{skin: 'layer-ext-myskin',icon: 3, title:'提示'}); }else{ layer.confirm('确定要启用选择的应用授权吗?', {skin: 'layer-ext-myskin',icon: 3, title:'提示'}, function(index){ $.post( "appauth/enableall",{'ids':ids}, function (data) { layer.msg(data.msg, {icon: data.icon,time: 3000}, function () { window.location.reload(); }) } ) layer.close(index); }) } }) $("#page_size").change(function () { var page_size = $(this).val(); window.location.href = "appauth/index?page_size="+page_size; }) $(".form-inline select").on("change",function(e) { if($(this).attr("id") != "page_size") { $(".form-inline").submit(); } }) }) >