From 1288a7890deb3b180b1e8df7015b1036514c4e71 Mon Sep 17 00:00:00 2001 From: pengwei <2071057782@qq.com> Date: 星期四, 27 三月 2025 09:07:12 +0800 Subject: [PATCH] 3.27优化 --- 项目代码/client/src/views/tts/BasicInformation/Basicinformation.vue | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/tts/BasicInformation/Basicinformation.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/tts/BasicInformation/Basicinformation.vue" index af304b1..d126bca 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/tts/BasicInformation/Basicinformation.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/tts/BasicInformation/Basicinformation.vue" @@ -106,7 +106,8 @@ ><el-icon style="margin-right: 0.2rem"> <Plus /> </el-icon >鏂板缓</el-button > - <!-- <el-button + <el-button + @click="importDialogVisible = true" size="small" style="width: 5.5rem; height: 2rem; font-size: 0.88rem" >鎵归噺瀵煎叆</el-button @@ -116,7 +117,7 @@ style="width: 5.5rem; height: 2rem; font-size: 0.88rem" @click="printExcel" >鎵归噺瀵煎嚭</el-button - > --> + > <el-button @click="deleteAll" size="small" @@ -482,12 +483,27 @@ </div> </template> </el-dialog> + + <el-dialog v-model="importDialogVisible"> + <UploadExcel + @importExcelAfter="importExcelAfter" + :url="isactive == 1 ? 'api/ArticleInfom/Import' : 'api/Tools/Import'" + :template="{ + url: + isactive == 1 + ? 'api/ArticleInfom/DownLoadTemplate' + : 'api/Tools/DownLoadTemplate', + fileName: isactive == 1 ? '淇℃伅瀵煎叆妯℃澘' : '宸ュ叿瀵煎叆妯℃澘', + }" + /> + </el-dialog> </div> </template> <script setup> import { ref, reactive, onMounted, toRef } from "vue"; import { ElMessage, ElMessageBox } from "element-plus"; import { formatTime } from "@/utils/index.js"; +import UploadExcel from "@/components/basic/UploadExcel.vue"; import { getBasicinformation, addBasicinformation, @@ -515,7 +531,7 @@ const isactive = ref(1); const dialogVisible = ref(false); const dialogVisible1 = ref(false); - +const importDialogVisible = ref(false); // 瀵煎叆 const selectoptions = ref([]); const infoOpitions = ref([ { -- Gitblit v1.9.3