|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- active: '01-01',
|
|
|
+ active: '',
|
|
|
cascaderValue: '',
|
|
|
showStatus: false, //状态显示隐藏
|
|
|
yearColumns: [],
|
|
|
@@ -136,12 +136,32 @@ export default {
|
|
|
created() {
|
|
|
this.presentDate = new Date(newDateYear())
|
|
|
this.yearData()
|
|
|
+ this.getNewMonth()
|
|
|
},
|
|
|
mounted() {
|
|
|
this.initData()
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
+ getNewMonth() {
|
|
|
+ //获取当前月份
|
|
|
+ let date = new Date().getMonth() + 1
|
|
|
+
|
|
|
+ //默认填充当前季度
|
|
|
+ if (date > 7 && date < 10) {
|
|
|
+ this.active='07-01'
|
|
|
+ //三季度
|
|
|
+ }else if(date > 4 && date < 7){
|
|
|
+ //二季度
|
|
|
+ this.active='04-01'
|
|
|
+ }else if(date > 1 && date < 4){
|
|
|
+ //一季度
|
|
|
+ this.active='01-01'
|
|
|
+ }else{
|
|
|
+ this.active='10-01'
|
|
|
+ // 四季度
|
|
|
+ }
|
|
|
+ },
|
|
|
initData() {
|
|
|
this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
|
|
|
|