Sfoglia il codice sorgente

设备历史数据

chrislee 6 mesi fa
parent
commit
7d0e8e8680
1 ha cambiato i file con 270 aggiunte e 0 eliminazioni
  1. 270 0
      src/views/modules/device/device-history.vue

+ 270 - 0
src/views/modules/device/device-history.vue

@@ -368,6 +368,276 @@
           <span v-for="item in scope.row.points" v-if="item.name==='ServoLoad6'">{{ item.value }}</span>
         </template>
       </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="设备运行模式">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='RunMode'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="设备运行状态">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='RunStatus'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="当前刀具号">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CulToolNum'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="设备急停状态">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='EmergencyStop'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="G代码状态">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='GCodeStatus'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="累计生产件数">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='ProductCounts'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第一轴机械坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='MacPos1'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第二轴机械坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='MacPos2'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第三轴机械坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='MacPos3'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第四轴机械坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='MacPos4'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第五轴机械坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='MacPos5'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第六轴机械坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='MacPos6'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第一轴工件坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='WorkPos1'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第二轴工件坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='WorkPos2'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第三轴工件坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='WorkPos3'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第四轴工件坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='WorkPos4'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第五轴工件坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='WorkPos5'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第六轴工件坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='WorkPos6'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第一轴当前(相对)坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CurrentPos1'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第二轴当前(相对)坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CurrentPos2'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第三轴当前(相对)坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CurrentPos3'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第四轴当前(相对)坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CurrentPos4'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第五轴当前(相对)坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CurrentPos5'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第六轴当前(相对)坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='CurrentPos6'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第一轴剩余坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='DistancePos1'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第二轴剩余坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='DistancePos2'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第三轴剩余坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='DistancePos3'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第四轴剩余坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='DistancePos4'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第五轴剩余坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='DistancePos5'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        min-width="100"
+        label="第六轴剩余坐标">
+        <template slot-scope="scope">
+          <span v-for="item in scope.row.points" v-if="item.name==='DistancePos6'">{{ item.value }}</span>
+        </template>
+      </el-table-column>
     </el-table>
     <el-pagination
       @size-change="sizeChangeHandle"