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 @@ + + + + + \ 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 @@ + + + + + \ 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