master
tping 3 years ago
parent badb3bca31
commit d8b2a161af

@ -157,9 +157,13 @@ class SocietyInfoController extends ThinkController
if (IS_ROOT) {
$this->assign('timeset_check',true);
$this->assign('delset_check',true);
$this->assign('export_check', true);
$this->assign('import_check', true);
} else {
$this->assign('timeset_check',$this->checkRule("Admin/SocietyInfo/timeset" ,array('in','1,2')));
$this->assign('delset_check',$this->checkRule("Admin/SocietyInfo/delset" ,array('in','1,2')));
$this->assign('timeset_check', $this->checkRule("Admin/SocietyInfo/timeset" ,array('in','1,2')));
$this->assign('delset_check', $this->checkRule("Admin/SocietyInfo/delset" ,array('in','1,2')));
$this->assign('export_check', $this->checkRule("Admin/Society/lists_export_check" ,array('in','1,2')));
$this->assign('import_check', $this->checkRule("Admin/SocietyInfo/excelImport" ,array('in','1,2')));
}

@ -108,10 +108,12 @@
<a class="sch-btn" href="{:U('add')}">新增</a>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="excel_in">导入</a>
<if condition="$import_check eq ture">
<a class="sch-btn" href="javascript:;" id="excel_in">导入</a>
</if>
</div>
<div class="input-list">
<if condition="$role_export_check eq true ">
<if condition="$export_check eq true ">
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')),false)}">导出</a>
</if>
</div>

Loading…
Cancel
Save