datePicker组件有一属性ref,ref=“producetime”
可以打印出ref属性,发现其中存在internalValue,focusedDate
于是,当切换后又想初始的时候可以对这两个属性进行赋值
this.$refs['producetime'].internalValue=[new Date(this.paramsTime.timeStart),new Date(this.paramsTime.timeEnd)]
this.$refs['producetime'].focusedDate=new Date(this.paramsTime.timeStart)