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

Loading…
Cancel
Save