|  |  |  | 
|---|
|  |  |  | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> | 
|---|
|  |  |  | <div class="numberInfoSubTitle">跟踪项目数量</div> | 
|---|
|  |  |  | <div class="numberInfoValue"> | 
|---|
|  |  |  | <span id="progressCount">124</span><em class="numberInfoSuffix">个</em> | 
|---|
|  |  |  | <a href="#" id="openProgress"><span id="progressCount">124</span><em class="numberInfoSuffix">个</em></a> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> | 
|---|
|  |  |  | <div class="numberInfoSubTitle">成交项目数量</div> | 
|---|
|  |  |  | <div class="numberInfoValue"> | 
|---|
|  |  |  | <span id="successCount">121</span><em class="numberInfoSuffix">个</em> | 
|---|
|  |  |  | <a href="#" id="openSuccess"><span id="successCount">121</span><em class="numberInfoSuffix">个</em></a> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </colgroup> | 
|---|
|  |  |  | <thead> | 
|---|
|  |  |  | <tr style="background: none;color: #333;"> | 
|---|
|  |  |  | <th colspan="3">员工交易额排行</th> | 
|---|
|  |  |  | <th colspan="3">员工销售业绩排行</th> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </thead> | 
|---|
|  |  |  | <tbody id="staffRankId"> | 
|---|
|  |  |  | 
|---|
|  |  |  | var $ = layui.jquery; | 
|---|
|  |  |  | var layer = layui.layer; | 
|---|
|  |  |  | var element = layui.element; | 
|---|
|  |  |  | element.init(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //获取团队数据 | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | div += "<td>" + data[i].username + "</td>" | 
|---|
|  |  |  | div += "<td>" + data[i].money + "</td>" | 
|---|
|  |  |  | div += "<td>" + data[i].money + "万元</td>" | 
|---|
|  |  |  | div += "</tr>" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $("#staffRankId").append(div) | 
|---|
|  |  |  | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | let data = res.data.records | 
|---|
|  |  |  | for (var i = 0; i < data.length; i++) { | 
|---|
|  |  |  | let div = "<div style='margin-top: 10px;'>"; | 
|---|
|  |  |  | div += '<span class="layui-badge-dot layui-bg-green" style="margin-right: 10px;"></span>' | 
|---|
|  |  |  | div += data[i].content | 
|---|
|  |  |  | let div = "<div style='margin-top: 10px;display: flex;justify-content: space-between;'>"; | 
|---|
|  |  |  | div += '<div><span class="layui-badge-dot layui-bg-green" style="margin-right: 10px;"></span>' | 
|---|
|  |  |  | div += data[i].content + "</div>" | 
|---|
|  |  |  | div += "<div>" + data[i].createTime$ + "</div>" | 
|---|
|  |  |  | div += "</div>" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $("#companyPostId").append(div) | 
|---|
|  |  |  | 
|---|
|  |  |  | myCharts3.resize(); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $("#openProgress").on("click", () => { | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '跟踪项目', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | content: '../order/order.html?status=0', | 
|---|
|  |  |  | success: function(layero, index){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $("#openSuccess").on("click", () => { | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '跟踪项目', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | content: '../order/order.html?status=1', | 
|---|
|  |  |  | success: function(layero, index){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | </body> | 
|---|