Commit 24ae67a5 authored by renjintao's avatar renjintao

task record

parent 9c3afd1c
...@@ -88,6 +88,19 @@ export default { ...@@ -88,6 +88,19 @@ export default {
); );
}, },
}, },
{
key: "creatorUserId",
title: this.l("creatorUserId"),
align: "left",
high: true,
type: 'user'
},
{
key: "creationTime",
title: this.l("creationTime"),
align: "left",
high: true,
},
{ {
title: '操作', title: '操作',
key: 'action', key: 'action',
......
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
<UserSelect ref="userSelected" v-model="entity.userId" /> <UserSelect ref="userSelected" v-model="entity.userId" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem label="计划开始结束时间" prop="date">
<DatePicker type="datetimerange" format="yyyy-MM-dd" v-model="date" placeholder="请选择时间范围" @on-change="changeFormat" style="width: 300px"></DatePicker>
</FormItem>
</Col>
<Col :span="24"> <Col :span="24">
<FormItem :label="l('note')" prop="note"> <FormItem :label="l('note')" prop="note">
<i-quill v-model="entity.note" :height="300" v-paste="handleImg" /> <i-quill v-model="entity.note" :height="300" v-paste="handleImg" />
...@@ -40,29 +45,16 @@ export default { ...@@ -40,29 +45,16 @@ export default {
return { return {
disabled: false, disabled: false,
entity: { entity: {
creationTime: null,
creatorUserId: null,
lastModificationTime: null,
lastModifierUserId: null,
isDeleted: null,
deletionTime: null,
deleterUserId: null,
title: "", title: "",
planId: null, planId: '',
projectId: null, projectId: '',
level: null, level: null,
status: null, status: null,
projectTitle: "",
planTitle: "",
userIds: "", userIds: "",
userId: "", userId: "",
endDate: null,
note: "", note: "",
startDate: null, planStartDate: null,
plansToStartDate: null, planEndDate: null,
plansToEndTime: null,
completePercentage: null,
upTaskId: null
}, },
rules: { rules: {
name: [{ name: [{
...@@ -124,6 +116,10 @@ export default { ...@@ -124,6 +116,10 @@ export default {
this.entity.id = 0; this.entity.id = 0;
}); });
}, },
changeFormat(val) {
this.entity.planStartDate = val[0];
this.entity.planEndDate = val[1];
},
handleImg(e) { handleImg(e) {
console.warn(e) console.warn(e)
let file = null let file = null
......
...@@ -11,7 +11,10 @@ ...@@ -11,7 +11,10 @@
<Filed :span="6" :name="l('userId')"> <Filed :span="6" :name="l('userId')">
<User :value="parseInt(entity.userId)"></User> <User :value="parseInt(entity.userId)"></User>
</Filed> </Filed>
<Filed :span="24" :name="l('startDate')"> <Filed :span="12" name="计划起止日期">
<TimeDifference :timeValue="timeValuePlan" :work="1"></TimeDifference>
</Filed>
<Filed :span="12" name="实际起止日期">
<TimeDifference :timeValue="timeValue" :work="1"></TimeDifference> <TimeDifference :timeValue="timeValue" :work="1"></TimeDifference>
</Filed> </Filed>
...@@ -38,6 +41,10 @@ export default { ...@@ -38,6 +41,10 @@ export default {
startDate: "", startDate: "",
endDate: "", endDate: "",
}, },
timeValuePlan: {
planStartDate: "",
planEndDate: "",
},
rules: { rules: {
name: [{ name: [{
required: true, required: true,
...@@ -72,6 +79,10 @@ export default { ...@@ -72,6 +79,10 @@ export default {
startDate: r.result.startDate, startDate: r.result.startDate,
endDate: r.result.endDate, endDate: r.result.endDate,
}, },
this.timeValuePlan = {
planStartDate: r.result.planStartDate,
planEndDate: r.result.planEndDate,
},
this.$emit('on-load') this.$emit('on-load')
// this.curId = v // this.curId = v
//this.detail = () => import('../record/index1') //this.detail = () => import('../record/index1')
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</a> </a>
</div> </div>
<Content class="content" :class="!showMenu?'con_bord':''"> <Content class="content" :class="!showMenu?'con_bord':''">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :lazy="true" :set="false"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :lazy="true">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" inline> <Form ref="formInline" inline>
<FormItem> <FormItem>
...@@ -248,19 +248,17 @@ export default { ...@@ -248,19 +248,17 @@ export default {
hide: true hide: true
}, },
{ {
key: "creationTime", key: "creatorUserId",
title: this.l("creationTime"), title: this.l("creatorUserId"),
align: "left", align: "left",
high: true, high: true,
hide: true, type: 'user'
}, },
{ {
key: "creatorUserId", key: "creationTime",
title: this.l("creatorUserId"), title: this.l("creationTime"),
align: "left", align: "left",
high: true, high: true,
hide: true,
type: 'user'
}, },
{ {
title: '操作', title: '操作',
......
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