diff --git a/src/components/mdp-ui-ext/mdp-meta-option/Form.vue b/src/components/mdp-ui-ext/mdp-meta-option/Form.vue index 54ea1be8..a27944b5 100644 --- a/src/components/mdp-ui-ext/mdp-meta-option/Form.vue +++ b/src/components/mdp-ui-ext/mdp-meta-option/Form.vue @@ -146,7 +146,7 @@ import { MdpFormMixin } from '../../mdp-ui/mixin/MdpFormMixin.js'; methods: { //页面初始化需要配置的特殊逻辑写这里 initCurrData(){ - + debugger if(this.item && this.item.id){ if(this.currOpType=='add'){ this.editForm.itemId=this.item.id @@ -158,6 +158,12 @@ import { MdpFormMixin } from '../../mdp-ui/mixin/MdpFormMixin.js'; }else{ if(!this.editForm.extVals||this.editForm.extVals=="[]"){ this.editForm.extVals=this.item.extInfos + }else if(this.item.extInfos){ + let extValsList=JSON.parse(this.editForm.extVals) + let extInfosList=JSON.parse(this.item.extInfos) + let list=extInfosList.filter(k=>!extValsList.find(e=>e.id==k.id)) + list.forEach(k=>extValsList.push(k)) + this.editForm.extVals=JSON.stringify(extValsList) } } } @@ -174,9 +180,6 @@ import { MdpFormMixin } from '../../mdp-ui/mixin/MdpFormMixin.js'; params[fieldName]=$event return true; }, - setPks(rows,params){ - params.$pks=[{itemId:this.dataBak.itemId,id:this.dataBak.id}] - } }, mounted() { diff --git a/src/components/mdp-ui/mdp-select/Index.vue b/src/components/mdp-ui/mdp-select/Index.vue index d8e9a47f..9370162c 100644 --- a/src/components/mdp-ui/mdp-select/Index.vue +++ b/src/components/mdp-ui/mdp-select/Index.vue @@ -1,7 +1,7 @@