From 5be9679fb4288936b576cf3d1f1548af1c4151b8 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 21 七月 2025 15:31:21 +0800
Subject: [PATCH] 2025.7.21 任务管理-监管地图功能(待完成)
---
src/views/fysp/support/JingAnNightConstruction.vue | 90 ++++++++++++++++++++++++++++++++++++--------
1 files changed, 73 insertions(+), 17 deletions(-)
diff --git a/src/views/fysp/support/JingAnNightConstruction.vue b/src/views/fysp/support/JingAnNightConstruction.vue
index 79089b0..d8c5b2e 100644
--- a/src/views/fysp/support/JingAnNightConstruction.vue
+++ b/src/views/fysp/support/JingAnNightConstruction.vue
@@ -1,32 +1,60 @@
<template>
<FYTable @search="onSearch">
- <template #options>
-
- </template>
+ <template #options> </template>
- <template #buttons>
-
- </template>
+ <template #buttons> </template>
<template #table-column>
- <el-table-column fixed="left" sortable prop="ncNum" label="缂栧彿" width="80">
+ <el-table-column
+ fixed="left"
+ sortable
+ prop="ncNum"
+ label="缂栧彿"
+ width="100"
+ >
</el-table-column>
<el-table-column
fixed="left"
- prop="name"
- label="鍚嶇О"
+ prop="ncItemName"
+ label="椤圭洰鍚嶇О"
:show-overflow-tooltip="true"
width="400"
>
</el-table-column>
- <el-table-column prop="type" label="绫诲瀷" width="130" />
- <el-table-column prop="provincename" label="鐪�" width="90" />
- <el-table-column prop="cityname" label="甯�" width="90" />
- <el-table-column prop="districtname" label="鍖哄幙" width="90" />
- <el-table-column prop="townname" label="琛楅亾" width="110" />
- <el-table-column prop="location" label="鍦板潃" min-width="400" />
- <el-table-column prop="longitude" label="缁忓害" width="110" />
- <el-table-column prop="latitude" label="绾害" width="110" />
+ <!-- <el-table-column prop="ncItemUnit" label="涓氫富鍗曚綅" width="130" /> -->
+ <!-- <el-table-column prop="ncProvinceName" label="鐪�" width="90" />
+ <el-table-column prop="ncCityName" label="甯�" width="90" /> -->
+ <!-- <el-table-column prop="ncDistrictName" label="鍖哄幙" width="90" /> -->
+ <!-- <el-table-column prop="townname" label="琛楅亾" width="110" /> -->
+ <el-table-column
+ prop="ncConstructionUnit"
+ label="鏂藉伐鍗曚綅"
+ min-width="100"
+ />
+ <el-table-column prop="ncPerson" label="鐢宠浜�" width="110" />
+ <el-table-column prop="ncApplyContent" label="鐢宠鍐呭" width="110" />
+ <el-table-column prop="ncStartDate" label="宸ユ湡寮�濮�" width="110">
+ <template #default="{ row }">
+ {{ $fm.formatYMD(row.ncStartDate) }}
+ </template>
+ </el-table-column>
+ <el-table-column prop="ncEndDate" label="宸ユ湡缁撴潫" width="110">
+ <template #default="{ row }">
+ {{ $fm.formatYMD(row.ncEndDate) }}
+ </template>
+ </el-table-column>
+ <!-- <el-table-column prop="ncCreateTime" label="鐢宠鏃堕棿" width="110" >
+ <template #default="{row}">
+ {{ $fm.formatYMD(row.ncCreateTime) }}
+ </template>
+ </el-table-column> -->
+ <el-table-column prop="ncUserId" label="鍖归厤鐢ㄦ埛" width="110">
+ <template #default="{ row }">
+ <el-text v-loading="row._loading">{{
+ row._user ? row._user.realName : '鏈尮閰�'
+ }}</el-text>
+ </template>
+ </el-table-column>
<el-table-column fixed="right" label="鎿嶄綔" width="160">
<template #default="scope">
<el-button
@@ -49,5 +77,33 @@
</FYTable>
</template>
<script setup>
+import { ref } from 'vue';
import nightConstructionApi from '@/api/fysp/nightConstructionApi';
+import userApi from '@/api/fysp/userApi';
+
+const data = ref([]);
+
+function onSearch(page, callback) {
+ return nightConstructionApi
+ .fetchRecord({
+ cityCode: '3100',
+ districtCode: '310106',
+ page: page.currentPage,
+ perPage: page.pageSize
+ })
+ .then((res) => {
+ if (res.success) {
+ res.data.forEach((d) => {
+ res.data._loading = true;
+ userApi.getUserById(d.ncUserId).then((res1) => {
+ res.data._user = res1;
+ });
+ });
+ callback({
+ data: res.data,
+ total: res.head.totalCount
+ });
+ }
+ });
+}
</script>
--
Gitblit v1.9.3