From 68a17fad682024726a3bd96ec085d66a5478ec93 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 13 May 2024 14:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E4=BF=A1=E7=94=A8=E8=AF=84?= =?UTF-8?q?=E5=88=86=E5=8F=8A=E4=BC=81=E4=B8=9A=E5=88=A9=E7=8E=87=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E9=BB=98=E8=AE=A4=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/interestRate/936/Detail.vue | 10 ++++-- src/views/product/strategy/513/Detail.vue | 35 +++++-------------- 2 files changed, 15 insertions(+), 30 deletions(-) diff --git a/src/views/product/interestRate/936/Detail.vue b/src/views/product/interestRate/936/Detail.vue index 1a020a2..0baad96 100644 --- a/src/views/product/interestRate/936/Detail.vue +++ b/src/views/product/interestRate/936/Detail.vue @@ -31,10 +31,12 @@ @@ -160,6 +163,8 @@ const { id } = toRefs(props.row); const list = ref[]>([]); const detail = ref>({}); +// 公式的默认答案 +const answer = ['', [457, 456, 455, 454], [465, 464, 463, 468, 467, 466], [479, 478, 480, 482, 483, 481], [496, 498, 494, 497, 495], '', [511, 512]]; const form = reactive({ ...getIds(), @@ -196,7 +201,7 @@ const getConfig = async () => { subject: n?.recordChildren[1]?.subject, remark: n.remark, isChoose: '', - calculationFormula: '', + calculationFormula: answer[j] ? answer[j][i] || '' : '', score: '', percentage: '', span: i === 1 ? 1 : 0, @@ -291,7 +296,6 @@ const getConfig = async () => { result[14].dimensionId = detail.value[6]?.dimensionId; result[14].isChoose = detail.value[6]?.isChoose; - result[14].calculationFormula = detail.value[6]?.calculationFormula; result[14].dimensionId = detail.value[6]?.dimensionIndexList[0]?.dimensionId; result[14].id = detail.value[6]?.dimensionIndexList[0]?.id; result[14].percentage = detail.value[6]?.dimensionIndexList[0]?.percentage; @@ -299,7 +303,6 @@ const getConfig = async () => { result[15].dimensionId = detail.value[7]?.dimensionId; result[15].isChoose = detail.value[7]?.isChoose; - result[15].calculationFormula = detail.value[7]?.calculationFormula; result[15].dimensionId = detail.value[7]?.dimensionIndexList[0]?.dimensionId; result[15].id = detail.value[7]?.dimensionIndexList[0]?.id; result[15].percentage = detail.value[7]?.dimensionIndexList[0]?.percentage; @@ -307,7 +310,6 @@ const getConfig = async () => { result[16].dimensionId = detail.value[8]?.dimensionId; result[16].isChoose = detail.value[8]?.isChoose; - result[16].calculationFormula = detail.value[8]?.calculationFormula; result[16].dimensionId = detail.value[8]?.dimensionIndexList[0]?.dimensionId; result[16].id = detail.value[8]?.dimensionIndexList[0]?.id; result[16].percentage = detail.value[8]?.dimensionIndexList[0]?.percentage; @@ -315,7 +317,6 @@ const getConfig = async () => { result[17].dimensionId = detail.value[9]?.dimensionId; result[17].isChoose = detail.value[9]?.isChoose; - result[17].calculationFormula = detail.value[9]?.calculationFormula; result[17].dimensionId = detail.value[9]?.dimensionIndexList[0]?.dimensionId; result[17].id = detail.value[9]?.dimensionIndexList[0]?.id; result[17].percentage = detail.value[9]?.dimensionIndexList[0]?.percentage; @@ -327,7 +328,6 @@ const getConfig = async () => { result[19].dimensionId = detail.value[11]?.dimensionId; result[19].isChoose = detail.value[11]?.isChoose; - result[19].calculationFormula = detail.value[11]?.calculationFormula; result[19].dimensionId = detail.value[11]?.dimensionIndexList[0]?.dimensionId; result[19].id = detail.value[11]?.dimensionIndexList[0]?.id; result[19].percentage = detail.value[11]?.dimensionIndexList[0]?.percentage; @@ -335,7 +335,6 @@ const getConfig = async () => { result[20].dimensionId = detail.value[12]?.dimensionId; result[20].isChoose = detail.value[12]?.isChoose; - result[20].calculationFormula = detail.value[12]?.calculationFormula; result[20].dimensionId = detail.value[12]?.dimensionIndexList[0]?.dimensionId; result[20].id = detail.value[12]?.dimensionIndexList[0]?.id; result[20].percentage = detail.value[12]?.dimensionIndexList[0]?.percentage; @@ -343,7 +342,6 @@ const getConfig = async () => { result[21].dimensionId = detail.value[13]?.dimensionId; result[21].isChoose = detail.value[13]?.isChoose; - result[21].calculationFormula = detail.value[13]?.calculationFormula; result[21].dimensionId = detail.value[13]?.dimensionIndexList[0]?.dimensionId; result[21].id = detail.value[13]?.dimensionIndexList[0]?.id; result[21].percentage = detail.value[13]?.dimensionIndexList[0]?.percentage; @@ -351,7 +349,6 @@ const getConfig = async () => { result[22].dimensionId = detail.value[14]?.dimensionId; result[22].isChoose = detail.value[14]?.isChoose; - result[22].calculationFormula = detail.value[14]?.calculationFormula; result[22].dimensionId = detail.value[14]?.dimensionIndexList[0]?.dimensionId; result[22].id = detail.value[14]?.dimensionIndexList[0]?.id; result[22].percentage = detail.value[14]?.dimensionIndexList[0]?.percentage; @@ -359,7 +356,6 @@ const getConfig = async () => { result[23].dimensionId = detail.value[15]?.dimensionId; result[23].isChoose = detail.value[15]?.isChoose; - result[23].calculationFormula = detail.value[15]?.calculationFormula; result[23].dimensionId = detail.value[15]?.dimensionIndexList[0]?.dimensionId; result[23].id = detail.value[15]?.dimensionIndexList[0]?.id; result[23].percentage = detail.value[15]?.dimensionIndexList[0]?.percentage; @@ -367,7 +363,6 @@ const getConfig = async () => { result[24].dimensionId = detail.value[16]?.dimensionId; result[24].isChoose = detail.value[16]?.isChoose; - result[24].calculationFormula = detail.value[16]?.calculationFormula; result[24].dimensionId = detail.value[16]?.dimensionIndexList[0]?.dimensionId; result[24].id = detail.value[16]?.dimensionIndexList[0]?.id; result[24].percentage = detail.value[16]?.dimensionIndexList[0]?.percentage; @@ -375,7 +370,6 @@ const getConfig = async () => { result[25].dimensionId = detail.value[17]?.dimensionId; result[25].isChoose = detail.value[17]?.isChoose; - result[25].calculationFormula = detail.value[17]?.calculationFormula; result[25].dimensionId = detail.value[17]?.dimensionIndexList[0]?.dimensionId; result[25].id = detail.value[17]?.dimensionIndexList[0]?.id; result[25].percentage = detail.value[17]?.dimensionIndexList[0]?.percentage; @@ -387,7 +381,6 @@ const getConfig = async () => { result[27].dimensionId = detail.value[19]?.dimensionId; result[27].isChoose = detail.value[19]?.isChoose; - result[27].calculationFormula = detail.value[19]?.calculationFormula; result[27].dimensionId = detail.value[19]?.dimensionIndexList[0]?.dimensionId; result[27].id = detail.value[19]?.dimensionIndexList[0]?.id; result[27].percentage = detail.value[19]?.dimensionIndexList[0]?.percentage; @@ -395,7 +388,6 @@ const getConfig = async () => { result[28].dimensionId = detail.value[20]?.dimensionId; result[28].isChoose = detail.value[20]?.isChoose; - result[28].calculationFormula = detail.value[20]?.calculationFormula; result[28].dimensionId = detail.value[20]?.dimensionIndexList[0]?.dimensionId; result[28].id = detail.value[20]?.dimensionIndexList[0]?.id; result[28].percentage = detail.value[20]?.dimensionIndexList[0]?.percentage; @@ -403,7 +395,6 @@ const getConfig = async () => { result[29].dimensionId = detail.value[21]?.dimensionId; result[29].isChoose = detail.value[21]?.isChoose; - result[29].calculationFormula = detail.value[21]?.calculationFormula; result[29].dimensionId = detail.value[21]?.dimensionIndexList[0]?.dimensionId; result[29].id = detail.value[21]?.dimensionIndexList[0]?.id; result[29].percentage = detail.value[21]?.dimensionIndexList[0]?.percentage; @@ -411,7 +402,6 @@ const getConfig = async () => { result[30].dimensionId = detail.value[22]?.dimensionId; result[30].isChoose = detail.value[22]?.isChoose; - result[30].calculationFormula = detail.value[22]?.calculationFormula; result[30].dimensionId = detail.value[22]?.dimensionIndexList[0]?.dimensionId; result[30].id = detail.value[22]?.dimensionIndexList[0]?.id; result[30].percentage = detail.value[22]?.dimensionIndexList[0]?.percentage; @@ -419,7 +409,6 @@ const getConfig = async () => { result[31].dimensionId = detail.value[23]?.dimensionId; result[31].isChoose = detail.value[23]?.isChoose; - result[31].calculationFormula = detail.value[23]?.calculationFormula; result[31].dimensionId = detail.value[23]?.dimensionIndexList[0]?.dimensionId; result[31].id = detail.value[23]?.dimensionIndexList[0]?.id; result[31].percentage = detail.value[23]?.dimensionIndexList[0]?.percentage; @@ -427,7 +416,6 @@ const getConfig = async () => { result[32].dimensionId = detail.value[24]?.dimensionId; result[32].isChoose = detail.value[24]?.isChoose; - result[32].calculationFormula = detail.value[24]?.calculationFormula; result[32].dimensionId = detail.value[24]?.dimensionIndexList[0]?.dimensionId; result[32].id = detail.value[24]?.dimensionIndexList[0]?.id; result[32].percentage = detail.value[24]?.dimensionIndexList[0]?.percentage; @@ -439,7 +427,6 @@ const getConfig = async () => { result[34].dimensionId = detail.value[26]?.dimensionId; result[34].isChoose = detail.value[26]?.isChoose; - result[34].calculationFormula = detail.value[26]?.calculationFormula; result[34].dimensionId = detail.value[26]?.dimensionIndexList[0]?.dimensionId; result[34].id = detail.value[26]?.dimensionIndexList[0]?.id; result[34].percentage = detail.value[26]?.dimensionIndexList[0]?.percentage; @@ -447,7 +434,6 @@ const getConfig = async () => { result[35].dimensionId = detail.value[27]?.dimensionId; result[35].isChoose = detail.value[27]?.isChoose; - result[35].calculationFormula = detail.value[27]?.calculationFormula; result[35].dimensionId = detail.value[27]?.dimensionIndexList[0]?.dimensionId; result[35].id = detail.value[27]?.dimensionIndexList[0]?.id; result[35].percentage = detail.value[27]?.dimensionIndexList[0]?.percentage; @@ -455,7 +441,6 @@ const getConfig = async () => { result[36].dimensionId = detail.value[28]?.dimensionId; result[36].isChoose = detail.value[28]?.isChoose; - result[36].calculationFormula = detail.value[28]?.calculationFormula; result[36].dimensionId = detail.value[28]?.dimensionIndexList[0]?.dimensionId; result[36].id = detail.value[28]?.dimensionIndexList[0]?.id; result[36].percentage = detail.value[28]?.dimensionIndexList[0]?.percentage; @@ -463,7 +448,6 @@ const getConfig = async () => { result[37].dimensionId = detail.value[29]?.dimensionId; result[37].isChoose = detail.value[29]?.isChoose; - result[37].calculationFormula = detail.value[29]?.calculationFormula; result[37].dimensionId = detail.value[29]?.dimensionIndexList[0]?.dimensionId; result[37].id = detail.value[29]?.dimensionIndexList[0]?.id; result[37].percentage = detail.value[29]?.dimensionIndexList[0]?.percentage; @@ -471,7 +455,6 @@ const getConfig = async () => { result[38].dimensionId = detail.value[30]?.dimensionId; result[38].isChoose = detail.value[30]?.isChoose; - result[38].calculationFormula = detail.value[30]?.calculationFormula; result[38].dimensionId = detail.value[30]?.dimensionIndexList[0]?.dimensionId; result[38].id = detail.value[30]?.dimensionIndexList[0]?.id; result[38].percentage = detail.value[30]?.dimensionIndexList[0]?.percentage; @@ -532,7 +515,6 @@ const getConfig = async () => { result[50].dimensionId = detail.value[36]?.dimensionId; result[50].isChoose = detail.value[36]?.isChoose; - result[50].calculationFormula = detail.value[36]?.calculationFormula; result[50].dimensionId = detail.value[36]?.dimensionIndexList[0]?.dimensionId; result[50].id = detail.value[36]?.dimensionIndexList[0]?.id; result[50].percentage = detail.value[36]?.dimensionIndexList[0]?.percentage; @@ -540,7 +522,6 @@ const getConfig = async () => { result[51].dimensionId = detail.value[37]?.dimensionId; result[51].isChoose = detail.value[37]?.isChoose; - result[51].calculationFormula = detail.value[37]?.calculationFormula; result[51].dimensionId = detail.value[37]?.dimensionIndexList[0]?.dimensionId; result[51].id = detail.value[37]?.dimensionIndexList[0]?.id; result[51].percentage = detail.value[37]?.dimensionIndexList[0]?.percentage;