|
|
@@ -166,12 +166,32 @@ export default {
|
|
|
this.presentDate = new Date(newDateYear())
|
|
|
|
|
|
this.yearData()
|
|
|
+ this.getNewMonth()
|
|
|
},
|
|
|
mounted() {
|
|
|
this.init()
|
|
|
this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
|
|
|
},
|
|
|
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'
|
|
|
+ // 四季度
|
|
|
+ }
|
|
|
+ },
|
|
|
//机构搜索
|
|
|
getDataList(val) {
|
|
|
this.cascaderValue = val.id
|