|
|
@ -392,6 +392,7 @@ export default { |
|
|
this.selectedFields.push(field) |
|
|
this.selectedFields.push(field) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.$refs['dbFormDialog'].close() |
|
|
}else{ |
|
|
}else{ |
|
|
this.$notify.error(tips.msg) |
|
|
this.$notify.error(tips.msg) |
|
|
} |
|
|
} |
|
|
@ -445,6 +446,7 @@ export default { |
|
|
this.selectedFields.push(field) |
|
|
this.selectedFields.push(field) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.$refs['itemDialog'].close(); |
|
|
}else{ |
|
|
}else{ |
|
|
this.$notify.error(tips.msg) |
|
|
this.$notify.error(tips.msg) |
|
|
} |
|
|
} |
|
|
@ -482,6 +484,7 @@ export default { |
|
|
this.selectedFields.push(field) |
|
|
this.selectedFields.push(field) |
|
|
}) |
|
|
}) |
|
|
this.$notify({position:'bottom-left',showClose:true,message:'成功',type: 'success'}) |
|
|
this.$notify({position:'bottom-left',showClose:true,message:'成功',type: 'success'}) |
|
|
|
|
|
this.$refs['apiFormDialog'].close(); |
|
|
}else{ |
|
|
}else{ |
|
|
this.$notify({position:'bottom-left',showClose:true,message:'失败',type: 'error'}) |
|
|
this.$notify({position:'bottom-left',showClose:true,message:'失败',type: 'error'}) |
|
|
|
|
|
|
|
|
@ -496,7 +499,7 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
transColumnToField(o){ |
|
|
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=>{ |
|
|
var noSelectFieldId=this.fieldIds.find(i=>{ |
|
|
return !this.selectedFields.some(k=>k.id==i.id); |
|
|
return !this.selectedFields.some(k=>k.id==i.id); |
|
|
}) |
|
|
}) |
|
|
@ -519,7 +522,7 @@ export default { |
|
|
return field; |
|
|
return field; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
apiFormToAxiosParams(apiForm,env){ |
|
|
|
|
|
|
|
|
apiFormToAxiosParams(apiForm){ |
|
|
var axiosObj={url:apiForm.url,method:apiForm.method,headers:{}} |
|
|
var axiosObj={url:apiForm.url,method:apiForm.method,headers:{}} |
|
|
|
|
|
|
|
|
//参数处理 |
|
|
//参数处理 |
|
|
|