wenhongquan há 2 anos atrás
pai
commit
eac00f0ad4
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      ruoyi-ui-vue3/src/views/device/sensordash/index.vue

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

@@ -328,7 +328,7 @@ const onchangepage = (page) => {
 }
 const pagedata = ref({
   total:0,
-  size:10,
+  pageSize:10,
   current:1
 });
 
@@ -411,7 +411,7 @@ const getalldata = () => {
     deviceids = deviceids.replaceAll("device_", "")
     listSensor({...pagedata.value, params: {deviceids: deviceids,...searchform.value}}).then(res => {
       const {rows,total,page,size} = res;
-      pagedata.value = {total:total,current:page, size:10};
+      pagedata.value = {total:total,current:page, pageSize:10};
       devicetabledata.value = rows.map(item => {
         try{
           var statusname = sensor_status.value.find(i => i.value == item.status).label;