|
@@ -192,26 +192,17 @@ export default {
|
|
created() {
|
|
created() {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
- 'queryParams.incomeExpenses': {
|
|
|
|
- handler: function(newValue, oldValue) {
|
|
|
|
- // console.log(`The value changed to ${newValue}`);
|
|
|
|
- if(newValue=='支出'){
|
|
|
|
- this.zhichu=true;
|
|
|
|
- }else if(newValue=='收入'){
|
|
|
|
- this.zhichu=false;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- deep: true,
|
|
|
|
- immediate: false
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
methods: {
|
|
methods: {
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
pageList(this.addDateRange(this.queryParams, this.dateRange))
|
|
pageList(this.addDateRange(this.queryParams, this.dateRange))
|
|
.then(response => {
|
|
.then(response => {
|
|
|
|
+ if(this.queryParams.incomeExpenses=='支出'){
|
|
|
|
+ this.zhichu=true;
|
|
|
|
+ }else if(this.queryParams.incomeExpenses=='收入'){
|
|
|
|
+ this.zhichu=false;
|
|
|
|
+ }
|
|
this.dataList = response.data.rows;
|
|
this.dataList = response.data.rows;
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
this.loading = false;
|
|
this.loading = false;
|