123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <script type="text/javascript">
- function mtxxadd(){
- var path="/gkjyr/details?path=3:id="+$('#jyrid').val()+"";
- location.href=$.app+'/mt/add?path='+path;
- }
- function mtxxview(mtid){
- var path="/gkjyr/details?path=3:id="+$('#jyrid').val()+"";
- location.href=$.app+'/mt/view?id='+mtid+'&path='+path;
- }
- function mtxxedit(mtid){
- var path="/gkjyr/details?path=3:id="+$('#jyrid').val()+"";
- location.href=$.app+'/mt/edit?id='+mtid+'&path='+path;
- }
- function mtxxdelete(mtid){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/mt/delete", {
- id : mtid
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '操作成功',
- confirm: function(){
- initmtxx();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
-
- }
- });
- }
- }, "json");
- },
- cancel: function(){
-
- }
- });
- }
- function initmtxx(){
- $.post($.app + "/gkjyr/mtxx", {
- id : $('#jyrid').val()
- }, function(data) {
- if (data) {
- var str ="";
- for(var i=0;i<data.length;i++){
- var mt = data[i];
- str+="<tr class='tr_bg'>";
- str+="<td>"+(i+1)+"</td>";
- str+="<td>"+mt.mtmc+"</td>";
- str+="<td>"+mt.ssjyrzw+"</td>";
- str+="<td>"+mt.szgkzw+"</td>";
- str+="<td>"+mt.szgqzw+"</td>";
- str+="<td>"+(mt.mtytzw == null? "":mt.mtytzw)+"</td>";
- str+="<td>"+(mt.fwlxzw == null? "":mt.fwlxzw)+"</td>";
- str+="<td>"+mt.sfwhpzw+"</td>";
- str+="<td>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"mtxxview('"+mt.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
- if(mt.recordStatus==1&&mt.xkzid==''){
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"mtxxedit('"+mt.id+"')\"> <i class='glyphicon glyphicon-pencil'></i> 编辑</a>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"mtxxdelete('"+mt.id+"')\"> <i class='glyphicon glyphicon-trash'></i> 删除</a>";
- }
- str+="</td>";
- str+="</tr>";
- }
- $('#mtxxdiv').empty();
- $('#mtxxdiv').append(str);
- } else {
-
- }
- }, "json");
- }
- </script>
- <a class="btn btn-default btn-sm" href="#"
- onclick="mtxxadd()" 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="14%">码头名称</th>
- <th width="14%">港口经营人</th>
- <th width="10%">所在港口</th>
- <th width="10%">所在港区</th>
- <th width="14%">码头用途</th>
- <th width="6%">服务类型</th>
- <th width="10%">是否危化品码头</th>
- <th width="17%">操作</th>
- </tr>
- <tbody id="mtxxdiv"></tbody>
- <%--
- <c:forEach items="${mtxx}" var="mt" varStatus="status">
-
- </c:forEach> --%>
- </table>
|