Pārlūkot izejas kodu

导入清单后,填写图册号、备注丢失

MaiXinRong 5 gadi atpakaļ
vecāks
revīzija
6627863d5a
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      app/public/js/path_tree.js

+ 5 - 5
app/public/js/path_tree.js

@@ -575,7 +575,7 @@ const createNewPathTree = function (type, setting) {
             for (const data of datas) {
                 let node = this.getItems(data[this.setting.id]);
                 if (node) {
-                    for (const prop in node) {
+                    for (const prop in data) {
                         if (data[prop] !== undefined && data[prop] !== node[prop]) {
                             if (prop === this.setting.pid) {
                                 loadedData.push(this.getItems(node[this.setting.pid]));
@@ -615,7 +615,7 @@ const createNewPathTree = function (type, setting) {
                 let node = this.getItems(data[this.setting.id]);
                 if (node) {
                     const parent = this.getItems(node[this.setting.pid]);
-                    for (const prop in node) {
+                    for (const prop in data) {
                         if (data[prop] !== undefined && data[prop] !== node[prop]) {
                             node[prop] = data[prop];
                             if (parent && resortData.indexOf(parent) === -1) {
@@ -788,7 +788,7 @@ const createNewPathTree = function (type, setting) {
             for (const data of datas) {
                 let node = this.getItems(data[this.setting.id]);
                 if (node) {
-                    for (const prop in node) {
+                    for (const prop in data) {
                         if (data[prop] !== undefined) {
                             node[prop] = data[prop];
                         }
@@ -840,7 +840,7 @@ const createNewPathTree = function (type, setting) {
             for (const d of datas) {
                 let node = this.getItems(d[this.setting.id]);
                 if (node && node.is_leaf) {
-                    for (const prop in node) {
+                    for (const prop in d) {
                         if (data[prop] !== undefined) {
                             node[prop] = d[prop];
                         }
@@ -1073,7 +1073,7 @@ const createNewPathTree = function (type, setting) {
             for (const data of datas) {
                 let node = this.getItems(data[this.setting.id]);
                 if (node) {
-                    for (const prop in node) {
+                    for (const prop in data) {
                         if (prop === this.setting.pid && data[prop] !== node[prop]) {
 
                         }