gaoluyang
14 小时以前 076bb96b437258f0e8cdbe184040e1e302b60d4b
src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
@@ -30,16 +30,10 @@
          :isSelection="true"
          @selection-change="handleSelectionChange"
          height="500"
               :page="page"
               @pagination="pagination"
      >
      </PIMTable>
         <pagination
            style="margin: 10px 0"
            v-show="total > 0"
            @pagination="paginationSearch"
            :total="total"
            :page="page.current"
            :limit="page.size"
         />
      <template #footer>
        <div class="dialog-footer">
          <el-button @click="closeDia">取消</el-button>
@@ -60,7 +54,6 @@
  qualityInspectFileDel,
  qualityInspectFileListPage
} from "@/api/qualityManagement/qualityInspectFile.js";
import Pagination from "@/components/PIMTable/Pagination.vue";
const { proxy } = getCurrentInstance()
const emit = defineEmits(['close'])
@@ -97,6 +90,7 @@
const page = reactive({
   current: 1,
   size: 100,
   total: 0
});
const total = ref(0);
const tableData = ref([]);
@@ -114,15 +108,16 @@
  currentId.value = row.id;
  getList()
}
const paginationSearch = (obj) => {
const pagination = (obj) => {
   page.current = obj.page;
   page.size = obj.limit;
   getList();
};
const getList = () => {
  qualityInspectFileListPage({inspectId: currentId.value, ...page}).then(res => {
    tableData.value = res.data.records;
      total.value = res.data.total;
      page.total = res.data.total;
  })
}
// 表格选择数据