|
@@ -76,7 +76,7 @@
|
|
|
</el-form-item>
|
|
|
<!--<el-form-item label="开始时间" prop="inTime">-->
|
|
|
<!--<el-date-picker clearable size="small"-->
|
|
|
- <!--v-model="queryParams.beginTime"-->
|
|
|
+ <!--v-model="queryParams.beginTimeStr"-->
|
|
|
<!--type="date"-->
|
|
|
<!--value-format="yyyy-MM-dd"-->
|
|
|
<!--placeholder="请选择开始时间">-->
|
|
@@ -84,7 +84,7 @@
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="结束时间" prop="inTime">-->
|
|
|
<!--<el-date-picker clearable size="small"-->
|
|
|
- <!--v-model="queryParams.endTime"-->
|
|
|
+ <!--v-model="queryParams.endTimeStr"-->
|
|
|
<!--type="date"-->
|
|
|
<!--value-format="yyyy-MM-dd"-->
|
|
|
<!--placeholder="请选择结束时间">-->
|
|
@@ -236,8 +236,8 @@ export default {
|
|
|
userId: null,
|
|
|
hardwareType: null,
|
|
|
hardwareTypeEnum: null,
|
|
|
- beginTime: null,
|
|
|
- endTime: null
|
|
|
+ beginTimeStr: null,
|
|
|
+ endTimeStr: null
|
|
|
},
|
|
|
hardTypeOptions:{},
|
|
|
// 表单参数
|
|
@@ -291,11 +291,11 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
if(this.dateRange[0]){
|
|
|
- this.queryParams.beginTime = this.dateRange[0];
|
|
|
- this.queryParams.endTime = this.dateRange[1];
|
|
|
+ this.queryParams.beginTimeStr = this.dateRange[0];
|
|
|
+ this.queryParams.endTimeStr = this.dateRange[1];
|
|
|
}else {
|
|
|
- this.queryParams.startDate = undefined + " 00:00:00"
|
|
|
- this.queryParams.endDate = undefined + " 00:00:00"
|
|
|
+ this.queryParams.beginTimeStr = null
|
|
|
+ this.queryParams.endTimeStr = null
|
|
|
}
|
|
|
listControl(this.queryParams).then(response => {
|
|
|
this.controlList = response.rows;
|
|
@@ -357,9 +357,9 @@ export default {
|
|
|
resetQuery() {
|
|
|
this.dateRange = []
|
|
|
this.subjectOptions = []
|
|
|
- this.queryParams.beginTime = null
|
|
|
- this.queryParams.endTime = null
|
|
|
- this.queryParams.deptId = ""
|
|
|
+ this.queryParams.beginTimeStr = null
|
|
|
+ this.queryParams.endTimeStr = null
|
|
|
+ this.queryParams.deptId = null
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|