|
@@ -335,13 +335,10 @@
|
|
|
this.year=val
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
- if(val!='长期'&&val!='随时'){
|
|
|
- this.value=this.setValue()
|
|
|
- // console.log(this.value)
|
|
|
- }else{
|
|
|
+ if(val=='长期'||val=='随时'){
|
|
|
this.value=[0,0,0]
|
|
|
}
|
|
|
- }, 350);
|
|
|
+ }, 500);
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -354,45 +351,54 @@
|
|
|
},
|
|
|
"checkMonth":{
|
|
|
handler(val){
|
|
|
- // console.log(val)
|
|
|
this.checkMonth=val
|
|
|
this.month=val
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
+ // console.log(this.month,this.day,this.days)
|
|
|
if(val!='长期'&&val!='随时'){
|
|
|
this.value=this.setValue()
|
|
|
// console.log(this.value)
|
|
|
- }else{
|
|
|
- this.value=[0,0,0]
|
|
|
}
|
|
|
- }, 350);
|
|
|
+ }, 500);
|
|
|
})
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // if(val!='长期'&&val!='随时'){
|
|
|
+ // this.value=this.setValue()
|
|
|
+ // // console.log(this.value)
|
|
|
+ // }else{
|
|
|
+ // this.value=[0,0,0]
|
|
|
+ // }
|
|
|
+ // }, 350);
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
"checkDay":{
|
|
|
handler(val){
|
|
|
- // console.log(val)
|
|
|
+ console.log(val,333333)
|
|
|
this.checkDay=val
|
|
|
this.day=val
|
|
|
- this.$nextTick(() => {
|
|
|
- setTimeout(() => {
|
|
|
- if(val!='长期'&&val!='随时'){
|
|
|
- this.value=this.setValue()
|
|
|
- // console.log(this.value)
|
|
|
- }else{
|
|
|
- this.value=[0,0,0]
|
|
|
- }
|
|
|
- }, 350);
|
|
|
- })
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // if(val!='长期'&&val!='随时'){
|
|
|
+ // this.value=this.setValue()
|
|
|
+ // // console.log(this.value)
|
|
|
+ // }else{
|
|
|
+ // this.value=[0,0,0]
|
|
|
+ // }
|
|
|
+ // }, 350);
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
"month": { // 监听月份变化,改变当前月份天数值
|
|
|
handler(val) {
|
|
|
+ console.log(this.endDate)
|
|
|
if (val < 8&&this.year!='长期'&&val < 8&&this.year!='随时') {
|
|
|
if (val % 2 !== 0) {
|
|
|
this.days = [''];
|
|
|
if(this.endDate.day&&val===this.endDate.month&&this.year===this.endDate.year){
|
|
|
- for (let i = 1; i <= this.endDate.month; i++) {
|
|
|
+ for (let i = 1; i <= this.endDate.day; i++) {
|
|
|
this.days.push(i);
|
|
|
}
|
|
|
}else{
|
|
@@ -403,7 +409,7 @@
|
|
|
} else {
|
|
|
this.days = [''];
|
|
|
if(this.endDate.day&&val===this.endDate.month&&this.year===this.endDate.year){
|
|
|
- for (let i = 1; i <= this.endDate[2]; i++) {
|
|
|
+ for (let i = 1; i <= this.endDate.day; i++) {
|
|
|
this.days.push(i);
|
|
|
}
|
|
|
}else{
|
|
@@ -417,7 +423,7 @@
|
|
|
if (val % 2 === 0) {
|
|
|
this.days = [''];
|
|
|
if(this.endDate.day&&val===this.endDate.month&&this.year===this.endDate.year){
|
|
|
- for (let i = 1; i <= this.endDate[2]; i++) {
|
|
|
+ for (let i = 1; i <= this.endDate.day; i++) {
|
|
|
this.days.push(i);
|
|
|
}
|
|
|
}else{
|
|
@@ -428,7 +434,7 @@
|
|
|
} else {
|
|
|
this.days = [''];
|
|
|
if(this.endDate.day&&val===this.endDate.month&&this.year===this.endDate.year){
|
|
|
- for (let i = 1; i <= this.endDate[2]; i++) {
|
|
|
+ for (let i = 1; i <= this.endDate.day; i++) {
|
|
|
this.days.push(i);
|
|
|
}
|
|
|
}else{
|
|
@@ -442,7 +448,7 @@
|
|
|
if (this.year % 4 === 0) {
|
|
|
this.days = [''];
|
|
|
if(this.endDate.day&&val===this.endDate.month&&this.year===this.endDate.year){
|
|
|
- for (let i = 1; i <= this.endDate[2]; i++) {
|
|
|
+ for (let i = 1; i <= this.endDate.day; i++) {
|
|
|
this.days.push(i);
|
|
|
}
|
|
|
}else{
|
|
@@ -453,7 +459,7 @@
|
|
|
} else {
|
|
|
this.days = [''];
|
|
|
if(this.endDate.day&&val===this.endDate.month&&this.year===this.endDate.year){
|
|
|
- for (let i = 1; i <= this.endDate[2]; i++) {
|
|
|
+ for (let i = 1; i <= this.endDate.day; i++) {
|
|
|
this.days.push(i);
|
|
|
}
|
|
|
}else{
|