| | |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | button.btn_sava { |
| | | width:100%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | .i_tishi{ |
| | | color: red; |
| | | vertical-align: sub; |
| | |
| | | text-align: center; |
| | | font-weight: bold; |
| | | } |
| | | .v-panel{ |
| | | min-height:788rpx; |
| | | } |
| | | .v-panellist{ |
| | | border:4rpx solid #aaa; |
| | | border-radius: 10rpx; |
| | |
| | | |
| | | <template> |
| | | <view class="content"> |
| | | <!-- 主数据 --> |
| | | <view class="v-area" v-for="(classattr,index) in classAttrList"> |
| | | <div class="class_attr_title" style="display: none;"> |
| | | <div class="title_line"></div> |
| | |
| | | <span class="title">{{classattr.Name}}</span> |
| | | <a href="javascript:;" class="arrow" @tap="onarrow(index,classattr.Open)"><i class="ace-icon fa ":class="classattr.Open?'fa-angle-down':'fa-angle-up'"></i></a> |
| | | </div> |
| | | <!-- 主数据显示详情区 --> |
| | | <div class="class_attr_body" :style="{'display':classattr.Open?'block':'none'}"> |
| | | <div class="dv_field_div" v-for="(attr,iindex) in classattr.Attr"> |
| | | <view class="form-group" v-if="attr.Type=='字符串' || attr.Type=='可变长字符串' || attr.Type=='整数' || attr.Type=='浮点数'" :style="{'display':attr.hidden == 'True'?'none':''}"> |
| | |
| | | </div> |
| | | </div> |
| | | </view> |
| | | <view class="v-area class_attr_body"> |
| | | |
| | | <!-- 从数据 --> |
| | | <view class="v-panel"> |
| | | <div class="panel_title">{{param.Sub_Cls.Title}}</div> |
| | | <!-- 从数据扫码区 --> |
| | | <view class="v-area class_attr_body" v-if="param.Sub_Cls.Can_Add_Delete == true"> |
| | | <h4 style="margin: 15rpx 0 0 30rpx;font-weight: bold;">新增{{param.Sub_Cls.Name }}</h4> |
| | | <view class="form-group"> |
| | | <!-- 左右布局 --> |
| | | <p class="tx_title2" >{{param.Scan_Code.Name}}:</p> |
| | |
| | | <input type="text" value="" > --> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="v-panel"> |
| | | <div class="panel_title">{{param.Sub_Cls.Title}}</div> |
| | | <!-- 从数据显示详情区 --> |
| | | <view class="v-panellist" v-for="(subpanel,index) in subPanelList"> |
| | | <view class="v-area" v-for="(subclassattr,index) in subpanel.subClassAttr"> |
| | | <div class="class_attr_title" style="display: none;"> |
| | |
| | | </div> |
| | | </view> |
| | | |
| | | <view class="v-paneldel"><a href="javascript:;" class="panel_del" @tap="panel_del(index)"><i class="ace-icon fu-delete"></i></a></view> |
| | | <view class="v-paneldel" v-if="param.Sub_Cls.Can_Add_Delete == true"> |
| | | <a href="javascript:;" class="panel_del" @tap="panel_del(index)"><i class="ace-icon fu-delete"></i></a> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <button type="default" @tap="cancel" class="btn_cancel">取消</button> |
| | | <button type="default" @tap="sava" class="btn_add">{{title}}</button> |
| | | <button type="default" @tap="cancel" class="btn_cancel" v-if="param.Sub_Cls.Can_Add_Delete == true">取消</button> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="param.Sub_Cls.Can_Add_Delete == true">{{title}}</button> |
| | | <button type="default" @tap="cancel" class="btn_sava" v-else-if="param.Sub_Cls.Can_Add_Delete == false">{{title}}</button> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | name: styleName, |
| | | type: '2' |
| | | }; |
| | | $this.$store.state.thisEditName = styleName; |
| | | // console.log($this.$store.getters.getclassGridStyleInfo); |
| | | //获取主数据类界面样式 |
| | | if(clsType=='Mast'){ |
| | | $this.$store.state.thisEditName = styleName; |
| | | if($this.$store.getters.getclassGridStyleInfo){ |
| | | $this.$data.classGridStyle = $this.$store.getters.getclassGridStyleInfo.data; |
| | | $this.class_attr_init(); |
| | |
| | | }); |
| | | } |
| | | } else if(clsType=='Sub'){ //获取从数据类界面样式 |
| | | $this.$store.state.thisEditSubName = styleName; |
| | | if($this.$store.getters.getSubClassGridStyleInfo){ |
| | | $this.$data.subClassGridStyle = $this.$store.getters.getSubClassGridStyleInfo.data; |
| | | $this.subClass_attr_init(); |
| | |
| | | }, |
| | | scan_onevent(e){ |
| | | // console.log(e.target); |
| | | if(e.target.value){ |
| | | var isflag=true; |
| | | for(var i in this.$data.subPanelList){ |
| | | if(this.$data.subPanelList[i].scanCodeVal == e.target.value) |
| | |
| | | this.scan_DataObjRunCustomEvent(info, ""); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onarrow(index,open){ |
| | | // console.log(index+'--'+open); |