From ea411b153d12867768287433dd73ad31d49f5d73 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 18 Sep 2025 15:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=A7=BB=E4=BA=A4=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/filesTransfer/apply.js | 37 +++++++++++++++++++++++++ src/components/TableModel/index.vue | 6 ++-- src/views/filesTransfer/apply/index.vue | 2 +- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 src/api/filesTransfer/apply.js diff --git a/src/api/filesTransfer/apply.js b/src/api/filesTransfer/apply.js new file mode 100644 index 0000000..2db8d79 --- /dev/null +++ b/src/api/filesTransfer/apply.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 档案移交申请列表 +export function getTransferApplyListApi(params) { + return request({ + url: '/smartArchives/transferApply/getTransferApplyList', + method: 'GET', + params: params, + }) +} + +// 新增档案移交申请 +export function saveTransferApplyApi(data) { + return request({ + url: '/smartArchives/transferApply/saveTransferApply', + method: 'POST', + data + }) +} + +// 编辑档案移交申请 +export function editTransferApplyApi(data) { + return request({ + url: '/smartArchives/transferApply/editTransferApply', + method: 'POST', + data + }) +} + +// 删除档案移交申请 +export function delTransferApplyApi(data) { + return request({ + url: '/smartArchives/transferApply/delTransferApply', + method: 'POST', + data + }) +} \ No newline at end of file diff --git a/src/components/TableModel/index.vue b/src/components/TableModel/index.vue index ed2ef79..ff9672f 100644 --- a/src/components/TableModel/index.vue +++ b/src/components/TableModel/index.vue @@ -184,7 +184,7 @@ @@ -340,6 +340,8 @@ export default { columnCheckList: [], // 操作列最小宽度 dynamicWidth: 0, + // 操作列固定宽度,防止列数过少导致过宽 + handleColWidth: 250, // 自增id idCount: 1, // 日期查询条件 字段名称 @@ -393,7 +395,7 @@ export default { this.getTableList() }, updated() { - // 更新时重新计算操作列需要的最小宽度 确保展示无误 + // 若需要自适应最小宽度,可启用下行;当前使用固定宽度 handleColWidth this.dynamicWidth = this.getOperatorWidth() }, methods: { diff --git a/src/views/filesTransfer/apply/index.vue b/src/views/filesTransfer/apply/index.vue index 058eb5a..33004ca 100644 --- a/src/views/filesTransfer/apply/index.vue +++ b/src/views/filesTransfer/apply/index.vue @@ -1,5 +1,5 @@