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 ...@@ -117,14 +117,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
business.id = $ (this).attr ("data-id"); business.id = $ (this).attr ("data-id");
var params ={}; var params ={};
params.id = $ (this).attr ("data-id"); params.id = $ (this).attr ("data-id");
var str = $.trim($(this).html()); params.type = $ (this).attr ("data-type");
if (str === "不显示") {
params.type = 1;
$(this).html('显示');
} else {
params.type = 0;
$(this).html('不显示');
}
$.ajax ({ $.ajax ({
url: '/index/editBusinessDistrict.html', url: '/index/editBusinessDistrict.html',
type: 'POST', type: 'POST',
......
...@@ -16,21 +16,16 @@ ...@@ -16,21 +16,16 @@
</td> </td>
<td>[%= it[item]['create_time']%]</td> <td>[%= it[item]['create_time']%]</td>
<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> <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) { %]
[% if(check_auth('index/editBusinessDistrict')) { %] <a class="btn btn-info btn-xs is_show" href="#modal-do" data-id="[%= it[item]['id']%]" data-type="1" style="margin-right:6px;">
<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{ %] [% }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>
[% } %] <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>
[% 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>
[% } %]
</td> </td>
</tr> </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