123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
-
- <script type="text/javascript">
- function sssbxxadd(){
- var path="/gkjyr/details?path=9:id="+$('#jyrid').val()+"";
- location.href=$.app+'/sssb/add?path='+path;
- }
- function sssbxxview(sssbid){
- var path="/gkjyr/details?path=9:id="+$('#jyrid').val()+"";
- location.href=$.app+'/sssb/view?id='+sssbid+'&path='+path;
- }
- function sssbxxedit(sssbid){
- var path="/gkjyr/details?path=9:id="+$('#jyrid').val()+"";
- location.href=$.app+'/sssb/edit?id='+sssbid+'&path='+path;
- }
- function sssbxxdelete(sssbid){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/sssb/delete", {
- id : sssbid
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '操作成功',
- confirm: function(){
- initsssbxx();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
-
- }
- });
- }
- }, "json");
- },
- cancel: function(){
-
- }
- });
- }
- function initsssbxx(){
- $.post($.app + "/gkjyr/sssbxx", {
- id : $('#jyrid').val()
- }, function(data) {
- if (data) {
- var str =""
- for(var i=0;i<data.length;i++){
- var sssb = data[i];
-
- str+="<tr class='tr_bg'>";
- str+="<td>"+(i+1)+"</td>";
- str+="<td>"+sssb.ssjyrzw+"</td>";
- str+="<td>"+sssb.ssmc+"</td>";
- str+="<td>"+sssb.yjfl+"</td>";
- str+="<td>"+sssb.ejfl+"</td>";
- str+="<td>"+sssb.sl+"</td>";
- str+="<td>"+sssb.sldw+"</td>";
- str+="<td>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"sssbxxview('"+sssb.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
- if(sssb.recordStatus==1&&sssb.xkzid==''){
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"sssbxxedit('"+sssb.id+"')\"> <i class='glyphicon glyphicon-pencil'></i> 编辑</a>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"sssbxxdelete('"+sssb.id+"')\"> <i class='glyphicon glyphicon-trash'></i> 删除</a>";
- }
- str+="</td>";
- str+="</tr>";
- }
- $('#sssbxxdiv').empty();
- $('#sssbxxdiv').append(str);
- } else {
-
- }
- }, "json");
- }
- </script>
-
- <a class="btn btn-default btn-sm" href="#"
- onclick="sssbxxadd()" 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="10%">规格型号</th> -->
- <th width="15%">一级分类</th>
- <th width="10%">二级分类</th>
- <th width="10%">数量</th>
- <th width="10%">数量单位</th>
- <th width="25%">操作</th>
- </tr>
- <tbody id="sssbxxdiv"></tbody>
- </table>
|