...
|
...
|
@@ -21,9 +21,10 @@ |
|
|
row-key="id"
|
|
|
border
|
|
|
v-loading = "listLoading"
|
|
|
lazy
|
|
|
:load="load"
|
|
|
:row-class-name="tableRowClassName"
|
|
|
default-expand-all
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
|
:tree-props="{children: 'children', hasChildren: 'type'}">
|
|
|
<el-table-column
|
|
|
prop="adrname"
|
|
|
label="名称"
|
...
|
...
|
@@ -258,7 +259,7 @@ |
|
|
|
|
|
<!--电表实时信息-->
|
|
|
<el-dialog title="电表实施信息" :visible.sync="electrixityeditFormVisible" :close-on-click-modal="false">
|
|
|
<el-form :model="electricityForm" label-width="100px" ref="waterMaterForm">
|
|
|
<el-form v-loading = "electrixityLoading" :model="electricityForm" label-width="100px" ref="waterMaterForm">
|
|
|
<el-form-item label="电表编号" prop="deviceId">
|
|
|
<el-input v-model="electricityForm.deviceId" auto-complete="off" ></el-input>
|
|
|
</el-form-item>
|
...
|
...
|
@@ -310,7 +311,7 @@ |
|
|
</el-form-item>
|
|
|
|
|
|
<el-col v-if="waterNumber === 'waterNum'">
|
|
|
<el-form-item label="水表编号" prop="adrName">
|
|
|
<el-form-item label="水表编号" prop="wmid">
|
|
|
<el-select style="height: 38px; width: 100%"
|
|
|
v-model="editLocationForm.wmid"
|
|
|
filterable
|
...
|
...
|
@@ -327,7 +328,9 @@ |
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-form-item v-if="electricityNumber==='eeNum'" label="电表编号" prop="eeid">
|
|
|
<el-input v-model="editLocationForm.eeid" auto-complete="off" placeholder="请输入电表编号"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -374,14 +377,15 @@ |
|
|
locationList:[],
|
|
|
total: 0,
|
|
|
pageNum: 1,
|
|
|
pageSize: 5,
|
|
|
pageSize: 30,
|
|
|
listLoading: false,
|
|
|
electrixityLoading: false,
|
|
|
waterNumber: undefined,
|
|
|
electricityNumber: undefined,
|
|
|
waterMeterList:[],
|
|
|
restaurants: [],
|
|
|
state4: '',
|
|
|
timeout: null,
|
|
|
|
|
|
sels: [],//列表选中列
|
|
|
//编辑界面是否显示
|
|
|
editFormVisible: false,
|
...
|
...
|
@@ -501,7 +505,8 @@ |
|
|
adrname: '',
|
|
|
parent: '',
|
|
|
type:'',
|
|
|
wmid:''
|
|
|
wmid:'',
|
|
|
eeid:''
|
|
|
},
|
|
|
centerDialogVisible: false,
|
|
|
dialogData:{
|
...
|
...
|
@@ -574,6 +579,7 @@ |
|
|
one: function(prepaid){
|
|
|
return prepaid?true:one='是'?false:one='否'
|
|
|
},
|
|
|
|
|
|
//类型显示转换
|
|
|
formatType: function (row, column) {
|
|
|
let msg = '未知';
|
...
|
...
|
@@ -605,7 +611,8 @@ |
|
|
let para = {
|
|
|
pageNum: this.pageNum,
|
|
|
pageSize: this.pageSize,
|
|
|
processName: this.filters.processName
|
|
|
processName: this.filters.processName,
|
|
|
parent: 0
|
|
|
};
|
|
|
this.listLoading= true;
|
|
|
getList(para).then((res) => {
|
...
|
...
|
@@ -625,8 +632,26 @@ |
|
|
}
|
|
|
|
|
|
});
|
|
|
},
|
|
|
|
|
|
load(tree, treeNode, resolve) {
|
|
|
setTimeout(() => {
|
|
|
// tree为点击那一行的数据
|
|
|
let para = {
|
|
|
pageNum: this.pageNum,
|
|
|
pageSize: this.pageSize,
|
|
|
parent: tree.id
|
|
|
}
|
|
|
getList(para).then((res) => {
|
|
|
let resData = res.data.data;
|
|
|
resolve(resData.list);
|
|
|
}).catch((error) => {
|
|
|
alert(error);
|
|
|
|
|
|
});
|
|
|
}, 1000)
|
|
|
},
|
|
|
|
|
|
//删除
|
|
|
handleDel: function (row) {
|
|
|
this.$confirm('确认删除该记录吗?', '提示', {
|
...
|
...
|
@@ -661,12 +686,13 @@ |
|
|
* @param row 为这行的数据对象
|
|
|
*/
|
|
|
electrixityMeterEdit: function (row) {
|
|
|
this.electrixityeditFormVisible = true;
|
|
|
var ids = row.eeid;
|
|
|
let para = { eeId: ids };
|
|
|
// 查询电表参数配置表数据
|
|
|
this.electrixityeditFormVisible = true;
|
|
|
getEEModel(para).then((res) => {
|
|
|
this.electrixityeditForm = res.data;
|
|
|
this.electrixityeditFormVisible = false;
|
|
|
});
|
|
|
},
|
|
|
|
...
|
...
|
@@ -734,6 +760,7 @@ |
|
|
this.editLocationForm = row;
|
|
|
if (row.type == 3){
|
|
|
this.waterNumber ='waterNum';
|
|
|
this.electricityNumber ='eeNum';
|
|
|
}
|
|
|
},
|
|
|
|
...
|
...
|
@@ -824,11 +851,12 @@ |
|
|
// 电表实施信息查询
|
|
|
electicityInfo: function(row){
|
|
|
this.electrixityeditFormVisible=true;
|
|
|
this.electrixityLoading=true;
|
|
|
var eeId = row.eeid;
|
|
|
let para = { eeId: eeId};
|
|
|
electricityInfo(para).then((res) => {
|
|
|
this.electricityForm = res.data;
|
|
|
|
|
|
this.electrixityLoading = false;
|
|
|
});
|
|
|
},
|
|
|
|
...
|
...
|
|