gaoluyang
2 天以前 e27906a4f932b68578095a39485c969f1622f970
用电时段分页bug
已修改2个文件
9 ■■■■■ 文件已修改
src/components/PIMTable/PIMTable.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/energyManagement/energyPeriodTime/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/PIMTable/PIMTable.vue
@@ -204,7 +204,6 @@
    </el-table-column>
  </el-table>
  <pagination
    v-if="page.total > 0"
    :total="page.total"
    :layout="page.layout"
    :page="page.current"
src/views/energyManagement/energyPeriodTime/index.vue
@@ -175,7 +175,7 @@
    },
    form: {
        date: "",
        price: "",
        price: "",
        peak: "",
        valley: "",
        flat: "",
@@ -185,7 +185,7 @@
const { searchForm,form } = toRefs(data);
const page = ref({
  current: 1,
  size: 10,
  size: 100,
  total: 0
});
const dialogFormVisible = ref(false);
@@ -322,10 +322,10 @@
            tableLoading.value = false;
            if (res && res.data) {
                tableData.value = res.data.records || [];
                page.total = res.data.total || 0;
                page.value.total = res.data.total || 0;
            } else {
                tableData.value = [];
                page.total = 0;
                page.value.total = 0;
                ElMessageBox.warning('未获取到数据');
            }
        })