zoukankan      html  css  js  c++  java
  • 前台的一个导入结果的展示列表的显示。

    function initImportResult(data){

    var titleInfo = lang.xflow.importResult.InsertNum+ " " + data.insertNum + " "+ lang.xflow.importResult.UpdateNum + " "+ data.updateNum + " " ;
    if("" == data.insertNum && "" == data.updateNum){
    titleInfo =lang.xflow.importResult.titleInfo5 ;
    }
    if(data.failedNum != "" && data.failedNum != undefined){
    titleInfo += lang.xflow.importResult.FailedNum + data.failedNum + " ";
    }
    if(data.errorInfo != "" && data.errorInfo != undefined){
    titleInfo += lang.xflow.importResult.ErrorInfo + data.errorInfo;
    }
    updateResult = data.faillist;
    var url = ctx + "/xflow/dealTablePageDataXFlow.do";
    // 表格信息的显示
    $('#resultGrid').inspurTable({
    limit : 20,
    singleSelect : true,
    height:400,
    930,
    title:titleInfo,
    showIndex : false,
    dataSource : url,
    autoFit:true,
    method : 'POST',
    type:"post",
    extraData : {
    updateResult : $.toJSON(updateResult) //附加查询条件
    },
    colModel : [ {
    header : lang.xflow.importResult.ExcelRow,
    name : 'row',
    // width : 100 ,
    align : 'left'
    }, {
    header : lang.xflow.importResult.AppName,
    name : 'appName',
    // width : 100 ,
    align : 'left'
    }, {
    header : lang.xflow.importResult.DSTPORT,
    name : 'dstPort',
    // width : 100,
    align : 'left'
    }, {
    header : lang.xflow.importResult.PROTOCOLTYPE,
    name : 'protocolType',
    // width : 100,
    align : 'left'
    }, {
    header : lang.xflow.importResult.IPADDRESS,
    name : 'ipAddress',
    // width : 100,
    align : 'left'
    }, {
    header : lang.xflow.importResult.DESCRIPTION,
    name : 'description',
    align : 'left'//,
    // width : 100
    },{
    header : lang.xflow.importResult.FailureCause,
    name : 'ERROR',
    title:true,
    align : 'left'
    }]
    });
    }

  • 相关阅读:
    更新内核遇到 requested datatype primary not available
    在tmux缓冲区中搜索
    逻辑卷lvm消失问题.
    linux中的常用的proxy 代理方式
    windows下powershell的包管理工具
    一次docker镜像的迁移
    MAC OS 10.15 挂载ntfs文件系统并设置自动挂载RW模式.
    在linux中设置优先使用ipv4,而不是ipv6
    [搬家]新域名 akagi201.org
    基于Three.js的全景---photo-sphere-viewer
  • 原文地址:https://www.cnblogs.com/gaochsh/p/4275199.html
Copyright © 2011-2022 走看看