#
luxiaotao1123
2021-12-13 9233b9a9c7c2e760d519d4ca0ccf0868b57fb1cd
static/js/app.js
@@ -31,7 +31,6 @@
         this.initLight();
         this.initFloor();
         this.initModel();
         this.queryTask();
         this.initStoreObjects(this);
      }
      this.animate = function () {
@@ -39,7 +38,8 @@
         this.stats.begin();
         this.renderer.render(this.scene, this.camera);
         this.stats.end();
         this.modelMove();
         this.queryTask();
         // this.modelMove();
      }
      this.initScene = function () {
         this.scene = new THREE.Scene();
@@ -263,9 +263,13 @@
         }
      }
      this.queryTask = function () {
         if (this.firstTime === 1) {
            queryTaskCurrent();
            this.wrkTasks = TaskData;
         if (TaskDatas !== null) {
            for (let TaskData of TaskDatas) {
               let wrkTask = getArrVal(this.wrkTasks, "wrkNo", TaskData.wrkNo);
               if (null == wrkTask) {
                  this.wrkTasks.push(TaskData);
               }
            }
         }
      }
      this.getExistedGoodType=function(state){
@@ -353,8 +357,10 @@
            });
      }
      this.initModelMove = function () {
         console.log(this.wrkTasks)
         for (var wrkMast of this.wrkTasks) {
            let crnBody = getArrVal(this.objects, "name", wrkMast.crnNo + "-body");
            console.log(crnBody)
            // 取货点定位
            let sourceLocPosition = getBinPosition(wrkMast.sourceLocNo);
            let points = [crnBody.position, sourceLocPosition];
@@ -378,7 +384,6 @@
         }
      }
   },
};