whycq
2022-03-28 64a3cf1a59eff2e93f5340f11927098b3a04be50
# ycq
3个文件已修改
59 ■■■■ 已修改文件
src/main/webapp/static/css/style.css 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/tableData.js 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index_datashow.html 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/css/style.css
@@ -51,7 +51,15 @@
    font-size: 20px;
}
#proType {
    margin-top: 0%;
    width: 50%;
    color: #d9d9d9;
    align: center;
    margin-left: 25%;
    font-size: 10px;
    font-weight: 100;
}
#main-tab {
src/main/webapp/static/js/tableData.js
@@ -1,14 +1,37 @@
    setTimeout(function(){
        getTheaddData()
        getThbodyData()
        getWang()
        getType()
    },0)
    setInterval(function(){
        getThbodyData()
    },5000)
    var getType = function () {
        $.ajax({
            url:baseurl+'/pms/projectPlan/dataSummary',
            type:'GET',
            data:{},
            success:function(res){
                if (res.code ===200 ) {
                    var str = '<tr>'
                        +'<th>' + '项目总数' + '</th>' + '<th>'+ res.data.totalQuantity +'</th>'
                        +'<th>' + '集成项目' + '</th>' + '<th>'+ res.data.intoSum +'</th>'
                        +'<th>' + '非集成项目数' + '</th>' + '<th>'+ res.data.wrongInto +'</th>'
                        +'<th>' + '已验收项目数' + '</th>' + '<th>'+ res.data.inspected +'</th>'
                        +'<th>' + '未验收项目数' + '</th>' + '<th>'+ res.data.wrongInspected +'</th>'
                        +'<th>' + '已完工未验收数' + '</th>' + '<th>'+ res.data.finished +'</th>'
                    $("#type-header").append(str)
                }
            }
        })
    }
/****************************************************************************************************************************************************************************/
    
    var proData = ["项目名称","售前金额核算","开始时间","结束时间",
    var proData = ["项目名称","项目类型","售前金额核算","开始时间","结束时间",
        "合约签订","图面会签","BOM设计/二级BOM下发",
        "材料采购","生产制作","内部安装调整(研发物料)","进场安装","程序调试","系统联调","上线运行","项目验收","运费","安装费"]
    var getTheaddData = function(){
@@ -39,7 +62,7 @@
        //     },
        //     })
            }
/*****************************************************************************************************************************************************************************/
    var getThbodyData = function(){
        $.ajax({
@@ -49,6 +72,7 @@
            data:{},
            success:function(res){
                if(res.code==200){
                    console.log(res)
                    data=res.data
                    // 判断时间是否有null  有null的改为 ""
                    for(var i = 0;i<data.length;i++){
@@ -80,6 +104,7 @@
                        }
                        var str2 = '<tr id="row'+i+'" class="row">'
                            +'<th class="projects">'+data[i].id+'</th>'
                            +'<th class="projects">'+data[i].type+'</th>'
                            +'<td class="nor-mal">'+data[i].presaleAmt+'</td>'
                            +'<td class="nor-mal">'+data[i].startDay.substring(0,10)+'</td>'
                            +'<td class="nor-mal">'+data[i].endDay.substring(0,10)+'</td>'
@@ -152,15 +177,6 @@
    } 
/*****************************************************************************************************************************************************************************/    
    function getWang() {
        $.ajax({
            url:baseurl+'/pms/projectPlan/dataSummary',
            type:'GET',
            data:{},
            success:function(res){
                console.log(res)
            }
        })
    }
src/main/webapp/views/index_datashow.html
@@ -16,12 +16,15 @@
        <!-- 标题 -->
        <div id="top-tab">
            <h1>项目进度表</h1>
            <div id="logo-bar"></div>
            <img src="../static/image/logo-bar.png" alt="logo">
            <div id="showTime">
                
            </div>
        </div>
        <table id="proType" cellspacing="0" cellpadding="0">
            <thead id="type-header"></thead>
        </table>
        <table id="main-tab" cellspacing="0" cellpadding="0">
            <!-- 表头 -->
            <thead id="tab-header">