0
点赞
收藏
分享

微信扫一扫

Stable diffusion 用DeOldify给黑白照片、视频上色

alanwhy 2023-10-12 阅读 39
elementui

在这里插入图片描述

直接上代码

<el-date-picker
	v-model="fillingList.declareDate"
	type="month"
	:disabled="isDisplayName"
	placeholder="选择填报时间"
	value-format="yyyy-MM"
	:picker-options="pickerOptions"
	@change="declareDateChange"
	>
</el-date-picker>

data里面的数据

data(){
	return {
		pickerOptions: this.getStartStopMonth(),
		StartStopMonthArr: ['2023-05', '2023-02'],
		startTime: '2023-02',
	}
},
methods:{
	getStartStopMonth() {
		let that = this
		return {
			disabledDate: (time) => {
				let nowYear = new Date().getFullYear();
				let nowMonth = new Date().getMonth() + 1;
				let nowYM = nowYear + '-' + (nowMonth >= 10 ? nowMonth : ('0' + nowMonth));
				let timeM = time.getMonth() + 1;
				let timeYM = time.getFullYear() + '-' + (timeM >= 10 ? timeM : ('0' + timeM));
				return timeYM > nowYM || that.StartStopMonthArr.includes(timeYM) || timeYM < that.startTime
			}
		}
	}
}
举报

相关推荐

0 条评论