| | |
| | | src="../../images/mobox_log_200x40.png"> |
| | | </image> |
| | | <checkbox-group @change="checkboxChange"> |
| | | <div class="dv-panel" v-for="(style,ii) in pageData.DefList" @tap="onPanelClick(ii)" |
| | | <div class="dv-panel" v-for="(style,ii) in pageData.DefList" |
| | | @tap="onPanelClick(ii,style.form.htmlobjId)" |
| | | :id="'dvpanel'+style.form.htmlobjId" |
| | | :class="style.form.htmlobjId==active_id?'bk-active':activelist[ii].active==true?'bk-active':''"> |
| | | :class="style.form.htmlobjId==active_id?'bk-active':''"> |
| | | <div class="dv-panel-input"> |
| | | <div class="dv-input" v-for="(item,index) in style.form.items"> |
| | | <!-- 普通布局 --> |
| | |
| | | After_Del_Event: {}, |
| | | |
| | | active_id: '', |
| | | activelist: [], |
| | | selectAttrObj: {}, |
| | | }; |
| | | }, |
| | |
| | | var itemName = ''; |
| | | (result.dict_item_list || []).forEach((item) => { |
| | | if (item.is_default == '1') |
| | | itemName = item.name; |
| | | itemName = item.name |
| | | list.push({ |
| | | text: item.value, |
| | | text: item.value ? item.value : item.name, |
| | | value: item.name, |
| | | }); |
| | | }); |
| | |
| | | if (pageData?.DefList) { |
| | | pageData.DefList |
| | | .forEach(ele => { |
| | | $this |
| | | .activelist[ |
| | | index |
| | | ] |
| | | .active = |
| | | false; |
| | | |
| | | if (ele |
| | | .form |
| | | .objId == |
| | |
| | | |
| | | pageData.DefList.push(detailStyle); |
| | | this.$set(this.pageDetail, pageIndex, pageData) |
| | | this.activelist.push({ |
| | | active: false |
| | | }); |
| | | |
| | | }); |
| | | } |
| | | }, |
| | |
| | | } |
| | | // $this.setData({pageDetail:pageD}) |
| | | $this.$set(this.pageDetail, pageIndex, pageData) |
| | | $this.activelist.push({ |
| | | active: false |
| | | }); |
| | | |
| | | }); |
| | | } |
| | | |
| | |
| | | $this.runCustomEvent(pageData, event, input_param, list); |
| | | }, |
| | | |
| | | onPanelClick(value) { |
| | | onPanelClick(value, id) { |
| | | // console.log(value); |
| | | this.active_id = ''; |
| | | this.activelist.forEach(ele => { |
| | | ele.active = false; |
| | | }); |
| | | this.activelist[value].active = true; |
| | | // console.log(this.$data.activelist); |
| | | this.active_id = id; |
| | | }, |
| | | //确定 |
| | | ok(pageData) { |