|
@@ -5,7 +5,8 @@ import {
|
|
|
ref,
|
|
|
reactive,
|
|
|
onUnmounted,
|
|
|
- watch
|
|
|
+ watch,
|
|
|
+ computed
|
|
|
} from 'vue';
|
|
|
import LayoutSilder from './layoutSilder';
|
|
|
import LayoutTop from './layoutTop';
|
|
@@ -347,6 +348,27 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
+
|
|
|
+ // 帮助指引状态
|
|
|
+ const helpNoteList = reactive({
|
|
|
+ baseListTab: ''
|
|
|
+ });
|
|
|
+ const helpNoteStatus = computed(() => {
|
|
|
+ const routePath = route.path;
|
|
|
+ const hidePath = [
|
|
|
+ '/classDetail',
|
|
|
+ '/classStudentDetail',
|
|
|
+ '/notation',
|
|
|
+ '/xiaoku-ai'
|
|
|
+ ];
|
|
|
+ // 单独判断个人信息页面[学校设置]有引导
|
|
|
+ if (route.path === '/setting') {
|
|
|
+ return helpNoteList.baseListTab === 'school' ? true : false;
|
|
|
+ } else {
|
|
|
+ return hidePath.includes(routePath) ? false : true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
initMoveable();
|
|
|
// // initMoveableClass();
|
|
@@ -360,6 +382,10 @@ export default defineComponent({
|
|
|
initBoxRectInfo(subdEl, boxBoundaryInfo);
|
|
|
// // initBoundaryWrap(classEl, classBoundaryInfo);
|
|
|
window.addEventListener('resize', resetSize);
|
|
|
+
|
|
|
+ eventGlobal.on('base-setting-emit', (val: string) => {
|
|
|
+ helpNoteList.baseListTab = val;
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
const resetSize = () => {
|
|
@@ -674,12 +700,15 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <div
|
|
|
- class={styles.booxToolItem}
|
|
|
- onClick={() => startShowModal('iconNote')}>
|
|
|
- <img src={iconNote} alt="" />
|
|
|
- 帮助指引
|
|
|
- </div>
|
|
|
+ {helpNoteStatus.value && (
|
|
|
+ <div
|
|
|
+ class={styles.booxToolItem}
|
|
|
+ onClick={() => startShowModal('iconNote')}>
|
|
|
+ <img src={iconNote} alt="" />
|
|
|
+ 帮助指引
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
+
|
|
|
<div
|
|
|
class={styles.booxToolItem}
|
|
|
onClick={() => startShowModal('iconPen')}>
|