baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
@@ -0,0 +1,910 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="search">
|
||||
<view class="search-type-select" @click="sourceSelClick" style="width: 280rpx;">
|
||||
<view class="uni-input">
|
||||
<view class="uni-input-text">{{sourceSelected}}</view>
|
||||
<image src="../../../static/report/arrow_down.png" style="height: 32rpx;width: 32rpx;flex-shrink: 0;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<input class="search-input" placeholder="搜索……" placeholder-class="search-placeholder"
|
||||
v-model="sourceCode" @confirm="searchClick"></input>
|
||||
<image class="search-img" src="../../../static/report/scan_gray.png" @click="scanSearch"></image>
|
||||
</view>
|
||||
<view class="bottom-select" v-if="showSourceList">
|
||||
<view class="bottom-select-head">
|
||||
<view class="bottom_select-head-cancel" @click="sourceSelCancelClick">取消</view>
|
||||
<view class="bottom_select-head-confirm" @click="sourceSelConfirmClick">确定</view>
|
||||
</view>
|
||||
<view style="display: flex;flex-direction: row;">
|
||||
<scroll-view scroll-y="true" style="height: 150px;">
|
||||
<view class="bottom-select-list" v-for="(item,index) in sourceCenter">
|
||||
<view class="bottom-select-list-item" v-if="item.isChoose" style="color: #007AFF;"
|
||||
@click="sourceWorkCenterItemSel(item,index)">{{item.FName}}</view>
|
||||
<view class="bottom-select-list-item" v-if="!item.isChoose"
|
||||
@click="sourceWorkCenterItemSel(item,index)">{{item.FName}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view scroll-y="true" style="height: 150px;" v-if="sourceCenter[0].isChoose">
|
||||
<view class="bottom-select-list" v-for="(item,index) in sourceList">
|
||||
<view class="bottom-select-list-item" v-if="item.isChoose" style="color: #007AFF;"
|
||||
@click="sourceItemSel(item)">{{item.FNO+'|'+item.FName}}</view>
|
||||
<view class="bottom-select-list-item" v-if="!item.isChoose"
|
||||
@click="sourceItemSel(item)">{{item.FNO+'|'+item.FName}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view scroll-y="true" style="height: 150px;" v-if="sourceCenter[0].isChoose">
|
||||
<view class="bottom-select-list" v-for="(item,index) in blankList">
|
||||
<view class="bottom-select-list-item" v-if="item.isChoose" style="color: #007AFF;"
|
||||
@click="sourceItemSel(item)">{{item.FName}}</view>
|
||||
<view class="bottom-select-list-item" v-if="!item.isChoose"
|
||||
@click="sourceItemSel(item)">{{item.FName}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view scroll-y="true" style="height: 150px;" v-if="sourceCenter[1].isChoose">
|
||||
<view class="bottom-select-list" v-for="(item,index) in centerList">
|
||||
<view class="bottom-select-list-item" v-if="item.isChoose" style="color: #007AFF;"
|
||||
@click="centerItemSel(item)">{{item.FName}}</view>
|
||||
<view class="bottom-select-list-item" v-if="!item.isChoose"
|
||||
@click="centerItemSel(item)">{{item.FName}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view scroll-y="true" style="height: 150px;" v-if="sourceCenter[1].isChoose">
|
||||
<view class="bottom-select-list" v-for="(item,index) in centerSubSourceList">
|
||||
<view class="bottom-select-list-item" v-if="item.isChoose" style="color: #007AFF;"
|
||||
@click="centerSourceItemSel(item)">{{item.FName}}</view>
|
||||
<view class="bottom-select-list-item" v-if="!item.isChoose"
|
||||
@click="centerSourceItemSel(item)">{{item.FName}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="list-card" v-for="(item,index) in sourceSafeAlter" style="padding: 20rpx 32rpx;" >
|
||||
<view class="list-card-Info">
|
||||
<view class="list-card-Info-item">
|
||||
<text class="list-card-Info-item-text">资源代码:{{item.FResourceNo}}</text>
|
||||
</view>
|
||||
<view class="list-card-Info-item">
|
||||
<text class="list-card-Info-item-text">产品代码:{{item.FProductNumber}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-card-Info">
|
||||
<view class="list-card-Info-item">
|
||||
<text class="list-card-Info-item-text">工序流转卡:{{item.FFlowCardBillNO}}</text>
|
||||
</view>
|
||||
<view class="list-card-Info-item">
|
||||
<text class="list-card-Info-item-text">工序名称:{{item.FProcessName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-x="true" style="width: 100%;white-space: nowrap;" :key="key">
|
||||
<view class="list-card-Info-table" style="background-color: #f5f9ff;width: 1000px;">
|
||||
<view class="list-card-Info-item-table" style="width: 50px;margin-left: 20rpx;">
|
||||
<checkbox value="cb" :checked="item.selAll" @click="selAllClick(item)" style="transform:scale(0.7)" />
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 200px;">
|
||||
<span class="table-text">呼叫人</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 200px;">
|
||||
<span class="table-text">呼叫类型</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 300px;">
|
||||
<span class="table-text">呼叫开始时间</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 300px;">
|
||||
<span class="table-text">呼叫持续时长(分)</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 200px;">
|
||||
<span class="table-text">响应人</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 300px;">
|
||||
<span class="table-text">响应时间</span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-y="true" v-if="item.DetailCall.length>0" style="width: 1000px;"
|
||||
:style="'height:'+(item.DetailCall.length>3?'108px':item.DetailCall.length*36+'px')">
|
||||
<view class="list-card-Info-table" v-for="(safeAlter,safeAlterIndex) in item.DetailCall" style=""
|
||||
:style="'background-color:' + (safeAlterIndex%2 ? '#f5f9ff' : '#FFFFFF')">
|
||||
<view class="list-card-Info-item-table" style="width: 50px;margin-left: 20rpx;">
|
||||
<checkbox value="cb" :checked="safeAlter.responseStatu"
|
||||
@click="selClick(item, safeAlterIndex)" style="transform:scale(0.7)" />
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 200px;">
|
||||
<span class="table-text">{{safeAlter.FCallName}}</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 200px;">
|
||||
<span class="table-text">{{safeAlter.FTypeName}}</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 300px;">
|
||||
<span class="table-text">{{safeAlter.FCALLTIME}}</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 300px;">
|
||||
<span class="table-text">{{safeAlter.FCallTimeLengh}}</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 200px;">
|
||||
<span class="table-text">{{safeAlter.FRespondName}}</span>
|
||||
</view>
|
||||
<view class="list-card-Info-item-table" style="width: 300px;">
|
||||
<span class="table-text">{{safeAlter.FRESPONSETIME}}</span>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
</scroll-view>
|
||||
|
||||
<view class="list-card-btn">
|
||||
<view class="btn" @click="response(item, 1, index)">响应</view>
|
||||
<view class="btn" style="border-right: none;" @click="closeClick(item)">关闭</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="width: 100%;height: 16rpx;"></view>
|
||||
<!-- <view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/home_blue.png"></image>
|
||||
<span class="tabBar-item-text" style="color:#007AFF">首页</span>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/home_gray.png"></image>
|
||||
<span class="tabBar-item-text" style="color: #666666;">首页</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="reportSelectF">
|
||||
<view v-show="reportSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/report_blue.png"></image>
|
||||
<span class="tabBar-item-text" style="color:#007AFF">开工汇报</span>
|
||||
</view>
|
||||
<view v-show="!reportSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/report_gray.png"></image>
|
||||
<span class="tabBar-item-text" style="color: #666666;">开工汇报</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="safeAlterSelectF">
|
||||
<view v-show="safeAlterSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src=".../../../static/report/safeAlter_blue.png"></image>
|
||||
<span class="tabBar-item-text" style="color:#007AFF">安灯</span>
|
||||
</view>
|
||||
<view v-show="!safeAlterSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/safeAlter_gray.png"></image>
|
||||
<span class="tabBar-item-text" style="color: #666666;">安灯</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/my_gray.png"></image>
|
||||
<span class="tabBar-item-text" style="color:#007AFF">我的</span>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/report/my_gray.png"></image>
|
||||
<span class="tabBar-item-text" style="color: #666666;">我的</span>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="gray-layer" v-if="showGrayLayer" @click="hideGrayLayer"></view>
|
||||
<!-- <view class="bottom-select" v-if="showSourceList">
|
||||
<view class="bottom-select-head">
|
||||
<view class="bottom_select-head-cancel" @click="cancelWorker">选择工作中心</view>
|
||||
<image class="search-img"></image>
|
||||
</view>
|
||||
<scroll-view scroll-y="true" style="height: 150px;">
|
||||
<view class="bottom-select-list" v-for="(item,index) in sourceList">
|
||||
<view class="bottom-select-list-item" @click="sourceItemSel(index)">{{item.name}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view> -->
|
||||
<view class="bottom-select" v-if="showUserList">
|
||||
<view class="bottom-select-head">
|
||||
<view class="bottom_select-head-cancel" @click="cancelUser">选择处理人</view>
|
||||
<image class="search-img"></image>
|
||||
</view>
|
||||
<scroll-view scroll-y="true" style="height: 150px;">
|
||||
<view class="bottom-select-list" v-for="(item,index) in userList">
|
||||
<view class="bottom-select-list-item" @click="userItemSel(item)">{{item.FNAME}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="alter-window" v-if="showCloseWindow">
|
||||
<view class="window-title">安灯关闭响应</view>
|
||||
<view class="window-content">
|
||||
<view class="window-content-item">
|
||||
<text>是否处理</text>
|
||||
<checkbox :checked="closedResponse" @click="closedResponseClick"
|
||||
class="window-content-item-checkbox"></checkbox>
|
||||
</view>
|
||||
<view class="window-content-item">
|
||||
<text>呼叫类别</text>
|
||||
<view>{{closedType}}</view>
|
||||
</view>
|
||||
<view class="window-content-item">
|
||||
<text>处理时间</text>
|
||||
<!-- <view :style="'background:'+(!closedResponse?'#e9e9e9':'#FFFFFF')">xxx</view> -->
|
||||
<view :style="'background:'+(!closedResponse?'#e9e9e9':'#FFFFFF')"
|
||||
@click="creatDatePicker()">{{closedTime.detail}}</view>
|
||||
</view>
|
||||
<date-time-picker ref='creatTime' :indicatorStyle='indicatorStyle'
|
||||
:type='type' :datestring='dateString' @change='creatTimeChange'>
|
||||
</date-time-picker>
|
||||
<view class="window-content-item">
|
||||
<text>处理人</text>
|
||||
<view :style="'background:'+(!closedResponse?'#e9e9e9':'#FFFFFF')"
|
||||
@click="userSelClick()">{{closedUser.FNAME}}</view>
|
||||
</view>
|
||||
<view class="window-content-item">
|
||||
<text>处理结果</text>
|
||||
<input v-model="closedDetail" :disabled="!closedResponse"
|
||||
:style="'background:'+(!closedResponse?'#e9e9e9':'#FFFFFF')"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="window-btn">
|
||||
<view class="window-btn-cancel" @click="cancelClick">取消</view>
|
||||
<view class="window-btn-confirm" @click="confirmClick">提交</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DateTimePicker from '@/components/bory-dateTimePicker/bory-dateTimePicker.vue';
|
||||
import errorUtil from '@/common/errorutil.js';
|
||||
import Vue from 'vue';
|
||||
var commonUtil = require('../../../common/util.js');
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
export default {
|
||||
components: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
key:1,
|
||||
showGrayLayer:false,
|
||||
showSourceList:false,
|
||||
showCloseWindow:false,
|
||||
|
||||
mainSelect:false,
|
||||
reportSelect:false,
|
||||
safeAlterSelect:true,
|
||||
mySelect:false,
|
||||
//sourceSafeAlter:[],
|
||||
sourceSafeAlter:[],
|
||||
currSourceSafeAlter:[],
|
||||
currSourceSafeAlterIndex:'',
|
||||
|
||||
sourceSelected:"选择资源",
|
||||
sourceCenter:[{FName:"所有资源",isChoose:true},{FName:"工作中心",isChoose:false}],
|
||||
centerList:[],
|
||||
sourceList:[],
|
||||
blankList:[{FName:"",isChoose:""}],
|
||||
selectedCenterList:[],
|
||||
centerSubSourceList:[],
|
||||
selectedSourceList:[],
|
||||
sourceCode:'',
|
||||
|
||||
callType:'',
|
||||
handler:'',
|
||||
dateString: '',
|
||||
type: 'datetime-all',
|
||||
|
||||
closedResponse:false,
|
||||
closedTime:{
|
||||
type: 'datetime-all',
|
||||
// title: '展示年月日时分秒',
|
||||
detail: '选择开始时间'
|
||||
},
|
||||
closedUser:{},
|
||||
closedType:"",
|
||||
closedDetail:"",
|
||||
selecedIntelArray:[],
|
||||
|
||||
showUserList:false,
|
||||
userList:[],
|
||||
scrollTop: 0,
|
||||
old: {
|
||||
scrollTop: 0
|
||||
},
|
||||
pageIndex:1,
|
||||
showTips:false,
|
||||
curResponseIndex:''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
indicatorStyle() {
|
||||
return {
|
||||
background: 'rgba(255,0,0,.2)',
|
||||
height: '40px',
|
||||
};
|
||||
},
|
||||
},
|
||||
components: {
|
||||
DateTimePicker
|
||||
},
|
||||
onLoad() {
|
||||
this.centerList = uni.getStorageSync('workCenterInfo');
|
||||
this.sourceList = uni.getStorageSync('allSourceInfo');
|
||||
this.getLampList(1);
|
||||
},
|
||||
onPullDownRefresh:function(){
|
||||
let _self = this;
|
||||
_self.showTips = false;
|
||||
|
||||
this.getLampList(1);
|
||||
setTimeout(()=>{
|
||||
//停止下拉样式
|
||||
uni.stopPullDownRefresh();
|
||||
//隐藏标题读取
|
||||
uni.hideNavigationBarLoading();
|
||||
},
|
||||
500);
|
||||
},
|
||||
onReachBottom:function(){
|
||||
let _self = this;
|
||||
if(_self.showTips) {
|
||||
this.getLampList(this.pageIndex);
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '已经到底了'
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
scanSearch(){
|
||||
let _self = this;
|
||||
this.selectedSourceList = [];
|
||||
uni.scanCode({
|
||||
success: function (res) {
|
||||
_self.sourceCode = res.result;
|
||||
let arr = {FNO:_self.sourceCode};
|
||||
_self.selectedSourceList.push(arr);
|
||||
_self.getLampList(1)
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
searchClick(){
|
||||
let _self = this;
|
||||
this.selectedSourceList = [];
|
||||
if(_self.sourceCode){
|
||||
let arr = {FNO:_self.sourceCode};
|
||||
this.selectedSourceList.push(arr);
|
||||
this.getLampList(1);
|
||||
}else{
|
||||
this.getLampList(1);
|
||||
}
|
||||
|
||||
},
|
||||
creatDatePicker() {
|
||||
if(this.closedResponse){
|
||||
this.type = 'datetime-all';
|
||||
this.$refs['creatTime'].show();
|
||||
}
|
||||
},
|
||||
creatTimeChange(value) {
|
||||
let item = this.closedTime;
|
||||
item['detail'] = value;
|
||||
},
|
||||
hideGrayLayer(){
|
||||
if(this.showCloseWindow && this.showUserList) {
|
||||
this.showUserList = false;
|
||||
this.showCloseWindow = true;
|
||||
}
|
||||
else {
|
||||
this.showCloseWindow = false;
|
||||
this.showUserList = false;
|
||||
}
|
||||
this.showSourceList = false;
|
||||
this.showGrayLayer = false;
|
||||
},
|
||||
userSelClick(){
|
||||
if(!this.closedResponse) {
|
||||
return false;
|
||||
}
|
||||
this.showUserList = true;
|
||||
this.showGrayLayer = true;
|
||||
this.userList = uni.getStorageSync("defultUserInfoArray");
|
||||
},
|
||||
selAllClick(item){
|
||||
item.selAll = !item.selAll;
|
||||
if(item.DetailCall.length>0){
|
||||
if(item.selAll){
|
||||
item.DetailCall.forEach(
|
||||
function(el){
|
||||
el.responseStatu = true;
|
||||
}
|
||||
)
|
||||
}else{
|
||||
item.DetailCall.forEach(
|
||||
function(el){
|
||||
el.responseStatu = false;
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
this.key = this.key+1;
|
||||
},
|
||||
userItemSel(item){
|
||||
this.closedUser = item;
|
||||
this.showUserList = false;
|
||||
// this.showGrayLayer = false;
|
||||
},
|
||||
selClick(item,safeAlterIndex){
|
||||
let safeAlterNO;
|
||||
let selAlterList=[];
|
||||
if(item && item.DetailCall.length>0){
|
||||
safeAlterNO = item.DetailCall.length;
|
||||
item.DetailCall[safeAlterIndex].responseStatu = !item.DetailCall[safeAlterIndex].responseStatu;
|
||||
|
||||
if(item.DetailCall[safeAlterIndex].responseStatu){
|
||||
item.DetailCall.forEach(
|
||||
function(el,index){
|
||||
if(index == safeAlterIndex){
|
||||
el.responseStatu = true;
|
||||
}
|
||||
}
|
||||
)
|
||||
}else{
|
||||
item.DetailCall.forEach(
|
||||
function(el,index){
|
||||
if(index == safeAlterIndex){
|
||||
el.responseStatu = false;
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
item.selAll = item.DetailCall.every(
|
||||
function(el){
|
||||
return el.responseStatu;
|
||||
}
|
||||
);
|
||||
this.key = this.key+1;
|
||||
}
|
||||
},
|
||||
response(item, type ,index){
|
||||
// debugger
|
||||
let _self = this;
|
||||
this.selecedIntelArray = [];
|
||||
let selecedIntelArrayBlank = [];
|
||||
if(item && item.DetailCall){
|
||||
let selectedArray = item.DetailCall.filter(el => el.responseStatu);
|
||||
selectedArray.forEach(
|
||||
function(el){
|
||||
selecedIntelArrayBlank.push(el.FINTERID);
|
||||
}
|
||||
);
|
||||
|
||||
if(selecedIntelArrayBlank.length == 0){
|
||||
uni.showToast({
|
||||
title:'请勾选呼叫记录再进行响应!',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if(item && item.DetailCall){
|
||||
let selectedArray = item.DetailCall.filter(el => el.responseStatu && !el.FRESPONSETIME);
|
||||
selectedArray.forEach(
|
||||
function(el){
|
||||
_self.selecedIntelArray.push(el.FINTERID);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
let selAll = item.selAll;
|
||||
if(this.selecedIntelArray.length == 0){
|
||||
item.selAll = false;
|
||||
item.DetailCall.forEach(function(el){
|
||||
el.responseStatu = false
|
||||
})
|
||||
this.key = _self.key+1;
|
||||
uni.showToast({
|
||||
title:'已经响应,不可重复响应',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.curResponseIndex = index;
|
||||
this.updateStatue(
|
||||
type,
|
||||
this.selecedIntelArray,
|
||||
selAll,
|
||||
function(res){
|
||||
_self.key = _self.key+1;
|
||||
type;
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'响应成功'
|
||||
})
|
||||
}
|
||||
);
|
||||
this.getLampList(1);
|
||||
},
|
||||
closeClick(item){
|
||||
let _this = this;
|
||||
let closedList=[];
|
||||
let date = new Date();
|
||||
this.curDate = date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
|
||||
this.closedTime.detail = this.curDate;
|
||||
this.closedDetail = "";
|
||||
let userInfo = uni.getStorageSync('defultUserInfoArray');
|
||||
this.closedUser = {
|
||||
FName:userInfo.FNAME,
|
||||
FID:userInfo.FID
|
||||
}
|
||||
this.currSourceSafeAlter = item;
|
||||
|
||||
if(item && item.DetailCall){
|
||||
let selectedArray = item.DetailCall.filter(el => el.responseStatu);
|
||||
if(selectedArray.length == 1){
|
||||
this.selecedIntelArray = [];
|
||||
selectedArray.forEach(
|
||||
function(el){
|
||||
_this.selecedIntelArray.push(el.FINTERID);
|
||||
}
|
||||
);
|
||||
this.closedType = selectedArray[0].FTypeName;
|
||||
this.currSourceSafeAlterIndex = this.sourceSafeAlter.indexOf(item);
|
||||
this.showCloseWindow = true;
|
||||
this.showGrayLayer = true;
|
||||
}
|
||||
else if(selectedArray.length == 0){
|
||||
item.selAll = false;
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'当前无可选数据'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
else if(selectedArray.length > 1){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'请逐条关闭'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else{
|
||||
item.selAll = false;
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'当前无可选数据'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
},
|
||||
closedResponseClick(){
|
||||
this.closedResponse = !this.closedResponse;
|
||||
},
|
||||
cancelClick(){
|
||||
this.showCloseWindow = false;
|
||||
this.showGrayLayer = false;
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'取消关闭'
|
||||
})
|
||||
},
|
||||
confirmClick(){
|
||||
let _self = this;
|
||||
this.sourceSafeAlter[this.currSourceSafeAlterIndex].DetailCall.forEach(
|
||||
function(el,index){
|
||||
if(el.responseStatu){
|
||||
_self.sourceSafeAlter[_self.currSourceSafeAlterIndex].DetailCall.splice(index,1);
|
||||
}
|
||||
}
|
||||
)
|
||||
if(this.currSourceSafeAlter.selAll){
|
||||
this.sourceSafeAlter.forEach(
|
||||
function(el,index){
|
||||
if(index == _self.currSourceSafeAlterIndex){
|
||||
el.selAll = false;
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
_self.showCloseWindow = false;
|
||||
_self.showGrayLayer = false;
|
||||
this.updateStatue("2", this.selecedIntelArray,
|
||||
function(res) {
|
||||
_self.key = _self.key+1;
|
||||
// _self.showCloseWindow = false;
|
||||
// _self.showGrayLayer = false;
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'关闭成功'
|
||||
})
|
||||
}
|
||||
);
|
||||
this.getLampList(1);
|
||||
},
|
||||
|
||||
// 资源选择
|
||||
sourceSelClick(){
|
||||
this.selectedSourceList = uni.getStorageSync('allSourceInfo');
|
||||
this.showSourceList = true;
|
||||
this.showGrayLayer = true;
|
||||
},
|
||||
sourceWorkCenterItemSel(item,index){//选择所有资源或工作中心
|
||||
let _self = this;
|
||||
this.selectedSourceList = [];
|
||||
let curItemIndex = index;
|
||||
item.isChoose = !item.isChoose;
|
||||
let selType = this.sourceCenter.filter(
|
||||
function(el){
|
||||
return el.isChoose == true;
|
||||
}
|
||||
)
|
||||
if(selType.length>1){
|
||||
this.sourceCenter.forEach(
|
||||
function(el,index){
|
||||
if(index == curItemIndex){
|
||||
el.isChoose = true
|
||||
|
||||
}else{
|
||||
el.isChoose = false
|
||||
_self.selectedSourceList = uni.getStorageSync('allSourceInfo');
|
||||
_self.sourceSelected = '所有资源';
|
||||
}
|
||||
}
|
||||
)
|
||||
if(this.sourceCenter[1].isChoose){
|
||||
this.centerList = uni.getStorageSync('workCenterInfo');
|
||||
this.selectedCenterList = uni.getStorageSync('workCenterInfo');
|
||||
this.getResourceByWorkCenter(0);
|
||||
this.selectedSourceList = this.centerSubSourceList;
|
||||
}else if(this.sourceCenter[0].isChoose){
|
||||
this.sourceList = uni.getStorageSync('allSourceInfo');
|
||||
this.selectedSourceList = uni.getStorageSync('allSourceInfo');
|
||||
}else{
|
||||
this.sourceList = uni.getStorageSync('allSourceInfo');
|
||||
this.selectedSourceList = uni.getStorageSync('allSourceInfo');
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
this.selectedSourceList = uni.getStorageSync('allSourceInfo');
|
||||
|
||||
}
|
||||
},
|
||||
sourceItemSel(item){//选取所有资源下的资源
|
||||
let _self = this;
|
||||
item.isChoose = !item.isChoose;
|
||||
this.selectedSourceList = this.sourceList.filter(function(el){
|
||||
return el.isChoose == true;
|
||||
})
|
||||
if(this.selectedSourceList.length == 0){
|
||||
this.selectedSourceList = this.sourceList;
|
||||
}
|
||||
},
|
||||
centerItemSel(item){//选取工作中心
|
||||
item.isChoose = !item.isChoose;
|
||||
this.selectedCenterList = this.centerList.filter(function(el){
|
||||
return el.isChoose == true;
|
||||
})
|
||||
if(this.selectedCenterList.length == 0){
|
||||
this.selectedCenterList = this.centerList;
|
||||
}
|
||||
this.getResourceByWorkCenter(0)
|
||||
},
|
||||
centerSourceItemSel(item){//选取工作中心下资源
|
||||
item.isChoose = !item.isChoose;
|
||||
this.selectedSourceList = this.centerSubSourceList.filter(function(el){
|
||||
return el.isChoose == true;
|
||||
})
|
||||
if(this.selectedSourceList.length == 0){
|
||||
this.selectedSourceList = this.centerSubSourceList;
|
||||
}
|
||||
},
|
||||
sourceSelCancelClick(){
|
||||
this.showSourceList = false;
|
||||
this.showGrayLayer = false;
|
||||
},
|
||||
sourceSelConfirmClick(){
|
||||
this.getLampList(1);
|
||||
this.showSourceList = false;
|
||||
this.showGrayLayer = false;
|
||||
},
|
||||
getResourceByWorkCenter(count){
|
||||
let _self = this;
|
||||
let workCenterFNOList = this.selectedCenterList.map(function(el){
|
||||
return el.FNO
|
||||
});
|
||||
let tokenpara = uni.getStorageSync('token');
|
||||
|
||||
this.$request.get('/ReportInfoLoad/QueryResourceByWorkCenter?data='+JSON.stringify(workCenterFNOList)).then(res => {
|
||||
let data = res;
|
||||
let list = [];
|
||||
data.forEach(
|
||||
function(el){
|
||||
let arr = {
|
||||
"FID":el.FID,
|
||||
"FNO":el.FNO,
|
||||
"FName":el.FNAME,
|
||||
"FPhoneID":el.FPHONEID,
|
||||
"FCOMPANYID":el.FCOMPANYID,
|
||||
"isChoose":false
|
||||
}
|
||||
list.push(arr)
|
||||
}
|
||||
)
|
||||
this.centerSubSourceList = list;
|
||||
this.selectedSourceList = this.centerSubSourceList;
|
||||
|
||||
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
errorUtil.handle(err);
|
||||
});
|
||||
},
|
||||
mainSelectF(){
|
||||
uni.redirectTo({
|
||||
url:'../home/home'
|
||||
})
|
||||
},
|
||||
reportSelectF(){
|
||||
uni.redirectTo({
|
||||
url:'../report/report'
|
||||
})
|
||||
},
|
||||
safeAlterSelectF(){
|
||||
|
||||
},
|
||||
mySelectF(){
|
||||
uni.redirectTo({
|
||||
url:'../myinfo/myinfo'
|
||||
})
|
||||
},
|
||||
getLampList(pageIndex){
|
||||
let _self = this;
|
||||
let Resource = [];
|
||||
if(this.selectedSourceList.length>0){
|
||||
Resource = this.selectedSourceList.map(function(el){
|
||||
return el.FNO
|
||||
})
|
||||
}else{
|
||||
Resource = []
|
||||
}
|
||||
// let requestParams = {
|
||||
// "id": userInfo.token,
|
||||
// "phoneID": this.macAddress,
|
||||
// "Resource": Resource,
|
||||
// "Page":pageIndex,
|
||||
// "Size":10
|
||||
// };
|
||||
let params;
|
||||
this.$request.get('/Inspection/GetAbnormalCall',{
|
||||
params:{
|
||||
Resource:JSON.stringify(Resource),
|
||||
Page:pageIndex,
|
||||
Size:10
|
||||
}
|
||||
}).then(res => {
|
||||
if (pageIndex == 1) {
|
||||
this.sourceSafeAlter = res.abnormalCall;
|
||||
this.sourceSafeAlter.forEach(
|
||||
function(elItem) {
|
||||
elItem.selAll = false;
|
||||
elItem.DetailCall.forEach(function(el){
|
||||
el.responseStatu = false;
|
||||
if(el.FCALLTIME){
|
||||
el.FCALLTIME = commonUtil.removeLetter(el.FCALLTIME);
|
||||
el.FCALLTIME = el.FCALLTIME.substr(0,10) + " " + el.FCALLTIME.substr(10 ,9);
|
||||
}
|
||||
if(el.FRESPONSETIME){
|
||||
el.FRESPONSETIME = commonUtil.removeLetter(el.FRESPONSETIME);
|
||||
el.FRESPONSETIME = el.FRESPONSETIME.substr(0,10) + " " + el.FRESPONSETIME.substr(10 ,9);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
pageIndex = pageIndex + 1;
|
||||
this.pageIndex = pageIndex;
|
||||
} else {
|
||||
if (res.length != 0) {
|
||||
let newArray = this.sourceSafeAlter.concat(res.abnormalCall);
|
||||
this.sourceSafeAlter = newArray;
|
||||
pageIndex = pageIndex + 1;
|
||||
this.pageIndex = pageIndex;
|
||||
this.sourceSafeAlter.forEach(
|
||||
function(elItem) {
|
||||
elItem.selAll = false;
|
||||
elItem.DetailCall.forEach(function(el){
|
||||
el.responseStatu = false;
|
||||
if(el.FCALLTIME){
|
||||
el.FCALLTIME = commonUtil.removeLetter(el.FCALLTIME);
|
||||
el.FCALLTIME = el.FCALLTIME.substr(0,10) + " " + el.FCALLTIME.substr(10 ,9);
|
||||
}
|
||||
if(el.FRESPONSETIME){
|
||||
el.FRESPONSETIME = commonUtil.removeLetter(el.FRESPONSETIME);
|
||||
el.FRESPONSETIME = el.FRESPONSETIME.substr(0,10) + " " + el.FRESPONSETIME.substr(10 ,9);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
if (res.length < 10) {
|
||||
_self.showTips = true;
|
||||
}
|
||||
} else {
|
||||
_self.showTips = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
creatUserPicker(){
|
||||
|
||||
},
|
||||
updateStatue(doType, interIdArray, selAll, callback){
|
||||
let _self = this;
|
||||
let isDule, DuleUserID, duleTime, duleResult;
|
||||
if(doType == "2") {
|
||||
isDule = this.closedResponse;
|
||||
DuleUserID = this.closedUser.FID?this.closedUser.FID:'';
|
||||
duleTime = this.closedTime.detail;
|
||||
duleResult = this.closedDetail;
|
||||
}
|
||||
let requestParams = {
|
||||
"DoType": doType,
|
||||
"ListFInterID": interIdArray,
|
||||
"IsDule": isDule,
|
||||
"DuleUserID":DuleUserID,
|
||||
"DuleTime": duleTime,
|
||||
"DuleResult": duleResult
|
||||
};
|
||||
this.$request.post('/Inspection/DoAbnormalCall',requestParams).then(res => {
|
||||
// if(doType == 1){
|
||||
// //DetailCall responseStatu
|
||||
// this.sourceSafeAlter[this.curResponseIndex].selAll = false;
|
||||
// this.sourceSafeAlter[this.curResponseIndex].DetailCall.forEach(function(el){
|
||||
// if(el.responseStatu){
|
||||
// el.responseStatu = false;
|
||||
// }
|
||||
// })
|
||||
// // this.selAllClick(this.sourceSafeAlter[this.curResponseIndex]);
|
||||
// this.getLampList(this.pageIndex)
|
||||
// }else{
|
||||
// this.getLampList(this.pageIndex)
|
||||
// }
|
||||
// this.getLampList(this.pageIndex)
|
||||
if (callback) {
|
||||
callback(res);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page{background-color: #F7F7F7;}
|
||||
.list-card-Info-item{display: flex;flex-direction: column;align-items: flex-start;width: 50%;}
|
||||
.list-card-Info-item-text{width: 100%;}
|
||||
.list-card-Info-item-text span{width: 100%;}
|
||||
.list-card-Info-table{display: flex;flex-direction: row;align-items: center;height: 64rpx;}
|
||||
/* .list-card-Info-item-table uni-text{margin-bottom: 0;} */
|
||||
.list-card-btn{margin-top: 20rpx;}
|
||||
.btn{font-size: 32rpx;font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: #0A7AFF;}
|
||||
.window-content-item{display: flex;flex-direction: row;align-items: center;height: 72rpx;margin:0 70rpx 24rpx 70rpx;}
|
||||
.window-content-item-checkbox{margin-left: 20rpx;transform: scale(0.7);}
|
||||
.window-content-item text{width: 120rpx;font-size: 28rpx;font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;text-align: right;color: #727171;}
|
||||
.window-content-item view{height: 72rpx;line-height: 72rpx;margin-left: 20rpx;font-size: 28rpx;background: #e9e9e9;border: 2rpx solid rgba(60,60,67,0.29);border-radius: 12rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: #727171;flex-grow: 1;padding: 0 16rpx;}
|
||||
.window-content-item input{height: 72rpx;margin-left: 20rpx;font-size: 28rpx;background: #e9e9e9;border: 2rpx solid rgba(60,60,67,0.29);border-radius: 12rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: #727171;flex-grow: 1;padding: 0 16rpx;display: block;}
|
||||
.list-card-Info-item-table{width: 300px;}
|
||||
/* .table-text{text-align: left;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;} */
|
||||
</style>
|
||||
+1977
File diff suppressed because it is too large.
Load diff
Executable
+296
@@ -0,0 +1,296 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="topBar">所有应用</view>
|
||||
<view style="height: 108.69rpx;width: 100%;"></view>
|
||||
<view class="main">
|
||||
<view class="main-item" v-for="(item ,index) in allMenu" :key="index">
|
||||
<view class="m-title">
|
||||
<text class="title" decode="true"> {{item.NAME}}</text>
|
||||
</view>
|
||||
<view class="example-body">
|
||||
<uni-grid :column="4" :show-border="false" :square="false">
|
||||
<uni-grid-item v-for="(subitem ,subindex) in item.SubMenus" :key="subindex">
|
||||
<view class="grid-item-box" @click="NavigateApplyKanban(subitem)" v-if="subitem.FTYPE==4">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" />
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
<view class="grid-item-box" @click="NavigateApply(subitem.KEY)" v-else>
|
||||
<image class="image" :src="require('../../../static/icon/'+subitem.KEY+'.png')" />
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tabBar-item" @click="cleandarSelectF">
|
||||
<view v-show="cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">日程</text>
|
||||
</view>
|
||||
<view v-show="!cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">日程</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue'
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'
|
||||
import faIcon from '@/components/fa-icon/fa-icon.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
faIcon,
|
||||
uniGrid,
|
||||
uniGridItem
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
allMenu: [],
|
||||
mainSelect:false,
|
||||
applySelect:true,
|
||||
cleandarSelect:false,
|
||||
mySelect:false,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.allMenu = uni.getStorageSync('AllMenu')
|
||||
},
|
||||
methods: {
|
||||
mainSelectF(){
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../home/home'
|
||||
})
|
||||
},
|
||||
applySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
},
|
||||
// cleandarSelectF(){
|
||||
// this.mainSelect = false;
|
||||
// this.applySelect = false;
|
||||
// this.cleandarSelect = true;
|
||||
// this.mySelect = false;
|
||||
// uni.redirectTo({
|
||||
// url:'../calendar/calender'
|
||||
// })
|
||||
// },
|
||||
mySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
uni.redirectTo({
|
||||
url:'../myinfo/myinfo'
|
||||
})
|
||||
},
|
||||
NavigateApply(page) {
|
||||
console.log(page)
|
||||
if (page) {
|
||||
if(page=="WMSPD42"){
|
||||
uni.navigateTo({
|
||||
url: '../../views/' + page + '/' + page + '?prepage=moreapply'
|
||||
})
|
||||
}
|
||||
if(page=="SingleResRpt"){
|
||||
uni.navigateTo({
|
||||
url: '../SingleResRpt/SingleResRpt'
|
||||
})
|
||||
}
|
||||
if(page=="SFC_AndonWarning"){
|
||||
uni.navigateTo({
|
||||
url: '../SFC_AndonWarning/SFC_AndonWarning'
|
||||
})
|
||||
}
|
||||
else {
|
||||
uni.navigateTo({
|
||||
url: '../../views/' + page + '/' + page
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
LongTap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../applymanage/applymanage'
|
||||
})
|
||||
},
|
||||
// 点击跳转
|
||||
NavigateApplyKanban(subitem) {
|
||||
let page=subitem.Key;
|
||||
if (page) {
|
||||
let tempurl='../../views/KanBan/KanBan'+'?pageNumber='+page;
|
||||
uni.navigateTo({
|
||||
url: tempurl
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("../../../common/iconindex.css");
|
||||
.page {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.topBar{
|
||||
height: 181.15rpx;
|
||||
line-height: 181.15rpx;
|
||||
width: 100%;
|
||||
/* height: var(--status-bar-height);
|
||||
width: 100%; */
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
background: #2560C9;
|
||||
/* padding-left: 43.47rpx; */
|
||||
text-align: center;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.main{
|
||||
padding-top: 43.47rpx;
|
||||
margin-top: 0;
|
||||
margin-bottom: 117.75rpx;
|
||||
}
|
||||
.main-item{
|
||||
padding-top: 43.47rpx;
|
||||
}
|
||||
.m-title{
|
||||
margin-left: 43.47rpx;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
/* font-weight: 500; */
|
||||
color: #000000;
|
||||
}
|
||||
.example-body {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
background-color: #ffffff;
|
||||
|
||||
font-size: 13px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* position: relative;
|
||||
*/
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
}
|
||||
|
||||
.m-bottom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* margin: 2% 5%;
|
||||
margin-bottom: 5%; */
|
||||
border: 1upx dotted #CCCCCC;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* height: 160upx; */
|
||||
}
|
||||
.tabBar{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 119.56rpx;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow:2px 2px 10px rgba(0, 0, 0, 1);
|
||||
}
|
||||
.tabBar-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
width: 100%;
|
||||
}
|
||||
.tabBar-item-view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
}
|
||||
.tabBar-item-img{
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
.tabBar-item-text{
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
margin-left:0
|
||||
}
|
||||
</style>
|
||||
+227
@@ -0,0 +1,227 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- 常用事项 -->
|
||||
<view class="main" >
|
||||
<view class="m-title mt-center">
|
||||
<text class="title" decode="true">常用事项</text>
|
||||
</view>
|
||||
<view v-if="comList.length==0" style="text-align: center;margin: 10px 0;">暂无常用事项,请添加!</view>
|
||||
|
||||
<view class="example-body" style="margin-bottom: 20px;">
|
||||
<uni-grid :column="4" :show-border="false" :square="false" >
|
||||
<uni-grid-item v-for="(item ,index) in comList" :key="index" >
|
||||
<view class="grid-item-box" @click="MenuDelete(item,index)">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" v-if="item.FTYPE==4" />
|
||||
<image class="image" :src="require('../../../static/icon/'+item.KEY+'.png')" v-else />
|
||||
<text class="text">{{item.NAME}}</text>
|
||||
<view class="grid-dot">
|
||||
<uni-badge text="-" type="warning" size="small" />
|
||||
</view>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 其他应用 -->
|
||||
<view class="main">
|
||||
<view class="m-title mt-center">
|
||||
<text class="title" decode="true">其他应用 </text>
|
||||
</view>
|
||||
<!-- 工作 -->
|
||||
<view class="main" v-for="(item ,index) in allMenu" :key="index">
|
||||
<view class="m-title">
|
||||
<text class="title" decode="true">{{item.NAME}}</text>
|
||||
</view>
|
||||
<view class="example-body">
|
||||
<uni-grid :column="4" :show-border="false" :square="false" >
|
||||
<uni-grid-item v-for="(subitem ,subindex) in item.SubMenus" :key="subindex" >
|
||||
<view class="grid-item-box" v-show="!subitem.inComList" @click="MenuAdd(subitem,subindex)">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" v-if="subitem.FTYPE==4" />
|
||||
<image class="image" :src="require('../../../static/icon/'+subitem.KEY+'.png')" v-else />
|
||||
<!-- <image class="image" :src="'../../../static/icon/'+subitem.KEY+'.png'"/> -->
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
<view class="grid-dot">
|
||||
<uni-badge text="+" type="primary" size="small"/>
|
||||
<!-- <uni-badge text="+" type="default" size="small" v-show="subitem.inComList" /> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="grid-item-box" v-show="subitem.inComList">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" v-if="subitem.FTYPE==4" />
|
||||
<image class="image" :src="require('../../../static/icon/'+subitem.KEY+'.png')" v-else />
|
||||
<!-- <image class="image" :src="'../../../static/icon/'+subitem.KEY+'.png'"/> -->
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
<view class="grid-dot">
|
||||
<!-- <uni-badge text="+" type="primary" size="small" v-show="!subitem.inComList" /> -->
|
||||
<uni-badge text="+" type="default" size="small" v-show="subitem.inComList" />
|
||||
</view>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue'
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'
|
||||
import uniBadge from '@/components/uni-badge/uni-badge.vue'
|
||||
|
||||
export default {
|
||||
components:{
|
||||
uniGrid,
|
||||
uniGridItem,
|
||||
uniBadge
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
allMenu:[],
|
||||
comList:[],
|
||||
itemKey:'',
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.ShowMenuList();
|
||||
},
|
||||
methods: {
|
||||
showAddonLoad(comList,allMenu){
|
||||
let _self = this;
|
||||
let comIDList = [];
|
||||
if(comList.length==0){
|
||||
return
|
||||
}
|
||||
comList.forEach(
|
||||
function(e){
|
||||
let arr = {
|
||||
"ID":e.ID
|
||||
}
|
||||
comIDList.push(arr)
|
||||
}
|
||||
);
|
||||
console.log(this.allMenu)
|
||||
this.allMenu.forEach(
|
||||
function(e){
|
||||
e.SubMenus.forEach(
|
||||
function(el,index){
|
||||
comIDList.forEach(
|
||||
function(comEl){
|
||||
if(comEl.ID==el.ID){
|
||||
let inComList = {
|
||||
"inComList":true
|
||||
};
|
||||
Vue.set(e.SubMenus[index],'inComList',true)
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
console.log(this.allMenu)
|
||||
},
|
||||
ShowMenuList() {
|
||||
let _self = this;
|
||||
this.comList = uni.getStorageSync('ComMenu');
|
||||
this.allMenu = uni.getStorageSync('AllMenu');
|
||||
this.showAddonLoad(this.comList,this.allMenu);
|
||||
|
||||
},
|
||||
MenuDelete:function(item,index){
|
||||
let id = item.ID;
|
||||
this.delFavorites(id);
|
||||
if(index>=0){
|
||||
this.comList.splice(index,1)
|
||||
this.allMenu = uni.getStorageSync('AllMenu')
|
||||
this.showAddonLoad(this.comList,this.allMenu)
|
||||
}
|
||||
},
|
||||
MenuAdd:function(item,index){
|
||||
let id = item.ID;
|
||||
this.setFavorites(id);
|
||||
if(item){
|
||||
this.comList.push(item)
|
||||
let obj = {};
|
||||
this.comList= this.comList.reduce((cur,next) => {
|
||||
obj[next.ID] ? "" : obj[next.ID] = true && cur.push(next);
|
||||
return cur;
|
||||
},[]);
|
||||
this.allMenu = uni.getStorageSync('AllMenu')
|
||||
this.showAddonLoad(this.comList,this.allMenu)
|
||||
}
|
||||
|
||||
},
|
||||
setFavorites(id) {
|
||||
this.$request.post('/Service/SetFavorites',
|
||||
JSON.stringify(id)).then(res => {
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
delFavorites(id) {
|
||||
this.$request.post('/Service/DelFavorites',
|
||||
JSON.stringify(id)).then(res => {
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("../../../common/iconindex.css");
|
||||
|
||||
page{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 角标 */
|
||||
.example-body {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* position: relative;
|
||||
*/
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
border: 1upx solid #F2F2F2;
|
||||
}
|
||||
.text {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 10upx 0;
|
||||
overflow: hidden;
|
||||
/* text-overflow: ellipsis; */
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
|
||||
}
|
||||
.grid-dot {
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
right: 5px;
|
||||
}
|
||||
.uni-badge{
|
||||
width: 17upx !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
Executable
+718
@@ -0,0 +1,718 @@
|
||||
<template>
|
||||
<view class="home">
|
||||
<view class="topBar">
|
||||
<view class="topBar-text">首页</view>
|
||||
<view class="msg" @click="msgClick">
|
||||
<image class="msg-img" src="../../../static/home/msg.png"/>
|
||||
<text class="msg-text">{{count}}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- <view class="home-swiper" style="margin-top: 199.27rpx;">
|
||||
<swiper :style="{'height':bannerHeight+'px'}" class="swiper" :autoplay="true" :indicator-dots="true" :interval="2000" :duration="500" circular="true"
|
||||
previous-margin="24px" next-margin="24px" indicator-active-color="#FFFFFF" indicator-color="#BFBFBF"
|
||||
@change="bannerChange">
|
||||
<swiper-item v-if="listBanner.length>0" :class="[currentBanner==index?'swiper-item':'swiper-item-banner']"
|
||||
v-for="(item,index) in listBanner" :key='index'>
|
||||
<image :src="'data:image/jpeg;base64,'+item.FIMAGEBASE64"
|
||||
:style="{'height':(currentBanner==index?bannerHeight+'px':bannerHeight*0.8+'px')}"
|
||||
:class="[currentBanner==index?'swiper-item-image':'swiper-item-banner-image']" />
|
||||
</swiper-item>
|
||||
|
||||
<swiper-item v-if="listBanner.length==0" :class="[currentBanner==index?'swiper-item':'swiper-item-banner']"
|
||||
v-for="(item,index) in listBannerBlank" :key='index'>
|
||||
<image :src="item.url" :style="{'height':(currentBanner==index?bannerHeight+'px':bannerHeight*0.8+'px')}"
|
||||
:class="[currentBanner==index?'swiper-item-image':'swiper-item-banner-image']" />
|
||||
</swiper-item>
|
||||
|
||||
</swiper>
|
||||
</view> -->
|
||||
<view class="home-news-title" style="margin-top: 199.27rpx;">
|
||||
<text class="news-info">新闻资讯</text>
|
||||
<text class="news-more">更多</text>
|
||||
</view>
|
||||
<view class="home-news">
|
||||
<view class="home-news-detail">
|
||||
<scroll-view scroll-x="true" show-scrollbar="false">
|
||||
<view class="home-news-detail-outline">
|
||||
<view class="home-news-detail-item" v-if="listNews.length>0"
|
||||
v-for="(item,index) in listNews" :key='index'>
|
||||
<image class="home-news-detail-item-img" :src="'data:image/jpeg;base64,'+item.FImage"
|
||||
:style="{'height':newsHeight+'px','width':newsWidth+'px'}"/>
|
||||
<view class="home-news-detail-item-text" :style="{'width':newsWidth-2+'px'}">
|
||||
<text class="home-news-detail-item-text-title">{{item.FName}}</text>
|
||||
<text class="home-news-detail-item-text-time">{{item.C_YMD}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-news-detail-item" v-if="listNews.length==0"
|
||||
v-for="(item,index) in listNewsBlank" :key='index'>
|
||||
<image class="home-news-detail-item-img" src="../../../static/home/news1.png"
|
||||
:style="{'height':newsHeight+'px','width':newsWidth+'px'}"/>
|
||||
<view class="home-news-detail-item-text" :style="{'width':newsWidth-2+'px'}">
|
||||
<text class="home-news-detail-item-text-title">{{item.FName}}</text>
|
||||
<text class="home-news-detail-item-text-time">{{item.C_YMD}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-apply">
|
||||
<view class="home-news-title">
|
||||
<text class="news-info">常用应用</text>
|
||||
</view>
|
||||
<view class="home-apply-item">
|
||||
<uni-grid :column="4" :show-border="false" :square="false">
|
||||
<uni-grid-item v-for="(subitem ,subindex) in comList" :key="subindex">
|
||||
<view class="grid-item-box" @click="NavigateApplyKanban(subitem)" v-if="subitem.PrgType== 4">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" />
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
<view class="grid-item-box" @click="NavigateApply(subitem.KEY)" v-else>
|
||||
<image class="image" :src="require('../../../static/icon/'+subitem.KEY+'.png')" />
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
<uni-grid-item>
|
||||
<view class="grid-item-box" @click="PageNavigate">
|
||||
<image class="image" src="../../../static/com/more.png" />
|
||||
<text class="text">应用设置</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tabBar-item" @click="cleandarSelectF">
|
||||
<view v-show="cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">日程</text>
|
||||
</view>
|
||||
<view v-show="!cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">日程</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 系统升级 -->
|
||||
<yomol-upgrade ref="yomolUpgrade"></yomol-upgrade>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniBadge from "@/components/uni-badge/uni-badge.vue"
|
||||
import faIcon from "@/components/fa-icon/fa-icon.vue";
|
||||
import navigationTitle from '@/components/navigation-title/navigation-title.vue';
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue';
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue';
|
||||
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue';
|
||||
import Vue from 'vue';
|
||||
import { mapState } from 'vuex';
|
||||
export default {
|
||||
components: {
|
||||
faIcon,
|
||||
navigationTitle,
|
||||
yomolUpgrade,
|
||||
uniBadge
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
infoList:[],
|
||||
count:0,
|
||||
orgid:"",
|
||||
windowWidth:"",
|
||||
windowHeight:"",
|
||||
bannerHeight:"",
|
||||
bannerWidth:"",
|
||||
newsHeight:"",
|
||||
newsWidth:"",
|
||||
currentBanner:'',
|
||||
mainSelect:true,
|
||||
applySelect:false,
|
||||
cleandarSelect:false,
|
||||
mySelect:false,
|
||||
listBanner: [],
|
||||
listBannerBlank:[
|
||||
{"url":'../../../static/home/banner1.png'},
|
||||
{"url":'../../../static/home/banner2.png'},
|
||||
{"url":'../../../static/home/banner3.png'},
|
||||
],
|
||||
listNews: [],
|
||||
listNewsBlank:[
|
||||
{"FImage":'../../../static/home/news1.png',"FName":"电子公司引入WMS解决仓储","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImage":'../../../static/home/news2.png',"FName":"电子公司引入WMS解决仓储","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImage":'../../../static/home/news3.png',"FName":"电子公司引入WMS解决仓储","C_YMD":"2021-1-11 18:00:00"},
|
||||
],
|
||||
list:[],
|
||||
pageIndex: 0,
|
||||
loadingText: '下拉加载',
|
||||
comList: [],
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
if(this.userInfo.UserID) {
|
||||
this.checkVersion();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
onShow() {
|
||||
this.getFavoritesMenu();
|
||||
this.getInfoNumber();
|
||||
this.getBannerInfo();
|
||||
console.log("++++++++++++++++++++++++++++"+this.listNewsBlank[0].FImage)
|
||||
},
|
||||
onLoad() {
|
||||
// debugger
|
||||
const res = uni.getSystemInfoSync();
|
||||
this.windowHeight = res.windowHeight;
|
||||
this.windowWidth = res.windowWidth;
|
||||
let sWindow = this.windowHeight*this.windowWidth;
|
||||
let sBaseBanner = 366*200;
|
||||
let sBaseWindow = 414*896;
|
||||
let basePrecent = sBaseBanner/sBaseWindow;
|
||||
let baseWHprecent = 366/200;233
|
||||
let sWindowBanner = sWindow*basePrecent;
|
||||
this.bannerHeight = Math.sqrt((sWindowBanner/baseWHprecent));
|
||||
this.bannerWidth = this.bannerHeight*baseWHprecent;
|
||||
let sBaseNews = 140*90;
|
||||
let basePrecentNews = sBaseNews/sBaseWindow;
|
||||
let baseWHprecentNews = 140/90;
|
||||
let sWindowNews = sWindow*basePrecentNews;
|
||||
this.newsHeight = Math.sqrt((sWindowNews/baseWHprecentNews));
|
||||
this.newsWidth = this.newsHeight*baseWHprecentNews;
|
||||
this.getAllMenu();
|
||||
this.getFavoritesMenu();
|
||||
this.GetOrgInfo();
|
||||
},
|
||||
methods: {
|
||||
getNews(){
|
||||
let _self = this;
|
||||
this.orgid = uni.getStorageSync('orgid');
|
||||
let requestParams = {
|
||||
"id": this.userInfo.token,
|
||||
"basicType":1,
|
||||
"uid":1,
|
||||
"pageSize":'',
|
||||
"pageIndex":''
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'Notice',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
let datalist = JSON.parse(res);
|
||||
_self.listNews = datalist;
|
||||
});
|
||||
},
|
||||
|
||||
getInfoNumber(){
|
||||
let _self = this;
|
||||
let loginId = uni.getStorageSync('loginId');
|
||||
let requestParams;
|
||||
|
||||
this.$request.get('ReportInfoLoad/GetReportMessage',{
|
||||
params:{
|
||||
loginId:loginId,
|
||||
page:1,
|
||||
size:20
|
||||
}
|
||||
}).then(res => {
|
||||
this.count = res.toltalCount;
|
||||
});
|
||||
},
|
||||
|
||||
getBannerInfo(){
|
||||
let _self = this;
|
||||
|
||||
this.$request.get('/SysConfigData/CarouselMap').then(res => {
|
||||
let datalist = res;
|
||||
_self.listBanner = datalist;
|
||||
|
||||
});
|
||||
},
|
||||
msgClick(){
|
||||
uni.navigateTo({
|
||||
url:'./msg'
|
||||
})
|
||||
},
|
||||
bannerChange(event) {
|
||||
let current = event.detail.current
|
||||
this.currentBanner = current
|
||||
},
|
||||
NavigateApplyKanban(subitem) {
|
||||
let page=subitem.KEY;
|
||||
if (page) {
|
||||
let tempurl='../../views/KanBan/KanBan'+'?pageNumber='+page;
|
||||
uni.navigateTo({
|
||||
url: tempurl
|
||||
})
|
||||
}
|
||||
},
|
||||
NavigateApply(page) {
|
||||
if(page=='SingleResRpt'){
|
||||
uni.navigateTo({
|
||||
url: '../SingleResRpt/SingleResRpt'
|
||||
})
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: '../../views/' + page + '/' + page
|
||||
})
|
||||
}
|
||||
console.log('../../views/' + page + '/' + page)
|
||||
},
|
||||
PageNavigate: function() {
|
||||
uni.navigateTo({
|
||||
url: '../apply/applymanage'
|
||||
})
|
||||
},
|
||||
mainSelectF(){
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
},
|
||||
applySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../apply/apply'
|
||||
})
|
||||
},
|
||||
// cleandarSelectF(){
|
||||
// this.mainSelect = false;
|
||||
// this.applySelect = false;
|
||||
// this.cleandarSelect = true;
|
||||
// this.mySelect = false;
|
||||
// uni.redirectTo({
|
||||
// url:'../calendar/calender'
|
||||
// })
|
||||
// },
|
||||
mySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
uni.redirectTo({
|
||||
url:'../myinfo/myinfo'
|
||||
})
|
||||
},
|
||||
loadMore: function() {
|
||||
if (this.loadingText == "没有更多了") {
|
||||
return
|
||||
}
|
||||
//currentTab表示当前所在页数 根据当前所在页数发起请求并带上page页数
|
||||
this.loadingText=='加载中...'
|
||||
uni.showLoading({
|
||||
content: '加载中',
|
||||
mask: true
|
||||
})
|
||||
this.GetPublicInfo()
|
||||
setTimeout(function() {
|
||||
uni.hideLoading();
|
||||
}, 500)
|
||||
},
|
||||
//新闻详情
|
||||
goDetail(item, index) {
|
||||
console.log(item)
|
||||
let data=item
|
||||
uni.navigateTo({
|
||||
url: `/pages/home/detail/detail?data=${JSON.stringify(data)}`
|
||||
})
|
||||
},
|
||||
GetPublicInfo() {
|
||||
this.pageIndex++;
|
||||
|
||||
let requestParams = {
|
||||
"id": this.userInfo.token,
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'GetPublicMessage',
|
||||
params: requestParams,
|
||||
data: {
|
||||
page: this.pageIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
let _self = this;
|
||||
let data = JSON.parse(res)
|
||||
if (data.length == 0) {
|
||||
this.loadingText = "没有更多了"
|
||||
return
|
||||
}
|
||||
for (let item of data) {
|
||||
var obj = {};
|
||||
obj.interId=item.FInterID
|
||||
obj.datetime = item.FDateTime;
|
||||
obj.title = item.FTitle
|
||||
obj.article_type = 0;
|
||||
// obj.source = _self.userInfo.OrgStructures.FName.substr(0, 4)
|
||||
obj.comment_count = 0
|
||||
obj.content=item.FInfo
|
||||
_self.list.push(obj)
|
||||
}
|
||||
});
|
||||
},
|
||||
//系统升级
|
||||
checkVersion() {
|
||||
let verCode = 62300;
|
||||
// #ifdef APP-PLUS
|
||||
plus.runtime.getProperty(plus.runtime.appid,(wgtinfo)=>{
|
||||
verCode = wgtinfo.versionCode;
|
||||
});
|
||||
// #endif
|
||||
let appType = uni.getStorageSync("appType");
|
||||
let requestParams = {
|
||||
"id": this.$store.state.userInfo.token,
|
||||
"appType":appType
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'GetLastestAppInfo',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("GetLastestAppInfo------------");
|
||||
let data = JSON.parse(res);
|
||||
let urlVerCode = parseInt(data.FVersionCode);
|
||||
console.log('当前APP版本'+verCode);
|
||||
console.log('服务器APP版本'+urlVerCode);
|
||||
console.log('APP更新地址'+data.FVersionDownloadUrl);
|
||||
if(urlVerCode > verCode ){
|
||||
this.$refs.yomolUpgrade.show(data);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getAllMenu(){
|
||||
// debugger
|
||||
this.$request.post('/Service/GetAllMenu')
|
||||
.then(res => {
|
||||
let data = res.MainMenu;
|
||||
if(data&&data.length>0){
|
||||
data = data.filter(e => {
|
||||
return e.NAME == "生产汇报" || e.NAME == "生产检验" || e.NAME=='安灯预警' ||e.NAME=='预警平台'
|
||||
});
|
||||
}
|
||||
uni.setStorageSync('AllMenu',data);
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
getFavoritesMenu(){
|
||||
this.$request.post('/Service/GetFavoritesMenu')
|
||||
.then(res => {
|
||||
let datas = res;
|
||||
datas.forEach((item, index) => {
|
||||
let subdata = item.SubMenus
|
||||
subdata.forEach((item, index) => {
|
||||
if (item.NAME.length > 6) {
|
||||
item.NAME = item.NAME.substr(0, 6)
|
||||
}
|
||||
})
|
||||
})
|
||||
this.comList = datas;
|
||||
uni.setStorageSync('ComMenu',this.comList);
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
|
||||
GetOrgInfo:function(){
|
||||
uni.showLoading({
|
||||
mask: true
|
||||
});
|
||||
|
||||
this.$request.get('/Service/GetSysOrgForUser').then(res => {
|
||||
uni.hideLoading()
|
||||
let orgInfo = res
|
||||
uni.setStorageSync('orgInfo',orgInfo)
|
||||
}).catch(err => {
|
||||
uni.hideLoading()
|
||||
errorUtil.handle(err)
|
||||
});
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.home {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.topBar{
|
||||
/* position: absolute; */
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 181.15rpx;
|
||||
line-height: 181.15rpx;
|
||||
width: 100%;
|
||||
background: #2560C9;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
}
|
||||
.topBar-text{
|
||||
width: 100%;
|
||||
height: 181.15rpx;
|
||||
line-height: 181.15rpx;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
margin-left: 43.47rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.msg{
|
||||
position: relative;
|
||||
display: flex;
|
||||
margin-right: 43.47rpx;
|
||||
}
|
||||
.msg-img{
|
||||
height: 36.23rpx;
|
||||
width: 36.23rpx;
|
||||
}
|
||||
.msg-text{
|
||||
height: 13px;
|
||||
line-height: 12px;
|
||||
width: 13px;
|
||||
background: #FF5353;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
border-radius: 100px;
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
left: 21.73rpx;
|
||||
top: -7.24rpx;
|
||||
}
|
||||
.home-swiper view {
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-item{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.swiper-item-image {
|
||||
border-radius: 10upx;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.swiper-item-banner{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.swiper-item-banner-image{
|
||||
border-radius: 10upx;
|
||||
height: 80%;
|
||||
width: 100%;
|
||||
}
|
||||
.home-news{width: 100%;margin-top: 36.23rpx;/* border: #000000 solid 1.81rpx; */}
|
||||
.home-news-title{
|
||||
width: 100%;
|
||||
height: 45.28rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
margin-top: 36.23rpx;
|
||||
}
|
||||
.news-info{
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
width: 100%;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
margin-left: 43.47rpx;
|
||||
}
|
||||
.news-more{
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
width: 72.46rpx;
|
||||
|
||||
font-size: 25.36rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #4688FD;
|
||||
margin-right: 43.47rpx;
|
||||
|
||||
}
|
||||
.home-news-detail{
|
||||
margin-left: 43.47rpx;margin-top: 28.98rpx;margin-right: 43.47rpx;
|
||||
}
|
||||
.home-news-detail-outline{
|
||||
display: flex;flex-direction: row;
|
||||
}
|
||||
.home-news-detail-item{
|
||||
display: flex;flex-direction: column;margin-right: 43.47rpx;
|
||||
}
|
||||
.home-news-detail-item-img{
|
||||
border-radius: 9.05rpx 9.05rpx 0 0;
|
||||
}
|
||||
.home-news-detail-item-text{
|
||||
display: flex;flex-direction: column;border-radius: 0 0 9.05rpx 9.05rpx;
|
||||
/* border: #333333 solid 1.81rpx; */
|
||||
background: #FFFFFF;
|
||||
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
||||
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.home-news-detail-item-text-title{
|
||||
font-size: 21.73rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
/* white-space: nowrap; */
|
||||
word-break: break-all;
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
margin-top: 21.73rpx;
|
||||
}
|
||||
.home-news-detail-item-text-time{
|
||||
font-size: 18.11rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #787878;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
.home-apply{width: 100%;margin-top: 36.23rpx;/* border: #000000 solid 1.81rpx; */margin-bottom: 126.81rpx;}
|
||||
.home-apply-item{
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* position: relative;
|
||||
*/
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
.image{
|
||||
height: 79.71rpx;
|
||||
width: 79.71rpx;
|
||||
}
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
}
|
||||
.tabBar{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 119.56rpx;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow:2px 2px 10px rgba(0, 0, 0, 1);
|
||||
}
|
||||
.tabBar-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
width: 100%;
|
||||
}
|
||||
.tabBar-item-view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
}
|
||||
.tabBar-item-img{
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
.tabBar-item-text{
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
margin-left:0
|
||||
}
|
||||
|
||||
</style>
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="msg" v-for="(item,index) in list" :key='index' @click="Detail(item)" v-if="!list.length == 0">
|
||||
<view class="my-body">
|
||||
<view style="height: 180rpx;width: 180rpx;">
|
||||
<image class="dot" :src="'data:image/jpeg;base64,'+item.FImage"/>
|
||||
</view>
|
||||
<view style="display: flex;flex-direction: column;align-items: flex-start;justify-content: center;height: 200rpx;">
|
||||
<text class='dot-text-notread'>{{item.FName}}</text>
|
||||
<text class="dot-text-notread">日期:{{item.C_YMD.split(" ")[0]}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="msg" v-for="(item,index) in listNewsBlank" :key='index' @click="Detail(item)" v-if="list.length == 0">
|
||||
<view class="my-body">
|
||||
<view style="height: 180rpx;width: 180rpx;">
|
||||
<image style="height: 180rpx;width: 180rpx;" :src="item.FImageBase64"/>
|
||||
</view>
|
||||
<view style="display: flex;flex-direction: column;align-items: flex-start;justify-content: center;height: 200rpx;">
|
||||
<text class='dot-text-notread'>{{item.FName}}</text>
|
||||
<text class="dot-text-notread">日期:{{item.C_YMD.split(" ")[0]}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
import errorUtil from '@/common/errorutil.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orgid:'',
|
||||
list:[],
|
||||
pageIndex:1,
|
||||
pageSize:6,
|
||||
showTips:false,
|
||||
listNewsBlank:[
|
||||
{"FImageBase64":'../../../static/home/news1.png',"FName":"电子公司引入WMS解决仓储","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImageBase64":'../../../static/home/news2.png',"FName":"电子公司引入WMS解决仓储","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImageBase64":'../../../static/home/news3.png',"FName":"电子公司引入WMS解决仓储","C_YMD":"2021-1-11 18:00:00"},
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
onLoad() {
|
||||
this.pageIndex = 1;
|
||||
let count = 1;
|
||||
this.getNews(1, this.pageSize,count);
|
||||
|
||||
},
|
||||
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: {
|
||||
getNews(count){
|
||||
let _self = this;
|
||||
this.orgid = uni.getStorageSync('orgid');
|
||||
|
||||
if(count) {
|
||||
count = count + 1;
|
||||
if(count>4){
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
count = 1;
|
||||
}
|
||||
let requestParams;
|
||||
let tokenpara = uni.getStorageSync('tokenpara');
|
||||
if(count > 1) {
|
||||
requestParams = {
|
||||
"id": this.userInfo.token,
|
||||
"basicType":2,
|
||||
"uid":0,
|
||||
"pageSize":1,
|
||||
"pageIndex":6,
|
||||
"tokenpara": tokenpara
|
||||
};
|
||||
}
|
||||
else {
|
||||
requestParams = {
|
||||
"id": this.userInfo.token,
|
||||
"basicType":2,
|
||||
"uid":0,
|
||||
"pageSize":1,
|
||||
"pageIndex":6,
|
||||
};
|
||||
}
|
||||
|
||||
this.$request.post({
|
||||
data: {
|
||||
action: 'Notice',
|
||||
params: requestParams
|
||||
}
|
||||
}).then(res => {
|
||||
let datalist = JSON.parse(res);
|
||||
_self.list = datalist;
|
||||
|
||||
}).catch(err => {
|
||||
if(err.state ==400){
|
||||
this.getNews(count);
|
||||
if(count > 4) {
|
||||
errorUtil.handle(err);
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
errorUtil.handle(err);
|
||||
}
|
||||
});
|
||||
},
|
||||
Detail:function(item){
|
||||
uni.setStorageSync('newsDetail',item);
|
||||
uni.navigateTo({
|
||||
url:'./newsDetail'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page{
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
.msg{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 43.47rpx;
|
||||
margin-right: 43.47rpx;
|
||||
margin-top: 43.47rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 9.05rpx;
|
||||
height: 200rpx;
|
||||
}
|
||||
.my-body{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 10rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 9.05rpx;
|
||||
font-size: 16px;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.dot{
|
||||
height: 180rpx;
|
||||
width: 180rpx;
|
||||
background: #E24848;
|
||||
/* border-radius: 50%; */
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.dot-text-read{
|
||||
margin-right: 10rpx;
|
||||
color: #232323;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.dot-text-notread{
|
||||
margin-right: 10rpx;
|
||||
color: #4688FD;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.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{
|
||||
margin-left: 21.73rpx;
|
||||
/* width: 100%; */
|
||||
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #585858;
|
||||
margin-top: 14.49rpx;
|
||||
}
|
||||
.sender{
|
||||
margin-left: 21.73rpx;
|
||||
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>
|
||||
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>
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="title">{{FName}}</view>
|
||||
<view class="sub-title">
|
||||
<!-- <text class="editer">撰稿人:OPSOFT</text> -->
|
||||
<text class="date">发稿日期:{{C_YMD.split(" ")[0]}}</text>
|
||||
</view>
|
||||
<view class="img">
|
||||
<image class="img" :src="'data:image/jpeg;base64,'+FImageBase64"></image>
|
||||
</view>
|
||||
<view class="content">{{FContent}}</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
import errorUtil from '@/common/errorutil.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
detailInfo:[],
|
||||
FName:'',
|
||||
C_YMD:'',
|
||||
FContent:'',
|
||||
FImageBase64:''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.detailInfo = uni.getStorageSync('newsDetail');
|
||||
this.FName = this.detailInfo.FName;
|
||||
this.C_YMD = this.detailInfo.C_YMD;
|
||||
this.FContent = this.detailInfo.FContent;
|
||||
this.FImageBase64 = this.detailInfo.FImageBase64;
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.page{
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.title{
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
width: 100%;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
}
|
||||
.sub-title{
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
color: #323232;
|
||||
text-align: center;
|
||||
}
|
||||
.img{
|
||||
height: 200rpx;
|
||||
width: 200rpx;
|
||||
/* border: 1px solid #007AFF; */
|
||||
border-radius: 10rpx;
|
||||
margin: auto;
|
||||
}
|
||||
.content{
|
||||
width: 90%;
|
||||
/* height: 300rpx; */
|
||||
margin: auto;
|
||||
font-size: 28rpx;
|
||||
color: #323232;
|
||||
/* border: #000000 1px solid; */
|
||||
padding: 20rpx 20rpx;
|
||||
white-space:pre-wrap;
|
||||
word-wrap:break-word;
|
||||
}
|
||||
</style>
|
||||
+477
@@ -0,0 +1,477 @@
|
||||
<template>
|
||||
<view class="main">
|
||||
<image src="../../../static/myinfo/mybg.png" :style="{'height':bannerHeight+'px'}" style="width: 100%;"></image>
|
||||
<view class="my-info">
|
||||
<image class="my-info-left" src="../../../static/head.png"></image>
|
||||
<view class="my-info-right">
|
||||
<view class="my-info-right-up">
|
||||
<text class="my-info-name">{{userInfo.UserName==null?'用户昵称':userInfo.UserName}}</text>
|
||||
<image class="my-info-edit" src="../../../static/myinfo/editwithe.png" @click="editClick"></image>
|
||||
</view>
|
||||
<view class="my-info-right-down">{{dataBase}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" style="margin-top: 221.01rpx;"
|
||||
@click="PageNavigate('../../myinfo/loginmanage/loginmanage')">
|
||||
<image class="left-img" src="../../../static/myinfo/login.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>登录管理</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="clickClearCache">
|
||||
<image class="left-img" src="../../../static/myinfo/refresh.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>刷新缓存</view>
|
||||
<!-- <image src="../../../static/myinfo/right-arrow.png"></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="PageNavigate('../../myinfo/system/system')">
|
||||
<image class="left-img" src="../../../static/myinfo/system-version.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>系统版本</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import faIcon from "@/components/fa-icon/fa-icon.vue";
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
export default {
|
||||
components: {
|
||||
// faIcon
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
windowWidth:"",
|
||||
windowHeight:"",
|
||||
bannerHeight:"",
|
||||
bannerWidth:"",
|
||||
leftIconHeight:"",
|
||||
leftIconWidth:"",
|
||||
mainSelect:false,
|
||||
applySelect:false,
|
||||
cleandarSelect:false,
|
||||
mySelect:true,
|
||||
avatar: '',
|
||||
dataBase:''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
if(this.userInfo.avatarUrl)
|
||||
{
|
||||
this.avatar=this.userInfo.avatarUrl
|
||||
}
|
||||
if(this.userInfo.dbAlise){
|
||||
this.dataBase = this.userInfo.dbAlise
|
||||
}
|
||||
|
||||
const res = uni.getSystemInfoSync();
|
||||
this.windowHeight = res.windowHeight;
|
||||
this.windowWidth = res.windowWidth;
|
||||
let sWindow = this.windowHeight*this.windowWidth;
|
||||
let sBaseWindow = 414*896;
|
||||
let sBaseBanner = 414*270;
|
||||
|
||||
let basePrecent = sBaseBanner/sBaseWindow;
|
||||
let baseWHprecent = 414/270;
|
||||
let sWindowBanner = sWindow*basePrecent;
|
||||
this.bannerHeight = Math.sqrt((sWindowBanner/baseWHprecent));
|
||||
this.bannerWidth = this.bannerHeight*baseWHprecent;
|
||||
|
||||
},
|
||||
methods: {
|
||||
editClick(){
|
||||
uni.navigateTo({
|
||||
url:'../../myinfo/selfinfo/selfinfo'
|
||||
})
|
||||
},
|
||||
mainSelectF(){
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../home/home'
|
||||
})
|
||||
},
|
||||
applySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../apply/apply'
|
||||
})
|
||||
},
|
||||
// cleandarSelectF(){
|
||||
// this.mainSelect = false;
|
||||
// this.applySelect = false;
|
||||
// this.cleandarSelect = true;
|
||||
// this.mySelect = false;
|
||||
// uni.redirectTo({
|
||||
// url:'../calendar/calender'
|
||||
// })
|
||||
// },
|
||||
mySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
},
|
||||
|
||||
PageNavigate:function(urls){
|
||||
uni.navigateTo({
|
||||
url: urls,
|
||||
});
|
||||
// if(this.hasLogin)
|
||||
// {
|
||||
// uni.navigateTo({
|
||||
// url: urls,
|
||||
// });
|
||||
// }
|
||||
// else{
|
||||
// this.clickRePage();
|
||||
// }
|
||||
},
|
||||
|
||||
clickRePage:function(){
|
||||
uni.navigateTo({
|
||||
url: '../../myinfo/login/login'
|
||||
});
|
||||
},
|
||||
|
||||
//清除缓存
|
||||
clickClearCache: function() {
|
||||
//方便测试后续删除
|
||||
let requestUrl = this.$global.globalData.requestUrl;
|
||||
//缓存账套配置
|
||||
this.$global.setGlobalObj({
|
||||
requestUrl: requestUrl
|
||||
});
|
||||
this.clearServerCache();
|
||||
this.getSupplierList(this.userInfo);
|
||||
this.getCustomerList(this.userInfo);
|
||||
this.getDeptList(this.userInfo);
|
||||
this.getSysParameters(this.userInfo);
|
||||
this.$global.GetAllMenu(this.userInfo);
|
||||
|
||||
uni.showToast({
|
||||
title: '缓存已刷新!',
|
||||
duration: 2000,
|
||||
icon: 'none',
|
||||
complete:function() {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getDeptList: function(userInfo){
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"basicType": 1,
|
||||
orgid:userInfo.orgid
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'QueryBasicData',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getDeptList---- requestsuccess");
|
||||
let datalist = JSON.parse(res);
|
||||
this.saveDeptInfos(datalist);
|
||||
});
|
||||
},
|
||||
|
||||
getCustomerList: function(userInfo){
|
||||
//客户
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"basicType": 3,
|
||||
orgid:userInfo.orgid
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'QueryBasicData',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getCustomerList---- requestsuccess");
|
||||
let datalist = JSON.parse(res);
|
||||
this.saveCustomerInfos(datalist);
|
||||
});
|
||||
},
|
||||
|
||||
getSupplierList: function(userInfo){
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"basicType": 2,
|
||||
orgid:userInfo.orgid
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'QueryBasicData',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getSupplierList---- requestsuccess");
|
||||
let datalist = JSON.parse(res);
|
||||
this.saveSupplierInfos(datalist);
|
||||
});
|
||||
},
|
||||
|
||||
getSysParameters: function(userInfo){
|
||||
this.getSysParameter(userInfo, "BarcodeRuleForVerification");
|
||||
let _self = this;
|
||||
setTimeout(
|
||||
function(){
|
||||
_self.getSysParameter(userInfo, "STOCKPLACECHAR");
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
getSysParameter: function(userInfo, sysKey){
|
||||
let updateFlag = !this.sysParameters;
|
||||
if(!updateFlag) {
|
||||
if(!this.sysParameters.hasOwnProperty(sysKey)) {
|
||||
updateFlag = true;
|
||||
}
|
||||
}
|
||||
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"sysKey": sysKey
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'GetSysParams',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getSysParameters---- requestsuccess");
|
||||
//返回的是字符串
|
||||
let data = res;
|
||||
this.saveSysParameters({value:data, key:sysKey});
|
||||
});
|
||||
},
|
||||
|
||||
clearServerCache: function(){
|
||||
let requestParams = {
|
||||
"id": this.userInfo.token,
|
||||
"sysYN":1,
|
||||
"billYN":1,
|
||||
"deptYN":1,
|
||||
"suppYN":1,
|
||||
"custYN":1,
|
||||
"stockYN":1
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'ArrangeCache',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
let data = JSON.parse(res);
|
||||
console.log("----clearServerCache success----");
|
||||
});
|
||||
},
|
||||
|
||||
...mapMutations(['clearCache', 'saveCustomerInfos', 'saveDeptInfos',
|
||||
'saveSysParameters', 'saveSupplierInfos',"deptInfos",
|
||||
"customerInfos", "supplierInfos", "sysParameters"])
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.my-info{
|
||||
position:fixed;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding-left: 43.47rpx;
|
||||
align-items: center;
|
||||
z-index: 100;
|
||||
top:150rpx;
|
||||
}
|
||||
.my-info-left{
|
||||
height: 181.15rpx;
|
||||
width: 181.15rpx;
|
||||
}
|
||||
.my-info-right{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 43.47rpx;
|
||||
}
|
||||
.my-info-right-up{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.my-info-name{
|
||||
height: 59.78rpx;
|
||||
font-size: 43.47rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
line-height: 59.78rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
.my-info-edit{
|
||||
height: 43.47rpx;
|
||||
width: 43.47rpx;
|
||||
margin-left: 18.11rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
.my-info-right-down{
|
||||
height: 36.23rpx;
|
||||
font-size: 25.36rpx;
|
||||
font-family: PingFang-SC-Regular, PingFang-SC;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
line-height: 36.23rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
.my-body-outline{
|
||||
height: 108.69rpx;
|
||||
display: flex;
|
||||
flex-direction:
|
||||
row;align-items: center;
|
||||
}
|
||||
.left-img{
|
||||
height: 50.72rpx;
|
||||
width: 50.72rpx;
|
||||
margin-left: 43.47rpx;
|
||||
}
|
||||
.my-body{
|
||||
width: 80%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
height: 108.69rpx;
|
||||
line-height: 108.69rpx;
|
||||
margin-left: 43.47rpx;
|
||||
margin-right: 43.47rpx;
|
||||
border-bottom: #F1F1F1 solid 1.81rpx;
|
||||
}
|
||||
.my-body image{
|
||||
height: 32.6rpx;
|
||||
width: 32.6rpx;
|
||||
}
|
||||
.my-body view{
|
||||
margin-left: 21.73rpx;
|
||||
width: 100%;
|
||||
font-size: 32.6rpx;
|
||||
}
|
||||
.tabBar{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 119.56rpx;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow:2px 2px 10px rgba(0, 0, 0, 1);
|
||||
}
|
||||
.tabBar-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
width: 100%;
|
||||
}
|
||||
.tabBar-item-view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
}
|
||||
.tabBar-item-img{
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
.tabBar-item-text{
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size:28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.main {
|
||||
height: 100%;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
Reference in new issue
Block a user