cuiqian2004
2025-08-14 e540e5b44f56ce8e8edc377dfa4c5b343b1a9eef
pages/modal/3202.vue
@@ -18,7 +18,7 @@
                           <button size="mini" v-for="(btn,btnIndex) in rowButtons" :key="btnIndex"
                              type="primary" @click="onRowBtnClick(btn, ii)">
                              <text v-if="btn.Style == 'img' || btn.Style == 'img_text'" class="img"></text>
                              {{btn.ShowName}}
                              {{btn.ShowName || ""}}
                           </button>
                        </div>
                     </div>
@@ -111,6 +111,7 @@
         }); //设置顶部标题 
         this.title = options.titlename;
         this.param = JSON.parse(options.param);
         const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined
         this.styledef = {};
         this.head_styledef = {
            form: {
@@ -126,7 +127,7 @@
         if (this.param?.ClickItem_Event?.id)
            this.click_item_view = true
         await this.Detail1_UIstyleGetInfo(this.param.ClsID, this.param.ListItem_Panel.id);
         this.initial()
         this.initial(paramValue)
      },
      methods: {
@@ -153,7 +154,7 @@
            });
         },
         //初始化
         async initial() {
         async initial(paramValue) {
            this.refreshing = true
            await this.Head_UIStyleGetInfo(this.param.ClsID, this.param.Input_Panel.id);
            this.wheres = '';
@@ -162,6 +163,10 @@
            this.query_id = "";
            this.detail1StyleDefList = [];
            this.refreshing = false
            if (paramValue) {
               this.setFormValues(paramValue)
            }
         },
@@ -821,6 +826,7 @@
                  defCode == "3037" ||
                  defCode == "3200" ||
                  defCode == "3201" ||
                  defCode == "3202" ||
                  defCode == "5600" ||
                  defCode == "5601" ||
                  defCode == "5602"
@@ -857,19 +863,33 @@
                        });
                        return;
                     }
                     const attrValues = []
                     style.form.items.forEach(item => {
                        if (item.name == "Layout") { //判断是否是栅栏格式
                           item.setting.colList.forEach(col => {
                              if (col != null) {
                                 attrValues.push({
                                    attr: col.fieldId,
                                    value: col.value || ""
                                 })
                              }
                           });
                        } else
                           attrValues.push({
                              attr: item.fieldId,
                              value: item.value || ""
                           })
                     });
                     uni.navigateTo({
                        url: '../modal/' + name + '?param=' +
                           param + "&titlename=" +
                           appName +
                           "&type=relatedFunction&paramValue=" +
                           JSON.stringify(style
                              .form),
                           JSON.stringify(attrValues),
                        events: {
                           relatedFunction: function(data) {
                              console.log(data);
                              $this.Refresh();
                           },
                        }
                     });
                  } else {
@@ -1162,8 +1182,8 @@
         },
         setFormValues(attrs) {
            const head_styledef = this.head_styledef
            if (JSON.stringify(attrs) == '{}') {
               return;
            if (!Array.isArray(attrs)) {
               return
            }
            console.log(attrs)
            attrs.forEach(async (attr, key) => {
@@ -1807,7 +1827,7 @@
         // justify-content: right;
         button {
             line-height:1.6;
            line-height: 1.6;
            // border: none;
            // margin-right: 10rpx;
            // text-align: center;