#
luxiaotao1123
2021-12-13 4b3467e05cb0e2b68bc3e8ef08827e9e874562c8
static/js/app.js
@@ -14,6 +14,7 @@
      this.firstTime = 1;
      this.stats = null;
      this.goodTypes=[];//存储所有的库位类型
      this.wrkNo = 0;
      this.start = function () {
         this.initMain();
@@ -37,7 +38,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 +264,9 @@
      this.queryTask = function () {
         if (this.firstTime === 1) {
            queryTaskCurrent();
            console.log(TaskData);
            if (this.wrkNo !== TaskData.wrkNo) {
               this.wrkNo = TaskData.wrkNo;
            }
         }
      }
      this.getExistedGoodType=function(state){
@@ -351,7 +354,9 @@
            });
      }
      this.modelMove = function () {
         // console.log(1)
         let crnBody = getArrVal(this.objects, "name", "1-body");
         console.log(crnBody.position)
      }
   },