zhengkaixin 10 meses atrás
pai
commit
1191420338

+ 9 - 0
apis/pagejs/addressbook.js

@@ -40,3 +40,12 @@ export function networkNoticeList(formData) {
 	})
 	})
 }
 }
 
 
+
+export function oaFileInfoList(formData) {
+	return request({
+		url: '/mobile/oaFileInfo/oaFileInfoList',
+		data: formData,
+		method: 'post',	
+	//	header:{'Content-Type':'application/json'},
+	})
+}

BIN
assets/img/riLine-archive-drawer-line@3x.png


+ 7 - 0
pages.json

@@ -493,6 +493,13 @@
 			{
 			{
 				 
 				 
 			}
 			}
+		},
+		{
+			"path" : "pages/oawork/cabinetFiling",
+			"style" : 
+			{
+				"navigationBarTitleText" : ""
+			}
 		}
 		}
 	],
 	],
 
 

+ 15 - 0
pages/mine/mine.vue

@@ -187,6 +187,21 @@
 				</view>
 				</view>
 			</view>
 			</view>
 			
 			
+			<view class="item"    @click="gotoUrl('pages/oawork/cabinetFiling')">
+				<view class="title">
+					<view class="icon">
+						<img src="../../assets/img/riLine-archive-drawer-line@3x.png" alt="">
+					</view>
+					<view class="text">
+						文件柜
+					</view>
+				</view>
+				<view class="right">
+					<text class="value"></text>
+					<u-icon name="arrow-right" size="32" color="#cccccc"></u-icon>
+				</view>
+			</view>
+			
 			<view class="item"  @click="createSysUser" >
 			<view class="item"  @click="createSysUser" >
 				<view class="title">
 				<view class="title">
 					<view class="icon">
 					<view class="icon">

+ 218 - 0
pages/oawork/cabinetFiling.vue

@@ -0,0 +1,218 @@
+<template>
+	<view>
+		<u-navbar :title="title">
+			<!-- <view class="slot-wrap">
+				<u-icon name="search" 
+				@click="gotoUrl('pages/search/searchResult?type='+listForm.typeId)"
+				size="48" color="#777777"></u-icon>
+			</view>	 -->
+		</u-navbar>
+		
+			<u-popup v-model="show"  height="600"
+			 :closeable="true"
+			 mode="bottom" border-radius="30" >
+					<view class="showInfo">
+						<view class="row">
+							<view class="name">
+								标题
+							</view>
+							<view class="value">
+								{{showInfo.name}}
+							</view>
+						</view>
+						<view class="row" v-if="infoList.length"
+						
+						 >
+							<view class="name">
+								附件
+							</view>
+							<view class="url"  >
+								<view class="urlitem" v-for="(item,i) in infoList"
+								 :key="i"
+								 
+								  @click="downInfo(item)" >
+									{{item.name}}  下载
+								</view>
+							</view>
+						</view>
+						<view class="row" v-else >
+							<u-divider 
+							 :isnone="true" nonetext="未上传附件" 
+							></u-divider>
+						</view>
+					</view>
+			</u-popup>
+			
+		<view class="news">
+			
+			<view class="news-item" v-for="(item,i) in list" 
+			
+			@click="ckInfo(item)" :key="i">
+				<view class="content">
+					<view class="news-title">
+						{{item.name}}
+					</view>
+					<view class="information">
+						<view class="classify">
+							{{item.typeN}}
+						</view>
+						
+						<view class="date">
+							{{substrDate(item.uploadTime)}}
+						</view>
+						
+					</view>
+				</view>
+				
+				<view class="img">
+					
+				</view>
+				
+			</view>
+		   </view>
+		<u-divider  v-if="list.length==recordsTotal"
+		 :isnone="list.length==0" nonetext="没有找到相关内容" 
+		>已经到底了</u-divider>
+	</view>
+</template>
+
+<script>
+	import * as API from '@/apis/pagejs/addressbook.js'
+	
+	export default {
+		data() {
+			return {
+				title:"文件柜",
+				list:[],
+				listForm:{
+					pageIndex:1,
+					// typeId:"",
+					// title:"",
+					pageSize:20,
+				},
+				recordsTotal:0,
+				imgurl:'',
+				show:false,
+				showInfo:{
+					url:"",
+				},
+				
+			}
+		},
+		onLoad(op){
+			// if(op.title){
+			// 	this.title=op.title
+			// }
+			// this.listForm.typeId=op.id
+			this.getList()
+		},
+		onReachBottom() {
+			if (this.list.length < this.recordsTotal) {			
+				this.myLoadmore();
+			}
+		},
+		computed:{
+			infoList(){
+				var url=this.showInfo.url;
+				if(url){
+					
+					return JSON.parse(url)
+				}
+				return []
+			}
+		},
+		methods: {
+			downInfo(item){
+				window.location.href=item.url
+				
+			},
+			ckInfo(item){
+				// var url="/pages/news/articleDetails?id="+id;
+				// uni.navigateTo({
+				// 	url:url
+				// })
+				this.showInfo=item;
+				this.show=true
+			},
+			myLoadmore(){
+				this.listForm.pageIndex += 1;
+				this.getList();
+			},
+			getList(){
+				
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				
+				API.oaFileInfoList(this.listForm).then((res) => {
+					uni.hideLoading();
+					this.list = [
+						...this.list,
+						...res.data.data
+					];
+					this.recordsTotal = res.data.recordsTotal;
+				}).catch(error => {
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+.showInfo{
+	padding: 60rpx;
+	.row{
+		display: flex;
+		font-size: 32rpx;
+		margin-top: 12rpx;
+		.name{
+			margin-right: 16rpx;
+			    white-space: pre;
+			color: #9E9E9E;
+		}
+		.value{
+			 
+			font-size: 36rpx;
+			font-weight: bold;
+		}
+		.url{
+			font-size: 32rpx;
+			color: #00BCD4;
+			.urlitem{
+					margin-bottom: 12rpx;
+			}
+		}
+	}
+	
+}
+
+	/deep/.u-slot-content {
+		display: block;
+		text-align: right !important;
+		margin-right: 16px;
+		color: #333333;
+	}
+.news{
+		.news-item{
+			padding:30rpx;
+			margin: 20rpx;
+			background: #fff;
+			border-radius: 10px;
+			.news-title{
+				font-size: 42rpx;
+				font-weight: bold;
+			}
+			.information{
+				    display: flex;
+				    justify-content: space-between;
+					color: #9E9E9E;
+			}
+		}
+	}
+
+</style>

+ 2 - 1
pages/oawork/noticeList.vue

@@ -172,10 +172,11 @@
 		margin-top: 12rpx;
 		margin-top: 12rpx;
 		.name{
 		.name{
 			margin-right: 16rpx;
 			margin-right: 16rpx;
-			
+			    white-space: pre;
 			color: #9E9E9E;
 			color: #9E9E9E;
 		}
 		}
 		.value{
 		.value{
+			 
 			font-size: 36rpx;
 			font-size: 36rpx;
 			font-weight: bold;
 			font-weight: bold;
 		}
 		}