<el-col :span="8" style="height:28px">
                    <el-form-item label="领取截止时间:" required label-width="130px">
            <el-form-item prop="ReceiveUpTime">
                <el-date-picker v-model="model.ReceiveUpTime" type="date" placeholder="选择日期" :picker-options="checkTime(model.EndTime,model.ReceiveUpTime)" value-format="yyyy-MM-dd" style="width:100%"></el-date-picker>
            </el-form-item>
        </el-form-item>
                </el-col>

   checkTime: function (Starttime, Validtime) {
                   if (Starttime && Validtime) {
                       if (Starttime > Validtime) {
                           this.$message.warning("领取截止时间不能小于结束日期");
                       }
                   }
               },

 

网上其它写法不起作用,所以用了上面的方法,其它常用写法参考:

https://www.cnblogs.com/IwishIcould/p/12594400.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-01-17
  • 2021-10-29
  • 2021-09-05
  • 2022-12-23
相关资源
相似解决方案