Commit 249bfcbe authored by 仇晓婷's avatar 仇晓婷

时间控件

parent 0685f966
<template>
<div class="time-view">
<div class="time-view" v-if="startDate && endDate">
<div>{{ startDate }}</div>
<div class="jian-tou" v-if="startDate && endDate">
<div class="jian-tou">
<div>{{ jg }} {{ unit }}</div>
</div>
<div>{{ endDate }}</div>
......@@ -47,8 +47,10 @@ export default {
},
methods: {
init(v) {
this.startDate = v[this.start];
this.endDate = v[this.end];
if (v) {
this.startDate = v[this.start];
this.endDate = v[this.end];
}
this.unit = this.mode;
var date1 = new Date(this.startDate).getTime(); //开始时间,时间戳
......
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="100">
<!-- <DateDRange :value="timeValue" ></DateDRange> -->
<Row>
<Col span="8" class="projct-img">
<FormItem :label="l('picture')" prop="picture">
......@@ -87,7 +88,7 @@
style="width: 300px"
></DatePicker> </FormItem
></Col>
<!-- <DateDRange :timeValue="timeValue" :wrok="1"></DateDRange> -->
<Col :span="12"
><FormItem :label="l('type')" prop="type">
<Dictionary
......
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