From 29be8639dc16b5d82bddc6099b1fa5cdca75f77a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 20 十月 2026 16:28:22 +0800
Subject: [PATCH] feat(import): 统一导入弹框与模板,修复模板日期格式及上传报错
---
src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
index d1c0df7..e1381fb 100644
--- a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
@@ -22,10 +22,7 @@
</div>
<div>
<el-button size="small" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
- <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx'
- :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' v-if="upPower"
- :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
- <el-button type="primary" size="small">瀵煎叆</el-button></el-upload>
+ <el-button v-if="upPower" type="primary" size="small" style="margin-left: 20px" @click="$refs.importDialog.open()">瀵煎叆</el-button>
</div>
</div>
<div class="table">
@@ -122,12 +119,23 @@
<el-button type="primary" @click="submitCheck('閫氳繃')" :loading="checkLoading">閫� 杩�</el-button>
</span></template>
</el-dialog>
+ <import-dialog
+ ref="importDialog"
+ title="瀵煎叆鏂囦欢瀹氭湡瀹℃煡璁板綍"
+ :action="action"
+ accept=".doc,.docx"
+ template-url="/import-templates/鏂囦欢瀹氭湡瀹℃煡璁板綍瀵煎叆妯℃澘.docx"
+ template-name="鏂囦欢瀹氭湡瀹℃煡璁板綍瀵煎叆妯℃澘.docx"
+ :tips="['璇峰嬁鍒犻櫎琛ㄥご鎴栧鍒犲垪锛屾暟鎹粠绗� 2 琛屽紑濮嬪~鍐�', '閫傚疁鎬у~鍐欌�滈�傚疁 / 涓嶉�傚疁鈥濇垨鈥溾垰 / 脳鈥�']"
+ @success="refreshTable"
+ />
</div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
import filePreview from '@/components/Preview/filePreview.vue'
+import ImportDialog from '@/components/ImportDialog/index.vue'
import {
exportOutManageRecordIntervals,
addManageRecordIntervals,
@@ -145,7 +153,8 @@
name: 'RegularReviewsRecord',
components: {
limsTable,
- filePreview
+ filePreview,
+ ImportDialog
},
data() {
return {
@@ -203,7 +212,7 @@
page: {
total: 0,
size: 10,
- current: 0,
+ current: 1,
},
tableLoading: false,
queryParams0: {},
@@ -270,7 +279,7 @@
page0: {
total: 0,
size: 10,
- current: 0,
+ current: 1,
},
}
},
--
Gitblit v1.9.3