|
|
@@ -51,6 +51,7 @@ export default {
|
|
|
monthList: [],
|
|
|
year: "",
|
|
|
month: "",
|
|
|
+ vipYearList: [2025, 2026, 2027]
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -68,9 +69,24 @@ export default {
|
|
|
this.$emit("input", this.formatYearMonth(newVal, this.month));
|
|
|
},
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ datePickerOptions() {
|
|
|
+ return {
|
|
|
+ disabledDate: time => {
|
|
|
+ const year = new Date(time).getFullYear();
|
|
|
+ return !this.vipYearList.includes(year);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.initMonth();
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ // this.year = "2025";
|
|
|
+ // this.month = "08";
|
|
|
+ // this.$emit("input", this.formatYearMonth(this.year, this.month));
|
|
|
+ },
|
|
|
methods: {
|
|
|
initMonth() {
|
|
|
let list = [];
|