cuiqian2004
2025-08-14 e540e5b44f56ce8e8edc377dfa4c5b343b1a9eef
pages/modal/3018_2.vue
@@ -219,27 +219,30 @@
            await this.Head_UIStyleGetInfo(this.param.DataCls?.id, this.param.UI_Style?.ID);
            //传入参数值
            if (paramValue) {
               const attrs = paramValue.attrs || [];
               (this.head_styledef?.form?.items || []).forEach(async (ele, index) => {
                  if (ele.name != "Layout") {
                     attrs.forEach(async (ele2, index2) => {
                        if (ele.fieldId == ele2.name) {
                           ele.value = ele2.value;
                        }
                     });
                  } else {
                     ele.setting.colList.forEach(async (col) => {
                        if (col) {
                           attrs.forEach(async (ele2,
                              index2) => {
                              if (col.fieldId == ele2.name) {
                                 col.value = ele2.value;
                              }
                           });
                        }
                     });
                  }
               })
               this.setFormValues(paramValue)
                  // const attrs = paramValue.attrs || [];
            //    (this.head_styledef?.form?.items || []).forEach(async (ele, index) => {
            //       if (ele.name != "Layout") {
            //          attrs.forEach(async (ele2, index2) => {
            //             if (ele.fieldId == ele2.name) {
            //                ele.value = ele2.value;
            //             }
            //          });
            //       } else {
            //          ele.setting.colList.forEach(async (col) => {
            //             if (col) {
            //                attrs.forEach(async (ele2,
            //                   index2) => {
            //                   if (col.fieldId == ele2.name) {
            //                      col.value = ele2.value;
            //                   }
            //                });
            //             }
            //          });
            //       }
            //    })
            }
@@ -1563,6 +1566,10 @@
         setFormValues(data) {
            const $this = this
            const head_styledef = this.head_styledef
            if( !Array.isArray(data))
            {
               return
            }
            for (var i = 0; i < data.length; i++) {
               const attr = data[i]
               if (attr.choice_list) {