From 0ea8bf4ab8217262fee2fb8f3bc613c12640c5eb Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期三, 01 五月 2024 23:11:23 +0800 Subject: [PATCH] 修复post请求体过大导致数据不全的问题 --- src/components/do/b1-inspect-order-plan/Inspection.vue | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index 055e498..6f5c462 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -196,8 +196,7 @@ </el-radio-group> </div> <div class="center-box"> - <table border="1" class="tables" cellpadding="10" v-for="(item,index) in tableList" :key="index" - > + <table border="1" class="tables" cellpadding="10" v-for="(item,index) in tableList" :key="index"> <tbody> <tr v-for="(m,i) in item.arr" :key="i"> <td :id='item.templateId+"-"+n.i+"-"+n.r+"-"+n.c' v-for="(n,j) in m" :key="j" @@ -921,7 +920,6 @@ this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) break; case 'resValue': - console.log(this.param) this.tableList[0].lastValue = value.v.v break; case 'insResult': @@ -1113,10 +1111,8 @@ }) }, saveInsContext(){ - this.$axios.post(this.$api.insOrderPlan.saveInsContext, this.param, { - headers: { - 'Content-Type': 'application/json' - } + this.$axios.post(this.$api.insOrderPlan.saveInsContext, { + param: JSON.stringify(this.param) }).then(res => { if (res.code == 201) { this.$message.error('淇濆瓨澶辫触') -- Gitblit v1.9.3