12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <script type="text/javascript">
- function ryxxadd(){
- var path="/gkjyr/details?path=8:id="+$('#jyrid').val()+"";
- location.href=$.app+'/ry/add?path='+path;
- }
- function ryxxview(ryid){
- var path="/gkjyr/details?path=8:id="+$('#jyrid').val()+"";
- location.href=$.app+'/ry/view?id='+ryid+'&path='+path;
- }
- function ryxxedit(ryid){
- var path="/gkjyr/details?path=8:id="+$('#jyrid').val()+"";
- location.href=$.app+'/ry/edit?id='+ryid+'&path='+path;
- }
- function ryxxdelete(ryid){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/ry/delete", {
- id : ryid
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '操作成功',
- confirm: function(){
- initryxx();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
-
- }
- });
- }
- }, "json");
- },
- cancel: function(){
-
- }
- });
- }
- function initryxx(){
- $.post($.app + "/gkjyr/ryxx2", {
- id : $('#jyrid').val()
- }, function(data) {
- if (data) {
- var str =""
- for(var i=0;i<data.length;i++){
- var ry = data[i];
- str+="<tr class='tr_bg'>";
- str+="<td>"+(i+1)+"</td>";
- str+="<td>"+(ry.ssjyrzw==null? "":ry.ssjyrzw)+"</td>";
- str+="<td>"+ry.xm+"</td>";
- str+="<td>"+ry.rylxzw+"</td>";
- str+="<td>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"ryxxview('"+ry.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
- if(ry.recordStatus==1&&ry.xkzid==''){
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"ryxxedit('"+ry.id+"')\"> <i class='glyphicon glyphicon-pencil'></i> 编辑</a>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"ryxxdelete('"+ry.id+"')\"> <i class='glyphicon glyphicon-trash'></i> 删除</a>";
- }
- str+="</td>";
- str+="</tr>";
- }
- $('#ryxxdiv').empty();
- $('#ryxxdiv').append(str);
- } else {
-
- }
- }, "json");
- }
- </script>
-
- <a class="btn btn-default btn-sm" href="#"
- onclick="ryxxadd()" style="float:right;"> <i class="glyphicon glyphicon-plus"></i> 新增
- </a>
- <table class="main_table" cellpadding="0" cellspacing="0">
- <tr>
- <th width="5%">序号</th>
- <th width="15%">港口经营人</th>
- <th width="15%">姓名</th>
- <th width="15%">人员类型</th>
- <th width="20%">操作</th>
- </tr>
- <tbody id="ryxxdiv"></tbody>
- </table>
|