修改bug
This commit is contained in:
parent
81187ab12c
commit
731665e0a2
|
@ -24,19 +24,22 @@
|
||||||
<a-menu-item key="1" v-if="getSysConfig().flag7=='1'">
|
<a-menu-item key="1" v-if="getSysConfig().flag7=='1'">
|
||||||
<a class="abox" @click="toDom('tkzjDom')">听课足迹</a>
|
<a class="abox" @click="toDom('tkzjDom')">听课足迹</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="2" v-if="getSysConfig().flag2=='1'">
|
<a-menu-item key="2" v-if="getSysConfig().flag7=='1'">
|
||||||
|
<a class="abox" @click="toDom('tkzjDom')">评课足迹</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="getSysConfig().flag2=='1'">
|
||||||
<a class="abox" @click="toDom('rkjcDom')">任教课程</a>
|
<a class="abox" @click="toDom('rkjcDom')">任教课程</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="3" v-if="getSysConfig().flag3=='1'">
|
<a-menu-item key="4" v-if="getSysConfig().flag3=='1'">
|
||||||
<a class="abox" @click="toDom('yykcDom')">预约课程</a>
|
<a class="abox" @click="toDom('yykcDom')">预约课程</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="4" v-if="getSysConfig().flag4=='1'">
|
<a-menu-item key="5" v-if="getSysConfig().flag4=='1'">
|
||||||
<a class="abox" @click="toDom('jcgkkDom')">公 开 课</a>
|
<a class="abox" @click="toDom('jcgkkDom')">公 开 课</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="5" v-if="getSysConfig().flag5=='1'">
|
<a-menu-item key="6" v-if="getSysConfig().flag5=='1'">
|
||||||
<a class="abox" @click="toDom('kxstkktDom')">线上听课</a>
|
<a class="abox" @click="toDom('kxstkktDom')">线上听课</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="6" v-if="getSysConfig().flag6=='1'">
|
<a-menu-item key="7" v-if="getSysConfig().flag6=='1'">
|
||||||
<a class="abox" @click="toDom('jrkclbDom')">今日课程</a>
|
<a class="abox" @click="toDom('jrkclbDom')">今日课程</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
|
@ -58,7 +61,7 @@
|
||||||
<span class="topTitle" >
|
<span class="topTitle" >
|
||||||
<RouterLink :to="{path:'/site/index'}" style="color:white;">{{ projectName }}
|
<RouterLink :to="{path:'/site/index'}" style="color:white;">{{ projectName }}
|
||||||
<span style="font-size: 16px;" v-if="getSysConfig().flag1">{{getSysConfig().flag1}}({{getSysConfig().bxqkssj}}至{{getSysConfig().bxqjssj}})</span>
|
<span style="font-size: 16px;" v-if="getSysConfig().flag1">{{getSysConfig().flag1}}({{getSysConfig().bxqkssj}}至{{getSysConfig().bxqjssj}})</span>
|
||||||
<!-- <span style="font-size: 16px;margin-left: 20px;" >本学期听课要求:10次;已完成:8次</span> -->
|
<span style="font-size: 16px;margin-left: 20px;" >本学期听课要求:{{tkyqcs}}次;已完成:{{tkyqywc}}次</span>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<RouterLink hidden target='_blank' :to="{path:'/site/liveView',query:{ url: 'rtsp://176.139.87.16/axis-media/media.amp' }}">直播测试页rtsp</RouterLink>
|
<RouterLink hidden target='_blank' :to="{path:'/site/liveView',query:{ url: 'rtsp://176.139.87.16/axis-media/media.amp' }}">直播测试页rtsp</RouterLink>
|
||||||
<RouterLink hidden target='_blank' :to="{path:'/site/liveFlvView',query:{ url: 'rtsp://176.139.87.16/axis-media/media.amp' }}">直播测试页flv</RouterLink>
|
<RouterLink hidden target='_blank' :to="{path:'/site/liveFlvView',query:{ url: 'rtsp://176.139.87.16/axis-media/media.amp' }}">直播测试页flv</RouterLink>
|
||||||
|
@ -87,17 +90,21 @@
|
||||||
</a-layout-header>
|
</a-layout-header>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { ref,onMounted } from 'vue';
|
||||||
import { DownOutlined, ArrowUpOutlined } from '@ant-design/icons-vue';
|
import { DownOutlined, ArrowUpOutlined } from '@ant-design/icons-vue';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
import YjfkModal from '/@/views/site/yjfk/YjfkModal.vue';
|
import YjfkModal from '/@/views/site/yjfk/YjfkModal.vue';
|
||||||
import { getUserSf,getSysConfig } from '/@/views/site/utils/index';
|
import { getUserSf,getSysConfig } from '/@/views/site/utils/index';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
|
||||||
|
const tkyqcs = ref<string>('未配置');
|
||||||
|
const tkyqywc = ref<string>('0');
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
showRightButton: { type: Boolean, default: false }
|
showRightButton: { type: Boolean, default: false }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
const yqlist = (queryParam) => defHttp.get({ url: '/kcTingke/kcTingke/getUserTingkeInfo', params:queryParam });
|
||||||
const projectName = import.meta.env.VITE_GLOB_APP_TITLE;
|
const projectName = import.meta.env.VITE_GLOB_APP_TITLE;
|
||||||
|
|
||||||
const YjfkModalTab = ref();
|
const YjfkModalTab = ref();
|
||||||
|
@ -108,6 +115,22 @@ function toIndex(){
|
||||||
window.location.href="/site/index"
|
window.location.href="/site/index"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//进入就加载
|
||||||
|
onMounted(() => {
|
||||||
|
|
||||||
|
yqlist(null).then(res=>{
|
||||||
|
console.log(`🚀 ~ file: header.vue:122 ~ yqlist ~ res:`, res)
|
||||||
|
var list = res
|
||||||
|
if(list){
|
||||||
|
console.log(`🚀 1111`)
|
||||||
|
tkyqcs.value = list.tkyq||'未配置'
|
||||||
|
console.log(`🚀 2222`,tkyqcs)
|
||||||
|
tkyqywc.value = list.sjtksl||'0'
|
||||||
|
console.log(`🚀 3333`,tkyqywc)
|
||||||
|
}
|
||||||
|
console.log(`🚀 ~ file: header.vue:123 ~ yqlist ~ list:`, list)
|
||||||
|
})
|
||||||
|
});
|
||||||
function smoothScroll(topNum){
|
function smoothScroll(topNum){
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(topNum > 0){
|
if(topNum > 0){
|
||||||
|
|
Loading…
Reference in New Issue