对比新文件 |
| | |
| | | <template> |
| | | <div> |
| | | <el-form :inline="true" :model="dataForm" ref="dataFormRef" v-model="dialogVisible"> |
| | | <el-form-item> |
| | | <span>全级浮沉数据表</span><span>【{{dataForm.fullCode}}】</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" @click="exportExcel()">导出</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table |
| | | ref="table" |
| | | v-loading="dataListLoading" |
| | | :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 prop="zl" label="重量(kg)" header-align="center" align="center"/> |
| | | <el-table-column prop="cl" label="产率(%)" header-align="center" align="center"/> |
| | | <el-table-column prop="hf" label="灰分(%)" header-align="center" align="center"/> |
| | | <el-table-column prop="lf" label="硫分(%)" header-align="center" align="center"/> |
| | | <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> |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import * as AnalysisDetApi from '@/api/xmcpms/coal-quality/analysis/full/full-det' |
| | | |
| | | const dialogVisible = ref(false) // 弹窗的是否展示 |
| | | const message = useMessage() // 消息弹窗 |
| | | const dataFormRef = ref() |
| | | const dataForm = reactive({ |
| | | fullId: 1, |
| | | fullCode: 10 |
| | | }) |
| | | |
| | | const open = async (row) => { |
| | | dialogVisible.value = true |
| | | dataForm.fullCode = row.fullCode |
| | | dataForm.fullId = row.code |
| | | } |
| | | |
| | | defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |
| | | |
| | | </script> |