数据权限配置修改

master
zhengyongxing 5 years ago
parent 4f88cd025e
commit 613d60e4a7

@ -528,6 +528,21 @@ WHERE old_change_promote_id in ({$promoteData})";
} else { } else {
$promoteData = M("promote","tab_")
->field("id")
->where(['company_belong'=>2])
->select();
$promoteData = implode(',',array_column($promoteData,'id'));
$spendData = M('spend','tab_')->field("old_change_promote_account")->where(['old_change_promote_id'=>['in',$promoteData]])->find();
// var_dump($spendData);die();
if ($spendData['old_change_promote_account']) {
$this->assign('old_change_promote_account',1);
}
$this->display('promotedataconfigindex'); $this->display('promotedataconfigindex');
} }

@ -52,8 +52,8 @@
<td class="r" > <td class="r" >
<div class="input-list input-list-server search_label_rehab" style="margin:0;"> <div class="input-list input-list-server search_label_rehab" style="margin:0;">
<select id="admin_type" name="admin_type" class="select_gallery" style="width: 215px;"> <select id="admin_type" name="admin_type" class="select_gallery" style="width: 215px;">
<option value="1"></option> <option value="1" <if condition="$old_change_promote_account eq 1"> selected </if>></option>
<option value="2">市场专员</option> <option value="2" <if condition="$old_change_promote_account neq 1"> selected </if>>市场专员</option>
</select> </select>
</div> </div>
</td> </td>
@ -142,13 +142,8 @@
data: cres, data: cres,
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
if (data.status == 1) { layer.msg(data.info);
layer.msg(data.info, function () { window.location.reload();
window.location.href = "{:U('PromoteCompany/promoteDataConfigIndex')}";
});
} else {
layer.msg(data.info);
}
}, },
error: function (e) { error: function (e) {

Loading…
Cancel
Save