diff --git a/src/components/mdp-ui-ext/mdp-expand/ColumnExpand.vue b/src/components/mdp-ui-ext/mdp-expand/ColumnExpand.vue index 0b0ebfd..3957356 100644 --- a/src/components/mdp-ui-ext/mdp-expand/ColumnExpand.vue +++ b/src/components/mdp-ui-ext/mdp-expand/ColumnExpand.vue @@ -1,8 +1,8 @@ - + - {{ scope.row[expandFieldName][field.fieldIdCamel] }} + {{ scope.row[expandFieldName][field.idCaml] }} diff --git a/src/components/mdp-ui-ext/mdp-expand/FormData.vue b/src/components/mdp-ui-ext/mdp-expand/FormData.vue index c69be77..1d58e17 100644 --- a/src/components/mdp-ui-ext/mdp-expand/FormData.vue +++ b/src/components/mdp-ui-ext/mdp-expand/FormData.vue @@ -4,7 +4,7 @@ - + diff --git a/src/components/mdp-ui-ext/mdp-expand/FormDataItem.vue b/src/components/mdp-ui-ext/mdp-expand/FormDataItem.vue index 6769b07..5fdc04e 100644 --- a/src/components/mdp-ui-ext/mdp-expand/FormDataItem.vue +++ b/src/components/mdp-ui-ext/mdp-expand/FormDataItem.vue @@ -3,7 +3,7 @@ - + @@ -12,15 +12,15 @@ - + - + - + @@ -28,32 +28,32 @@ - + - + - + - - + + - - {{ myVal||field.title }} + + {{ editForm[field.idCamel]||field.title }} 上传图片 @@ -70,19 +70,19 @@ placement="top-start" trigger="hover"> 上传附件 - {{ myVal||field.title }} + {{ editForm[field.idCamel]||field.title }} - - - - - - - - - - {myVal=vs.join(',');onFieldChange(vs)}"> + + + + + + + + + + {editForm[field.idCamel]=vs.join(',');onFieldChange(vs)}"> @@ -140,7 +140,7 @@ } }, props:{ - value:{type:[Object,String,Array,Number],default:null}, + value:{type:Object,default:null}, field:{type:Object,default:null}, labelWidth:{type:String,default:null}, labelPosition:{type:String,default:null}, @@ -166,7 +166,7 @@ data() { return { pickerOptions: this.$mdp.getPickerOptions(), - myVal:null, + editForm:{}, } }, methods: { @@ -203,8 +203,8 @@ }, onFieldChange(val){ - this.$emit('input',this.myVal) - this.$emit('change',this.myVal,this.field) + this.$emit('input',this.editForm) + this.$emit('change',this.editForm,this.field) }, },//end method diff --git a/src/views/mdp/form/formData/Index.vue b/src/views/mdp/form/formData/Index.vue index 3c7c143..a635873 100644 --- a/src/views/mdp/form/formData/Index.vue +++ b/src/views/mdp/form/formData/Index.vue @@ -1,7 +1,7 @@ - + @@ -39,14 +39,14 @@ - + - + - + - + @@ -55,8 +55,11 @@ - - + + + + {{scope.row[c.idCamel]}} + @@ -314,32 +317,15 @@ export default { this.load.list=true; listFormField(params).then((res) => { var tips=res.data.tips; - if(tips.isOk){ - var fields=res.data.data.formFields; - var primaryKeys=[]; - fields.forEach(item=>{ - if(item.isBizKey && item.isBizKey.length==3){ - if(item.isBizKey.charAt(2)=="1"){ - primaryKeys.push(item.fieldIdCamel); - } - } - - }); - if(fields!=null && fields.length>0){ - var isBizKey=fields[0].isBizKey; - - if(isBizKey && isBizKey.length==3){ - if(isBizKey.charAt(0)=="1"){ - primaryKeys.push("cuserid"); - } - if(isBizKey.charAt(1)=='1'){ - primaryKeys.push("deptid"); - } - } - } - this.primaryKeys=primaryKeys + if(tips.isOk){ this.fields = res.data.data.formFields; this.myFormDef=res.data.data.formDef + if(this.myFormDef.pks && this.myFormDef.pks.length>0){ + this.primaryKeys=this.myFormDef.pks.split(":")[0].split(",") + }else{ + this.primaryKeys=[] + } + }else{ this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' }); }