From 8d93f65a5db9555d42727ba86179d91118e7d45a Mon Sep 17 00:00:00 2001 From: dy-hu Date: Wed, 5 Jun 2024 14:57:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=B8=9A=E5=8A=A1=E5=8A=9F=E8=83=BD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AD=90=E5=88=86=E7=B1=BB=E4=BF=A1=E6=81=AF=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=202.=E8=A7=A3=E5=86=B3=E4=B8=80=E7=BA=A7?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/renovation/commdityClass/Edit.vue | 3 +- src/views/renovation/commdityClass/index.vue | 65 ++++++++++++++++++++++++---- 2 files changed, 58 insertions(+), 10 deletions(-) diff --git a/src/views/renovation/commdityClass/Edit.vue b/src/views/renovation/commdityClass/Edit.vue index 49e1bf3..6acc876 100644 --- a/src/views/renovation/commdityClass/Edit.vue +++ b/src/views/renovation/commdityClass/Edit.vue @@ -284,7 +284,6 @@ export default { oneClassifyId }) const resData = res.data - console.log("resData--->", resData) this.initLangInfo(resData) this.initImageArray(resData) @@ -446,7 +445,7 @@ export default { if (res.code === '') { this.isVisible = false this.$message({ - message: this.$t('common.addsuccessful'), + message: '添加成功', type: 'success' }) this.$emit('success') diff --git a/src/views/renovation/commdityClass/index.vue b/src/views/renovation/commdityClass/index.vue index e55f8c3..e9debd8 100644 --- a/src/views/renovation/commdityClass/index.vue +++ b/src/views/renovation/commdityClass/index.vue @@ -7,15 +7,27 @@ :data="tableData" style="width: 100%" border - row-key="id" + row-key="classifyId" :header-cell-style="{ background: '#EEF3FF', color: '#333333' }" - :tree-props="{ children: 'childs' }" + :tree-props="{ children: 'childs', hasChildren: 'hasChildren' }" > + + + -