Commit ce869e5b authored by hujun's avatar hujun

商圈js修改

# Conflicts: # public/resource/template/business_district_template_tpl.html
parent 778d90b0
......@@ -117,14 +117,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
business.id = $ (this).attr ("data-id");
var params ={};
params.id = $ (this).attr ("data-id");
var str = $.trim($(this).html());
if (str === "不显示") {
params.type = 1;
$(this).html('显示');
} else {
params.type = 0;
$(this).html('不显示');
}
params.type = $ (this).attr ("data-type");
$.ajax ({
url: '/index/editBusinessDistrict.html',
type: 'POST',
......
......@@ -16,21 +16,16 @@
</td>
<td>[%= it[item]['create_time']%]</td>
<td>
<a title="编辑" class="btn btn-success btn-xs edit_modal" href="#modal_business" data-toggle="modal" class="btn btn-default" data-id="[%= it[item]['id']%]" style="margin-right:6px;">编辑</a>
[% if(check_auth('index/editBusinessDistrict')) { %]
<a title="权限分配" class="btn btn-info btn-xs is_show" href="#modal-do" data-id="[%= it[item]['id']%]" style="margin-right:6px;">
[% if(it[item]["status"] == 1) { %]
不显示
[% }else{ %]
显示
[% } %]
</a>
[% } %]
[% if(check_auth('index/delBusinessDistrict')) { %]
<a title="成员授权" class="btn btn-danger btn-xs del_modal" href="#modal-delete" data-toggle="modal" class="btn btn-default" data-id='[%= it[item]["id"] %]' style="margin-right:6px;">删除</a>
[% } %]
<a class="btn btn-success btn-xs edit_modal" href="#modal_business" data-toggle="modal" class="btn btn-default" data-id="[%= it[item]['id']%]" style="margin-right:6px;">编辑</a>
[% if(it[item]["status"] == 0) { %]
<a class="btn btn-info btn-xs is_show" href="#modal-do" data-id="[%= it[item]['id']%]" data-type="1" style="margin-right:6px;">
不显示
[% }else{ %]
<a class="btn btn-info btn-xs is_show" href="#modal-do" data-id="[%= it[item]['id']%]" data-type="0" style="margin-right:6px;">
显示
[% } %]
</a>
<a class="btn btn-danger btn-xs del_modal" href="#modal-delete" data-toggle="modal" class="btn btn-default" data-id='[%= it[item]["id"] %]' style="margin-right:6px;">删除</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