Преглед на файлове

feat(设备运行监控): 新增设备运行监控页面,包含状态分类标签页和详细参数表格

yusheng преди 5 месеца
родител
ревизия
7aa4aff803
променени са 2 файла, в които са добавени 217 реда и са изтрити 4 реда
  1. 206 0
      src/views/equipmentOperationMonitoring/index.vue
  2. 11 4
      src/views/maintenance/repair/planRepair/index.vue

+ 206 - 0
src/views/equipmentOperationMonitoring/index.vue

@@ -0,0 +1,206 @@
+<template>
+  <div class="ele-body">
+    <el-card shadow="never" v-loading="loading">
+      <el-tabs v-model="activeName" type="card">
+        <el-tab-pane label="全部" name="all"></el-tab-pane>
+        <el-tab-pane label="占用" name="1"></el-tab-pane>
+        <el-tab-pane label="巡点检" name="2"></el-tab-pane>
+        <el-tab-pane label="保养" name="3"></el-tab-pane>
+        <el-tab-pane label="故障" name="4"></el-tab-pane>
+        <el-tab-pane label="维修" name="5"></el-tab-pane>
+        <el-tab-pane label="空闲" name="6"></el-tab-pane>
+      </el-tabs>
+      <seekPage style="margin-top: 10px;" :seekList="seekList" :formLength="3"></seekPage>
+      <!-- 数据表格 -->
+      <ele-pro-table
+        ref="table"
+        :columns="columns"
+        :datasource="datasource"
+        cache-key="systemRoleTable"
+      >
+      </ele-pro-table>
+    </el-card>
+  </div>
+</template>
+
+<script>
+  import dictMixins from '@/mixins/dictMixins';
+  export default {
+    mixins: [dictMixins],
+    components: {},
+    data() {
+      return {
+        activeName: 'all',
+        // 表格列配置
+        columns: [
+          {
+            columnKey: 'index',
+            label: '序号',
+            type: 'index',
+            width: 55,
+            align: 'center',
+            showOverflowTooltip: true,
+            fixed: 'left'
+          },
+          {
+            prop: 'status',
+            label: '分类',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status1',
+            label: '权属部门',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'statu2s',
+            label: '设备名称',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status3',
+            label: '设备编号',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status4',
+            label: '状态',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status5',
+            label: '监测时间',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status6',
+            label: '蒸汽出口压力',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status8',
+            label: '蒸汽出口干度',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status9',
+            label: '热能交换器进口压力',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status10',
+            label: '热能交换器出口压力',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status11',
+            label: '热能交换器出口温度',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status12',
+            label: '给水泵入口压力',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status13',
+            label: '给水泵出口压力',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status14',
+            label: '高温过热器温度',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status15',
+            label: '返料器温度',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status16',
+            label: '排烟温度',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status17',
+            label: '水量',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
+          {
+            prop: 'status18',
+            label: '注汽量',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          }
+        ],
+        seekList: [
+          {
+            label: '关键字:',
+            value: 'searchName',
+            type: 'input',
+            placeholder: '编码/名称'
+          },
+          {
+            label: '权属部门:',
+            value: 'codeOrSerialNo',
+            type: 'input',
+            placeholder: '请输入'
+          },
+          {
+            label: '状态',
+            value: 'name',
+            type: 'input',
+            placeholder: '请输入'
+          }
+        ]
+        // 加载状态
+      };
+    },
+    computed: {},
+    created() {},
+    methods: {
+      /* 表格数据源 */
+      datasource({ page, limit, where, order }) {
+        return [];
+      }
+    }
+  };
+</script>
+
+<style lang="scss" scoped></style>

+ 11 - 4
src/views/maintenance/repair/planRepair/index.vue

@@ -48,6 +48,16 @@
           >
             编辑
           </el-link> -->
+          <el-link
+            v-if="
+              row.planStatus == 4 || row.planStatus == 0 || row.planStatus == 5
+            "
+            type="primary"
+            :underline="false"
+            @click="openAdd('派单', row)"
+          >
+            派单
+          </el-link>
           <el-popconfirm
             class="ele-action"
             title="确认撤销这条报修记录吗?"
@@ -66,10 +76,7 @@
     <!-- 详情 -->
     <DetailDialog ref="detailDialogRef" />
     <!-- 新建或编辑弹窗 -->
-    <planRepaireDialog
-      ref="planRepaireDialog"
-      @done="reload"
-    />
+    <planRepaireDialog ref="planRepaireDialog" @done="reload" />
   </div>
 </template>