| | |
| | | var type = "0"; |
| | | var county = "all"; |
| | | var breedChart = null; |
| | | var foodNumPerColors = ["0, 228, 250", "22, 226, 173", "255, 181, 23", "238, 60, 72", "135, 103, 255", "41, 122, 255", "238, 60, 144", "255, 99, 132", "75, 192, 192", "153, 102, 255", "255, 159, 64", "199, 199, 199", "83, 102, 255", "255, 193, 7"]; |
| | | var foodNumPerColors = ["0, 255, 255", "50, 255, 50", "255, 215, 0", "255, 69, 0", "0, 191, 255", "30, 144, 255", "255, 20, 147", "255, 105, 180", "0, 255, 127", "255, 165, 0", "255, 218, 185", "255, 255, 0", "0, 250, 155", "255, 99, 71"]; |
| | | //var switch2AreaNode2; |
| | | |
| | | |
| | |
| | | }); |
| | | |
| | | function renderDeptMess(deptId) { |
| | | //从deptList中找到deptid |
| | | console.log("切换库区deptid") |
| | | console.log(deptId) |
| | | console.log(deptList) |
| | | for (let i = 0; i < deptList.length; i++) { |
| | | if( deptId == deptList[i].deptId){ |
| | | let htmlMess=` |
| | |
| | | |
| | | |
| | | function renderDepotMess(depotId) { |
| | | console.log("切换仓库depotId") |
| | | console.log(depotId) |
| | | console.log(depotList) |
| | | for (let i = 0; i < depotList.length; i++) { |
| | | if( depotId == depotList[i].depotId){ |
| | | |
| | |
| | | var childsItem = []; |
| | | var areas = []; |
| | | for (var i = 0; i < areaList.length; i++) { |
| | | html += "<div style=\"width: 305px; overflow: hidden\">" + |
| | | html += "<div style=\"width: 340px; overflow: hidden\">" + |
| | | "<div id='prov' class=\"sup-menu-group menu-group\">" + |
| | | "<div class=\"sup-menu-title\">" + |
| | | "<i class=\"i-icon fl\"><img src=\"/img/web/group/icon-sj.png\"/></i>" + |
| | | "<a href=\"###\" onclick=\"clickDept('" + areaList[i].code + "')\">" + |
| | | "<span class=\"i-icon32 fl\"><img src=\"/img/web/group/c-i2.png\"/></span>" + |
| | | // "<span class=\"i-icon32 fl\"><img src=\"/img/web/group/c-i2.png\"/></span>" + |
| | | (areaList[i].name ? areaList[i].name : "") + |
| | | "</a>" + |
| | | "</div>"; |
| | | if (areaList[i].children && areaList[i].children.length > 0) { |
| | | childs = areaList[i].children; |
| | | for (var j = 0; j < childs.length; j++) { |
| | | html += "<ul class=\"sup-menu-ul menu-h\">" + |
| | | //默认关闭库区 |
| | | // html += "<ul class=\"sup-menu-ul menu-h\">" + |
| | | //默认展开库区 |
| | | html += "<ul class=\"sup-menu-ul \">" + |
| | | "<li>" + |
| | | "<div class=\"sup-menu-h\">" + |
| | | "<i class=\"i-icon fl\"><img src=\"/img/web/group/icon-sj.png\"/></i>" + |
| | | "<a href=\"###\" onclick=\"clickDept('" + childs[j].code + "')\">" + |
| | | "<span class=\"i-icon32 fl\"><img src=\"/img/web/group/c-i2.png\"/></span>" + |
| | | // "<span class=\"i-icon32 fl\"><img src=\"/img/web/group/c-i2.png\"/></span>" + |
| | | (childs[j].name ? childs[j].name : "") + |
| | | "</a>" + |
| | | "</div>"; |