diff --git a/web/client/src/sections/quanju/containers/footer/leadership/left/echarts/leftbottomecharts.js b/web/client/src/sections/quanju/containers/footer/leadership/left/echarts/leftbottomecharts.js
index f9520cc5..6ddc77dc 100644
--- a/web/client/src/sections/quanju/containers/footer/leadership/left/echarts/leftbottomecharts.js
+++ b/web/client/src/sections/quanju/containers/footer/leadership/left/echarts/leftbottomecharts.js
@@ -6,14 +6,18 @@ const Leftbottomecharts = (props) => {
const { dispatch } = props
const [list, setList] = useState([])
const [count, setCount] = useState([])
+ const [value, setValue] = useState([])
+ const [flag, setFlag] = useState(true)
useEffect(() => {
const res = dispatch(getdaolutongji()).then((res) => {
+ console.log(res);
setList(res.payload.data.construction.map((item, index) => {
return item.year
}));
setCount(res.payload.data.construction.map((item, index) => {
return item.count.toFixed(3)
}))
+ setValue()
});
}, [])
// console.log(list, count);
@@ -134,7 +138,7 @@ const Leftbottomecharts = (props) => {
shadowBlur: 10,
},
},
- data: count,
+ data: flag ? count : value,
},
],
};
@@ -142,15 +146,21 @@ const Leftbottomecharts = (props) => {
window.addEventListener('resize', function () {
chartInstance.resize();
})
- }, [list, count]);
-
+ }, [count, flag, list]);
+ console.log(flag);
return (
<>
-
+ {
+ setFlag(true)
+ }} style={{ position: "absolute", top: "75%", left: "75%", width: "72px", height: "20px", backgroundColor: "rgba(216,240,255,0.1000)", float: "right", textAlign: "center", zIndex: 100, marginRight: "4%", borderLeft: "solid 2px #6E7A83" }} >
+
已建
+ {
+ setFlag(false)
+ }} style={{ position: "absolute", width: "72px", left: "45%", top: "75%", height: "20px", backgroundColor: "rgba(216,240,255,0.1000)", float: "right", textAlign: "center", marginRight: "4%", borderLeft: "solid 2px #6E7A83" }}>
+
未建
>
);
diff --git a/web/log/development.txt b/web/log/development.txt
index 70924be8..1cddcc1e 100644
--- a/web/log/development.txt
+++ b/web/log/development.txt
@@ -66685,3 +66685,13 @@
[32m' at F:\\Highways4Good\\web\\node_modules\\koa-66\\index.js:209:56\n'[39m +
[32m' at dispatch (F:\\Highways4Good\\web\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)'[39m
}
+2022-08-11 10:02:05.357 - [31merror[39m: [FS-ERRHD]
+{
+ message: [32m'qndmn is not defined'[39m,
+ stack: [32m'ReferenceError: qndmn is not defined\n'[39m +
+ [32m' at getApiRoot (F:\\Highways4Good\\web\\routes\\attachment\\index.js:24:40)\n'[39m +
+ [32m' at dispatch (F:\\Highways4Good\\web\\node_modules\\koa-compose\\index.js:44:32)\n'[39m +
+ [32m' at F:\\Highways4Good\\web\\node_modules\\koa-compose\\index.js:36:12\n'[39m +
+ [32m' at F:\\Highways4Good\\web\\node_modules\\koa-66\\index.js:209:56\n'[39m +
+ [32m' at dispatch (F:\\Highways4Good\\web\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)'[39m
+}