|  |  |  | 
|---|
|  |  |  | <el-option label="推送接受" value="1"></el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="起始时间" prop="startDate"> | 
|---|
|  |  |  | <el-form-item label="起止时间" prop="startDate"> | 
|---|
|  |  |  | <el-date-picker | 
|---|
|  |  |  | @change="seleTime" | 
|---|
|  |  |  | v-model="time" | 
|---|
|  |  |  | 
|---|
|  |  |  | format="yyyy-MM-dd HH:mm:ss" | 
|---|
|  |  |  | value-format="yyyy-MM-dd HH:mm:ss" | 
|---|
|  |  |  | range-separator="至" | 
|---|
|  |  |  | start-placeholder="开始日期" | 
|---|
|  |  |  | end-placeholder="结束日期"> | 
|---|
|  |  |  | start-placeholder="开始时间" | 
|---|
|  |  |  | end-placeholder="结束时间"> | 
|---|
|  |  |  | </el-date-picker> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-radio-group v-model="searchForm.radio" size="small" @input="changeRadio"> | 
|---|
|  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | changeRadio (e) { | 
|---|
|  |  |  | if (e === '0') { | 
|---|
|  |  |  | this.searchForm.startTime = timeForMat(0)[0] | 
|---|
|  |  |  | this.searchForm.endTime = timeForMat(0)[1] | 
|---|
|  |  |  | this.searchForm.startDate = timeForMat(0)[0] | 
|---|
|  |  |  | this.searchForm.endDate = timeForMat(0)[1] | 
|---|
|  |  |  | this.time = timeForMat(0) | 
|---|
|  |  |  | } else if (e === '1') { | 
|---|
|  |  |  | this.searchForm.startTime = timeForMat(6)[0] | 
|---|
|  |  |  | this.searchForm.endTime = timeForMat(6)[1] | 
|---|
|  |  |  | this.searchForm.startDate = timeForMat(6)[0] | 
|---|
|  |  |  | this.searchForm.endDate = timeForMat(6)[1] | 
|---|
|  |  |  | this.time = timeForMat(6) | 
|---|
|  |  |  | } else if (e === '2') { | 
|---|
|  |  |  | this.searchForm.startTime = timeForMat(29)[0] | 
|---|
|  |  |  | this.searchForm.endTime = timeForMat(29)[1] | 
|---|
|  |  |  | this.searchForm.startDate = timeForMat(29)[0] | 
|---|
|  |  |  | this.searchForm.endDate = timeForMat(29)[1] | 
|---|
|  |  |  | this.time = timeForMat(29) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.search() | 
|---|