This commit is contained in:
zmj 2024-01-26 09:10:54 +08:00
parent d28da96914
commit 1a278a8a14
6 changed files with 15 additions and 11 deletions

View File

@ -7,7 +7,7 @@
</template> </template>
<div style="height:40px"> <div style="height:40px">
<el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right" <el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right"
placeholder="年份选择" /> :placeholder="year" />
</div> </div>
@ -26,6 +26,7 @@ import { apistatisticscustoms } from '@/api/statistics'
const year = ref('') const year = ref('')
const showChart = ref(true) const showChart = ref(true)
year.value = new Date().getFullYear()
const customList = reactive([ const customList = reactive([
{ {

View File

@ -7,7 +7,7 @@
</template> </template>
<div style="height:40px"> <div style="height:40px">
<el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right" <el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right"
placeholder="年份选择" /> :placeholder="year" />
</div> </div>
<div style="display: flex;justify-content: space-around;"> <div style="display: flex;justify-content: space-around;">
@ -23,7 +23,7 @@
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { apistatisticsprojectRefund } from '@/api/statistics' import { apistatisticsprojectRefund } from '@/api/statistics'
const year = ref('') const year = ref(new Date().getFullYear())
const showChart = ref(true) const showChart = ref(true)
const customList = reactive([ const customList = reactive([

View File

@ -7,7 +7,7 @@
</template> </template>
<div style="height:40px"> <div style="height:40px">
<el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right" <el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right"
placeholder="年份选择" /> :placeholder="year" />
</div> </div>
<div style="display: flex;justify-content: space-around;"> <div style="display: flex;justify-content: space-around;">
@ -22,7 +22,8 @@
<script setup> <script setup>
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { apistatisticsprojectPayment } from '@/api/statistics' import { apistatisticsprojectPayment } from '@/api/statistics'
const year = ref('') const year = ref(new Date().getFullYear())
const showChart = ref(true) const showChart = ref(true)
const customList = reactive([ const customList = reactive([
{ {

View File

@ -7,7 +7,7 @@
</template> </template>
<div style="height:40px"> <div style="height:40px">
<el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right" <el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right"
placeholder="年份选择" /> :placeholder="year" />
</div> </div>
<div style="display: flex;justify-content: space-around;"> <div style="display: flex;justify-content: space-around;">
@ -23,7 +23,7 @@
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { apistatisticsprocurementContract } from '@/api/statistics' import { apistatisticsprocurementContract } from '@/api/statistics'
const year = ref('') const year = ref(new Date().getFullYear())
const showChart = ref(true) const showChart = ref(true)

View File

@ -8,7 +8,7 @@
<div style="height:40px"> <div style="height:40px">
<el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right" <el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right"
placeholder="年份选择" /> :placeholder="year" />
</div> </div>
<div style="display: flex;justify-content: space-around;"> <div style="display: flex;justify-content: space-around;">
@ -23,7 +23,8 @@
<script setup> <script setup>
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { apistatisticssubcontractingContract } from '@/api/statistics' import { apistatisticssubcontractingContract } from '@/api/statistics'
const year = ref('') const year = ref(new Date().getFullYear())
const showChart = ref(true) const showChart = ref(true)
const customList = reactive([ const customList = reactive([
{ {

View File

@ -7,7 +7,7 @@
</template> </template>
<div style="height:40px"> <div style="height:40px">
<el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right" <el-date-picker v-model="year" @change='getCustom' value-format="YYYY" type="year" style="float:right"
placeholder="年份选择" /> :placeholder="year" />
</div> </div>
<div style="display: flex;justify-content: space-around;"> <div style="display: flex;justify-content: space-around;">
@ -22,8 +22,9 @@
<script setup> <script setup>
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { apistatisticscontracts } from '@/api/statistics' import { apistatisticscontracts } from '@/api/statistics'
const year = ref('') const year = ref(new Date().getFullYear())
const showChart = ref(true) const showChart = ref(true)
const customList = reactive([ const customList = reactive([
{ {
name: "合同金额", name: "合同金额",