Commit defd698b authored by zhengke's avatar zhengke

修改

parent 90162978
...@@ -183,7 +183,8 @@ ...@@ -183,7 +183,8 @@
</div> </div>
</div> </div>
</div> </div>
<q-btn color="accent" size="sm" class="q-mr-md marginl-15 margint-15" label="提交" @click="saveOrderInfo()" :loading="Dloading" v-if="AccountType==false&&data.IsEditSummary<=0"/> <q-btn color="accent" size="sm" class="q-mr-md marginl-15 margint-15" label="提交" @click="saveOrderInfo()" :loading="Dloading"
v-if="(AccountType==false&&data.IsEditSummary<=0)&&isUpData"/>
</div> </div>
...@@ -288,7 +289,8 @@ ...@@ -288,7 +289,8 @@
}, },
Score:0, Score:0,
nowDate:'', //现在时间 nowDate:'', //现在时间
isCanEdit:false isCanEdit:false,
isUpData:true
} }
}, },
created(){ created(){
...@@ -331,12 +333,15 @@ ...@@ -331,12 +333,15 @@
if (res.Code == 1) { if (res.Code == 1) {
this.data = res.Data; this.data = res.Data;
this.plmsg.TeacherId = res.Data.UpdateBy; this.plmsg.TeacherId = res.Data.UpdateBy;
var beginTimes =this.nowDate.replace(/-/g,"/"); var beginTimes =this.nowDate.replace(/-/g,"/"); //当前
var endTimes =this.data.ClassEndTime.replace(/-/g,"/"); var endTimes =this.data.ClassEndTime.replace(/-/g,"/"); //结束
var a =(Date.parse(endTimes)-Date.parse(beginTimes))/3600/1000; var a =(Date.parse(endTimes)-Date.parse(beginTimes))/3600/1000;
if(a<0){ if(a<0){
this.isCanEdit=true; //可以编辑 this.isCanEdit=true; //可以编辑
} }
if(a>0){
this.isUpData=false;
}
} }
}) })
}, },
......
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