diff --git a/src/views/equipement/standard/book/dialog/selectTechFiles.vue b/src/views/equipement/standard/book/dialog/selectTechFiles.vue index af9f8f4..d9804e3 100644 --- a/src/views/equipement/standard/book/dialog/selectTechFiles.vue +++ b/src/views/equipement/standard/book/dialog/selectTechFiles.vue @@ -8,31 +8,31 @@ import { getDictByCode } from '@/api/system/dict' import type { dictType } from '@/global' -// const emits = defineEmits(['confirm']) -// const dialogFormVisible = ref(false) -// const isMulti = ref(false) // 是否多选 -// // 查询条件 -// const listQuery = ref({ -// fileNo: '', // 文件编号 -// fileName: '', // 文件名 -// fileDistributeNo: '', // 文件发放号 -// professionalGroup: '', // 专业组 -// offset: 1, -// limit: isMulti.value ? 20 : 5, -// }) -// // 多选选中的内容 -// const checkoutList = ref([]) // 选中 -// const loadingTable = ref(false) // loading -// const list = ref([]) // 表格数据 -// const total = ref(0) // 数据条数 -// const columns = ref([ -// { text: '文件编号', value: 'fileNo', align: 'center', width: '160' }, -// { text: '文件发放号', value: 'fileDistributeNo', align: 'center' }, -// { text: '文件名称', value: 'fileName', align: 'center' }, -// { text: '版本号', value: 'versionNo', align: 'center' }, -// { text: '专业组', value: 'professionalGroupName', align: 'center', width: '140' }, -// { text: '启用时间', value: 'activeDateStr', align: 'center', width: '120' }, -// ]) +const emits = defineEmits(['confirm']) +const dialogFormVisible = ref(false) +const isMulti = ref(false) // 是否多选 +// 查询条件 +const listQuery = ref({ + fileNo: '', // 文件编号 + fileName: '', // 文件名 + fileDistributeNo: '', // 文件发放号 + professionalGroup: '', // 专业组 + offset: 1, + limit: isMulti.value ? 20 : 5, +}) +// 多选选中的内容 +const checkoutList = ref([]) // 选中 +const loadingTable = ref(false) // loading +const list = ref([]) // 表格数据 +const total = ref(0) // 数据条数 +const columns = ref([ + { text: '文件编号', value: 'fileNo', align: 'center', width: '160' }, + { text: '文件发放号', value: 'fileDistributeNo', align: 'center' }, + { text: '文件名称', value: 'fileName', align: 'center' }, + { text: '版本号', value: 'versionNo', align: 'center' }, + { text: '专业组', value: 'professionalGroupName', align: 'center', width: '140' }, + { text: '启用时间', value: 'activeDateStr', align: 'center', width: '120' }, +]) // 数据查询 function fetchData(isNowPage = false) {