123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- {volist name="data" id="v"}
- <tr>
- <td style="width: 60px;">{$v.id}</td>
- <td style="text-indent:{$depth * 2}em;">
- {if condition="isset($v['children']) && !empty($v['children'])"}
- <i class="glyphicon glyphicon-folder-open"></i>
- {else /}
- <i class="glyphicon glyphicon-list-alt"></i>
- {/if}
- {$v.name}
- </td>
- <td style="width: 110px;">{$v.content}</td>
- <td style="width: 80px;">
- {if condition="$v['enable'] == 0"}
- <a href="{:url('changeEnable',['id'=>$v['id'],'enable'=>1])}" data-confirm="确定要启用该记录吗?" class="ajax-get confirm data-reload"><span class="label label-danger" title="禁用">禁用</span></a>
- {else /}
- <a href="{:url('changeEnable',['id'=>$v['id'],'enable'=>0])}" data-confirm="确定要禁用该记录吗?" class="ajax-get confirm data-reload"><span class="label label-success" title="启用">启用</span></a>
- {/if}
- </td>
- <td style="width: 80px;">{$v.sort}</td>
- <td style="width: 80px;">
- {if condition="$v['type'] == 0"} 总公司 {/if}
- {if condition="$v['type'] == 1"} 管理机构 {/if}
- {if condition="$v['type'] == 2"} 项目 {/if}
- </td>
- <td style="width: 300px;">
- {if condition="$v['type'] != 0"}
- <a url="{:url('edit',['id'=>$v['id']])}" href="javascript:;" data-title="编辑" onclick="layer_open(this,2)"><span class="label label-primary" title="编辑">编辑</span></a>
- {/if}
- {if condition="$v['type'] == 0"}
- <a url="{:url('add',['pid'=>$v['id'],'t'=>1])}" href="javascript:;" data-title="添加管理机构" onclick="layer_open(this,2)"><span class="label label-primary" title="添加管理机构">添加管理机构</span></a>
- {/if}
- {if condition="$v['type'] == 1"}
- <a url="{:url('add',['pid'=>$v['id'],'t'=>1])}" href="javascript:;" data-title="添加管理机构" onclick="layer_open(this,2)"><span class="label label-primary" title="添加管理机构">添加管理机构</span></a>
- <a url="{:url('add',['pid'=>$v['id'],'t'=>2])}" href="javascript:;" data-title="添加项目" onclick="layer_open(this,2)"><span class="label label-primary" title="添加项目">添加项目</span></a>
- {/if}
- {if condition="$v['type'] == 2"}
- <a url="{:url('auth',['id'=>$v['id']])}" href="javascript:;" data-title="授权" data-width="600px" onclick="layer_open(this)"><span class="label label-success" title="授权">授权</span></a>
- {/if}
- {if condition="$v['type'] != 0"}
- <a href="{:url('del',['id'=>$v['id']])}" {if !btnAuth(session("user_auth.id"),"Org/del")} style="display:none" {/if} data-confirm="确定要删除该记录吗?" class="ajax-get confirm"><span class="label label-danger" title="删除">删除</span></a>
- {/if}
- </td>
- </tr>
- {if condition="isset($v['children']) && !empty($v['children'])"}
- {:widget_view('org/tree',['data'=>$v['children'],'depth'=>$depth + 1])}
- {/if}
- {/volist}
|