From f90fbbc76d23340e4568dd4dadbab5f7f02a030f Mon Sep 17 00:00:00 2001
From: pengwei <2071057782@qq.com>
Date: 星期一, 24 三月 2025 14:49:24 +0800
Subject: [PATCH] 3.24功能新增

---
 项目代码/client/src/views/tts/BasicInformation/Basicinformation.vue |   45 ++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 40 insertions(+), 5 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 628e2a6..af304b1 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,7 @@
             ><el-icon style="margin-right: 0.2rem"> <Plus /> </el-icon
             >鏂板缓</el-button
           >
-          <el-button
+          <!-- <el-button
             size="small"
             style="width: 5.5rem; height: 2rem; font-size: 0.88rem"
             >鎵归噺瀵煎叆</el-button
@@ -114,8 +114,9 @@
           <el-button
             size="small"
             style="width: 5.5rem; height: 2rem; font-size: 0.88rem"
+            @click="printExcel"
             >鎵归噺瀵煎嚭</el-button
-          >
+          > -->
           <el-button
             @click="deleteAll"
             size="small"
@@ -127,6 +128,7 @@
       <div style="margin-top: 1rem; height: 100%">
         <!-- 淇℃伅鍒楄〃 -->
         <el-table
+          empty-text="鏆傛棤鏁版嵁"
           v-if="isactive == 1"
           :data="tableData"
           style="width: 100%"
@@ -161,6 +163,7 @@
 
         <!-- 宸ュ叿鍒楄〃 -->
         <el-table
+          empty-text="鏆傛棤鏁版嵁"
           v-if="isactive == 2"
           :data="toolList"
           style="width: 100%"
@@ -315,7 +318,6 @@
             <el-form-item prop="articleRemark">
               <template #label>
                 <div style="display: flex; align-items: flex-end">
-                  <span style="color: red; margin-right: 0.2rem">*</span>
                   <span
                     style="font-size: 0.88rem; color: black; font-weight: bold"
                     >澶囨敞</span
@@ -445,7 +447,6 @@
             <el-form-item prop="toolremark">
               <template #label>
                 <div style="display: flex; align-items: flex-end">
-                  <span style="color: red; margin-right: 0.2rem">*</span>
                   <span
                     style="font-size: 0.88rem; color: black; font-weight: bold"
                     >澶囨敞</span
@@ -496,6 +497,8 @@
   editToolData,
   deleteToolData,
   deleteBasicinformation,
+  ExportApi,
+  ExportTool,
 } from "@/api/newapi/Basicinformation.js";
 // 鍒濆鍖栨暟鎹�
 const obj = {
@@ -708,12 +711,44 @@
   }
 };
 
+const printExcel = () => {
+  // 鏌ヨ鏉′欢
+  const startTime = formatTime(queryForm.value.selectTime[0]);
+  const endTime = formatTime(queryForm.value.selectTime[1]);
+  const filter = [
+    {
+      name: queryForm.value.selectType,
+      value: queryForm.value.selectInput,
+      displayType: "like",
+    },
+    {
+      name: "pustatus",
+      value: queryForm.value.selectName,
+      displayType: "String",
+    },
+    { name: "createDate", value: startTime, displayType: "ThanOrEqual" },
+    { name: "createDate", value: endTime, displayType: "LessOrEqual" },
+  ];
+  if (isactive.value == 1) {
+    ExportApi({
+      ...pageQuery.value,
+      filter,
+    });
+  }
+  if (isactive.value == 2) {
+    ExportTool({
+      ...pageQuery.value,
+      filter,
+    });
+  }
+};
+
 //鍒嗛〉璇锋眰鍙傛暟
 const pageQuery = ref({
   page: 1, //褰撳墠椤甸潰
   rows: 10, //姣忛〉鏄剧ず鏉℃暟
   order: "desc", //鎺掑簭鏂瑰紡
-  sort: "createDate", //鎺掑簭瀛楁
+  sort: "", //鎺掑簭瀛楁
   wheres: "", //鏉′欢鏌ヨ
 });
 

--
Gitblit v1.9.3