From ef6a6d70620baa2ce2e3d0ea9b5c76a76debd6dd Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 18 七月 2023 17:11:59 +0800
Subject: [PATCH] 家庭收支台账
---
ruoyi-ui/src/views/economy/index.vue | 35 ++++++++++-------------------------
1 files changed, 10 insertions(+), 25 deletions(-)
diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue
index dd940d0..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>
@@ -109,7 +109,7 @@
<!-- 杩欓噷鏈変釜familyList鏁扮粍 鏄湪data()涓畾涔夌殑 -->
<el-table v-loading="loading" :data="economyList" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;">
<el-table-column type="selection" width="55" align="center" />
- <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
+ <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
<el-table-column label="鍙戠敓鏃堕棿" prop="createTime" sortable width="100" align="center">
<template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '鈥斺�斺�斺��'}}</template>
@@ -118,16 +118,16 @@
<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" >
- <div @click="handleCheck(scope.row)">
<img
class="el-upload-list__item-thumbnail"
src="../../assets/images/deviceLis.png"
@@ -143,7 +143,7 @@
style="width: 35px; height: 35px;"
fit="cover"
v-if="scope.row.url === ','"
- ></div>
+ >
</template>
</el-table-column>
<el-table-column label="澶囨敞" prop="remark" sortable width="100" >
@@ -172,6 +172,7 @@
</template>
</el-table-column>
</el-table>
+
<pagination
v-show="total>0"
:total="total"
@@ -218,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>
@@ -422,7 +425,8 @@
{
value: '鏀嚭',
label: '鏀嚭',
- }],
+ }
+ ],
typeOptions1: [
{
value: '0',
@@ -516,10 +520,6 @@
cancel() {
this.open = false;
this.reset();
- },
- getRowId(row)
- {
- return row.id
},
// 鍙栨秷鎸夐挳锛堟暟鎹潈闄愶級
cancelDataScope() {
@@ -655,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){
@@ -690,7 +676,6 @@
Message({ message: "瀵煎叆澶辫触", type: 'error' })
}
- }
}
};
--
Gitblit v1.9.1