From 7482313cc90753e730c275ad133b22da210f84f9 Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期五, 21 三月 2025 19:50:36 +0800 Subject: [PATCH] test --- pages/modal/3037_2.vue | 66 +++------------------------------ 1 files changed, 6 insertions(+), 60 deletions(-) diff --git a/pages/modal/3037_2.vue b/pages/modal/3037_2.vue index 64bf0e8..cbcff22 100644 --- a/pages/modal/3037_2.vue +++ b/pages/modal/3037_2.vue @@ -531,20 +531,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 (data.action[i].action_type == 'set_dlg_attr_show') { var result = action.value; @@ -999,8 +986,7 @@ rclsid: "", robjid: "", userlogin: "", - clsid: $this.$data - .param + clsid: $this.param .DataCls.id, objid: "", attr: param.req, @@ -1123,8 +1109,8 @@ //瀛愭暟鎹被鎵爜鏌ヨ鏁版嵁 if (isflag) { uni.hideKeyboard(); - this.$data.scanCodeVal =newVal; - var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; + this.scanCodeVal =newVal; + var eventid = this.param.Scan_Code.Input_Change_Event.ID; if (eventid) { //涓绘暟鎹被灞炴� var obj_attr = this.head_styledef.form.model; @@ -1601,20 +1587,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 == 'set_dlg_attr_show') { var result = action.value; @@ -1859,19 +1832,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 == 'set_global_attr') { $this.$actiontr = action.value || []; @@ -2641,20 +2602,5 @@ margin-top: 5px; } - // .uni-px-5 { - // margin: 0; - // display: inline-block; - // margin: 0; - // font-size: 14px; - // } - // .uni-select{ - // border: 1px solid #ccc; - // border-radius: 0; - // } - // .uni-section-content{ - // display: inline-block; - // width: 100px; - // border: 1px solid red; - // } } </style> \ No newline at end of file -- Gitblit v1.9.1