浏览代码

闲置土地饼图三维修改

maxiaoxiao 6 月之前
父节点
当前提交
5572fc3fa8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/cockpit/ydjc.vue

+ 2 - 1
src/views/cockpit/ydjc.vue

@@ -320,8 +320,9 @@ export default {
       reason(params).then((res) => {
         res.data.map((a) => {
           a.name = a.reason;
-          a.value = a.area.toFixed(2);
+          a.value = Number(a.area.toFixed(2));
         });
+        console.log(res.data,'---')
         this.$refs.tdxz_echart.setOptions(res.data, 0.2);
       });
     },