jwyu 1 yıl önce
ebeveyn
işleme
408e74b940

+ 2 - 2
src/views/classify_manage/classifyEnlistV2.vue

@@ -151,7 +151,7 @@ export default {
                 this.list=res.Data.List||[]
                 if(type==='init'){
                     this.classifyparentArr=JSON.parse(JSON.stringify(res.Data.List)) || [];
-                    this.classifyparentArr.unshift({Id:"0",ClassifyName:'无',Child:null})
+                    this.classifyparentArr.unshift({Id:'0',ClassifyName:'无',Child:null})
                 }
             }
         },
@@ -198,7 +198,7 @@ export default {
             const { classify_name,parent_id,sort,classify_id } = this.classifyForm;
             let params = {
                 ClassifyName: classify_name,
-                ParentId: parent_id||0,
+                ParentId: Number(item.ParentId)||0,
                 EnPermissions:this.classifyForm.variety||[]
             }
             // console.log(params);