Commit e26fc5bf authored by agping's avatar agping

楼盘权限

parent ca0861e7
......@@ -270,7 +270,7 @@
<div class="pull-right">
<ul class="bread_btn">
<li>
<a class="btn btn-default add" href="#modal_add_loupan" data-toggle="modal" >新增楼盘</a>
<a class="btn btn-default add" href="#modal_add_loupan" data-toggle="modal" style="display: none;">新增楼盘</a>
</li>
</ul>
</div>
......
......@@ -38,9 +38,14 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
init: function() {
//初始化dot
$("body").append(template);
//初始化城市 区域筛选
// 商铺列表 默认显示求租房源
//商铺列表 默认显示求租房源
$('#lease_state').val(1);
//新增楼盘字典权限
if(check_auth('office_index/houseDictionaryAdd')){
$(".add").show()
}else{
$(".add").hide()
}
business.getList(1);
business.event();
//显示 隐藏城市 默认显示 当前账号 所在城市
......
......@@ -34,7 +34,11 @@
</td>
<td>
<a class="btn1 btn-success edit" href="#modal_add_loupan" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a>
[% if(check_auth('office_index/houseDictionaryEdit')){%]
<a class="btn1 btn-success edit" href="#modal_add_loupan" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a>
[% } %]
</td>
</tr>
[% } %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment