cloud-web-corejs 1.0.54-dev.180 → 1.0.54-dev.181

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.
@@ -224,7 +224,8 @@
224
224
  <span>
225
225
  <el-form-item label="是否默认组织" :prop="'userCompanyInfoDTOs.'+index1+'.defaults'"
226
226
  :rules="[{ required: false, trigger: 'blur' }]">
227
- <el-checkbox v-model="item.defaults" @change="changeCompanyDefault(item)"></el-checkbox>
227
+ <el-checkbox v-model="item.defaults"
228
+ @change="changeCompanyDefault(item)"></el-checkbox>
228
229
  </el-form-item>
229
230
  </span>
230
231
  </div>
@@ -769,7 +770,7 @@ export default {
769
770
  });
770
771
  // $grid.insertAt(items, -1);
771
772
  this.user.userCompanyInfoDTOs.splice(0, 0, ...items);
772
- if(this.user.userCompanyInfoDTOs.length==1){
773
+ if (this.user.userCompanyInfoDTOs.length == 1) {
773
774
  this.user.userCompanyInfoDTOs[0].defaults = true
774
775
  }
775
776
  // this.user.userCompanyInfoDTOs = this.user.userCompanyInfoDTOs.concat(items);
@@ -1029,9 +1030,7 @@ export default {
1029
1030
  let companyCode = item.companyCode
1030
1031
  if (item.defaults) {
1031
1032
  this.user.userCompanyInfoDTOs.forEach(row => {
1032
- if (row.companyCode !== companyCode) {
1033
- item.defaults = false;
1034
- }
1033
+ row.defaults = row.companyCode == companyCode;
1035
1034
  })
1036
1035
  }
1037
1036