gaoluyang
7 天以前 6b35989783d91899169f89e21a7d3734d8cadc1d
src/views/qualityManagement/finalInspection/components/filesDia.vue
@@ -4,6 +4,7 @@
        v-model="dialogFormVisible"
        title="上传附件"
        width="50%"
            draggable
        @close="closeDia"
    >
      <div style="margin-bottom: 10px;text-align: right">
@@ -29,7 +30,9 @@
          :tableLoading="tableLoading"
          :isSelection="true"
          @selection-change="handleSelectionChange"
          height="600"
          height="500"
               :page="page"
               @pagination="pagination"
      >
      </PIMTable>
      <template #footer>
@@ -57,6 +60,7 @@
  qualityInspectFileDel,
  qualityInspectFileListPage
} from "@/api/qualityManagement/qualityInspectFile.js";
import Pagination from "@/components/PIMTable/Pagination.vue";
const { proxy } = getCurrentInstance()
const emit = defineEmits(['close'])
@@ -68,14 +72,6 @@
    label: "文件名称",
    prop: "name",
  },
  // {
  //   label: "上传人",
  //   prop: "createUser",
  // },
  // {
  //   label: "上传时间",
  //   prop: "createTime",
  // },
  {
    dataType: "action",
    label: "操作",
@@ -91,6 +87,12 @@
    ],
  },
]);
const page = reactive({
   current: 1,
   size: 100,
   total: 0
});
const total = ref(0);
const tableData = ref([]);
const fileList = ref([]);
const tableLoading = ref(false);
@@ -105,9 +107,15 @@
  currentId.value = row.id;
  getList()
}
const pagination = (obj) => {
   page.current = obj.page;
   page.size = obj.limit;
   getList();
};
const getList = () => {
  qualityInspectFileListPage({inspectId: currentId.value}).then(res => {
    tableData.value = res.data.records;
      page.total = res.data.total;
  })
}
// 表格选择数据