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' }" > + + + -