浏览代码

3dModeling buildingCreate.js 张婷 commit at 2021-01-08

张婷 4 年之前
父节点
当前提交
b89efd1095
共有 1 个文件被更改,包括 29 次插入0 次删除
  1. 29 0
      3dModeling/zhhry12/buildingCreate.js

+ 29 - 0
3dModeling/zhhry12/buildingCreate.js

@@ -469,3 +469,32 @@ function queryDeviceStatus(evt) {
         obj.style.color = '#FF0000'
         obj.style.opacity = 0.5 + 0.5 * Math.sin(2 * app.elapsedTime / 500);
     }, '每帧改变透明度');
+}
+function reset(objArray) {
+    objArray.forEach(function (obj) {
+        obj.style.opacity = 1.0;
+        obj.style.color = null;
+        obj.off('update', null, '每帧改变透明度');
+    })
+}
+var timer = null;
+function getTabledata(d) {
+    var ygArray = [];
+    d.forEach(function (d) {
+        var deviceInfo = {
+            "设备编号": d.ownerCode,
+            "设备名称": d.ownerName,
+            "安装位置": d.unitinfo,
+        };
+        ygArray.push(deviceInfo)
+    })
+    // 表格数据//创建对象 book
+    var tableData = {
+
+        // 列标题
+        props: ['设备编号', '设备名称', '安装位置'],
+        // 列数据
+        items: ygArray
+    };
+    return tableData;
+}