| | |
| | | type="danger" |
| | | link |
| | | @click="removeCategory(node, data)" |
| | | > |
| | | v-hasPermi="['fileManagement:document:remove']"> |
| | | 删除 |
| | | </el-button> |
| | | </div> |
| | |
| | | style="margin-left: 10px" |
| | | plain |
| | | :disabled="selectedRows.length === 0" |
| | | > |
| | | v-hasPermi="['fileManagement:document:remove']"> |
| | | 删除 ({{ selectedRows.length }}) |
| | | </el-button> |
| | | </div> |
| | |
| | | current: pagination.currentPage, |
| | | size: pagination.pageSize, |
| | | total: pagination.total, |
| | | layout: 'total, sizes, prev, pager, next, jumper' |
| | | }" |
| | | @selection-change="handleSelectionChange" |
| | | @pagination="handlePagination" |
| | |
| | | documentForm[key] = ""; |
| | | }); |
| | | documentForm.attachments = []; // 新增模式下也清空附件 |
| | | // 设置默认值 - 使用字典数据的第一个选项作为默认值 |
| | | // 设置默认值 - 文档状态默认设置为"正常" |
| | | if (document_status.value && document_status.value.length > 0) { |
| | | documentForm.docStatus = document_status.value[0].value; |
| | | const normalStatus = document_status.value.find(item => item.label === '正常'); |
| | | documentForm.docStatus = normalStatus ? normalStatus.value : document_status.value[0].value; |
| | | } |
| | | if (document_urgency.value && document_urgency.value.length > 0) { |
| | | documentForm.urgencyLevel = document_urgency.value[0].value; |
| | | const normalUrgency = document_urgency.value.find(item => item.label === '普通'); |
| | | documentForm.urgencyLevel = normalUrgency ? normalUrgency.value : document_urgency.value[0].value; |
| | | } |
| | | } |
| | | }; |
| | |
| | | |
| | | // 构建查询参数 |
| | | const query = { |
| | | page: pagination.currentPage, |
| | | current: pagination.currentPage, |
| | | size: pagination.pageSize, |
| | | documentClassificationId:currentId.value |
| | | documentClassificationId: currentId.value |
| | | }; |
| | | |
| | | const res = await getDocumentList(query); |
| | |
| | | }; |
| | | |
| | | // 处理分页变化 |
| | | const handlePagination = (current, size) => { |
| | | pagination.currentPage = current; |
| | | pagination.pageSize = size; |
| | | const handlePagination = (payload) => { |
| | | // PIMTable emit: { page, limit } |
| | | pagination.currentPage = payload?.page || 1; |
| | | pagination.pageSize = payload?.limit || pagination.pageSize; |
| | | loadDocumentList(); |
| | | }; |
| | | |
| | |
| | | } |
| | | |
| | | .dialog-footer { |
| | | text-align: right; |
| | | text-align: center; |
| | | } |
| | | |
| | | .operation-column { |