<el-row v-if="expandAll" :gutter="5">
<el-col :span="6">
<el-form-item label="创建人" label-width="100px">
<el-input
size="small"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="创建时间" label-width="100px">
<el-date-picker
size="small"
v-model="createTime"
value-format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="selectTime"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
selectTime() {
if (this.createTimeArr && this.createTime.length) {
this.ruleForm.startDate = this.createTime[0] //使用时间-开始
this.ruleForm.endDate = this.createTime[1] //使用时间-结束
} else {
this.ruleForm.startDate = ''
this.ruleForm.endDate = ''
}
},