| | |
| | | :auto-upload="false" |
| | | > |
| | | <template #trigger> |
| | | <el-button type="primary" :loading="tableLoading" |
| | | >上传监测数据统计结果</el-button |
| | | > |
| | | <el-button type="primary" :loading="tableLoading">导入文件</el-button> |
| | | </template> |
| | | <template #tip> |
| | | <div> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="drTime" label="时间" width="100"> |
| | | <template #default="{ row }"> |
| | | <span>{{ $fm.formatYMD(row.drTime) }}</span> |
| | | <span>{{ $fm.formatYM(row.drTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="drExceedTimes" label="超标次数"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-button |
| | | type="primary" |
| | | :loading="uploadLoading" |
| | | icon="upload" |
| | | @click="uploadFile" |
| | | >上传统计结果</el-button |
| | | > |
| | | </template> |
| | | <script setup> |
| | | import { ref, reactive, watch, onMounted, getCurrentInstance } from 'vue'; |
| | |
| | | const tableLoading = ref(false); |
| | | const loadTxt = ref(''); |
| | | const tips = ref(''); |
| | | const uploadLoading = ref(false); |
| | | |
| | | const tableRowClassName = ({ row, rowIndex }) => { |
| | | if (row.loading) { |
| | |
| | | } |
| | | |
| | | // 上传统计结果文档 |
| | | function uploadFile() {} |
| | | function uploadFile() { |
| | | monitordataApi.uploadDustDataResult(data.value).then((res) => {}); |
| | | } |
| | | |
| | | onMounted(() => { |
| | | fetchDustDataResult(); |