球机墙接口修改

球机设置旧数据可视
dongguan-华为云
LAPTOP-S9HJSOEB\昊天 2 years ago
parent c684394339
commit 23c67cd52c

@ -68,17 +68,17 @@ export default {
}, },
getAllCameras1:{ getAllCameras1:{
method: "GET", method: "GET",
url: "/realTime/allCameras1", url: "/realTime/allCameras/1",
name: "获取全部球机" name: "获取全部球机"
}, },
getAllCameras2:{ getAllCameras2:{
method: "GET", method: "GET",
url: "/realTime/allCameras2", url: "/realTime/allCameras/2",
name: "获取全部球机" name: "获取全部球机"
}, },
getAllCameras3:{ getAllCameras3:{
method: "GET", method: "GET",
url: "/realTime/allCameras3", url: "/realTime/allCameras/3",
name: "获取全部球机" name: "获取全部球机"
}, },
getWallStyle:{ getWallStyle:{

@ -20,9 +20,9 @@
v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]" v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]"
/> />
</a-form-item> </a-form-item>
<a-form-item label="cpe设备IP" :label-col="formItemVerticalLayout.labelCol"> <a-form-item label="设备IP" :label-col="formItemVerticalLayout.labelCol">
<a-input <a-input
v-decorator="['ip', { rules: [{ required: true, message: '请输入cpe设备ip!' }] }]" v-decorator="['ip', { rules: [{ required: true, message: '请输入设备ip!' }] }]"
/> />
</a-form-item> </a-form-item>
@ -228,8 +228,9 @@ export default {
modelData: function(newVal){ modelData: function(newVal){
// console.log(newVal) // console.log(newVal)
this.mdata=newVal this.mdata=newVal
console.log(this.type) console.log(this.mdata)
if(newVal.id && this.type=='edit'){ if(newVal.id && this.type=='edit'){
console.log("1111")
this.id = newVal.id this.id = newVal.id
// console.log('watch') // console.log('watch')
this.$nextTick(()=>{ //this.$nextTick this.$nextTick(()=>{ //this.$nextTick
@ -238,7 +239,8 @@ export default {
ip:newVal.ip, ip:newVal.ip,
rtsp:newVal.rtsp, rtsp:newVal.rtsp,
rtcServer:newVal.rtcServer, rtcServer:newVal.rtcServer,
rtcServerPort:newVal.rtcServerPort rtspPort:newVal.rtspPort,
port:newVal.port
}) })
}) })
}else if (newVal.id && this.type=='config'){ }else if (newVal.id && this.type=='config'){

@ -20,9 +20,9 @@
v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]" v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]"
/> />
</a-form-item> </a-form-item>
<a-form-item label="cpe设备IP" :label-col="formItemVerticalLayout.labelCol"> <a-form-item label="设备IP" :label-col="formItemVerticalLayout.labelCol">
<a-input <a-input
v-decorator="['ip', { rules: [{ required: true, message: '请输入cpe设备ip!' }] }]" v-decorator="['ip', { rules: [{ required: true, message: '请输入设备ip!' }] }]"
/> />
</a-form-item> </a-form-item>

@ -23,10 +23,10 @@
<a-input v-decorator="['name', { rules: [{ required: true, message: '!' }] }]" /> <a-input v-decorator="['name', { rules: [{ required: true, message: '!' }] }]" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="cpe设备IP" label="设备IP"
:label-col="formItemVerticalLayout.labelCol" :label-col="formItemVerticalLayout.labelCol"
> >
<a-input v-decorator="['ip', { rules: [{ required: true, message: 'cpeip!' }] }]" /> <a-input v-decorator="['ip', { rules: [{ required: true, message: 'ip!' }] }]" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item

Loading…
Cancel
Save