Merge branch 'main' of http://git.excellentkk.cn/mkm/OfficeApp
# Conflicts: # pages/oaHome/oaHome.vue # pages/oaMy/oaMy.vue
This commit is contained in:
commit
c6fdebf1af
@ -9,7 +9,8 @@
|
||||
<!-- #endif -->
|
||||
<view class="my_info flex_a_c">
|
||||
<view class="">
|
||||
<u--image :showLoading="true" :src="myOaInfo.avatar||'../../static/img/public/avatar.png'" width="130.28rpx" height="130.28rpx" shape="circle"></u--image>
|
||||
<u--image :showLoading="true" :src="myOaInfo.avatar||'../../static/img/public/avatar.png'" width="130.28rpx"
|
||||
height="130.28rpx" shape="circle"></u--image>
|
||||
</view>
|
||||
<view v-if="!$store.state.app.token" @click="login" class="mesg_box">
|
||||
<view class="name">
|
||||
@ -26,7 +27,7 @@
|
||||
</view>
|
||||
<view class="duty">
|
||||
<!-- ({{ myOaInfo.did_name }}){{myOaInfo.label_name}} -->
|
||||
电话:{{myOaInfo.account}}<br/>
|
||||
电话:{{myOaInfo.account}}<br />
|
||||
公司:<text v-if="myOaInfo.admin&&myOaInfo.admin.company">{{ myOaInfo.admin.company.company_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -53,7 +54,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="ApproveList.length>0">
|
||||
<view class="backlog_item flex_a_c_j_sb" v-for="(item,index) in ApproveList.slice(0,2)" :key="index" @click="clickNotice(item.id)">
|
||||
<view class="backlog_item flex_a_c_j_sb" v-for="(item,index) in ApproveList.slice(0,2)" :key="index"
|
||||
@click="clickNotice(item.id)">
|
||||
<view class="text">{{ item.title }}</view>
|
||||
<i class="iconfont icon-you"><uni-icons type="forward"></uni-icons></i>
|
||||
</view>
|
||||
@ -202,14 +204,14 @@
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
initUserInfo(){
|
||||
initUserInfo() {
|
||||
this.$store.state.app.userInfo ? this.myOaInfo = this.$store.state.app.userInfo : this.myOaInfo.avatar = '';
|
||||
},
|
||||
initOaHomeDada(){
|
||||
if(this.$store.state.app.userInfo.admin_id==0){// 如果用户不是管理员
|
||||
let arr = oaHomeData.filter(item=>!item.admin);//过滤掉管理员专属页面
|
||||
initOaHomeDada() {
|
||||
if (this.$store.state.app.userInfo.admin_id == 0) { // 如果用户不是管理员
|
||||
let arr = oaHomeData.filter(item => !item.admin); //过滤掉管理员专属页面
|
||||
this.oaHomeData = arr;
|
||||
}else {
|
||||
} else {
|
||||
this.oaHomeData = oaHomeData;
|
||||
// let arr = oaHomeData.filter(item=>!item.personnel);//过滤掉普通用户专属页面
|
||||
// this.oaHomeData = arr;
|
||||
@ -259,12 +261,12 @@
|
||||
}
|
||||
}) : Toast('暂未开放')
|
||||
},
|
||||
navTwo(url,key) {
|
||||
navTwo(url, key) {
|
||||
let role_id = this.$store.state.app?.userInfo?.admin?.role_id || null;
|
||||
var arr = [3,6];
|
||||
var arr = [3, 6];
|
||||
|
||||
if(role_id && role_id[0]==9){
|
||||
if(arr.indexOf(key)==-1){
|
||||
if (role_id && role_id[0] == 9) {
|
||||
if (arr.indexOf(key) == -1) {
|
||||
Toast('请先成立公司后开放')
|
||||
return false
|
||||
}
|
||||
@ -272,21 +274,21 @@
|
||||
this.navTo(url);
|
||||
},
|
||||
// 点击公告
|
||||
clickNotice(e){
|
||||
clickNotice(e) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/oaNews/oaNews?id=${e}`
|
||||
})
|
||||
},
|
||||
// 判断当前是否登录,显示任务及完成率
|
||||
showToask(){
|
||||
if(!this.$store.state.app.token){
|
||||
this.assessData = this.assessData.map(item=>{
|
||||
showToask() {
|
||||
if (!this.$store.state.app.token) {
|
||||
this.assessData = this.assessData.map(item => {
|
||||
item.num = '*';
|
||||
return item;
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
// 新增接口后要替换为接口
|
||||
this.assessData = this.assessData.map(item=>{
|
||||
this.assessData = this.assessData.map(item => {
|
||||
item.num = '0';
|
||||
return item;
|
||||
})
|
||||
@ -295,7 +297,7 @@
|
||||
login() {
|
||||
console.log('ss');
|
||||
uni.navigateTo({
|
||||
url:'/pages/oaLogin/oaLogin'
|
||||
url: '/pages/oaLogin/oaLogin'
|
||||
})
|
||||
},
|
||||
async getUserIndex() {
|
||||
@ -337,7 +339,8 @@
|
||||
.mesg_box {
|
||||
color: #fff;
|
||||
margin-left: 31.58rpx;
|
||||
.nickname{
|
||||
|
||||
.nickname {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
margin-right: 30rpx;
|
||||
@ -395,10 +398,14 @@
|
||||
|
||||
.text {
|
||||
font-size: 28.04rpx;
|
||||
white-space: nowrap; /* 禁止换行 */
|
||||
overflow: hidden; /* 溢出隐藏 */
|
||||
text-overflow: ellipsis; /* 使用省略号代表被截断的文本 */
|
||||
width: 580rpx; /* 设置元素宽度,根据需要进行调整 */
|
||||
white-space: nowrap;
|
||||
/* 禁止换行 */
|
||||
overflow: hidden;
|
||||
/* 溢出隐藏 */
|
||||
text-overflow: ellipsis;
|
||||
/* 使用省略号代表被截断的文本 */
|
||||
width: 580rpx;
|
||||
/* 设置元素宽度,根据需要进行调整 */
|
||||
|
||||
&::before {
|
||||
content: '公告';
|
||||
@ -412,16 +419,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
&_no{
|
||||
&_no {
|
||||
margin-top: 19.3rpx;
|
||||
color: #666666;
|
||||
|
||||
.text {
|
||||
font-size: 28.04rpx;
|
||||
white-space: nowrap; /* 禁止换行 */
|
||||
overflow: hidden; /* 溢出隐藏 */
|
||||
text-overflow: ellipsis; /* 使用省略号代表被截断的文本 */
|
||||
width: 580rpx; /* 设置元素宽度,根据需要进行调整 */
|
||||
white-space: nowrap;
|
||||
/* 禁止换行 */
|
||||
overflow: hidden;
|
||||
/* 溢出隐藏 */
|
||||
text-overflow: ellipsis;
|
||||
/* 使用省略号代表被截断的文本 */
|
||||
width: 580rpx;
|
||||
/* 设置元素宽度,根据需要进行调整 */
|
||||
|
||||
&::before {
|
||||
content: none;
|
||||
@ -429,11 +440,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.backlog_no_data{
|
||||
|
||||
.backlog_no_data {
|
||||
bottom: -70rpx;
|
||||
}
|
||||
}
|
||||
.home_header_no_data{
|
||||
|
||||
.home_header_no_data {
|
||||
margin-bottom: 93.33rpx;
|
||||
}
|
||||
|
||||
@ -471,7 +484,7 @@
|
||||
border-radius: 12px;
|
||||
// padding: 28.07rpx;
|
||||
|
||||
.no_task{
|
||||
.no_task {
|
||||
width: 694rpx;
|
||||
height: 140rpx;
|
||||
padding: 28rpx;
|
||||
@ -480,13 +493,15 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-evenly;
|
||||
.title{
|
||||
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #000000CC;
|
||||
line-height: 35rpx;
|
||||
}
|
||||
.tips{
|
||||
|
||||
.tips {
|
||||
font-size: 25rpx;
|
||||
font-weight: 400;
|
||||
color: #333333FF;
|
||||
@ -495,10 +510,11 @@
|
||||
}
|
||||
|
||||
|
||||
.task_title{
|
||||
.task_title {
|
||||
font-size: 25rpx;
|
||||
font-weight: 400;
|
||||
padding: 28rpx;
|
||||
|
||||
.title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
@ -578,7 +594,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.no_login{
|
||||
.no_login {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
@ -590,17 +606,20 @@
|
||||
background: rgba(#333333, 0.4);
|
||||
border-radius: 14rpx 14rpx 0rpx 0rpx;
|
||||
padding: 28rpx 28rpx;
|
||||
.view{
|
||||
|
||||
.view {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.text{
|
||||
|
||||
.text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.btn{
|
||||
|
||||
.btn {
|
||||
width: 158rpx;
|
||||
height: 60rpx;
|
||||
background: #3274F9;
|
||||
|
@ -32,8 +32,9 @@
|
||||
<!-- <text class="omit" v-if="oaUserInfo.admin.company">所属公司:{{ oaUserInfo.admin.company.company_name }}</text> -->
|
||||
</view>
|
||||
<view class="work">
|
||||
电话:{{oaUserInfo.account}}<br/>
|
||||
公司:<text v-if="oaUserInfo.admin&&oaUserInfo.admin.company">{{ oaUserInfo.admin.company.company_name }}</text>
|
||||
电话:{{oaUserInfo.account}}<br />
|
||||
公司:<text
|
||||
v-if="oaUserInfo.admin&&oaUserInfo.admin.company">{{ oaUserInfo.admin.company.company_name }}</text>
|
||||
<!-- {{ oaUserInfo.did_name }}({{ oaUserInfo.label_name }}) -->
|
||||
</view>
|
||||
</view>
|
||||
|
Loading…
x
Reference in New Issue
Block a user