| | |
| | | <a class="class_attr_add_per" @tap="classAttr_AddPer(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | |
| | | <a href="#" class="class_attr_add_prj" @tap="classAttr_AddPrj(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | |
| | | <!-- 左右布局 --> |
| | | <p class="tx_title2">{{param.Scan_Code.Name}}:</p> |
| | | <input type="text" class="attr_field" :value="scanCodeVal" @focus="scan_ontap" @blur="scan_onevent" |
| | | :style="param.Scan_Code.Have_Select_Button==true?'width: '+(100-(param.Scan_Code.Name.length * 5)-14)+'%;':'width: '+(100-(param.Scan_Code.Name.length * 5)-5)+'%;'" :maxlength="-1"> |
| | | :style="param.Scan_Code.Have_Select_Button==true?'width: '+(100-(param.Scan_Code.Name.length * 5)-14)+'%;':'width: '+(100-(param.Scan_Code.Name.length * 5)-5)+'%;'" |
| | | :maxlength="-1"> |
| | | <div class="text-right2" v-if="param.Scan_Code.Have_Select_Button==true"> |
| | | <a @tap="scan_classAttr_extButton()"><i class="ace-icon fa" |
| | | :class="param.Scan_Code.Img?param.Scan_Code.Img:'fa-plus-circle'"></i></a> |
| | |
| | | <a class="class_attr_add_per" @tap="classAttr_AddPer(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" |
| | | disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | |
| | | <a href="#" class="class_attr_add_prj" @tap="classAttr_AddPrj(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" |
| | | disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | |
| | | } |
| | | } |
| | | |
| | | var length = |
| | | 0; |
| | | if (! |
| | | this |
| | | .$data |
| | | .refdatastore |
| | | .filter( |
| | | function( |
| | | s |
| | | ) { |
| | | return val[ |
| | | i |
| | | ] |
| | | .attr == |
| | | s |
| | | .attr |
| | | } |
| | | ) |
| | | .length |
| | | ) { |
| | | length |
| | | = |
| | | 1; |
| | | this.$data |
| | | .refdatastore |
| | | .push( |
| | | val[ |
| | | i] |
| | | ); |
| | | } |
| | | if (length == |
| | | 0 |
| | | ) { |
| | | for ( |
| | | var j = |
| | | 0; j < |
| | | this |
| | | .$data |
| | | .refdatastore |
| | | .length; j++ |
| | | ) { |
| | | if (this |
| | | .$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .attr == |
| | | val[ |
| | | i] |
| | | .attr |
| | | ) { |
| | | this.$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .value = |
| | | val[ |
| | | i] |
| | | .value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | attr[ |
| | | j] |
| | | .Value = |
| | | result[ |
| | | i |
| | | ] |
| | | .value; |
| | | } |
| | | } |
| | | } |
| | | var length = |
| | | 0; |
| | | if (! |
| | | $this |
| | | .$data |
| | | .refdatastore |
| | | .filter( |
| | | function( |
| | | s |
| | | ) { |
| | | return result[ |
| | | i |
| | | ] |
| | | .attr == |
| | | s |
| | | .attr |
| | | } |
| | | ) |
| | | .length |
| | | ) { |
| | | length |
| | | = |
| | | 1; |
| | | $this |
| | | .$data |
| | | .refdatastore |
| | | .push( |
| | | result[ |
| | | i |
| | | ] |
| | | ); |
| | | } |
| | | if (length == |
| | | 0 |
| | | ) { |
| | | for ( |
| | | var j = |
| | | 0; j < |
| | | $this |
| | | .$data |
| | | .refdatastore |
| | | .length; j++ |
| | | ) { |
| | | if ($this |
| | | .$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .attr == |
| | | result[ |
| | | i |
| | | ] |
| | | .attr |
| | | ) { |
| | | $this |
| | | .$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .value = |
| | | result[ |
| | | i |
| | | ] |
| | |
| | | } |
| | | } |
| | | |
| | | var length = |
| | | 0; |
| | | if (! |
| | | this |
| | | .$data |
| | | .refdatastore |
| | | .filter( |
| | | function( |
| | | s |
| | | ) { |
| | | return val[ |
| | | i |
| | | ] |
| | | .attr == |
| | | s |
| | | .attr |
| | | } |
| | | ) |
| | | .length |
| | | ) { |
| | | length |
| | | = |
| | | 1; |
| | | this.$data |
| | | .refdatastore |
| | | .push( |
| | | val[ |
| | | i] |
| | | ); |
| | | } |
| | | if (length == |
| | | 0 |
| | | ) { |
| | | for ( |
| | | var j = |
| | | 0; j < |
| | | this |
| | | .$data |
| | | .refdatastore |
| | | .length; j++ |
| | | ) { |
| | | if (this |
| | | .$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .attr == |
| | | val[ |
| | | i] |
| | | .attr |
| | | ) { |
| | | this.$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .value = |
| | | val[ |
| | | i] |
| | | .value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | ] |
| | | .value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | var length = |
| | | 0; |
| | | if (! |
| | | $this |
| | | .$data |
| | | .refdatastore |
| | | .filter( |
| | | function( |
| | | s |
| | | ) { |
| | | return result[ |
| | | i |
| | | ] |
| | | .attr == |
| | | s |
| | | .attr |
| | | } |
| | | ) |
| | | .length |
| | | ) { |
| | | length |
| | | = |
| | | 1; |
| | | $this |
| | | .$data |
| | | .refdatastore |
| | | .push( |
| | | result[ |
| | | i |
| | | ] |
| | | ); |
| | | } |
| | | if (length == |
| | | 0 |
| | | ) { |
| | | for ( |
| | | var j = |
| | | 0; j < |
| | | $this |
| | | .$data |
| | | .refdatastore |
| | | .length; j++ |
| | | ) { |
| | | if ($this |
| | | .$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .attr == |
| | | result[ |
| | | i |
| | | ] |
| | | .attr |
| | | ) { |
| | | $this |
| | | .$data |
| | | .refdatastore[ |
| | | j |
| | | ] |
| | | .value = |
| | | result[ |
| | | i |
| | | ] |
| | | .value; |
| | | } |
| | | } |
| | | } |