From ce0ce441f765fd60496fa4f696dc57f5fb84ba4a Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Sun, 12 Jan 2025 17:18:09 +0800 Subject: [PATCH] no message --- pages/SecondPhase/slitting/CallShaft.vue | 66 ++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 4 deletions(-) diff --git a/pages/SecondPhase/slitting/CallShaft.vue b/pages/SecondPhase/slitting/CallShaft.vue index 0fb7aaf..8d30bd9 100644 --- a/pages/SecondPhase/slitting/CallShaft.vue +++ b/pages/SecondPhase/slitting/CallShaft.vue @@ -21,25 +21,25 @@ 上轴左 - + 上轴右 - + 下轴左 - + 下轴右 - + @@ -69,6 +69,10 @@ options2: [], index2: '', axis: [], + newaxis1: [], + newaxis2: [], + newaxis3: [], + newaxis4: [], upL: '', upR: '', lowL: '', @@ -157,6 +161,60 @@ } catch (e) { this.disabled = false } + }, + /** 模糊匹配 */ + selectMatchItem (lists, keyWord) { + let resArr = [] + lists.filter((item) => { + if (item.text.indexOf(keyWord) > -1) { + resArr.push(item) + } + }) + return resArr + }, + handleChange1 (e) { + if (e){ + this.upL = '' + this.newaxis1 = this.selectMatchItem(this.axis, e) + } else { + this.newaxis1 = this.axis + } + }, + showSelector1 () { + this.newaxis1 = this.axis + }, + handleChange2 (e) { + if (e){ + this.upR = '' + this.newaxis2 = this.selectMatchItem(this.axis, e) + } else { + this.newaxis2 = this.axis + } + }, + showSelector2 () { + this.newaxis2 = this.axis + }, + handleChange3 (e) { + if (e){ + this.lowL = '' + this.newaxis3 = this.selectMatchItem(this.axis, e) + } else { + this.newaxis3 = this.axis + } + }, + showSelector3 () { + this.newaxis3 = this.axis + }, + handleChange4 (e) { + if (e){ + this.lowR = '' + this.newaxis4 = this.selectMatchItem(this.axis, e) + } else { + this.newaxis4 = this.axis + } + }, + showSelector4 () { + this.newaxis4 = this.axis } } }