Browse Source

优化

master
陈裕财 4 years ago
parent
commit
cdd7efb14f
  1. 6
      src/views/xm/core/components/XmIterationSelect.vue
  2. 10
      src/views/xm/core/components/XmProductSelect.vue
  3. 8
      src/views/xm/core/components/XmProjectSelect.vue

6
src/views/xm/core/components/XmIterationSelect.vue

@ -278,7 +278,11 @@
this.rowClick(row) this.rowClick(row)
} }
}else{ }else{
this.editForm=null
if(this.xmIterations.length==0 ){
if(this.editForm && this.editForm.id){
this.clearSelectIteration()
}
}
} }
}else{ }else{
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' }); this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });

10
src/views/xm/core/components/XmProductSelect.vue

@ -374,9 +374,13 @@ export default {
var row = this.xmProducts[0]; var row = this.xmProducts[0];
this.$refs.table.setCurrentRow(row); this.$refs.table.setCurrentRow(row);
this.rowClick(row); this.rowClick(row);
} else {
this.editForm = null;
}
}else{
if(this.xmProducts.length==0 ){
if(this.editForm && this.editForm.id){
this.clearSelect()
}
}
}
} else { } else {
this.$notify({ this.$notify({
position: "bottom-left", position: "bottom-left",

8
src/views/xm/core/components/XmProjectSelect.vue

@ -387,7 +387,13 @@ export default {
var row = this.xmProjects[0]; var row = this.xmProjects[0];
this.$refs.table.setCurrentRow(row); this.$refs.table.setCurrentRow(row);
this.rowClick(row); this.rowClick(row);
}
} else{
if(this.xmProjects.length==0 ){
if(this.editForm && this.editForm.id){
this.clearSelect()
}
}
}
} else { } else {
this.$notify({ this.$notify({
position: "bottom-left", position: "bottom-left",

Loading…
Cancel
Save