Browse Source

优化

master
陈裕财 3 years ago
parent
commit
04b1f3d4e1
  1. 3
      src/components/MdpDateRangeX/index.vue
  2. 10
      src/views/xm/core/xmIteration/XmIterationEdit.vue

3
src/components/MdpDateRangeX/index.vue

@ -192,6 +192,9 @@ export default {
}else if(dates && dates.length===0){
this.value[this.startKey]=null
this.value[this.endKey]=null
}else{
this.value[this.startKey]=null
this.value[this.endKey]=null
}
this.$emit('input',this.value)
}else if(this.value instanceof Array){

10
src/views/xm/core/xmIteration/XmIterationEdit.vue

@ -166,6 +166,12 @@
if(this.opType==='add'){
return;
}
this.$refs.editForm.validate((vali)=>{
if(!vali){
this.$notify({position:'bottom-left',showClose:true,message:"表单检查不通过,请修改后提交", type: 'error' });
return;
}else{
let params={};
params['ids']=[row].map(i=>i.id)
if(fieldName=='adminUserid'){
@ -190,6 +196,10 @@
this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'})
}
}).catch((e)=>Object.assign(this.editForm,this.editFormBak))
}
});
},
initData(){
this.editForm=Object.assign(this.editForm, this.xmIteration);

Loading…
Cancel
Save