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,