提交阶段性预览

This commit is contained in:
Zy
2026-04-20 16:38:04 +08:00
parent d0888c6afb
commit 9f9a88f303
39 changed files with 2987 additions and 194 deletions

View File

@@ -1,10 +1,10 @@
<template>
<div class="p-2">
<div class="h-full flex flex-col p-2">
<PageHeader></PageHeader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
<el-form label-width="100px" ref="queryFormRef" :model="queryParams" :inline="true">
<el-form-item label="巡检点名称" prop="pointName">
<el-input v-model="queryParams.pointName" placeholder="请输入巡检点名称" clearable @keyup.enter="handleQuery" />
</el-form-item>
@@ -17,7 +17,7 @@
</div>
</transition>
<el-card shadow="never">
<el-card class="flex-1" shadow="never">
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
@@ -38,12 +38,19 @@
<el-table v-loading="loading" border :data="pointList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="巡检点名称" align="center" prop="pointName" />
<el-table-column label="巡检项目id" align="center" prop="itemId" />
<el-table-column label="打卡方式9999定位打卡、9998蓝牙打卡、9997NFC打卡" align="center" prop="checkMode" />
<el-table-column label="打卡方式" align="center" prop="checkModeName">
<template #default="scope">
<DictTag :options="com_inspection_point_checkmode" :value="scope.row.checkModeName"></DictTag>
</template>
</el-table-column>
<el-table-column label="巡检点位置" align="center" prop="location" />
<el-table-column label="状态0-开启1-关闭" align="center" prop="status" />
<el-table-column label="添加人" align="center" prop="isCheck" />
<el-table-column label="添加时间" align="center" prop="isCheck" />
<el-table-column label="状态" align="center" prop="status">
<template #default="scope">
<DictTag :options="com_inspection_point_status" :value="scope.row.status"></DictTag>
</template>
</el-table-column>
<el-table-column label="添加人" align="center" prop="createByName" />
<el-table-column label="添加时间" align="center" prop="createTime" />
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="修改" placement="top">
@@ -67,6 +74,8 @@ import { listPoint, getPoint, delPoint, addPoint, updatePoint } from '@/api/syst
import { PointVO, PointQuery, PointForm } from '@/api/system/InspectionPoint/type';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_inspection_point_status } = toRefs<any>(proxy?.useDict('com_inspection_point_status'));
const { com_inspection_point_checkmode } = toRefs<any>(proxy?.useDict('com_inspection_point_checkmode'));
const pointList = ref<PointVO[]>([]);
const buttonLoading = ref(false);
@@ -219,3 +228,9 @@ onMounted(() => {
getList();
});
</script>
<style lang="scss" scoped>
.el-table {
height: calc(100% - 80px);
}
</style>