laiguoran пре 3 година
родитељ
комит
c7ffd13cc5
1 измењених фајлова са 20 додато и 7 уклоњено
  1. 20 7
      app/view/tender/detail.ejs

+ 20 - 7
app/view/tender/detail.ejs

@@ -910,19 +910,32 @@
         tooltip: {
             trigger: 'item'
         },
-        legend: {
+        // legend: {
+        //     top: '0%',
+        //     right: '0%',
+        //     orient:'vertical',
+        //     itemWidth:15,
+        //     data: ['一般变更', '较大变更', '重大变更', '待上报', '审批中', '已完成']
+        // },
+        legend:[{
             top: '0%',
             right: '0%',
             orient:'vertical',
             itemWidth:15,
-            data: ['一般变更', '较大变更', '重大变更', '待上报', '审批中', '已完成']
-        },
+            data:['一般变更','较大变更','重大变更']
+        },{
+            top: '0%',
+            left: '0%',
+            orient:'vertical',
+            itemWidth:15,
+            data:['待上报','审批中','已完成']
+        }],
         series: [
             {
                 name: '数量',
                 type: 'pie',
                 top:'0%',
-                right:'60%',
+                right:'0%',
                 selectedMode: 'single',
                 radius:  '50%',
                 avoidLabelOverlap: false,
@@ -944,7 +957,7 @@
                 name: '数量',
                 type: 'pie',
                 top:'0%',
-                right:'60%',
+                right:'0%',
                 radius: ['70%', '100%'],
                 avoidLabelOverlap: false,
                 label: {
@@ -1350,13 +1363,13 @@
                     }
                     const label = new BMapGL.Label(cl.tips, opts);  // 创建文本标注对象
                     label.setStyle({
+                        height: '18px',
+                        lineHeight : '18px',
                         color : cl.color,
                         borderRadius: '5px',
                         borderColor: cl.color,
                         padding: '0px 5px',
                         fontSize : '12px',
-                        height: '18px',
-                        lineHeight : '18px',
                         // fontFamily: '微软雅黑',
                     });
                     map.addOverlay(label);