更新注释

merge-requests/1/head
张鑫 5 years ago
parent 4f4329d587
commit 8e016af8ab

@ -193,13 +193,14 @@ export default {
this.title = newVal; this.title = newVal;
}, },
modelData: function(newVal){ modelData: function(newVal){
// console.log(newVal)
if(newVal.id){ if(newVal.id){
this.mdata=newVal this.mdata=newVal
this.leftType=newVal.leftType this.leftType=newVal.leftType
this.rightType=newVal.rightType this.rightType=newVal.rightType
console.log('更新了') // console.log('watch')
this.$nextTick(()=>{ this.$nextTick(()=>{ //this.$nextTick
this.form.setFieldsValue({ //setFieldsValue form this.form.setFieldsValue({ //setFieldsValue form
name:newVal.name, name:newVal.name,
plcId:newVal.plcId, plcId:newVal.plcId,
leftType:newVal.leftType === null ? '' : newVal.leftType === 0 ? '单伸' : '双伸', leftType:newVal.leftType === null ? '' : newVal.leftType === 0 ? '单伸' : '双伸',

Loading…
Cancel
Save