diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 02274432..52af9596 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -10,11 +10,11 @@ @@ -46,19 +46,19 @@ - - - - - - @@ -100,7 +100,7 @@ {{item.label}} - statusBarHeight + 'px') - + const activeTagPop = ref([]) - + const chooseTagPop = (item) => { if(!item.value){ activeTagPop.value = [] @@ -210,7 +210,7 @@ import { onShow } from "@dcloudio/uni-app" } const showTypeName = computed(()=>{ return (activeTab.value === '全部' && activeCourseType.value === '') || (activeTab.value === '生产线' && activePrdlineType.value === '') - }) + }) const tagsList = computed(()=>{ let _arr = [] tagsTree.value.forEach(t=>{ @@ -221,7 +221,7 @@ import { onShow } from "@dcloudio/uni-app" let _reqListN = _arr.filter(t=>t.required === "N") return _reqList.concat(_reqListN) }) - + const courseListBase = ref([]) const courseList = computed(()=>{ if(activeTag.value.length > 0 && !!activeTag.value[0]){ @@ -244,10 +244,10 @@ import { onShow } from "@dcloudio/uni-app" }) // 整理树形 const courseListTree = computed(()=>{ - let _arr = activeTab.value === '全部'? courseTypeList.value + let _arr = activeTab.value === '全部'? courseTypeList.value : activeTab.value === '生产线'? coursePrdlineList.value: [] let _idKey = activeTab.value === '全部'? 'tagId': 'prdLineId' - + let _tree = _arr.map(t=>{ let _children = t.children||[] return { @@ -397,7 +397,7 @@ import { onShow } from "@dcloudio/uni-app" } } .input-view{ - + } .tabs-view{ background: #ffffff;