优化时间选择

master
chenzhi 3 years ago
parent 35ef9c4ec2
commit a72c549b0c

@ -1501,7 +1501,7 @@ function cash_pay_way()
function getMonth() {
$start = date("Y-m", strtotime("now"));
//开始月份
$range = [];
$range = [$start];
$i = 1;
do {
$month = date('Y-m', strtotime($start . ' - ' . $i . ' month'));

@ -49,7 +49,7 @@ class AdminController extends Controller {
if ( false === $access ) {
$this->error('403:禁止访问');
}elseif(null === $access ){
$access_controller = ['Ajax', 'Finance', 'FinancePromote', 'PayChannel','FinanceCompare',"AggregateFinanceStatement","SubUserStatement","GameMargin"];
$access_controller = ['Ajax', 'Finance', 'FinancePromote', 'PayChannel','FinanceCompare',"AggregateFinanceStatement","SubUserStatement","GameMargin",'StatementWarning'];
if(!in_array(CONTROLLER_NAME, $access_controller)){//ajax放行
//检测访问权限
$rule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME);

@ -273,6 +273,16 @@ class StatementWarningController extends AdminController
$this->statementWarningModel->addAll($adddata);
}
}
public function del()
{
$parm = I('get.');
$where = [
'count_year'=>$parm['count_year'],
'name'=>trim($parm['name']),
];
$this->statementWarningModel->where($where)->delete();
$this->success("删除成功!");
}
public function updateStatement()
{

@ -52,7 +52,7 @@
<!-- 标题栏 -->
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">财务汇总统计</h3>
<h3 class="page_title">财务预警表</h3>
<p class="description_text"></p>
</div>
<style>
@ -125,7 +125,7 @@
<if condition="$vo.is_edit eq 1 ">
<a href="{:U('edit?act=edit',array('name'=>$vo['name'],'count_year'=>I('year')))}">编辑</a>
<if condition="($vo['name'] neq '费用') AND ($vo.name neq '其他收入')">
<a style="color: red;" href="{:U('verifyDel',array('id'=>$data['id']))}" class="confirm ajax-get">删除</a>
<a style="color: red;" href="{:U('del',array('name'=>$vo['name'],'count_year'=>I('year')))}" class="confirm ajax-get">删除</a>
</if>
</if>
@ -173,7 +173,7 @@
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U("FinancialSummary/index")}');
highlight_subnav('{:U("lists")}');
$(function () {
});

Loading…
Cancel
Save