| | |
| | | <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> |
| | |
| | | }); //设置顶部标题 |
| | | 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: { |
| | |
| | | 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: { |
| | |
| | | }); |
| | | }, |
| | | //初始化 |
| | | async initial() { |
| | | async initial(paramValue) { |
| | | this.refreshing = true |
| | | await this.Head_UIStyleGetInfo(this.param.ClsID, this.param.Input_Panel.id); |
| | | this.wheres = ''; |
| | |
| | | this.query_id = ""; |
| | | this.detail1StyleDefList = []; |
| | | this.refreshing = false |
| | | if (paramValue) { |
| | | |
| | | this.setFormValues(paramValue) |
| | | } |
| | | |
| | | }, |
| | | |
| | |
| | | defCode == "3037" || |
| | | defCode == "3200" || |
| | | defCode == "3201" || |
| | | defCode == "3202" || |
| | | defCode == "5600" || |
| | | defCode == "5601" || |
| | | defCode == "5602" |
| | |
| | | }); |
| | | 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¶mValue=" + |
| | | JSON.stringify(style |
| | | .form), |
| | | JSON.stringify(attrValues), |
| | | events: { |
| | | relatedFunction: function(data) { |
| | | console.log(data); |
| | | $this.Refresh(); |
| | | }, |
| | | |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | }, |
| | | 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) => { |
| | |
| | | // justify-content: right; |
| | | |
| | | button { |
| | | line-height:1.6; |
| | | line-height: 1.6; |
| | | // border: none; |
| | | // margin-right: 10rpx; |
| | | // text-align: center; |