wenhongquan 2 năm trước cách đây
mục cha
commit
6f60531437
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      ruoyi-ui-vue3/src/views/device/sensordash/index.vue

+ 2 - 2
ruoyi-ui-vue3/src/views/device/sensordash/index.vue

@@ -486,7 +486,7 @@ const lookdata = (item)=>{
   //弹窗
   datashow.value = true;
   currentsensor.value = item;
-  listSensorData({pageNum:1,pageSize:10000,id:item.id}).then(res=>{
+  listSensorData({page:1,pageSize:10000,id:item.id}).then(res=>{
     const {rows,total,page,size} = res;
     if(rows.length>0){
       if(rows[0].recordData){
@@ -602,7 +602,7 @@ const doshowhistory = (row)=>{
   isloading.value = true;
   currentname.value = row.name;
   //获取历史数据
-  listSensorRecordData({sensorId:currentsensor.value.id,pointName:row.name,page:1,pageSize:100,orderByColumn:"createTime",isAsc:"asc",params:{name:row.name}}).then(res=>{
+  listSensorRecordData({sensorId:currentsensor.value.id,pointName:row.name,pageNum:1,pageSize:100,orderByColumn:"createTime",isAsc:"asc",params:{name:row.name}}).then(res=>{
     const {rows,total,page,size} = res;
     isloading.value = false;
     historytabledata.value = rows.map(i=>{