Commit b87acec3 authored by renjintao's avatar renjintao

task

parent 1a838023
......@@ -53,8 +53,8 @@ export default {
userIds: "",
userId: "",
note: "",
planstartdate: null,
planenddate: null,
plansToStartDate: null,
plansToEndTime: null,
},
rules: {
name: [{
......@@ -117,8 +117,8 @@ export default {
});
},
changeFormat(val) {
this.entity.planstartdate = val[0];
this.entity.planenddate = val[1];
this.entity.plansToStartDate = val[0];
this.entity.plansToEndTime = val[1];
},
handleImg(e) {
console.warn(e)
......
......@@ -12,7 +12,7 @@
<User :value="parseInt(entity.userId)"></User>
</Filed>
<Filed :span="12" name="计划起止日期">
<TimeDifference :timeValue="timeValuePlan" :work="1"></TimeDifference>
<TimeDifference :timeValue="timeValuePlan" :work="0"></TimeDifference>
</Filed>
<Filed :span="12" name="实际起止日期">
<TimeDifference :timeValue="timeValue" :work="1"></TimeDifference>
......@@ -42,8 +42,8 @@ export default {
endDate: "",
},
timeValuePlan: {
planStartDate: "",
planEndDate: "",
startDate: "",
endDate: "",
},
rules: {
name: [{
......@@ -80,8 +80,8 @@ export default {
endDate: r.result.endDate,
},
this.timeValuePlan = {
planStartDate: r.result.planStartDate,
planEndDate: r.result.planEndDate,
startDate: r.result.plansToStartDate,
endDate: r.result.plansToEndTime,
},
this.$emit('on-load')
// this.curId = v
......
......@@ -198,10 +198,10 @@ export default {
return h('TimeDifference', {
props: {
timeValue: {
startDate: params.row.planstartdate,
endDate: params.row.planenddate,
startDate: params.row.plansToStartDate,
endDate: params.row.plansToEndTime,
},
work: 1
work: 0
}
})
}
......
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