<template>
|
<el-card shadow="never" class="aui-card--fill">
|
<div class="mod-outDetection-concentrate">
|
<el-form :inline="true" :model="queryParams" >
|
<el-form-item>
|
<el-date-picker
|
v-model="queryParams.ny"
|
type="month"
|
format="yyyy-MM"
|
value-format="yyyy-MM"
|
placeholder="年月"/>
|
</el-form-item>
|
<el-form-item>
|
<el-button @click="getList">
|
<Icon icon="ep:search" class="mr-5px" />
|
查询
|
</el-button>
|
<el-button type="primary" plain @click="openForm('create')">
|
<Icon icon="ep:plus" class="mr-5px" />
|
新增
|
</el-button>
|
<el-button type="warning" plain @click="handleImport">
|
<Icon icon="ep:upload" /> 导出
|
</el-button>
|
</el-form-item>
|
</el-form>
|
<el-table
|
ref="myTable"
|
v-loading="dataListLoading"
|
:data="dataList"
|
border
|
highlight-current-row
|
@selection-change="dataListSelectionChangeHandle"
|
@sort-change="dataListSortChangeHandle"
|
style="width: 100%;">
|
<el-table-column prop="ny" label="年月" header-align="center" align="left"
|
min-width="100"/>
|
<el-table-column prop="mzName" label="煤种" header-align="center" align="center"
|
min-width="120"/>
|
<el-table-column prop="ymdw" label="用煤单位" header-align="center" align="center"
|
min-width="180"/>
|
<el-table-column prop="cpl" label="产品量(t)" header-align="center" align="center"
|
min-width="150"/>
|
<el-table-column label="原煤指标" header-align="center">
|
<el-table-column prop="ymSf" label="Mt%" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="ymHf" label="Ad%" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="ymLf" label="St.d%" header-align="center" align="center"
|
min-width="80"/>
|
</el-table-column>
|
<el-table-column label="精煤指标" header-align="center">
|
<el-table-column prop="jmSf" label="Ad%" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="jmHff" label="Vdaf%" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="jmLf" label="St.d%" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="jmNj" label="GR.I" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="jmJzc" label="胶质层Y" header-align="center" align="center"
|
min-width="80"/>
|
</el-table-column>
|
<el-table-column label="中煤指标" header-align="center">
|
<el-table-column prop="zmHf" label="Ad%" header-align="center" align="center"
|
min-width="80"/>
|
<el-table-column prop="zmLf" label="St.d%" header-align="center" align="center"
|
min-width="80"/>
|
</el-table-column>
|
<el-table-column label=" 矸石指标" header-align="center">
|
<el-table-column prop="gsHf" label="Ad%" header-align="center" align="center"
|
min-width="80"/>
|
</el-table-column>
|
<el-table-column label="操作" fixed="right" header-align="center" align="center" width="120">
|
<template #default="scope">
|
<el-button v-hasPermi="['data:ind-item:update']" link type="primary" @click="openForm('update', scope.row.id)">
|
修改
|
</el-button>
|
<el-button v-hasPermi="['data:ind-item:delete']" link type="danger" @click="handleDelete(scope.row.id)">
|
删除
|
</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
<Pagination
|
v-model:limit="queryParams.pageSize"
|
v-model:page="queryParams.pageNo"
|
:total="total"
|
@pagination="getList"
|
/>
|
</div>
|
</el-card>
|
<WashTargetForm ref="washTargetFormRef" @success="getList" />
|
</template>
|
|
<script lang="ts" setup>
|
import * as WashTargetApi from '@/api/xmcpms/coal-quality/analysis/wash/target'
|
import WashTargetForm from './WashTargetForm.vue'
|
import * as WashCurvesApi from "@/api/xmcpms/coal-quality/analysis/wash-curves";
|
|
const message = useMessage() // 消息弹窗
|
const { t } = useI18n() // 国际化
|
defineOptions({ name: 'Analysis' })
|
const loading = ref(true) // 列表的加载中
|
const total = ref(0) // 列表的总页数
|
const dataList = ref([]) // 字典表格数据
|
const queryFormRef = ref() // 搜索的表单
|
const exportLoading = ref(false)
|
|
const queryParams = reactive({
|
pageNo: 1,
|
pageSize: 10,
|
startTime: '',
|
endTime: '',
|
mz: '',
|
fcfa: ''
|
})
|
|
const getList = async () => {
|
loading.value = true
|
try {
|
const data = await WashTargetApi.getWashTargetPage(queryParams)
|
dataList.value = data.list
|
total.value = data.total
|
} finally {
|
loading.value = false
|
}
|
}
|
|
/** 添加/修改操作 */
|
const washTargetFormRef = ref()
|
const openForm = (type: string, id?: string) => {
|
washTargetFormRef.value.open(type, id)
|
}
|
|
|
/** 删除按钮操作 */
|
const handleDelete = async (id: string) => {
|
try {
|
// 删除的二次确认
|
await message.delConfirm()
|
// 发起删除
|
await WashTargetApi.deleteWashTarget(id)
|
message.success(t('common.delSuccess'))
|
// 刷新列表
|
await getList()
|
} catch {
|
}
|
}
|
|
/** 初始化 **/
|
onMounted(async () => {
|
await getList()
|
})
|
|
</script>
|