From c153ae907f066a47bacee224772ff6912d6a07c2 Mon Sep 17 00:00:00 2001
From: weishengyou <2454197255@qq.com>
Date: Wed, 7 Jan 2026 09:43:11 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E5=BB=BA=E8=AE=BE=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=AB=AF=E5=A1=AB=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../communityBuilding/add.vue | 398 +++++++++
api/OneStopCommunity/communityBuilding.js | 8 +
api/affix.js | 90 ++
package.json | 1 +
pages.json | 10 +
.../communityBuilding/add.vue | 766 ++++++++++++++++++
.../communityBuilding/index.vue | 40 +-
7 files changed, 1311 insertions(+), 2 deletions(-)
create mode 100644 Users/9527/Desktop/company/xgxt_sd/zhxg_app/pages/OneStopCommunity/communityBuilding/add.vue
create mode 100644 pages/OneStopCommunity/communityBuilding/add.vue
diff --git a/Users/9527/Desktop/company/xgxt_sd/zhxg_app/pages/OneStopCommunity/communityBuilding/add.vue b/Users/9527/Desktop/company/xgxt_sd/zhxg_app/pages/OneStopCommunity/communityBuilding/add.vue
new file mode 100644
index 0000000..ff44943
--- /dev/null
+++ b/Users/9527/Desktop/company/xgxt_sd/zhxg_app/pages/OneStopCommunity/communityBuilding/add.vue
@@ -0,0 +1,398 @@
+
+
+
+
+ 活动主题
+
+
+
+
+
+ 活动概况
+
+
+
+
+
+ 参与人员类型
+
+
+
+
+ {{ formData.participantType.length > 0
+ ? formData.participantType.join('、')
+ : '请选择参与人员类型' }}
+
+
+
+
+
+
+
+ 主要参加人员名单
+
+
+
+
+
+ 时间
+
+
+
+
+
+ 地点
+
+
+
+
+
+ 服务学生人次
+
+
+
+
+
+
+
+
+
+ 活动图片
+
+ 请上传大小不超过 0.5MB 格式为 png/jpg/jpeg 的文件
+
+
+
+
+ 活动压缩文件
+
+
+
+ {{ file.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/api/OneStopCommunity/communityBuilding.js b/api/OneStopCommunity/communityBuilding.js
index be9e10e..f823602 100644
--- a/api/OneStopCommunity/communityBuilding.js
+++ b/api/OneStopCommunity/communityBuilding.js
@@ -6,4 +6,12 @@ export function listOneStopCommunityConstruction(query) {
method: 'get',
data: query
})
+}
+// 一站式社区模块:社区建设新增
+export function OneStopCommunityConstructionAdd(data) {
+ return request({
+ url: '/staff/oneStopCommunityConstruction/add',
+ method: 'post',
+ data: data
+ })
}
\ No newline at end of file
diff --git a/api/affix.js b/api/affix.js
index a0f3c20..80f7b68 100644
--- a/api/affix.js
+++ b/api/affix.js
@@ -18,4 +18,94 @@ export function deleteAffix (fileId){
data:{id: fileId}
}
)
+}
+
+// 新增:批量上传文件
+export function uploadFiles(data) {
+ return request({
+ url: '/affix/upload',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'multipart/form-data'
+ }
+ })
+}
+
+// 新增:获取文件列表
+export function getFileList(data) {
+ return request({
+ url: '/affix/list',
+ method: 'get',
+ params: data
+ })
+}
+
+export function downloadAll (affixId) {
+ let data = {affixId: affixId}
+
+ return request({
+ url: '/affix/downloadAll',
+ method: 'post',
+ responseType: 'arraybuffer',
+ data
+ })
+}
+
+export function commonUpload (data) {
+ let param = new FormData()
+ for (var p in data) {
+ param.append(p, data[p])
+ }
+ return request({
+ url: '/common/upload',
+ method: 'post',
+ headers: {'Content-Type':'multipart/form-data'},
+ data: param
+ })
+}
+
+export const post = (url, data) => {
+ data = data || {}
+
+
+ return request({
+ url: url,
+ method: 'post',
+ data
+ })
+}
+//附件上传
+export function upload (data) {
+ let param = new FormData()
+ for (var p in data) {
+ param.append(p, data[p])
+ }
+ return request({
+ url: '/affix/upload',
+ method: 'post',
+ headers: {'Content-Type':'multipart/form-data'},
+ data: param
+ })
+}
+
+// 附件下载
+export function download (fileId) {
+ let data = {id: fileId}
+
+ return request({
+ url: '/affix/download',
+ method: 'post',
+ responseType: 'arraybuffer',
+ data
+ })
+}
+
+// 查询附件
+export function queryAffixs (affixId) {
+ return request({
+ url:'/affix/queryItems',
+ method: 'post',
+ data: {affixId: affixId}}
+ )
}
\ No newline at end of file
diff --git a/package.json b/package.json
index b5057d8..f0ba514 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"china-area-data": "^5.0.1",
"dompurify": "^3.2.6",
"markdown-it": "^14.1.0",
+ "uview-ui": "^2.0.38",
"weixin-js-sdk": "^1.6.5"
}
}
diff --git a/pages.json b/pages.json
index ef4a5a0..2c787c7 100644
--- a/pages.json
+++ b/pages.json
@@ -1222,7 +1222,17 @@
"navigationBarBackgroundColor": "#1890FF",
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "pages/OneStopCommunity/communityBuilding/add",
+ "style": {
+ "navigationBarBackgroundColor": "#1890FF",
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "新增社区建设",
+ "navigationBarTextStyle": "white"
+ }
}
+
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/OneStopCommunity/communityBuilding/add.vue b/pages/OneStopCommunity/communityBuilding/add.vue
new file mode 100644
index 0000000..a785635
--- /dev/null
+++ b/pages/OneStopCommunity/communityBuilding/add.vue
@@ -0,0 +1,766 @@
+
+
+
+
+ 活动主题
+
+
+
+
+
+ 活动概况
+
+
+
+
+
+ 参与人员类型
+
+ {{ formData.participantType.length > 0
+ ? formData.participantType.join('、')
+ : '请选择参与人员类型' }}
+
+
+ 点击选择参与人员类型
+
+
+
+
+
+
+
+
+
+
+ ✓
+
+ {{ item.text }}
+
+
+
+
+
+
+
+ 主要参加人员名单
+
+
+
+
+
+ 时间
+
+
+
+
+
+ 地点
+
+
+
+
+
+ 服务学生人次
+
+
+
+
+
+
+
+
+
+ 活动图片
+
+
+
+ 请上传大小不超过 0.5MB 格式为 png/jpg/jpeg 的文件
+
+
+
+
+ 活动压缩文件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/OneStopCommunity/communityBuilding/index.vue b/pages/OneStopCommunity/communityBuilding/index.vue
index 4a3308b..70b5064 100644
--- a/pages/OneStopCommunity/communityBuilding/index.vue
+++ b/pages/OneStopCommunity/communityBuilding/index.vue
@@ -4,6 +4,23 @@
+
+
+
+
+ 新增
+
@@ -114,6 +131,11 @@
this.totalPages = Math.ceil(res.total / this.queryParams.pageSize);
this.topLoading = false;
}
+ },
+ toAdd() {
+ uni.navigateTo({
+ url: "/pages/OneStopCommunity/communityBuilding/add"
+ })
}
},
onLoad() {},
@@ -122,7 +144,7 @@
this.queryParams.pageNum = 1;
this.list = [];
this.getlist();
- },
+ }
}
@@ -144,6 +166,20 @@
background-color: white !important;
}
}
+ .right {
+ position: fixed;
+ top: 40rpx;
+ right: 20rpx;
+ z-index: 11; /* 设置比.search更高的z - index */
+ display: flex;
+ align-items: center;
+
+ .icon {
+ width: 20px;
+ height: 20px;
+ }
+ }
+
.scroll-views {
height: calc(100vh - 10px);
@@ -229,6 +265,6 @@
margin-bottom: 50rpx;
}
}
- }
+ }
}
\ No newline at end of file