From c094d4a32180130de0c26c75a5abc414128a5ec1 Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期四, 20 三月 2025 18:31:33 +0800 Subject: [PATCH] test --- pages/modal/3037.vue | 293 +++------------------------------------------------------ 1 files changed, 19 insertions(+), 274 deletions(-) diff --git a/pages/modal/3037.vue b/pages/modal/3037.vue index 151f653..1c5721f 100644 --- a/pages/modal/3037.vue +++ b/pages/modal/3037.vue @@ -163,7 +163,7 @@ <a class="class_attr_add_ref"><i class="ace-icon fa fa-plus-circle"></i></a> </div> <input type="text" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}" - disabled="true" :maxlength="-1"> + disabled="true" :maxlength="-1"> </view> <view v-if="classattr.control_style=='宸﹀彸甯冨眬'"> <p class="tx_title2" @@ -172,7 +172,7 @@ </p> <input type="text" class="attr_field" :data-index="index" :data-iindex="iindex" :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - 9 +'%'}" - disabled="true" :maxlength="-1"> + disabled="true" :maxlength="-1"> <div class="text-right2" v-if="attr.Type=='寮曠敤瀵硅薄(鍗曚釜)'|| attr.Type=='obj-ref'"> <a @tap="classAttr_AddRef" :data-classid="attr.RelCls[0].id" :data-classname="attr.RelCls[0].name"><i class="ace-icon fa fa-plus-circle"></i></a> @@ -196,7 +196,8 @@ <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" @@ -222,7 +223,8 @@ <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" @@ -295,7 +297,8 @@ <!-- 宸﹀彸甯冨眬 --> <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> @@ -512,8 +515,8 @@ <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" @@ -539,8 +542,8 @@ <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" @@ -622,9 +625,9 @@ <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':'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'}"> + :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'}"> @@ -732,7 +735,7 @@ let that = this; let keys = []; let val, data; - + Object.keys(obj).forEach(function(key) { keys = key.split("."); val = obj[key]; @@ -749,7 +752,7 @@ }); }); }, - + async loadData() { //涓绘暟鎹被鑾峰彇 const param = this.param @@ -2757,68 +2760,6 @@ } } - 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; - } - } - } } } } @@ -3108,73 +3049,6 @@ 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 ] @@ -4199,68 +4073,6 @@ } } - 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; - } - } - } } } } @@ -4580,74 +4392,7 @@ } } } - 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; - } - } - } - } } else if ( action .action_type == @@ -5609,7 +5354,7 @@ margin-top: 50rpx; padding: 20rpx; line-height: 1.5; - /* background: #27A6E1; + /* background: #27A6E1; border: none; color: #fff; */ background: #fff; @@ -5775,7 +5520,7 @@ margin-top: 50rpx; padding: 15rpx; line-height: 1.5; - /* background: #27A6E1; + /* background: #27A6E1; border: none; color: #fff; */ background: #fff; -- Gitblit v1.9.1