From b471fd27e9e866e88408fdd2429acdf3b7d9689a Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 27 Mar 2025 12:33:08 +0800 Subject: [PATCH] xiug --- pages/ProductManage/UpperShaftCut.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/ProductManage/UpperShaftCut.vue b/pages/ProductManage/UpperShaftCut.vue index e8fd04f..cacf9a3 100644 --- a/pages/ProductManage/UpperShaftCut.vue +++ b/pages/ProductManage/UpperShaftCut.vue @@ -96,9 +96,6 @@ async _queryDeviceByarea (e) { let res = await queryDeviceByarea(e) if (res && res.data) { - res.data.map(el => { - el.value = el.text - }) this.options3 = [...res.data] } }, @@ -137,7 +134,13 @@ return } try { - let res = await cutUpShaft(this.index2, this.index3, this.index1, this.upL, this.upR) + let txt1 = '' + this.options1.map(el => { + if (el.value === this.index1) { + txt1 = el.text + } + }) + let res = await cutUpShaft(this.index2, this.index3, txt1, this.upL, this.upR) this.disabled = false uni.showToast({ title: res.message,