#
luxiaotao1123
2021-12-13 2f6c32fbfbd3696ed3ccce3b89158e4a5876ddc5
static/js/app.js
@@ -14,6 +14,8 @@
      this.firstTime = 1;
      this.stats = null;
      this.goodTypes=[];//存储所有的库位类型
      this.wrkNo = 0;
      this.wrkTasks = [];// 任务列表
      this.start = function () {
         this.initMain();
@@ -37,7 +39,7 @@
         this.stats.begin();
         this.renderer.render(this.scene, this.camera);
         this.stats.end();
         this.modelMove();
         // this.modelMove();
      }
      this.initScene = function () {
         this.scene = new THREE.Scene();
@@ -263,7 +265,7 @@
      this.queryTask = function () {
         if (this.firstTime === 1) {
            queryTaskCurrent();
            console.log(TaskData);
            this.wrkTasks = TaskData;
         }
      }
      this.getExistedGoodType=function(state){
@@ -351,7 +353,12 @@
            });
      }
      this.modelMove = function () {
         for (var wrkMast of this.wrkTasks) {
            console.log(wrkMast)
            let crnBody = getArrVal(this.objects, "name", wrkMast.crnNo + "-body");
            console.log(crnBody.position);
         }
      }
   },