From b34fbeffb0d128b75ec0a91acf7fe8ac3816c597 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 18 七月 2023 20:15:38 +0800
Subject: [PATCH] 新增个人记事本按钮

---
 ruoyi-ui/src/views/economy/index.vue |   32 +++++++++-----------------------
 1 files changed, 9 insertions(+), 23 deletions(-)

diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue
index 88d62f6..9ed05e9 100644
--- a/ruoyi-ui/src/views/economy/index.vue
+++ b/ruoyi-ui/src/views/economy/index.vue
@@ -86,7 +86,7 @@
           plain
           icon="el-icon-download"
           size="mini"
-          @click="handleExportTemplate"
+          @click="handleExport"
           v-hasPermi="['family:note:export']"
         >瀵煎叆妯℃澘涓嬭浇</el-button>
       </el-col>
@@ -118,13 +118,14 @@
       <el-table-column label="鏀跺叆/鏀嚭" prop="price" sortable width="100" >
 
       </el-table-column>
+      <el-table-column label="閲戦" prop="balance" sortable width="100" />
       <el-table-column label="鐢ㄩ��" prop="useFor" sortable width="100" />
 
       <el-table-column label="浣跨敤浜�" prop="usePeople" sortable width="100" />
       <el-table-column label="鐜伴噾/鑷姩鎵e垝" prop="kind" sortable width="130" >
         <template slot-scope="scope">{{scope.row.kind? scope.row.kind: '鈥斺�斺�斺��'}}</template>
       </el-table-column>
-      <el-table-column label="浣欓" prop="balance" sortable width="100" />
+
       <el-table-column label="鐢靛瓙鏂囦欢" prop="url" align="center" sortable  width="110" >
         <template slot-scope="scope" >
           <img
@@ -171,6 +172,7 @@
         </template>
       </el-table-column>
     </el-table>
+
     <pagination
       v-show="total>0"
       :total="total"
@@ -217,6 +219,8 @@
           <el-input v-model="formDat.kind" placeholder="璇疯緭鍏ユ敮浠樻柟寮�" clearable :style="{width: '100%'}" >
           </el-input>
         </el-form-item>
+
+
         <el-form-item label="澶囨敞" prop="remark">
           <el-input v-model="formDat.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" ></el-input>
         </el-form-item>
@@ -421,7 +425,8 @@
         {
           value: '鏀嚭',
           label: '鏀嚭',
-        }],
+        }
+      ],
       typeOptions1: [
         {
           value: '0',
@@ -515,10 +520,6 @@
     cancel() {
       this.open = false;
       this.reset();
-    },
-    getRowId(row)
-    {
-      return row.id
     },
     // 鍙栨秷鎸夐挳锛堟暟鎹潈闄愶級
     cancelDataScope() {
@@ -645,7 +646,7 @@
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete(row) {
       const Ids = row.id || this.ids;
-      this.$modal.confirm('鏄惁纭鍒犻櫎搴忓彿涓�"' + Ids + '"鐨勬暟鎹」锛�').then(function() {
+      this.$modal.confirm('鏄惁纭鍒犻櫎鎵�閫夋暟鎹」锛�').then(function() {
         return delEconomy(Ids);
       }).then(() => {
         this.getList();
@@ -654,24 +655,10 @@
     },
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
     handleExport() {
-      const Ids = this.ids;
-
-      if(Ids.length==0)
-      {
       this.download('/zfEconomy/export', {
         ...this.queryParams
       }, `zfEconomy_${new Date().getTime()}.xlsx`)
-      }else
-      {
-        this.download('/zfEconomy/export1/'+Ids, {
-        }, `zfEconomy_${new Date().getTime()}.xlsx`)
-      }
     }
-  ,
-  handleExportTemplate(){
-      this.download('/zfEconomy/model', {
-
-      }, `zfEconomy_${new Date().getTime()}.xlsx`)
   },
   /** 瀵煎叆鎿嶄綔*/
   handleEnport(params){
@@ -689,7 +676,6 @@
       Message({ message: "瀵煎叆澶辫触", type: 'error' })
     }
 
-  }
   }
 
 };

--
Gitblit v1.9.1