选煤厂生产管理平台前端代码
Jay
2024-12-10 58a8ee8eebcf13656445486333d2d3f3e02c938f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
  <div class="mod-analysis-full-det">
    <el-form :inline="true" :model="formData">
      <el-form-item>
        <span>原煤化验数据表</span><span>【{{formData.curvesCode}}】</span>
      </el-form-item>
      <el-form-item>
        <el-button size="mini" @click="getDataList()">刷新</el-button>
      </el-form-item>
      <el-form-item>
        <el-button size="mini" type="primary" @click="drawWashCurves()">可选性曲线</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="warning" plain @click="handleImport">
          <Icon icon="ep:upload" />导出
        </el-button>
      </el-form-item>
    </el-form>
    <el-table
        ref="table"
        v-loading="loading"
        :data="dataList"
        border
        height="300"
        >
      <el-table-column prop="code" label="流水号" header-align="center" align="center"
                       width="140"/>
      <el-table-column prop="mdjName" label="密度级" header-align="center"
                       align="center"/>
      <el-table-column label="综合累计" header-align="center">
        <el-table-column prop="zhljcl" label="产率(%)" header-align="center"
                         align="center"/>
        <el-table-column prop="zhljhf" label="灰分(%)" header-align="center"
                         align="center"/>
      </el-table-column>
      <el-table-column label="浮物累计" header-align="center" >
        <el-table-column prop="fwljcl" label="产率(%)" header-align="center"
                         align="center"/>
        <el-table-column prop="fwljhf" label="灰分(%)" header-align="center"
                         align="center"/>
      </el-table-column>
      <el-table-column label="沉物累计" header-align="center" >
        <el-table-column prop="cwljcl" label="产率(%)" header-align="center"
                         align="center"/>
        <el-table-column prop="cwljhf" label="灰分(%)" header-align="center"
                         align="center"/>
      </el-table-column>
      <el-table-column prop="md" label="密度" header-align="center" align="center" />
      <el-table-column prop="hl" label="±0.1含量" header-align="center" align="center" />
      <el-table-column prop="lf" label="硫分(%)" header-align="center" align="center" />
    </el-table>
  </div>
</template>
<script lang="ts" setup>
  import * as WashCurvesDetApi from '@/api/xmcpms/coal-quality/analysis/wash-curves/wash-curves-det'
 
  const message = useMessage() // 消息弹窗
  const loading = ref(false) // 列表的加载中
  const formDataRef = ref()
  const formData = ref({
    curvesId: undefined,
    curvesCode: '',
    fcfa: ''
  })
  const dataList = ref()
  const open = async (row) => {
    formData.value.curvesId = row.id
    formData.value.curvesCode = row.code
    dataList.value = await WashCurvesDetApi.getWashCurvesDet(row.id)
  }
  defineExpose({ open }) // 提供 open 方法,用于打开弹窗
 
  const emits = defineEmits(['drawWashCurves'])
  const drawWashCurves = () => {
    emits('drawWashCurves')
  }
 
</script>