From f3c73a86f00061125e1946125c2f7499064a5708 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期二, 21 十月 2025 14:51:05 +0800
Subject: [PATCH] 修改新增
---
src/views/work/documentManage/docBorrowCopy/index.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/work/documentManage/docBorrowCopy/index.vue b/src/views/work/documentManage/docBorrowCopy/index.vue
index 8df3e09..7915dc8 100644
--- a/src/views/work/documentManage/docBorrowCopy/index.vue
+++ b/src/views/work/documentManage/docBorrowCopy/index.vue
@@ -8,6 +8,7 @@
plain
icon="Plus"
@click="openDialog('add',{})"
+ v-hasPermi="['docBorrowCopy:add']"
>新增</el-button>
</el-form-item>
<el-form-item v-if="isAdmin" label="企业:" >
@@ -30,17 +31,17 @@
<!-- 表格数据 -->
<el-table v-loading="loading" :data="dataList" :border="true">
<el-table-column type="index" label="序号"></el-table-column>
- <el-table-column prop="enactmentDate" align="center" label="检查表名称">
+ <el-table-column prop="name" align="center" label="记录名称">
<template #default="scope">
- {{scope.row.name + '记录'}}
+ {{scope.row.name }}
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template #default="scope">
<el-button link type="primary" @click="openDialog('view',scope.row)">查看</el-button>
- <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
+ <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['docBorrowCopy:edit']">编辑</el-button>
<el-button link type="primary" @click="downloadFile(scope.row)">导出</el-button>
- <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
+ <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['docBorrowCopy:del']">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -146,13 +147,12 @@
return {
...item,
index: index + 1,
- distributionDate: item.distributionDate.substring(0,10),
- collectionDate: item.collectionDate.substring(0,10)
+ borrowDate: item.borrowDate.substring(0,10),
+ backDate: item.backDate.substring(0,10)
}
})
- tableData.tabulationDate = tableData.tabulationDate.substring(0,10)
try {
- generateWordDocument('/docDistributeRetrieve.docx', tableData, tableData.name +'文件发放/回收记录.docx');
+ generateWordDocument('/docBorrowCopy.docx', tableData, tableData.name +'文件借阅/复制记录.docx');
} catch (error){
ElMessage({
type: 'warning',
--
Gitblit v1.9.2