Commit 832648c0 authored by 耿迪迪's avatar 耿迪迪

设备管理新增 gengdidi

parent 3547059e
...@@ -6,39 +6,49 @@ ...@@ -6,39 +6,49 @@
width="80%" width="80%"
:before-close="handleClose"> :before-close="handleClose">
<el-form ref="editForm" :model="editForm" label-width="120px" size="mini"> <el-form ref="editForm" :model="editForm" label-width="120px" size="mini">
<el-form-item label="所属燃气公司" prop="a"> <el-form-item label="所属燃气公司" prop="enterpriseId">
<el-input></el-input> <el-input v-model="editForm.enterpriseId"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="名称" prop="b"> <el-form-item label="名称" prop="deviceName">
<el-input ></el-input> <el-input v-model="editForm.deviceName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="地址" prop="c"> <el-form-item label="地址" prop="deviceAddr">
<el-input></el-input> <el-input v-model="editForm.deviceAddr"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="所属管道" prop="c"> <el-form-item label="所属管道" prop="pipeId">
<el-input></el-input> <el-input v-model="editForm.pipeId"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系人" prop="d"> <el-form-item label="联系人" prop="linkman">
<el-input></el-input> <el-input v-model="editForm.linkman"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话" prop="e"> <el-form-item label="电话" prop="phone">
<el-input></el-input> <el-input v-model="editForm.phone"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="型号" prop="f"> <el-form-item label="型号" prop="deviceModel">
<el-input></el-input> <el-input v-model="editForm.deviceModel"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="安装日期" prop="g"> <el-form-item label="经纬度" prop="deviceModel">
<el-row>
<el-col :span="6" style="margin-right: 10px">
<el-input v-model="editForm.longitude"></el-input>
</el-col>
<el-col :span="6">
<el-input v-model="editForm.latitude"></el-input>
</el-col>
</el-row>
</el-form-item>
<el-form-item label="安装日期" prop="installationTime">
<el-col :span="11"> <el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker> <el-date-picker type="date" placeholder="选择日期" v-model="editForm.installationTime" style="width: 100%;"></el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="最后巡检日期" prop="k"> <el-form-item label="最后巡检日期" prop="inspectionTime">
<el-col :span="11"> <el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker> <el-date-picker type="date" placeholder="选择日期" v-model="editForm.inspectionTime" style="width: 100%;"></el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="l"> <el-form-item label="备注信息" prop="remarks">
<el-input type="textarea"></el-input> <el-input type="textarea" v-model="editForm.remarks"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
......
...@@ -6,36 +6,46 @@ ...@@ -6,36 +6,46 @@
width="80%" width="80%"
:before-close="handleClose"> :before-close="handleClose">
<el-form ref="editForm" :model="editForm" label-width="120px" size="mini"> <el-form ref="editForm" :model="editForm" label-width="120px" size="mini">
<el-form-item label="所属燃气公司" prop="a"> <el-form-item label="所属燃气公司" prop="enterpriseId">
<el-input></el-input> <el-input v-model="editForm.enterpriseId"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="名称" prop="b"> <el-form-item label="名称" prop="deviceName">
<el-input ></el-input> <el-input v-model="editForm.deviceName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="地址" prop="c"> <el-form-item label="地址" prop="deviceAddr">
<el-input></el-input> <el-input v-model="editForm.deviceAddr"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系人" prop="d"> <el-form-item label="联系人" prop="linkman">
<el-input></el-input> <el-input v-model="editForm.linkman"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话" prop="e"> <el-form-item label="电话" prop="phone">
<el-input></el-input> <el-input v-model="editForm.phone"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="型号" prop="f"> <el-form-item label="型号" prop="deviceModel">
<el-input></el-input> <el-input v-model="editForm.deviceModel"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="安装日期" prop="g"> <el-form-item label="经纬度" prop="deviceModel">
<el-row>
<el-col :span="6" style="margin-right: 10px">
<el-input v-model="editForm.longitude"></el-input>
</el-col>
<el-col :span="6">
<el-input v-model="editForm.latitude"></el-input>
</el-col>
</el-row>
</el-form-item>
<el-form-item label="安装日期" prop="installationTime">
<el-col :span="11"> <el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker> <el-date-picker type="date" placeholder="选择日期" v-model="editForm.installationTime" style="width: 100%;"></el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="最后巡检日期" prop="k"> <el-form-item label="最后巡检日期" prop="inspectionTime">
<el-col :span="11"> <el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker> <el-date-picker type="date" placeholder="选择日期" v-model="editForm.inspectionTime" style="width: 100%;"></el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="l"> <el-form-item label="备注信息" prop="remarks">
<el-input type="textarea"></el-input> <el-input type="textarea" v-model="editForm.remarks"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
......
...@@ -6,36 +6,46 @@ ...@@ -6,36 +6,46 @@
width="80%" width="80%"
:before-close="handleClose"> :before-close="handleClose">
<el-form ref="editForm" :model="editForm" label-width="120px" size="mini"> <el-form ref="editForm" :model="editForm" label-width="120px" size="mini">
<el-form-item label="所属燃气公司" prop="a"> <el-form-item label="所属燃气公司" prop="enterpriseId">
<el-input></el-input> <el-input v-model="editForm.enterpriseId"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="名称" prop="b"> <el-form-item label="名称" prop="deviceName">
<el-input ></el-input> <el-input v-model="editForm.deviceName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="地址" prop="c"> <el-form-item label="地址" prop="deviceAddr">
<el-input></el-input> <el-input v-model="editForm.deviceAddr"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系人" prop="d"> <el-form-item label="联系人" prop="linkman">
<el-input></el-input> <el-input v-model="editForm.linkman"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话" prop="e"> <el-form-item label="电话" prop="phone">
<el-input></el-input> <el-input v-model="editForm.phone"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="型号" prop="f"> <el-form-item label="型号" prop="deviceModel">
<el-input></el-input> <el-input v-model="editForm.deviceModel"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="安装日期" prop="g"> <el-form-item label="经纬度" prop="deviceModel">
<el-row>
<el-col :span="6" style="margin-right: 10px">
<el-input v-model="editForm.longitude"></el-input>
</el-col>
<el-col :span="6">
<el-input v-model="editForm.latitude"></el-input>
</el-col>
</el-row>
</el-form-item>
<el-form-item label="安装日期" prop="installationTime">
<el-col :span="11"> <el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker> <el-date-picker type="date" placeholder="选择日期" v-model="editForm.installationTime" style="width: 100%;"></el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="最后巡检日期" prop="k"> <el-form-item label="最后巡检日期" prop="inspectionTime">
<el-col :span="11"> <el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker> <el-date-picker type="date" placeholder="选择日期" v-model="editForm.inspectionTime" style="width: 100%;"></el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="l"> <el-form-item label="备注信息" prop="remarks">
<el-input type="textarea"></el-input> <el-input type="textarea" v-model="editForm.remarks"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
......
...@@ -183,7 +183,10 @@ const DUTYPERSON = "5"; ...@@ -183,7 +183,10 @@ const DUTYPERSON = "5";
this.mouseTool.on('draw',function(e){ this.mouseTool.on('draw',function(e){
const device = that.createInfowindow(); const device = that.createInfowindow();
e.obj.on("click",function (aa) { e.obj.on("click",function (aa) {
console.log(aa.target._position) console.log(aa.target._position,"==============");
let postion = aa.target._position;
device.editForm.longitude = postion.lng;
device.editForm.latitude = postion.lat;
device.show(); device.show();
}) })
that.overlays.push(e.obj); that.overlays.push(e.obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment