From d00d85e54ff65750f0c9a097ec4b644866ad1ffa Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 27 六月 2025 17:29:43 +0800
Subject: [PATCH] 静安夜施管理功能(待完成)
---
src/views/fysp/night-construction/NightConstruction.vue | 6 +++
src/views/fysp/support/JingAnNightConstruction.vue | 90 ++++++++++++++++++++++++++++++++++++--------
src/views/fysp/scene/SceneInspectFile.vue | 9 +++-
3 files changed, 85 insertions(+), 20 deletions(-)
diff --git a/src/views/fysp/night-construction/NightConstruction.vue b/src/views/fysp/night-construction/NightConstruction.vue
index e69de29..3f29d3f 100644
--- a/src/views/fysp/night-construction/NightConstruction.vue
+++ b/src/views/fysp/night-construction/NightConstruction.vue
@@ -0,0 +1,6 @@
+<template>
+
+</template>
+<script setup>
+
+</script>
\ No newline at end of file
diff --git a/src/views/fysp/scene/SceneInspectFile.vue b/src/views/fysp/scene/SceneInspectFile.vue
index 3e1d912..2f0e860 100644
--- a/src/views/fysp/scene/SceneInspectFile.vue
+++ b/src/views/fysp/scene/SceneInspectFile.vue
@@ -153,14 +153,17 @@
district: v.scense.districtname,
name: setParam(v.scense.name, 57),
employerUnit: setParam(v.scense.csEmployerUnit, 30),
- constructionUnit: setParam(v.subScene.csConstructionUnit, 36),
+ constructionUnit: setParam(
+ v.subScene ? v.subScene.csConstructionUnit : '',
+ 36
+ ),
timeRange: setParam(
- v.subScene.csStartTime
+ v.subScene && v.subScene.csStartTime
? `${v.subScene.csStartTime}鑷�${v.subScene.csEndTime}`
: '',
26
),
- stage: setParam(v.subScene.siExtension1, 36),
+ stage: setParam(v.subScene ? v.subScene.siExtension1 : '', 36),
contacts: setParam(v.scense.contacts, 27),
contactsTel: setParam(v.scense.contactst, 40),
location: setParam(v.scense.location, 27)
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