From efc5227c4292de6943b99de767444c1287e185cd Mon Sep 17 00:00:00 2001
From: huangchenhao <123673748@qq.com>
Date: Thu, 6 Nov 2025 14:58:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=B0=E9=9B=AA=E4=B8=93=E9=A2=98PC=20?=
=?UTF-8?q?=E5=86=B0=E9=9B=AA=E4=BA=8B=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/SnowEventManagement/addDialog.vue | 74 +++++++++++++++++++
.../SnowEventManagement/detailDialog.vue | 63 ++++++++++++++++
.../views/SnowEventManagement/editDialog.vue | 73 ++++++++++++++++++
.../src/views/SnowEventManagement/index.js | 58 ++++++++-------
.../src/views/SnowEventManagement/index.vue | 3 +
5 files changed, 244 insertions(+), 27 deletions(-)
create mode 100644 packages/screen/src/views/SnowEventManagement/addDialog.vue
create mode 100644 packages/screen/src/views/SnowEventManagement/detailDialog.vue
create mode 100644 packages/screen/src/views/SnowEventManagement/editDialog.vue
diff --git a/packages/screen/src/views/SnowEventManagement/addDialog.vue b/packages/screen/src/views/SnowEventManagement/addDialog.vue
new file mode 100644
index 0000000..8930a37
--- /dev/null
+++ b/packages/screen/src/views/SnowEventManagement/addDialog.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/screen/src/views/SnowEventManagement/detailDialog.vue b/packages/screen/src/views/SnowEventManagement/detailDialog.vue
new file mode 100644
index 0000000..f5575ad
--- /dev/null
+++ b/packages/screen/src/views/SnowEventManagement/detailDialog.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/screen/src/views/SnowEventManagement/editDialog.vue b/packages/screen/src/views/SnowEventManagement/editDialog.vue
new file mode 100644
index 0000000..a4bceed
--- /dev/null
+++ b/packages/screen/src/views/SnowEventManagement/editDialog.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/screen/src/views/SnowEventManagement/index.js b/packages/screen/src/views/SnowEventManagement/index.js
index b8ebe01..dd9cd83 100644
--- a/packages/screen/src/views/SnowEventManagement/index.js
+++ b/packages/screen/src/views/SnowEventManagement/index.js
@@ -1,9 +1,9 @@
import { h, ref, onMounted, reactive, watch, toRaw, nextTick } from "vue";
import { request } from "@/utils/request";
import { Search } from "@element-plus/icons-vue";
-// import DetailDialog from "./detailDialog.vue";
-// import EditDialog from "./editDialog.vue";
-// import AddDialog from "./addDialog.vue";
+import DetailDialog from "./detailDialog.vue";
+import EditDialog from "./editDialog.vue";
+import AddDialog from "./addDialog.vue";
import { useRoute } from 'vue-router'
const treeData = ref([]);
@@ -132,7 +132,7 @@ const handleNodeClick = (data, node) => {
}
};
-// 获取养护站冰雪事件列表
+// 获取冰雪事件列表
const getyhzeventList = async (qxmc, yhzid, filterData) => {
try {
const data = {
@@ -166,45 +166,49 @@ const getyhzeventList = async (qxmc, yhzid, filterData) => {
const columns = [
{
- prop: 'wzmc',
- label: '物资名称',
+ prop: 'occurLocation',
+ label: '发生地点',
},
{
- prop: 'ye',
- label: '余量',
+ prop: 'routeNo',
+ label: '线路编号',
},
{
- prop: 'rkdw',
- label: '入库单位',
+ prop: 'occurTime',
+ label: '发生时间',
},
{
- prop: 'rkrq',
- label: '入库日期',
+ prop: 'startStakeNo',
+ label: '起点桩号',
},
{
- prop: 'sl',
- label: '数量',
+ prop: 'endStakeNo',
+ label: '止点桩号',
},
{
- prop: 'dw',
- label: '单位',
+ prop: 'disasterMileage',
+ label: '受灾里程(公里)',
},
{
- prop: 'cfdd',
- label: '存放地点',
+ prop: 'expectRecoverTime',
+ label: '预计恢复时间',
},
{
- prop: 'fzr',
- label: '负责人',
+ prop: 'actualRecoverTime',
+ label: '实际恢复时间',
},
{
- prop: 'lxdh',
- label: '联系电话',
+ prop: 'serviceStationId',
+ label: '所属服务站',
},
{
- prop: 'qxmc',
+ prop: 'district',
label: '所属区县',
},
+ {
+ prop: 'reportTime',
+ label: '填报时间',
+ },
{
label: "操作",
fixed: "right",
@@ -296,19 +300,19 @@ const handleEdit = async () => {
}
};
-// 获取养护站物资详情
+// 获取冰雪事件详情
const getDetailData = async (row) => {
try {
const res = await request({
- url: `/snow-ops-platform/yjwz/getById?rid=${row.rid}`,
+ url: `/snow-ops-platform/event/getById?id=${row.id}`,
method: 'GET',
});
if (!res || res.code !== '00000') {
- throw new Error('获取物资详情失败')
+ throw new Error('获取事件详情失败')
}
if (res.code === '00000') {
if (dialogType.value === 'detail') {
- model.title = `物资详情`;
+ model.title = `事件详情`;
model.content = DetailDialog;
model.props = {
detailData: res.data,
diff --git a/packages/screen/src/views/SnowEventManagement/index.vue b/packages/screen/src/views/SnowEventManagement/index.vue
index a4bbed8..1e50d0d 100644
--- a/packages/screen/src/views/SnowEventManagement/index.vue
+++ b/packages/screen/src/views/SnowEventManagement/index.vue
@@ -36,6 +36,9 @@