页面切换以及bug问题
This commit is contained in:
parent
ee2e2bccd4
commit
5e72dfd6e9
|
|
@ -575,8 +575,8 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 手环箱管理页面绑定手环弹窗 -->
|
<!-- 手环箱管理页面绑定手环弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="showShall" width="1000px" height="1000px" append-to-body>
|
<el-dialog :title="title" :visible.sync="showShall" width="1000px" height="1000px" append-to-body @close="cancelOne">
|
||||||
<el-form :model="queryShBoxall" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
<el-form :model="queryShBoxall" ref="queryFormThree" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
||||||
<el-form-item prop="shCode">
|
<el-form-item prop="shCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryShBoxall.shCode"
|
v-model="queryShBoxall.shCode"
|
||||||
|
|
@ -646,8 +646,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="totalTwo>0"
|
v-show="totalThree>0"
|
||||||
:total="totalTwo"
|
:total="totalThree"
|
||||||
:page.sync="queryShBoxall.pageNum"
|
:page.sync="queryShBoxall.pageNum"
|
||||||
:limit.sync="queryShBoxall.pageSize"
|
:limit.sync="queryShBoxall.pageSize"
|
||||||
@pagination="getListBoxall"
|
@pagination="getListBoxall"
|
||||||
|
|
@ -1160,6 +1160,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cancelOne() {
|
||||||
|
this.showShall = false;
|
||||||
|
this.resetQueryThree();
|
||||||
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.showsh = false;
|
this.showsh = false;
|
||||||
|
|
@ -1259,7 +1263,7 @@
|
||||||
|
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQueryThree() {
|
resetQueryThree() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryFormThree");
|
||||||
this.handleQueryShBind();
|
this.handleQueryShBind();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -1611,9 +1615,16 @@
|
||||||
|
|
||||||
|
|
||||||
handleClick(tab, event) {
|
handleClick(tab, event) {
|
||||||
this.getList();
|
if(tab.name == 'first'){
|
||||||
this.getboxList();
|
this.resetForm("queryFormOne");
|
||||||
console.log(tab, event);
|
this.getList();
|
||||||
|
}else if(tab.name == 'second'){
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.getboxList();
|
||||||
|
}
|
||||||
|
// this.getList();
|
||||||
|
// this.getboxList();
|
||||||
|
// console.log(tab, event);
|
||||||
},
|
},
|
||||||
getShboxName(e,row){
|
getShboxName(e,row){
|
||||||
this.queryshCode.shboxId = row.shboxId;
|
this.queryshCode.shboxId = row.shboxId;
|
||||||
|
|
@ -1823,7 +1834,7 @@
|
||||||
this.queryShBoxall.shboxId = this.shboxId;
|
this.queryShBoxall.shboxId = this.shboxId;
|
||||||
listShBind(this.queryShBoxall).then(response => {
|
listShBind(this.queryShBoxall).then(response => {
|
||||||
this.shBindList = response.rows;
|
this.shBindList = response.rows;
|
||||||
this.totalTwo = response.total;
|
this.totalThree = response.total;
|
||||||
this.loadingSix = false;
|
this.loadingSix = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@
|
||||||
|
|
||||||
<!-- 查看设备属性弹窗 -->
|
<!-- 查看设备属性弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="showDeviceAttribute" width="1200px" height="1000px" append-to-body>
|
<el-dialog :title="title" :visible.sync="showDeviceAttribute" width="1200px" height="1000px" append-to-body>
|
||||||
<el-form :model="queryDeviceAttribute" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
<el-form :model="queryDeviceAttribute" ref="queryFormDeviceAttribute" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
<el-form-item prop="dataCode">
|
<el-form-item prop="dataCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryDeviceAttribute.dataCode"
|
v-model="queryDeviceAttribute.dataCode"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item prop="departName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.departName"
|
||||||
|
placeholder="请输入项目部名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item prop="proName">
|
<el-form-item prop="proName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.proName"
|
v-model="queryParams.proName"
|
||||||
|
|
@ -39,15 +47,6 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="departName">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.departName"
|
|
||||||
placeholder="请输入项目部名称"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
|
@ -132,7 +131,7 @@
|
||||||
|
|
||||||
<!-- 杆塔弹窗 -->
|
<!-- 杆塔弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="showGt" width="1000px" height="1000px" append-to-body>
|
<el-dialog :title="title" :visible.sync="showGt" width="1000px" height="1000px" append-to-body>
|
||||||
<el-form :model="queryGt" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
<el-form :model="queryGt" ref="queryFormGt" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
<el-form-item prop="gtCode">
|
<el-form-item prop="gtCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryGt.gtCode"
|
v-model="queryGt.gtCode"
|
||||||
|
|
@ -802,7 +801,7 @@
|
||||||
|
|
||||||
/** 杆塔重置按钮操作 */
|
/** 杆塔重置按钮操作 */
|
||||||
resetQueryGt() {
|
resetQueryGt() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryFormGt");
|
||||||
this.currentSelectionGt = []//重置清除已选列表
|
this.currentSelectionGt = []//重置清除已选列表
|
||||||
this.handleQueryGt();
|
this.handleQueryGt();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item prop="bindTime">
|
<!-- <el-form-item prop="bindTime">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="queryParams.bindTime"
|
v-model="queryParams.bindTime"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
|
|
@ -45,7 +45,19 @@
|
||||||
placeholder="绑定时间"
|
placeholder="绑定时间"
|
||||||
type="date"
|
type="date"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
|
|
||||||
|
<el-form-item label="绑定时间">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="dateRange"
|
||||||
|
style="width: 240px"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="-"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||||
|
|
@ -337,6 +349,8 @@
|
||||||
proList: [],
|
proList: [],
|
||||||
//施工杆塔
|
//施工杆塔
|
||||||
GtList:[],
|
GtList:[],
|
||||||
|
//绑定时间
|
||||||
|
dateRange: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
|
@ -440,7 +454,7 @@
|
||||||
/** 查询边带列表 */
|
/** 查询边带列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listSideband(this.queryParams).then(response => {
|
listSideband(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
||||||
this.postList = response.rows;
|
this.postList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
@ -497,23 +511,15 @@
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
this.dateRange = [];
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
// forEach.(selection, function(item){
|
|
||||||
// this.idLists.push({id: item.deviceId, type: item.deviceTypeName})
|
|
||||||
// })
|
|
||||||
console.log(selection)
|
|
||||||
selection.map(item => {
|
selection.map(item => {
|
||||||
this.idLists.push({id: item.deviceId, type: item.deviceTypeName})
|
this.idLists.push({id: item.deviceId, type: item.deviceTypeName})
|
||||||
})
|
})
|
||||||
// forEach(selection, function(item){
|
|
||||||
// this.idLists.push({id: item.deviceId, type: item.deviceTypeName})
|
|
||||||
// })
|
|
||||||
// this.idLists.push({id: selection.map(item => item.deviceId), type: selection.map(item => item.deviceTypeName)})
|
|
||||||
|
|
||||||
this.single = selection.length!=1
|
this.single = selection.length!=1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue