数据权限

master
liuweiwen 5 years ago
parent 124cc21e49
commit 4cb88be352

@ -249,8 +249,8 @@ class DepositController extends ThinkController {
$page = set_pagination($count,$row);
if($page) {$this->assign('_page', $page);}
$this->assign("is_admin",is_administrator());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->assign('list_data', $data);
$this->meta_title = '平台币充值列表';
$this->display();die();

@ -1190,7 +1190,8 @@ class MemberController extends ThinkController
$this->assign('user_count',$count[0]['count']);
$this->assign("is_admin",is_administrator());
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Member/login_record', 'status' => 1])->find());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
parent::lists("UserLoginRecord", $p, $extend['map']);
}

@ -97,7 +97,8 @@ class MendController extends ThinkController {
$page = set_pagination($count,$row);
if($page) {$this->assign('_page', $page);}
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->display();
// parent::lists("Mend",$p,$map);
}

@ -425,6 +425,8 @@ class PromoteController extends ThinkController
$companys = M('promote_company', 'tab_')->where(['status' => 1])->select();
$this->assign("is_admin",is_administrator());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->assign('companys', $companys);
$this->display();
}

@ -675,7 +675,8 @@ class UserController extends AdminController
$this->m_title = '角色查询';
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'User/rolelist', 'status' => 1])->find());
$this->assign("is_admin",is_administrator());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->display();
}

@ -138,7 +138,7 @@
<if condition="$data['promote_account'] eq '自然注册'">
官方渠道
<else/>
<if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data.promote_account}
<else />
{$data.promote_account|encryptStr}

@ -26,14 +26,14 @@
}
.select2-results__option[aria-selected] {font-size:12px;}
</style>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">礼包领取</h3>
<p class="description_text">说明:礼包领取记录:此功是查看玩家领取礼包的功能</p>
</div>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
@ -44,14 +44,14 @@
<div class="input-list">
<input type="text" placeholder="玩家账号" name="{$model['search_key']|default='user_account'}" class="" value="{:I('user_account')}">
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="game_id" name="game_name" class="select_gallery" >
<option value="">游戏名称</option>
<volist name=":get_game_list()" id="vo">
<option game-id="{$vo.id}" value="{$vo.game_name}">{$vo.game_name}</option>
</volist>
</select>
</select>
</div>
<div class="input-list input-list-platform">
<select name="sdk_version">
@ -102,7 +102,7 @@
{$_page|default=''}
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">

@ -144,12 +144,11 @@
<tr>
<td><input class="ids" type="checkbox" value="{$data['id']}" name="ids"></td>
<td>
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data.user_account}
<else />
{$data.user_account|encryptStr}
</if>-->
{$data.user_account}
</if>
</td>
<?php $gamename=trim(get_game_name($data['game_id'],'id'));?>
<td><notempty name="gamename">{$gamename}<else /><eq name="data.type" value="2">APP登录<else/>官网登录</eq></notempty></td>

