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 | 408 +++++++++++----------------------------------------------- 1 files changed, 79 insertions(+), 329 deletions(-) diff --git a/pages/modal/3037.vue b/pages/modal/3037.vue index 0022d13..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,8 +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':'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'}"> @@ -705,7 +709,7 @@ title: this.translateSys('tip') + "", content: "璇ュ姛鑳界偣鏈厤缃晫闈㈢獥鍙o紝璇烽噸鏂伴厤缃紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -714,7 +718,7 @@ title: this.translateSys('tip') + "", content: "璇ュ姛鑳界偣鏈厤缃獥鍙f牱寮忥紝璇烽噸鏂伴厤缃紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -731,7 +735,7 @@ let that = this; let keys = []; let val, data; - + Object.keys(obj).forEach(function(key) { keys = key.split("."); val = obj[key]; @@ -748,7 +752,7 @@ }); }); }, - + async loadData() { //涓绘暟鎹被鑾峰彇 const param = this.param @@ -777,7 +781,7 @@ title: this.translateSys('error') + " 1.2", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return [] } @@ -811,7 +815,7 @@ title: this.translateSys("error") + " 1.1", content: tip, showCancel: false, - confirmText: this.translateSys("cancel") + confirmText: this.translateSys('close') }); return [] }; @@ -841,7 +845,7 @@ title: this.translateSys("error") + " 1.2", content: tip, showCancel: false, - confirmText: this.translateSys("cancel") + confirmText: this.translateSys('close') }); return {} }; @@ -1116,7 +1120,7 @@ title: this.translateSys('tip') + "", content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); } }, @@ -1271,7 +1275,7 @@ title: this.translateSys('tip') + "", content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); } }, @@ -1283,7 +1287,7 @@ title: this.translateSys('tip') + "", content: "閫夋嫨鍓嶄簨浠朵负绌猴紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -1298,7 +1302,7 @@ title: this.translateSys('tip') + "", content: ar.DispName + "鏈�鎷╂暟鎹紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -1350,7 +1354,7 @@ title: this.translateSys('tip') + "", content: ar.DispName + '涓嶈兘涓虹┖锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -1428,7 +1432,7 @@ title: this.translateSys('tip') + "", content: "閫夋嫨鍚庝簨浠朵负绌猴紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -1451,7 +1455,7 @@ title: this.translateSys('tip') + "", content: "鏈�鎷╂暟鎹紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -1466,7 +1470,7 @@ title: this.translateSys('tip') + "", content: ar.DispName + "鏈�鎷╂暟鎹紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -1528,7 +1532,7 @@ title: this.translateSys('tip') + "", content: "鍒犻櫎鎴愬姛锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }).catch(ex => { @@ -1538,7 +1542,7 @@ title: this.translateSys('tip') + "9.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); } @@ -2209,7 +2213,7 @@ title: this.translateSys('tip') + "", content: "before_click_button-event_id涓虹┖锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -2218,7 +2222,7 @@ title: this.translateSys('tip') + "", content: "button_callback-event_id涓虹┖锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -2300,7 +2304,7 @@ title: this.translateSys('tip') + "", content: "姝ゅ姛鑳借繕鏈疄鐜帮紒", showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); // var value=this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].RelCls[e.target.value]; // this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=value; @@ -2437,7 +2441,7 @@ .DispName + '涓嶈兘涓虹┖锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -2535,7 +2539,7 @@ title: this.translateSys('tip') + "", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -2616,7 +2620,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -2625,7 +2629,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -2640,7 +2644,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); if (data.action) { @@ -2756,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; - } - } - } } } } @@ -2828,7 +2770,7 @@ title: this.translateSys('error') + " 2.2", content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); } } @@ -2842,7 +2784,7 @@ title: this.translateSys('error') + " 2.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -2941,7 +2883,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -2950,7 +2892,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -2965,7 +2907,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); var actionlist = data @@ -3114,73 +3056,6 @@ } } } - 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 (data .action[i] @@ -3308,7 +3183,7 @@ title: this.translateSys('error') + " 3.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -3428,7 +3303,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -3437,7 +3312,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -3452,7 +3327,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); var result = data @@ -3522,7 +3397,7 @@ title: this.translateSys('error') + " 4.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -3647,7 +3522,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -3656,7 +3531,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -3671,7 +3546,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); if (data != "") { @@ -3970,7 +3845,7 @@ content: '璋冪敤 before_click_button 鑴氭湰杩斿洖绌猴紝event_id' + eventid, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); } } @@ -3981,7 +3856,7 @@ title: this.translateSys('tip') + "5.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -4061,7 +3936,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -4070,7 +3945,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -4085,7 +3960,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); var actionlist = data @@ -4198,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; - } - } - } } } } @@ -4270,7 +4083,7 @@ title: this.translateSys('error') + " 6.2", content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); } } @@ -4283,7 +4096,7 @@ title: this.translateSys('error') + " 6.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -4373,7 +4186,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -4382,7 +4195,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -4397,7 +4210,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); var actionlist = data @@ -4579,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 == @@ -5128,7 +4874,7 @@ title: this.translateSys('error') + " 7.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -5179,7 +4925,7 @@ .DispName + '涓嶈兘涓虹┖锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -5236,7 +4982,7 @@ .DispName + '涓嶈兘涓虹┖锛�, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -5315,7 +5061,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); else uni.showModal({ title: this.translateSys('tip'), @@ -5324,7 +5070,7 @@ data .ret, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return false } else { @@ -5339,7 +5085,7 @@ title: this.translateSys('tip'), content: tip, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); var result = data @@ -5378,7 +5124,7 @@ title: this.translateSys('error') + " 8.1", content: ex.errMsg, showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); }); }, @@ -5608,9 +5354,11 @@ margin-top: 50rpx; padding: 20rpx; line-height: 1.5; - background: #27A6E1; + /* background: #27A6E1; border: none; - color: #fff; + color: #fff; */ + background: #fff; + color: #000; font-size: 38rpx; font-weight: bold; float: left; @@ -5748,7 +5496,7 @@ .popup-footer { float: right; position: absolute; - bottom: 0; + bottom: 10rpx; right: 20rpx; } @@ -5772,9 +5520,11 @@ margin-top: 50rpx; padding: 15rpx; line-height: 1.5; - background: #27A6E1; + /* background: #27A6E1; border: none; - color: #fff; + color: #fff; */ + background: #fff; + color: #000; font-size: 38rpx; font-weight: bold; /* float: right; */ -- Gitblit v1.9.1