cloud-web-corejs 1.0.54-dev.289 → 1.0.54-dev.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,11 +130,15 @@ export default {
130
130
  let formConfig = this.formJson.formConfig
131
131
  let multiTabEnabled = formConfig.multiTabEnabled && formConfig.multiTabLabelField
132
132
  let dataId = row && row.id ? row.id : null;
133
+ this.dataId = dataId
134
+ if(!dataId){
135
+ this.formCode1 = this.addFormCode;
136
+ }else{
137
+ this.formCode1 = this.formCode2;
138
+ }
133
139
  if(multiTabEnabled && dataId){
134
140
  this.$refs.xTabs.openEditTab(row,param);
135
141
  }else{
136
- this.dataId = dataId
137
- this.formCode1 = this.addFormCode;
138
142
  this.activeName = 'first';
139
143
  this.showEdit = false;
140
144
  this.showEditDialog = true;