ysy 2 лет назад
Родитель
Сommit
c974f40104
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/views/material/product/detail.vue

+ 3 - 1
src/views/material/product/detail.vue

@@ -266,6 +266,8 @@ export default {
       this.form = {
         ...info.category
       };
+
+      this.categoryLevelPathId = info.category.categoryLevelPathIdParent
       this.judgeSet(info);
       this.searchDeptNodeClick(this.form.deptLeaderId);
     },
@@ -320,7 +322,7 @@ export default {
     // 确定分类
     async confirmCategory(node, title, PathInfo, ruleCode) {
       this.$set(this.form, 'code', null);
-      this.categoryLevelPathId = PathInfo.categoryLevelPathId
+      this.categoryLevelPathId = PathInfo.categoryLevelPathId.split(',')[0]
 
       if (title == '选择产品分类') {
         this.$set(this.form, 'productCategoryLevelName', node.name);