@ -68,12 +68,11 @@
<volist name="list_data" id="data">
<tr>
<td>
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data.account}
<else />
{$data.account|encryptStr}
</if>-->
{$data.account}
</if>
</td>
<td>{$data.register_time|date='Y-m-d H:i:s',###}</td>
<td>{$data.login_time|date='Y-m-d H:i:s',###}</td>
@ -82,20 +81,18 @@
<td>{$data.login_time|date='Y-m-d H:i:s',###}</td>
<td>
<if condition="get_parent_promoteto($data['promote_id']) neq '' ">
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data['promote_account']|encryptStr}{:encryptStr(get_parent_promoteto($data['promote_id']))}
<else />
{$data['promote_account']|encryptStr}{:encryptStr(get_parent_promoteto($data['promote_id']))}
</if>-->
{$data['promote_account']|encryptStr}{:encryptStr(get_parent_promoteto($data['promote_id']))}
</if>
<else/>
{:get_promote_name($data['promote_id'])}
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{:get_promote_name($data['promote_id'])}
<else />
{:encryptStr(get_promote_name($data['promote_id']))}
</if>-->
</if>
</if></td>
<td>

@ -157,7 +157,7 @@ $(function(){
var navlist = $(this).find('.i_list_li');
if (navlist.hasClass('hidden')) {
navlist.removeClass('hidden');
$('#i_list_id').focus().val('');
$('#i_list_id').focus().val('');
} else {
navlist.addClass('hidden');
}
@ -171,7 +171,7 @@ $(function(){
var val = $.trim($(this).val()).toLowerCase();
$('#i_list_idh').val(val);
});
$("#i_list_li").find("a").each(function(){
$(this).click(function(){
var text = $.trim($(this).text()).toLowerCase();

@ -20,9 +20,9 @@
<h3 class="page_title">补链记录</h3>
<p class="description_text">说明:此处功能查看玩家推广补链记录。</p>
</div>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
@ -53,7 +53,7 @@
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Mend/recordList','model='.$model['name'] . '&row='.I('row'),false)}">搜索</a>
</div>
</div>
</div>
@ -87,10 +87,29 @@
<volist name="list_data" id="data">
<tr>
<td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
<td>{$data['user_account']}</td>
<td>{$data['promote_account']}</td>
<td>
<if condition="$show_data_power eq true ">
{$data['user_account']}
<else />
{$data['user_account']|encryptStr}
</if>
</td>
<td>
<if condition="$show_data_power eq true ">
{$data['promote_account']}
<else />
{$data['promote_account']|encryptStr}
</if>
</td>
<td>{$data['pay_amount']}</td>
<td>{$data['promote_account_to']}</td>
<td>
<if condition="$show_data_power eq true ">
{$data['promote_account_to']}
<else />
{$data['promote_account_to']|encryptStr}
</if>
</td>
<td class="js-pop" style="max-width: 400px;padding: 0 20px;">
<a href="javascript:" title="点击查看" class="remarkView" info="{$data['remark']}">{$data['remark']}</a>
</td>
@ -109,10 +128,10 @@
<div id="pagebox">
{$_page|default=''}
</div>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
@ -121,7 +140,7 @@
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
@ -129,7 +148,13 @@
{@each list_data as item,index}
<tr>
<td><input class="ids" type="checkbox" value="${item['id']}" name="ids[]"></td>
<td>${item['user_account']}</td>
<td>
<if condition="$show_data_power eq true ">
{$data['user_account']}
<else />
{$data['user_account']|encryptStr}
</if>
</td>
<td>${item['promote_account']}</td>
<td>${item['pay_amount']}</td>
<td>${item['promote_account_to']}</td>
@ -217,7 +242,7 @@ $(function(){
var navlist = $(this).find('.i_list_li');
if (navlist.hasClass('hidden')) {
navlist.removeClass('hidden');
$('#i_list_id').focus().val('');
$('#i_list_id').focus().val('');
} else {
navlist.addClass('hidden');
}
@ -231,7 +256,7 @@ $(function(){
var val = $.trim($(this).val()).toLowerCase();
$('#i_list_idh').val(val);
});
$("#i_list_li").find("a").each(function(){
$(this).click(function(){
var text = $.trim($(this).text()).toLowerCase();

@ -17,9 +17,9 @@
height:26px;line-height:26px;font-size:12px;
}
.select2-results__option[aria-selected] {font-size:12px;}
.tabcon1711 .select2-container--default .select2-selection--single{
font-size: 12px;
font-size: 12px;
color: #555;
vertical-align: middle;
-webkit-border-radius: 4px;
@ -41,17 +41,17 @@
}
.tabcon1711 .select2-results__option[aria-selected] {font-size:12px;}
</style>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">推广补链查看</h3>
<p class="description_text">说明:此处功能用于修改玩家所属推广渠道的功能。</p>
</div>
<div class="tab-content tabcon1711">
<div class="tab-content tabcon1711">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
@ -99,8 +99,8 @@
</tr>
</tbody>
</table>
<div class="form-item cf">
<button class="submit_btn mlspacing" id="submit" data-id="{$data.id}">
取消补链
@ -109,10 +109,10 @@
返回
</a>
</div>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
@ -121,7 +121,7 @@
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
@ -162,14 +162,14 @@ $('#submit').click(function(){
window.location.href = data.url;
});
}else{
layer.msg('取消补链失败,或补链已经生效无法取消')
layer.msg('取消补链失败,或补链已经生效无法取消')
}
},
error:function(){
layer.msg('网络错误');
}
})
// window.location.href = "{:U('Mend/cancelShift')}"+"&id="+taskid;
});
$(function(){

@ -84,7 +84,7 @@
<tr>
<td class="l">真实姓名:</td>
<td class="r">
<if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
<input type="text" class="txt" name="real_name" value="{$data['real_name']}" disabled="disabled" style="background:#CCCCCC">
<else />
<input type="text" class="txt" name="real_name" value="{$data['real_name']|encryptRealName}" disabled="disabled" style="background:#CCCCCC">
@ -94,7 +94,7 @@
<tr>
<td class="l">手机号码:</td>
<td class="r">
<if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
<input type="text" class="txt" name="mobile_phone" value="{$data['mobile_phone']}" disabled="disabled" style="background:#CCCCCC">
<else />
<input type="text" class="txt" name="mobile_phone" value="{$data['mobile_phone']|encryptStr}" disabled="disabled" style="background:#CCCCCC">

@ -128,14 +128,20 @@
<volist name="list_data" id="data">
<tr>
<td>{$data['promote_account']}</td>
<td>
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data['promote_account']}
<else />
{$data['promote_account']|encryptStr}
</if>
</td>
<td>
<if condition="$show_data_power eq true ">
{$data['user_account']}
<else />
{$data['user_account']|encryptStr}
</if>-->
{$data['user_account']}
</if>
</td>
<td>{$data['game_name']}</td>
<td>{$data['server_name']}</td>

@ -135,12 +135,11 @@
<tr>
<td>{$data.create_time|date='Y-m-d H:i:s',###}</td>
<td>
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data.user_account}
<else />
{$data.user_account|encryptStr}
</if>-->
{$data.user_account}
</if>
</td>
<?php $gamename = trim($data['game_name']);
@ -153,12 +152,11 @@
<td><notempty name="rolename">{$rolename}<else /></notempty></td>
<td>{$data.role_level}</td>
<td>
<!-- <if condition="$is_admin eq true ">
<if condition="$show_data_power eq true ">
{$data.promote_account}
<else />
{$data.promote_account|encryptStr}
</if>-->
{$data.promote_account}
</if>
</td>
<td><?= date('Y-m-d H:i:s', $data['play_time']) ?></td>
<td>{$data.play_ip}</td>

Loading…
Cancel
Save