Browse Source

城市体检-报送统计、监测预警、首页督办事项返回值修改20250421-01

zhiyuan-007 3 days ago
parent
commit
d3dd73089a

+ 2 - 2
src/views/cstj/monitorWarning/index.vue

@@ -127,7 +127,7 @@ const spanMethod = ({ row, column, rowIndex }) => {
 const getList = async () => {
   loading.value = true;
   const res = await getMonitorWarningPageList(queryParams.value);
-  res.forEach((item)=>{
+  res.data.forEach((item)=>{
     item.city =  item.deptListVo.city;
     item.district =  item.deptListVo.district;
     item.street =  item.deptListVo.street;
@@ -161,7 +161,7 @@ const getList = async () => {
     item.tsInd_isWdb = item.tsInd?.isWdb;
 
   })
-  tbLedgerList.value = res;
+  tbLedgerList.value = res.data;
   total.value = res.total;
   loading.value = false;
 };

+ 4 - 3
src/views/cstj/reportStatistics/index.vue

@@ -27,7 +27,7 @@
         </el-row>
       </template>
 
-      <el-table :data="tbLedgerList" border style="width: 100%" :span-method="spanMethod">
+      <el-table :data="tbLedgerList"  height="780" border style="width: 100%" :span-method="spanMethod">
         <el-table-column prop="city" align="center"  label="城市"></el-table-column>
         <el-table-column prop="district" align="center"  label="区县"></el-table-column>
         <el-table-column prop="street" align="center"  label="街道"></el-table-column>
@@ -124,7 +124,8 @@ const spanMethod = ({ row, column, rowIndex }) => {
 const getList = async () => {
   loading.value = true;
   const res = await getReportStatisticsPageList(queryParams.value);
-  res.forEach((item)=>{
+  debugger
+  res.data.forEach((item)=>{
     item.city =  item.deptListVo.city;
     item.district =  item.deptListVo.district;
     item.street =  item.deptListVo.street;
@@ -133,7 +134,7 @@ const getList = async () => {
     item.deptId = item.deptListVo.deptId;
     item.plot = item.deptListVo.plot;
   })
-  tbLedgerList.value = res;
+  tbLedgerList.value = res.data;
   total.value = res.total;
   loading.value = false;
 };

+ 13 - 11
src/views/index-833951.vue

@@ -383,17 +383,19 @@ function getDBData(type){
   getdbData(type).then((res) => {
     db_loading.value = false;
     debugger
-    if (res.length > 0) {
-      dbData = res;
-      let dataX = [];
-      let dataY1 = [];
-      let dataY2 = [];
-      dbData.forEach((item)=>{
-        dataX.push(item.name);
-        dataY1.push(item.shouldValue);
-        dataY2.push(item.realityValue);
-      })
-      dbOption(dbsxRef.value, dataX,dataY1,dataY2);
+    if(res.code == 200){
+      if (res.data.length > 0) {
+        dbData = res.data;
+        let dataX = [];
+        let dataY1 = [];
+        let dataY2 = [];
+        dbData.forEach((item)=>{
+          dataX.push(item.name);
+          dataY1.push(item.shouldValue);
+          dataY2.push(item.realityValue);
+        })
+        dbOption(dbsxRef.value, dataX,dataY1,dataY2);
+      }
     }
   });
 }