Commit cfb568a4 authored by 周远喜's avatar 周远喜

日期范围选择和显示

parent fe006db7
...@@ -128,17 +128,18 @@ export default { ...@@ -128,17 +128,18 @@ export default {
<style lang="less"> <style lang="less">
.time-view { .time-view {
display: inline-block; display: inline-block;
.jian-tou { span{size: 12px}
min-width: 55px; span.jian-tou {
min-width:60px;
text-align: center; text-align: center;
padding: 0 5px 2px 5px; display: inline-block;
background-image: url("../../assets/imgicon/range.png"); background-image: url("../../assets/imgicon/range.png");
background-size: 100%; background-size: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom right; background-position: 100% 80%;
// border-bottom: #eee 2px solid; // border-bottom: #eee 2px solid;
size: 12px; size: 12px;
font-weight: bold; color: orange;
} }
} }
</style> </style>
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row> <Row>
<!-- <Col :span="12" <!-- <Col :span="12"
...@@ -51,6 +51,23 @@ ...@@ -51,6 +51,23 @@
><FormItem :label="l('upId')" prop="upId"> ><FormItem :label="l('upId')" prop="upId">
<Input v-model="entity.upId"></Input> </FormItem <Input v-model="entity.upId"></Input> </FormItem
></Col> --> ></Col> -->
<Col :span="12"
><FormItem :label="l('type')" prop="type">
<Dictionary
code="mes.project_plan.Type"
v-model="entity.type"
type="radio"
></Dictionary> </FormItem
></Col>
<Col :span="12"
><FormItem :label="l('direction')" prop="direction">
<Dictionary
code="mes.project_plan.direction"
v-model="entity.direction"
type="radio"
></Dictionary> </FormItem
></Col>
<Col :span="24" <Col :span="24"
><FormItem :label="l('title')" prop="title"> ><FormItem :label="l('title')" prop="title">
<Input v-model="entity.title"> </Input> </FormItem <Input v-model="entity.title"> </Input> </FormItem
...@@ -73,32 +90,34 @@ ...@@ -73,32 +90,34 @@
></Col> ></Col>
<Col :span="12" <Col :span="12"
><FormItem :label="l('startDate')" prop="startDate"> ><FormItem :label="l('startDate')" prop="startDate">
<DatePicker <DateRange v-model="entity" edit></DateRange> </FormItem
type="date"
v-model="entity.startDate"
></DatePicker> </FormItem
></Col> ></Col>
<Col :span="12" <!-- <Col :span="12"
><FormItem :label="l('endDate')" prop="endDate"> ><FormItem :label="l('endDate')" prop="endDate">
<DatePicker <DatePicker
type="date" type="date"
v-model="entity.endDate" v-model="entity.endDate"
></DatePicker> </FormItem ></DatePicker> </FormItem
></Col> ></Col> -->
<Col :span="12" <Col :span="12"
><FormItem :label="l('type')" prop="type"> ><FormItem :label="l('executor')" prop="executor">
<UserGroup
v-model="entity.executor"
multiple
:projectId="v.projectId"
></UserGroup>
</FormItem>
</Col>
<Col :span="12"
><FormItem :label="l('deliverable')" prop="deliverable">
<Dictionary <Dictionary
code="mes.project_plan.Type" code="mes.project_plan.deliverable"
v-model="entity.type" v-model="entity.deliverable"
type="radio" type="radio"
></Dictionary> </FormItem ></Dictionary>
></Col>
<Col :span="12"
><FormItem :label="l('executor')" prop="executor">
<UserGroup v-model="entity.executor" multiple :projectId="entity.projectId"></UserGroup>
</FormItem> </FormItem>
</Col </Col>
>
<Col :span="24" <Col :span="24"
><FormItem :label="l('attachment')" prop="attachment"> ><FormItem :label="l('attachment')" prop="attachment">
<files <files
......
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
key: "direction", key: "direction",
title: this.l("direction"), title: this.l("direction"),
align: "center", align: "center",
code: "mes.project_plan.direction",
width:80, width:80,
easy: true, easy: true,
high: true, high: true,
...@@ -137,6 +138,7 @@ export default { ...@@ -137,6 +138,7 @@ export default {
{ {
key: "deliverable", key: "deliverable",
title: this.l("deliverable"), title: this.l("deliverable"),
code: "mes.project_plan.deliverable",
width:80, width:80,
align: "center", align: "center",
easy: true, easy: true,
......
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