|
|
|
|
@ -20,9 +20,9 @@
|
|
|
|
|
v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item label="cpe设备IP" :label-col="formItemVerticalLayout.labelCol">
|
|
|
|
|
<a-form-item label="设备IP" :label-col="formItemVerticalLayout.labelCol">
|
|
|
|
|
<a-input
|
|
|
|
|
v-decorator="['ip', { rules: [{ required: true, message: '请输入cpe设备ip!' }] }]"
|
|
|
|
|
v-decorator="['ip', { rules: [{ required: true, message: '请输入设备ip!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
|
|
@ -228,8 +228,9 @@ export default {
|
|
|
|
|
modelData: function(newVal){
|
|
|
|
|
// console.log(newVal)
|
|
|
|
|
this.mdata=newVal
|
|
|
|
|
console.log(this.type)
|
|
|
|
|
console.log(this.mdata)
|
|
|
|
|
if(newVal.id && this.type=='edit'){
|
|
|
|
|
console.log("1111")
|
|
|
|
|
this.id = newVal.id
|
|
|
|
|
// console.log('触发了watch,重新赋值')
|
|
|
|
|
this.$nextTick(()=>{ //this.$nextTick解决不能在表单渲染之前赋值的报错问题
|
|
|
|
|
@ -238,7 +239,8 @@ export default {
|
|
|
|
|
ip:newVal.ip,
|
|
|
|
|
rtsp:newVal.rtsp,
|
|
|
|
|
rtcServer:newVal.rtcServer,
|
|
|
|
|
rtcServerPort:newVal.rtcServerPort
|
|
|
|
|
rtspPort:newVal.rtspPort,
|
|
|
|
|
port:newVal.port
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}else if (newVal.id && this.type=='config'){
|
|
|
|
|
|