| | |
| | | <uni-popup class="view-popup" ref="popup" background-color="#fff" @change="popupChange"> |
| | | <view class="popup-header">{{check_list.title}}</view> |
| | | <view class="popup-content" :class="{ 'popup-height': popupType === 'left' || popupType === 'right' }" |
| | | :style="{'width':check_list.width?check_list.width+'px':'200px','height':check_list.height?check_list.height+'px':'88%'}"> |
| | | <view class="popup-cont" :style="{'height':check_list.height?check_list.height-45+'px':'415px'}"> |
| | | :style="{'width':check_list.width?check_list.width+'px':'375rpx','height':check_list.height?check_list.height+'px':popupType =='center'?'60vh':'88vh'}"> |
| | | <view class="popup-cont" :style="{'height':check_list.height?check_list.height-45+'px':popupType =='center'?'50vh':'80vh'}"> |
| | | <view class="view_popup_CheckList" v-for="(item,index) in check_list.items"> |
| | | <checkbox-group class="check_list" @change="checkChange" :data-ischeck="item.check" |
| | | :data-index="index" :style="{'margin-left': '10rpx'}"> |
| | |
| | | |
| | | getDetailAttrList(pageData) { |
| | | const detailAttrList = []; |
| | | console.log(pageData) |
| | | if (pageData.DefList) { |
| | | pageData.DefList.forEach(style => { |
| | | var detail_attr = {}; |
| | |
| | | }); |
| | | }); |
| | | } |
| | | console.log(detailAttrList) |
| | | const jsonlist = []; |
| | | detailAttrList.forEach(attr => { |
| | | jsonlist.push({ |
| | |
| | | }); |
| | | var obj_attr = this.head_styledef.form.model; |
| | | // console.log(obj_attr); |
| | | |
| | | var input_param = Base64.encode( |
| | | JSON.stringify( |
| | | Object.keys(head_attr).map((a) => ({ |
| | |
| | | |
| | | jsonList.push({ |
| | | page_name: page.Name, |
| | | item_list: $this.getDetailAttrList(page |
| | | .DefList, page |
| | | .Select_Button), |
| | | item_list: $this.getDetailAttrList(page), |
| | | ext_data: page.ExtData || {} |
| | | }) |
| | | |
| | |
| | | const data_json = Base64.encode( |
| | | JSON.stringify(jsonList) |
| | | ); |
| | | console.log(jsonList) |
| | | var dataInfo = { |
| | | ed_type: 0, |
| | | start_transaction: true, |
| | |
| | | $this.setData({ |
| | | check_list: val.config |
| | | }) |
| | | console.log($this.check_list) |
| | | if (val.config.appear_style == 'sideslip') //判断是否是侧滑 |
| | | $this.setData({ |
| | | popupType: "right" |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | <style> |
| | | .popup-content { |
| | | @include flex; |
| | | |
| | | } |
| | | |
| | | .popup-height { |
| | | @include height; |
| | | /* width: 200px; */ |
| | | } |
| | | </style> |
| | | <style lang="scss"> |
| | | .uni-page-modal-5601 { |
| | | |
| | |
| | | background-color: #f3f3f3 !important; |
| | | } |
| | | |
| | | .demo-uni-row { |
| | | margin-bottom: 0px; |
| | | display: block; |
| | | |
| | | .uni-input { |
| | | width: calc(100% - 120px); |
| | | } |
| | | } |
| | | |
| | | ::v-deep .uni-row { |
| | | margin-bottom: 0px; |
| | | } |
| | |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | .view-popup { |
| | | position: relative; |
| | | } |
| | | |
| | | .popup-content { |
| | | // @include flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | padding: 30rpx; |
| | | background-color: #fff; |
| | | /* height: 150px; */ |
| | | /* border: 1px solid red; */ |
| | | } |
| | | |
| | | .popup-cont { |
| | | overflow-y: auto; |
| | | /* border: 1px solid red; */ |
| | | } |
| | | |
| | | .popup-height { |
| | | // @include height; |
| | | /* width: 200px; */ |
| | | } |
| | | |
| | | .popup-header { |
| | | font-size: 42rpx; |
| | | font-weight: bold; |