From afe315af264200474a300c4f24e6a41cc3aac58c Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 22 Mar 2022 18:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E4=BA=A7=E5=93=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../finance/AppFinanceProduct/productRecommend.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/project/xiushan/apps/finance/AppFinanceProduct/productRecommend.vue b/project/xiushan/apps/finance/AppFinanceProduct/productRecommend.vue index cea27ae5..befd24fa 100644 --- a/project/xiushan/apps/finance/AppFinanceProduct/productRecommend.vue +++ b/project/xiushan/apps/finance/AppFinanceProduct/productRecommend.vue @@ -14,7 +14,7 @@ @getList="getTableData" :col-configs="colConfigs" :dict="dict"> @@ -79,7 +79,7 @@ export default { {required: true, message: "请输入推荐顺序"}, {pattern: /^[1-7]$/, message: "请输入1~7之间的整数"} ], - productId: [{required: true, message: "请选择推荐产品",trigger:"blur"}], + productId: [{required: true, message: "请选择推荐产品", trigger: "blur"}], organizationType: [{required: true, message: "请选择机构类型"}], }, productList: [] @@ -91,17 +91,15 @@ export default { params: {...this.page, ...this.search} }).then(res => { if (res?.data) { - this.tableData = res.data?.records.map(e => { - let guaranteeModeLabel = e.guaranteeMode.split(",").map(g => this.dict.getLabel("productGuaranteeMode", g))?.toString() - return {...e, guaranteeModeLabel} - }) + this.tableData = res.data?.records this.page.total = res.data.total } }) }, handleEdit(row) { - this.dialog = false + this.dialog = true this.form = JSON.parse(JSON.stringify(row)) + this.getProducts() }, handleDelete(ids) { this.$confirm("是否要删除该推荐?").then(() => { @@ -122,6 +120,7 @@ export default { if (res?.code == 0) { this.$message.success("提交成功!") this.getTableData() + this.dialog = false } }) }