Browse Source

优化

master
yx 2 years ago
parent
commit
ca62f33706
  1. 11
      src/views/data/photo/index.vue

11
src/views/data/photo/index.vue

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
</el-form-item>
<el-form-item label="水位计" prop="ip">
<el-input
v-model="queryParams.name"
v-model="queryParams.stcd"
placeholder="请输入水位计名称"
clearable
@keyup.enter.native="handleQuery"
@ -105,10 +105,9 @@ export default { @@ -105,10 +105,9 @@ export default {
limit: 10,
stnmId: null,
stnm: '鄞州公园',
name: '视频水位计-yzgy',
stcd: '视频水位计-yzgy',
mainType: null,
type: null,
stcd: null,
deviceTypeId: null,
stcdTypeId: null,
latestTm: null,
@ -133,6 +132,10 @@ export default { @@ -133,6 +132,10 @@ export default {
/** 查询实时数据列表 */
getList() {
this.loading = true;
if(this.queryParams.endTime!=null)
this.queryParams.endTime=formatDate(this.queryParams.endTime,'yyyy-MM-dd hh:mm:ss')
if(this.queryParams.startTime!=null)
this.queryParams.startTime=formatDate(this.queryParams.startTime,'yyyy-MM-dd hh:mm:ss')
queryPhotoList(this.queryParams).then(response=>{
this.currdataList=response.data;
this.total=response.count;
@ -152,7 +155,7 @@ export default { @@ -152,7 +155,7 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.queryParams.page = 1;
this.getList();
},
/** 重置按钮操作 */

Loading…
Cancel
Save