|
|
@@ -65,6 +65,13 @@
|
|
|
<ContentWrap ref="tableContainerRef">
|
|
|
<el-table ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
<el-table-column label="主键id" align="center" prop="id" v-if="false"/>
|
|
|
+ <el-table-column
|
|
|
+ label="创建时间"
|
|
|
+ align="center"
|
|
|
+ prop="createTime"
|
|
|
+ :formatter="dateFormatter"
|
|
|
+ :width="columnWidths.createTime"
|
|
|
+ />
|
|
|
<el-table-column label="施工队伍" align="center" prop="deptName" :width="columnWidths.deptName"/>
|
|
|
<el-table-column label="项目" align="center" prop="contractName" :width="columnWidths.contractName"/>
|
|
|
<el-table-column label="任务" align="center" prop="taskName" :width="columnWidths.taskName"/>
|
|
|
@@ -108,13 +115,7 @@
|
|
|
<el-table-column label="外租设备" align="center" prop="externalRental" :width="columnWidths.externalRental"/>
|
|
|
<el-table-column label="故障情况" align="center" prop="malfunction" :width="columnWidths.malfunction"/>
|
|
|
<el-table-column label="故障误工H" align="center" prop="faultDowntime" :width="columnWidths.faultDowntime"/>
|
|
|
- <el-table-column
|
|
|
- label="创建时间"
|
|
|
- align="center"
|
|
|
- prop="createTime"
|
|
|
- :formatter="dateFormatter"
|
|
|
- :width="columnWidths.createTime"
|
|
|
- />
|
|
|
+
|
|
|
<el-table-column label="操作" align="center" min-width="120px" fixed="right">
|
|
|
<template #default="scope">
|
|
|
<el-button
|
|
|
@@ -156,6 +157,7 @@ import download from '@/utils/download'
|
|
|
import { IotRdDailyReportApi, IotRdDailyReportVO } from '@/api/pms/iotrddailyreport'
|
|
|
import IotRdDailyReportForm from './IotRdDailyReportForm.vue'
|
|
|
import {DICT_TYPE} from "@/utils/dict";
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
|
/** 瑞都日报 列表 */
|
|
|
@@ -167,6 +169,9 @@ const { push } = useRouter() // 路由跳转
|
|
|
const loading = ref(true) // 列表的加载中
|
|
|
const list = ref<IotRdDailyReportVO[]>([]) // 列表的数据
|
|
|
const total = ref(0) // 列表的总页数
|
|
|
+
|
|
|
+const route = useRoute() // 路由信息
|
|
|
+
|
|
|
const queryParams = reactive({
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
|
@@ -437,6 +442,10 @@ let resizeObserver: ResizeObserver | null = null;
|
|
|
|
|
|
/** 初始化 **/
|
|
|
onMounted(() => {
|
|
|
+ // 检查是否有路由参数传递过来的 wellName
|
|
|
+ if (route.query.wellName) {
|
|
|
+ queryParams.taskName = route.query.wellName as string
|
|
|
+ }
|
|
|
getList()
|
|
|
// 创建 ResizeObserver 监听表格容器尺寸变化
|
|
|
if (tableContainerRef.value?.$el) {
|