|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
<div slot="content"></div>
|
|
|
|
|
<slot>
|
|
|
|
|
<span>
|
|
|
|
|
<el-switch v-model="type" :active-value="1" :inactive-value="2" active-text="季度" inactive-text="月度"></el-switch>
|
|
|
|
|
<el-switch v-model="select.type" :active-value="1" :inactive-value="2" active-text="季度" inactive-text="月度" @change="getList"></el-switch>
|
|
|
|
|
</span>
|
|
|
|
|
<span style="padding: 0 6px;word-break: keep-all;">年份</span>
|
|
|
|
|
<span>
|
|
|
|
|
@ -57,7 +57,7 @@ import { departmentMoney } from "@/api/static";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
type: 1,
|
|
|
|
|
loading: false,
|
|
|
|
|
select: {
|
|
|
|
|
type: 1,//1季度,2月
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -78,7 +78,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getList() {
|
|
|
|
|
this.select.type = this.type;
|
|
|
|
|
this.list = [];
|
|
|
|
|
const res = await departmentMoney(this.select);
|
|
|
|
|
this.list = res;
|
|
|
|
|
this.$refs['xyTable'].doLayout()
|
|
|
|
|
|