Commit 3376ea39 by sunerhu

修改了一些Bug

parent ab8ed886
......@@ -229,6 +229,10 @@ export default {
queryMyTeamInfo(params){
return request(`${cffpURL}/orgInfo/queryMyTeamInfo`, "POST", params)
},
// 我的团队展开
queryTeamDetail(params){
return request(`${cffpURL}/orgInfo/teamDetail`, "POST", params)
},
// 学习统计
userStudyCount(params){
return request(`${cffpURL}/study/userStudyCount`, "POST", params)
......
......@@ -9,7 +9,7 @@
<view class="content-sam-box">
<view class="" v-for="(pointItem,index) in dataList" :key="index">
<view class="" style="display: flex;" v-if="type == '1'">
<view class="content-box-title" v-if="pointItem.name" @click="subordinate(index,pointItem)">
<view class="content-box-title" v-if="pointItem.name" @click="subordinate(index,pointItem,1)">
<span>{{pointItem.name}}</span>
</view>
<view class="content-box-title" v-if="pointItem.levelName">
......@@ -26,8 +26,8 @@
<view class="content-box-title" v-if="pointItem.levelName">
<span>{{pointItem.levelName}}</span>
</view>
<view class="content-box-title" v-if="pointItem.courserNum !=null">
<span>{{pointItem.courserNum}}</span>
<view class="content-box-title">
<span>{{pointItem.courserNum || '0'}}</span>
</view>
</view>
<view class="" style="display: flex;" v-if="type == '3'">
......@@ -47,22 +47,22 @@
<!-- 二级循环 -->
<view class="" v-if="table_index == index && this.tableone == true && pointItem.levelCode != 'A1'">
<view class="" v-for="(itq, index) in dtList">
<view style="display: flex;">
<view class="content-box-title-a" @click="cktable(itq)">
<view class="" v-for="(itq, index) in twoList" :key="index">
<view style="display: flex;">
<view class="content-box-title-a" @click="subordinate(index,itq,2)">
<span style="color: #FFFFFF;font-weight: 400;">{{itq.name}}</span>
</view>
<view class="content-box-title">
<span>{{itq.name}}</span>
<!-- <span>{{itq.levelName}}</span> -->
</view>
<view class="content-box-title">
<span>{{itq.name}}</span>
</view>
</view>
<!-- 三级循环 -->
<view class="" v-if="tablesubordinate == itq.id">
<view class="" v-for="(itq, index) in dtList">
<view class="" v-if="threeindex == index && this.tablethree == true ">
<view class="" v-for="(itq, index) in threeList">
<span>{{itq.name}}</span>
</view>
</view>
......@@ -74,7 +74,7 @@
</template>
<script>
import api from "../../api/api";
import api from "../../api/api";
export default {
props: {
dataList: {
......@@ -89,48 +89,68 @@
type: String,
default: null
},
type:{
type: String ,// 这里用来去区分是哪个页面传来的值 1直属团队 2.所辖团队 3.其他团队
type: {
type: String, // 这里用来去区分是哪个页面传来的值 1直属团队 2.所辖团队 3.其他团队
default: null
},
},
name: "myteam-table",
data() {
return {
table_index: '', // 第
table_index: '', // 第
tableone: false,
tablesubordinate:'', // 第二级
dataFoList:[],
threeindex: '',
tablethree: false, // 第三层收起
dataFoList: [],
twoList: [],
threeList: []
};
},
mounted() {
console.log(this.type, 774557)
// if(this.type == 1){
// this.dataFoList = this.dataList.map((x,index) => ({
// name:x.name
// par:x.levelName
// data: x.courserNum
// }))
// }
},
methods: {
cktable(e) {
this.tablesubordinate = e.id
},
subordinate(index,val) {
console.log(val.levelCode, 7744)
if(this.tabletype == 1 || val.levelCode == 'A1') {
return
subordinate(index, val, type) {
console.log(index, 444)
if (this.tabletype == 1 || val.levelCode == 'A1') {
return
} else {
this.tableone = this.table_index == index ? !this.tableone : true
this.table_index = index
api.userStudyCount().then(res=>{
console.log(res, 4455)
let CffpOrgInfoReqVO = {
id: val.id
}
api.queryTeamDetail(CffpOrgInfoReqVO).then(res => {
if (res['success']) {
this.listtype(index, type, res.data.list)
}
})
}
},
listtype(index, val, list) {
console.log(index, val, list, 78787)
switch (val) {
case 1:
this.tableone = this.table_index == index ? !this.tableone : true
this.table_index = index
this.twoList = list
break
case 2:
console.log(!this.tablethree, 44114)
this.tablethree = !this.tablethree
// this.threeindex = this.threeindex == index ? !this.tablethree : true
this.threeindex = index
var list = [{
name: 5514
}]
this.threeList = list
break
// case 3:
// this.tableone = this.table_index == index ? !this.tableone : true
// this.table_index = index
// this.twoList = list
// break
}
}
}
}
</script>
......@@ -165,9 +185,11 @@
.concent-footer {
margin: 0 5px;
}
.content-box-title-a{
.content-box-title-a {
padding: 5px 0;
flex: 1;
margin: 0 10px;
background: #3F52B7;
border-radius: 5px;
border: 1px solid #fff;
......
......@@ -35,7 +35,7 @@
<view class="" style="width: 20px;height: 30px;">
<image class="imagegh" src="../../static/myteam/Pdf.png" mode=""></image>
</view>
<text style="margin-left: 10rpx;">{{openForm.fileName}}</text>
<text style="margin-left: 10rpx;" @click="exportTo">{{openForm.fileName}}</text>
</view>
<view class="uploadpdf" @click="uploadFile()">
<view class="uploadimg">
......@@ -93,10 +93,6 @@
methods: {
async getquerySignUpInfo() {
this.$refs.Loading.show()
setTimeout(() => {
this.$refs.Loading.hide()
}, 3000)
let UserSignUpInfoQueryRequestVO = {
userSignUpId:this.openForm.signupId
}
......@@ -104,6 +100,12 @@
this.openForm = res.data
this.openForm.signupId = res.data.id
},
exportTo(){
console.log(this.openForm.planBookPdfUrl, 4451)
uni.navigateTo({
url: '/pages/personalCenter/accountoperation/phonebinding?fileUrl='+ encodeURIComponent(this.openForm.planBookPdfUrl)
})
},
// 获取证件类型
async geterpInitialize() {
let res = await api.erpInitialize()
......
<template>
<view class="container">
<view class="logo">
<image src="../../static/cffp_logo.jpg" alt="" mode="widthFix"></image>
<view class="" style="width: 120rpx;">
<image src="../../static/cffp_logo.jpg" alt="" mode="widthFix"></image>
</view>
<text>欢迎使用CFFP</text>
</view>
<view class="inviteInfo">
......@@ -33,11 +35,11 @@
padding-top: 100rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 30rpx;
overflow: hidden;
font-size: 40rpx;
width:100rpx;
image{
margin-bottom: 20rpx;
width: 160rpx;
......
......@@ -144,7 +144,8 @@
isCross:true,
inviteLists:[],
orgList: [],
queryorgList:[]
queryorgList:[],
shareId:''
};
},
onLoad() {
......@@ -179,6 +180,9 @@
// 发起邀请事件
shareToggle() {
// uni.navigateTo({
// url:'/pages/invitationRegister/invitationRegister'
// })
this.dataForm.partnerLevel = this.applyIdentity == 0 ? 'A1' : 'B1'
this.dataForm.hasCrossDistrict = this.isCross == true ? '1' : '0'
this.dataForm.areaId = this.queryorgList[this.index].areaId
......@@ -194,7 +198,9 @@
api.saveApplyInfo(this.dataForm).then(res =>{
if(res['success']){
this.switchTab(2)
// this.switchTab(2)
this.$refs.share.open()
this.shareId = res.id
}
uni.showToast({
title: res['message'],
......@@ -202,7 +208,6 @@
icon: 'none'
});
})
// this.$refs.share.open()
},
closeShare(){
this.$refs.share.close()
......@@ -213,7 +218,7 @@
provider: "weixin",
scene: "WXSceneSession",
type: 0,
href: "https://mdev.zuihuibi.cn/cffp/",
href: "https://mdev.zuihuibi.cn/cffp/?id="+this.shareId,
title: "uni-app分享",
summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
......
<template>
<view class="">
<view @click="dia()">此页面暂时废弃</view>
<web-view :src="allUrl"></web-view>
</view>
</template>
......@@ -8,18 +8,20 @@
export default {
data() {
return {
allUrl:''
}
},
methods:{
dia(){
uni.showLoading({
title:'jiazia'
})
}
}
onLoad(params) {
console.log(params,777)
// encodeURIComponent 函数可把字符串作为 URI 组件进行编码。decodeURIComponent解码
// 这里的 params.fileUrl 是另一个组件进入到该组件时通过 navigateTo 传进来的pdf文件路径
let fileUrl = decodeURIComponent(params.fileUrl);
// 下面的路径合起来其实是:'/hybrid/html/web/viewer.html?file=' + 线上pdf路径
this.allUrl = fileUrl
},
methods: {}
}
</script>
<style>
</style>
\ No newline at end of file
</style>
......@@ -17,7 +17,7 @@
</view>
</view>
<view>昵称:{{customerBasicInfo.nickName}}</view>
<view>{{customerBasicInfo.nickName}}</view>
<view>{{customerBasicInfo.userDescription}}</view>
</view>
</view>
<!-- 主要菜单 -->
......
......@@ -3,7 +3,7 @@
<view v-for="(item, index) in dataList" :key="index">
<view class="content-header">
<view class="concent-title">
<text class="concent-text">{{item.name}}</text>
<text class="concent-text">{{item.levelName}}</text>
</view>
</view>
<view style="text-align: right;margin: 20px;">
......@@ -39,29 +39,34 @@
components:{
MyteamTable
},
mounted() {
this.dataList = this.raiseList
console.log(this.raiseList, 77777)
},
data() {
return {
datatitleList:['辖下组织/成员','职级','合计'],
dataList:[
{
name: 'shirley一级服务中心',
rank: '50',
dataL:[
{name:'成员',rms:'2级别',smn:'111'},
{name:'成员',rms:'2级别',smn:'111'},
{name:'成员',rms:'2级别',smn:'111'}
]
},
{
name: '雪梨一级服务中心',
rank: '80',
dataL:[
{name:'成员',rms:'2级别',smn:'111'},
{name:'成员',rms:'2级别',smn:'111'},
{name:'成员',rms:'2级别',smn:'111'}
]
}
]
dataList:[]
// dataList:[
// {
// name: 'shirley一级服务中心',
// rank: '50',
// dataL:[
// {name:'成员',rms:'2级别',smn:'111'},
// {name:'成员',rms:'2级别',smn:'111'},
// {name:'成员',rms:'2级别',smn:'111'}
// ]
// },
// {
// name: '雪梨一级服务中心',
// rank: '80',
// dataL:[
// {name:'成员',rms:'2级别',smn:'111'},
// {name:'成员',rms:'2级别',smn:'111'},
// {name:'成员',rms:'2级别',smn:'111'}
// ]
// }
// ]
// dataList:[{
// name:'',
// total: '582',
......
......@@ -36,7 +36,7 @@
return {
tabType: 1,
userStudyLists: [],
userId: '5',
userId: '1',
directList: null, //直属团队数组
raiseList: null, //所辖团队数组
otherList: null, // 其他
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment