baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+254
@@ -0,0 +1,254 @@
|
||||
<template>
|
||||
<view class="page" style="display: flex;flex-direction: column;">
|
||||
<view class="msg" v-for="(item,index) in list" :key='index' @click="Detail(index)">
|
||||
<view class="my-body">
|
||||
<view>
|
||||
<!-- <image v-if="item.FISREAD!='True'" class="dot" src="../../../static/home/dot.png"/> -->
|
||||
<text :class="[(item.FISREAD=='True')?'dot-text-read':'dot-text-notread']">{{item.FTitle}}</text>
|
||||
</view>
|
||||
<!-- <text v-if="item.FISREAD=='True'" class="dot-text-read">已读</text> -->
|
||||
<!-- <text v-else class="dot-text-notread">未读</text> -->
|
||||
</view>
|
||||
<view class="detail">{{item.FContent}}</view>
|
||||
<!-- <view class="sender">{{item.FFROMUSER}}</view> -->
|
||||
<!-- <view class="time">{{item.FDATETIME}}</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
import errorUtil from '@/common/errorutil.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orgid:'',
|
||||
list:[],
|
||||
pageIndex:1,
|
||||
pageSize:20,
|
||||
showTips:false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
onLoad() {
|
||||
this.getInfo(1, this.pageSize);
|
||||
this.pageIndex = 1;
|
||||
},
|
||||
onShow() {
|
||||
this.list = uni.getStorageSync('infoList')
|
||||
},
|
||||
onPullDownRefresh:function(){
|
||||
this.showTips = false;
|
||||
this.getInfo(1, this.pageSize);
|
||||
setTimeout(()=>{
|
||||
//停止下拉样式
|
||||
uni.stopPullDownRefresh();
|
||||
//隐藏标题读取
|
||||
uni.hideNavigationBarLoading();
|
||||
},
|
||||
500);
|
||||
},
|
||||
|
||||
onReachBottom:function(){
|
||||
if(!this.showTips) {
|
||||
this.getInfo(this.pageIndex, this.pageSize);
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '已经到底了'
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getInfo(index,size){
|
||||
let _self = this;
|
||||
let loginId = uni.getStorageSync('loginId')
|
||||
this.pageIndex = index;
|
||||
let requestParams;
|
||||
|
||||
this.$request.get('ReportInfoLoad/GetReportMessage',{
|
||||
params:{
|
||||
loginId:loginId,
|
||||
page:this.pageIndex,
|
||||
size:size
|
||||
}
|
||||
}).then(res => {
|
||||
let datalist = res.reportMessage;
|
||||
if(this.pageIndex == 1) {
|
||||
this.list = datalist;
|
||||
this.pageIndex = this.pageIndex+1;
|
||||
}else {
|
||||
if(datalist.length != 0) {
|
||||
let newArray = this.list.concat(datalist);
|
||||
this.list = newArray;
|
||||
this.pageIndex = this.pageIndex+1;
|
||||
if(datalist.length < 6) {
|
||||
_self.showTips = true;
|
||||
}
|
||||
} else {
|
||||
_self.showTips = true;
|
||||
}
|
||||
}
|
||||
|
||||
}).catch(err => {
|
||||
errorUtil.handle(err);
|
||||
});
|
||||
|
||||
},
|
||||
Detail:function(data){
|
||||
let _self = this;
|
||||
|
||||
let Data = new Date();
|
||||
let curDate = Data.getFullYear()+"-"+(Data.getMonth()+1)+"-"+Data.getDate()
|
||||
+" "+Data.getHours()+":"+Data.getMinutes()+":"+Data.getSeconds();
|
||||
let curIndex = data;
|
||||
if(this.list[curIndex].FISREAD){
|
||||
return;
|
||||
}else{
|
||||
let readList = "";
|
||||
this.list.forEach(
|
||||
function(el,index){
|
||||
if(curIndex == index){
|
||||
el.FISREAD = true;
|
||||
readList = el.FINTERID;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
let requestParams;
|
||||
this.$request.get('/SysMessage/UpdateMessageStatus',{
|
||||
params:{
|
||||
fInterid:readList
|
||||
}
|
||||
}).then(res => {
|
||||
let datalist = res;
|
||||
}).catch(err => {
|
||||
errorUtil.handle(err);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page{
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
view{
|
||||
display: flex;
|
||||
}
|
||||
.msg{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 43.47rpx;
|
||||
margin-right: 43.47rpx;
|
||||
margin-top: 43.47rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 9.05rpx;
|
||||
}
|
||||
.my-body{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
height: 39.85rpx;
|
||||
line-height: 39.85rpx;
|
||||
margin-top: 21.73rpx;
|
||||
/* margin-bottom: 14.49rpx; */
|
||||
background: #FFFFFF;
|
||||
border-radius: 9.05rpx;
|
||||
font-size: 16px;
|
||||
}
|
||||
.dot{
|
||||
height: 10.86rpx;
|
||||
width: 10.86rpx;
|
||||
background: #E24848;
|
||||
border-radius: 50%;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.dot-text-read{
|
||||
margin-right: 21.73rpx;
|
||||
color: #232323;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
max-width: 70%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
.dot-text-notread{
|
||||
margin-right: 21.73rpx;
|
||||
color: #4688FD;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
max-width: 70%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
.end{
|
||||
height: 32.6rpx;
|
||||
width: 32.6rpx;
|
||||
margin-right: 21.73rpx;
|
||||
}
|
||||
.my-body view{
|
||||
margin-left: 21.73rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #4688FD;
|
||||
}
|
||||
.detail{
|
||||
padding: 0 21.73rpx;
|
||||
margin-top: 14.49rpx;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #585858;
|
||||
}
|
||||
.sender{
|
||||
margin-left: 21.73rpx;
|
||||
margin-top: 14.49rpx;
|
||||
width: 100%;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #585858;
|
||||
}
|
||||
.time{
|
||||
margin-left: 21.73rpx;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #838383;
|
||||
margin-top: 14.49rpx;
|
||||
margin-bottom: 21.73rpx;
|
||||
}
|
||||
|
||||
.list-title{
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
margin-right: 5%;
|
||||
/* 文字不换行 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; //文本不换行,这样超出一行的部分被截取,显示...
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in new issue
Block a user