Commit 8e6c4481 authored by zhangyanni's avatar zhangyanni

需求时间

parent 930a4c4a
......@@ -1259,7 +1259,7 @@
if (valid) {
that.ruleForm.requirementEndTime = publicFunc.getDataFormatFunc(that.ruleForm.requirementEndTime, 0);
that.ruleForm.targetLabel = this.flagList1 ? this.flagList1.join(",") : "";
if(new Date(this.ruleForm.requirementEndTime+" 00:00:00").getTime()<new Date().getTime()){
if(new Date(this.ruleForm.requirementEndTime+" 23:59:59").getTime()<new Date().getTime()){
this.$confirm('需求有效期不能小于当前时间', {
confirmButtonText: '确认',
cancelButtonText: '取消',
......
......@@ -1352,7 +1352,7 @@
this.ruleForm.companyLabel = this.flagList?this.flagList.join(","):"";
this.ruleForm.requirementEndTime = publicFunc.getDataFormatFunc(this.ruleForm.requirementEndTime,0);
this.ruleForm.companyLabel = this.flagList1?this.flagList1.join(","):"";
if(new Date(this.ruleForm.requirementEndTime+" 00:00:00").getTime()<new Date().getTime()){
if(new Date(this.ruleForm.requirementEndTime+" 23:59:59").getTime()<new Date().getTime()){
this.$confirm('需求有效期不能小于当前时间', {
confirmButtonText: '确认',
cancelButtonText: '取消',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment