Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
5982af0b63
1 changed files with 12 additions and 5 deletions
  1. +12
    -5
      src/components/Template/StepFormPackage.vue

+ 12
- 5
src/components/Template/StepFormPackage.vue View File

@ -55,7 +55,7 @@
<div v-show="isShowOther(formFields[key])" class="flex flex1">
<div class="other-title">{{sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}</div>
<HandleFormItem class="step-row" :field-item-label="fieldItemLabel" :field-key="prefixKey+'_'+sItem.otherCode" @blur="onBlur(key, $event)" :item="getOtherItem(sItem)"
<HandleFormItem sourceFrom = "step" class="step-row" :field-item-label="fieldItemLabel" :field-key="prefixKey+'_'+sItem.otherCode" @blur="onBlur(key, $event)" :item="getOtherItem(sItem)"
v-model="formFields[sItem.otherCode]" @copy="onCopy(sItem, key)"
:error="errors[sItem.otherCode]" @update:error="errors[sItem.otherCode] = false"
:orange-bg="orangeBgFields[sItem.otherCode]" />
@ -124,10 +124,16 @@ export default {
},
methods: {
// ///
// onRegentSubmit(data,key,item){
// this.updateFormData(key,data.selectedId);
// this.$emit("onRegentSubmit", {selectInfo:data,key,config:item});
// },
onRegentSubmit(data,key,item){
this.updateFormData(key,data.selectedId);
console.log(data.selectedId,key,"data.selectedId")
if(data.selectType){
this.allFieldsConfig[key].sjSelectType = data.selectType;
}
this.formFields[`selectInfo_${key}`] = data.selectInfo;
console.log(this.formFields,"mmm")
// this.$emit("onRegentSubmit", {selectInfo:data,key,config:item});
},
getRegentItem(item,fieldCode="type"){
const type = item[fieldCode] ;
return {
@ -203,6 +209,7 @@ export default {
}
}
}
console.log(sjResource,yqResource,"sjResource,yqResource")
return {
sjResource,
yqResource,

Loading…
Cancel
Save