|
|
@@ -10,7 +10,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</nav-bar>
|
|
|
- <scroll-view scroll-y class="workspace_content">
|
|
|
+ <view class="workspace_content">
|
|
|
<!-- 系统列表 -->
|
|
|
<view class="system_list">
|
|
|
<template v-if="largeCard?.visible">
|
|
|
@@ -123,7 +123,7 @@
|
|
|
<text class="btn_text">新增日程</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
+ </view>
|
|
|
|
|
|
<view v-if="showAddScheduleModal" class="modal-overlay" @click="handleCloseModal">
|
|
|
<view class="modal-content" @click.stop>
|
|
|
@@ -184,7 +184,7 @@ const store = useStore();
|
|
|
const { statusBarHeight, safeAreaBottom, initSafeArea } = useSafeArea();
|
|
|
|
|
|
const systemItems = ref([
|
|
|
- { name: '大数据精准教学诊断平台', id: '1', key: '', image: '/static/image/workspace/iconLeft.png', isLarge: true, visible: true },
|
|
|
+ { name: '大数据精准教学诊断平台', id: '1', key: 'bigData', image: '/static/image/workspace/iconLeft.png', isLarge: true, visible: true },
|
|
|
{ name: '选择题判分', id: '3', key: '', image: '/static/image/workspace/icon1.png', isLarge: false, visible: true },
|
|
|
{ name: '材料采集', id: '7', key: 'materialCollection', image: '/static/image/workspace/icon2.png', isLarge: false, visible: true },
|
|
|
{ name: '教师研修', id: '9', key: 'teacherStudy', image: '/static/image/workspace/icon3.png', isLarge: false, visible: true },
|
|
|
@@ -365,11 +365,14 @@ onMounted(() => {
|
|
|
});
|
|
|
|
|
|
onShow(() => {
|
|
|
+ pageInit();
|
|
|
+});
|
|
|
+const pageInit = () => {
|
|
|
modulesList.value = store.state.userStore.modulesList || uni.getStorageSync('modulesList') || [];
|
|
|
fetchScheduleList();
|
|
|
-});
|
|
|
-
|
|
|
+}
|
|
|
const handleSystemClick = (item) => {
|
|
|
+ console.log(item,9888)
|
|
|
const isSelect = getModulePermission(item.id);
|
|
|
if (isSelect == 0) {
|
|
|
uni.showToast({ title: '暂无权限,敬请期待!', icon: 'none' });
|
|
|
@@ -394,6 +397,10 @@ const handleSystemClick = (item) => {
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/${item.key}/index`
|
|
|
});
|
|
|
+ }else if(item.key === 'bigData'){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/webview/teacherApp`
|
|
|
+ });
|
|
|
} else {
|
|
|
uni.showToast({ title: `即将打开:${item.name}`, icon: 'none' });
|
|
|
}
|
|
|
@@ -486,7 +493,6 @@ const handleConfirmSchedule = async () => {
|
|
|
//获取学生信息
|
|
|
const getSchoolInfo = () => {
|
|
|
state.schoolName = store.state.userStore.userInfo.schoolName;
|
|
|
- console.log(state.schoolName,323233)
|
|
|
state.schoolId = store.state.userStore.userInfo.schoolId;
|
|
|
}
|
|
|
//切换学校弹框
|
|
|
@@ -501,10 +507,14 @@ const DialogSchoolConfirm = () => {
|
|
|
user.chooseBelongSchool({
|
|
|
schoolId:state.schoolId,
|
|
|
deviceType:'APP'
|
|
|
- }).then(res=>{
|
|
|
+ }).then(async res=>{
|
|
|
if(res.code == 200){
|
|
|
- state.schoolName = res?.data?.schoolName || '';
|
|
|
- store.dispatch('setUserInfo');
|
|
|
+ // state.schoolName = res?.data?.schoolName || '';
|
|
|
+ const modules = res?.data?.modules || [];
|
|
|
+ store.dispatch('setModulesList', modules);
|
|
|
+ uni.setStorageSync('modulesList', modules);
|
|
|
+ await store.dispatch('setUserInfo');
|
|
|
+ pageInit();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -571,17 +581,19 @@ $shadow-sm: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
|
|
|
}
|
|
|
|
|
|
.page_workspace {
|
|
|
- min-height: 100vh;
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
background-color: #F8F9FD;
|
|
|
box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.workspace_content {
|
|
|
- padding-left: 24rpx;
|
|
|
- padding-right: 24rpx;
|
|
|
- height: 100%;
|
|
|
+ padding: 24rpx 24rpx 0;
|
|
|
+ flex:1;
|
|
|
box-sizing: border-box;
|
|
|
- overflow: hidden;
|
|
|
+ overflow: auto;
|
|
|
}
|
|
|
|
|
|
// 系统列表
|