Browse Source

优化

master
陈裕财 2 years ago
parent
commit
6a3c72ae96
  1. 7
      src/views/mdp/form/formField/Index.vue

7
src/views/mdp/form/formField/Index.vue

@ -392,6 +392,7 @@ export default {
this.selectedFields.push(field)
}
})
this.$refs['dbFormDialog'].close()
}else{
this.$notify.error(tips.msg)
}
@ -445,6 +446,7 @@ export default {
this.selectedFields.push(field)
}
})
this.$refs['itemDialog'].close();
}else{
this.$notify.error(tips.msg)
}
@ -482,6 +484,7 @@ export default {
this.selectedFields.push(field)
})
this.$notify({position:'bottom-left',showClose:true,message:'成功',type: 'success'})
this.$refs['apiFormDialog'].close();
}else{
this.$notify({position:'bottom-left',showClose:true,message:'失败',type: 'error'})
@ -496,7 +499,7 @@ export default {
},
transColumnToField(o){
var field={formId:'formId',id:o.columnName,showStyle:'origin',fieldId:o.columnName,fieldIdCamel:o.camelsColumnName,fieldTitle:o.chinaName,isDict:'0',dictCode:'',fieldType:'text',fieldLength:12,defaultValue:'',isMultiple:'0',placeholder:'请输入'+o.name,isRequired:'0',remark:'',extFieldType:'',toFlow:'0',flowFieldId:'',isBizKey:'0',fieldQx:''}
var field={formId:'formId',id:o.columnName,showStyle:'origin',fieldId:o.columnName,fieldIdCamel:o.camelsColumnName,fieldTitle:o.chinaName,isDict:'0',dictCode:'',fieldType:'text',fieldLength:12,defaultValue:'',isMultiple:'0',placeholder:'请输入'+o.chinaName,isRequired:'0',remark:'',extFieldType:'',toFlow:'0',flowFieldId:'',isBizKey:'0',fieldQx:''}
var noSelectFieldId=this.fieldIds.find(i=>{
return !this.selectedFields.some(k=>k.id==i.id);
})
@ -519,7 +522,7 @@ export default {
return field;
},
apiFormToAxiosParams(apiForm,env){
apiFormToAxiosParams(apiForm){
var axiosObj={url:apiForm.url,method:apiForm.method,headers:{}}
//

Loading…
Cancel
Save