This commit is contained in:
@fawn-nine
2024-08-21 17:24:11 +08:00
parent 1179b63ae0
commit d549954559
16 changed files with 1826 additions and 351 deletions

View File

@@ -2,7 +2,7 @@
<view>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="主任班级管理"></z-nav-bar>
<z-nav-bar title="教研室班级管理"></z-nav-bar>
<!-- 主任和副主任可以创建班级 -->
<view class="classNewBtn" >
<view class="box88 flex_box">
@@ -12,7 +12,7 @@
</view>
</view>
<view class="modelName">
当前模型名称{{modelTitle}}
当前教研室名称{{modelTitle}}
</view>
<!-- <view class="tabsBox" :class="[fixed ? 'fixed' : '' ]">
<u-tabs v-if="tabList.length > 0" :class="['tabList']" @click="fatherClick" :current="curTagId"
@@ -51,8 +51,9 @@
<view class="jianjie">
目标学员人数{{item.number}}
</view>
<!-- <view class="jianjie" v-html="item.content">
</view> -->
<view class="jianjie" >
班内职务{{item.roleName}}
</view>
<view class="btn_box">
<!-- <text @click="enterClass" v-show="item.state == '0'">一键加入</text> -->
<text class="seeInfo">进入班级</text>
@@ -87,8 +88,9 @@
<view class="jianjie">
目标学员人数{{item.number}}
</view>
<!-- <view class="jianjie" v-html="item.content">
</view> -->
<view class="jianjie" >
班内职务{{item.roleName}}
</view>
<view class="btn_box">
<!-- <text @click="enterClass" v-show="item.state == '0'">一键加入</text> -->
<text class="seeInfo">进入班级</text>
@@ -127,8 +129,9 @@
<view class="jianjie">
目标学员人数{{item.number}}
</view>
<!-- <view class="jianjie" v-html="item.content">
</view> -->
<view class="jianjie" >
班内职务{{item.roleName}}
</view>
<view class="btn_box">
<!-- <text @click="enterClass" v-show="item.state == '0'">一键加入</text> -->
<text class="seeInfo">进入班级</text>
@@ -300,7 +303,7 @@
methods: {
goAddClasss(){
uni.navigateTo({
url:`/pages/miniClass/addClass?type=${this.modelType}`
url:`/pages/miniClass/addClass?type=${this.modelType}&modelId=${this.modelId}&modelTitle=${this.modelTitle}`
})
},
selectChange(e) {
@@ -369,11 +372,20 @@
if (res.classEntityList.length > 0) {
// this.classList = res.result
_list = res.classEntityList
_list.forEach(item => {
item.roleName = ''
if(item.ddirectorId == this.userInfo.id){
item.roleName = '副主任'
}
if(item.directorId == this.userInfo.id){
item.roleName = '主任'
}
})
} else {
// this.classList = []
_list = []
}
// this.flag = true
console.log('res.classEntityList',res.classEntityList);
}
uni.hideLoading()
}).catch(e => {